diff --git a/manifest.dhall b/manifest.dhall index e67a79bc8849e301dba3c0e1caaaa3ca7f73350c..8bae29e99266125ebc4665cff65ce5602503d415 100644 --- a/manifest.dhall +++ b/manifest.dhall @@ -142,6 +142,7 @@ in [ callHackage "Cabal" "3.8.1.0" , callHackage "data-fix" "0.3.2" , callHackage "dec" "0.0.5" , callHackage "dhall" "1.41.2" + , callHackage "dhall-json" "1.7.11" , callHackage "dimensional" "1.5" , callCabal2nix "dirforest" diff --git a/overlay.nix b/overlay.nix index 2264a760a6653cd712887c56e1a6f87d46e06771..dad65ed59ef208bf8d081fb5f5ef88a0f45089cb 100644 --- a/overlay.nix +++ b/overlay.nix @@ -127,6 +127,8 @@ final: prev: with pkgs.haskell.lib; { dhall = prev.callPackage (./pkgs/dhall.nix) { }; + dhall-json = prev.callPackage (./pkgs/dhall-json.nix) { }; + dimensional = prev.callPackage (./pkgs/dimensional.nix) { }; dirforest = prev.callPackage (./pkgs/dirforest.nix) { }; diff --git a/pkgs/dhall-json.nix b/pkgs/dhall-json.nix new file mode 100644 index 0000000000000000000000000000000000000000..e31ed38e98c7182c9965c3fe382132c0f5f72cee --- /dev/null +++ b/pkgs/dhall-json.nix @@ -0,0 +1,33 @@ +{ mkDerivation, aeson, aeson-pretty, aeson-yaml, ansi-terminal +, base, bytestring, containers, dhall, exceptions, filepath +, lens-family-core, lib, optparse-applicative, prettyprinter +, prettyprinter-ansi-terminal, scientific, tasty, tasty-hunit +, tasty-silver, text, unordered-containers, vector +}: +mkDerivation { + pname = "dhall-json"; + version = "1.7.11"; + sha256 = "26c2acf33bfc597f4d2ac333a431180c9929d7a9b4ef7cf70c4bd45eba65ef28"; + revision = "1"; + editedCabalFile = "0m5sngc1j7jagn95qmjz7gpw2jgqnnafgr6nwd506q8z2jg2a3my"; + isLibrary = true; + isExecutable = true; + libraryHaskellDepends = [ + aeson aeson-pretty aeson-yaml base bytestring containers dhall + exceptions filepath lens-family-core optparse-applicative + prettyprinter scientific text unordered-containers vector + ]; + executableHaskellDepends = [ + aeson aeson-pretty ansi-terminal base bytestring dhall exceptions + optparse-applicative prettyprinter prettyprinter-ansi-terminal text + ]; + testHaskellDepends = [ + aeson base bytestring dhall tasty tasty-hunit tasty-silver text + ]; + doHaddock = false; + jailbreak = true; + doCheck = false; + hyperlinkSource = false; + description = "Convert between Dhall and JSON or YAML"; + license = lib.licenses.bsd3; +} \ No newline at end of file