From a2eb329972b12e650585c9bff139131fbdd4d474 Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Fri, 4 Nov 2022 14:31:10 +0000 Subject: [PATCH] aeson-pretty: init at 0.8.9 --- manifest.dhall | 1 + overlay.nix | 2 ++ pkgs/aeson-pretty.nix | 27 +++++++++++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 pkgs/aeson-pretty.nix diff --git a/manifest.dhall b/manifest.dhall index 4581db9f..0b60d31c 100644 --- a/manifest.dhall +++ b/manifest.dhall @@ -71,6 +71,7 @@ in [ callHackage "Cabal" "3.8.1.0" , callHackage "OpenGLRaw" "3.3.4.1" , callHackage "PyF" "0.11.1.0" , callHackage "aeson" "2.1.0.0" + , callHackage "aeson-pretty" "0.8.9" , callHackage "aeson-yaml" "1.1.0.1" , callHackage "ansi-terminal" "0.11.3" , callHackage "apecs" "0.9.4" diff --git a/overlay.nix b/overlay.nix index f81fad90..149eadf0 100644 --- a/overlay.nix +++ b/overlay.nix @@ -25,6 +25,8 @@ final: prev: with pkgs.haskell.lib; { aeson = prev.callPackage (./pkgs/aeson.nix) { }; + aeson-pretty = prev.callPackage (./pkgs/aeson-pretty.nix) { }; + aeson-yaml = prev.callPackage (./pkgs/aeson-yaml.nix) { }; ansi-terminal = prev.callPackage (./pkgs/ansi-terminal.nix) { }; diff --git a/pkgs/aeson-pretty.nix b/pkgs/aeson-pretty.nix new file mode 100644 index 00000000..19158ce4 --- /dev/null +++ b/pkgs/aeson-pretty.nix @@ -0,0 +1,27 @@ +{ mkDerivation, aeson, attoparsec, base, base-compat, bytestring +, cmdargs, lib, scientific, text, unordered-containers, vector +}: +mkDerivation { + pname = "aeson-pretty"; + version = "0.8.9"; + sha256 = "5dbc4f451dfa1e667b2c6ec5170714fed1905dc9cae6a1134b3376f355fa2a08"; + revision = "2"; + editedCabalFile = "1895w56jl4c06wfhv5zf8ayqpzkxgva2rz5xxz8fvfdiza781cgp"; + isLibrary = true; + isExecutable = true; + libraryHaskellDepends = [ + aeson base base-compat bytestring scientific text + unordered-containers vector + ]; + executableHaskellDepends = [ + aeson attoparsec base bytestring cmdargs + ]; + doHaddock = false; + jailbreak = true; + doCheck = false; + hyperlinkSource = false; + homepage = "http://github.com/informatikr/aeson-pretty"; + description = "JSON pretty-printing library and command-line tool"; + license = lib.licenses.bsd3; + mainProgram = "aeson-pretty"; +} \ No newline at end of file -- GitLab