diff --git a/horizon.dhall b/horizon.dhall index 45ba8a39fc7e575f9d46c709c3e86cf76a35ce7d..b02e688b96c43f95cc54854c9f3a82cf0949051a 100644 --- a/horizon.dhall +++ b/horizon.dhall @@ -228,6 +228,7 @@ let otherLibraries = , H.callHackage "hedgehog-quickcheck" "0.1.1" , H.callHackage "heredoc" "0.2.0.0" , H.callHackage "hex-text" "0.1.0.7" + , H.callHackage "hspec-golden-aeson" "0.9.0.0" , H.callHackage "hspec-golden" "0.2.0.0" , H.callHackage "hsyslog" "5.0.2" , H.callHackage "html-entities" "1.1.4.6" diff --git a/overlay.nix b/overlay.nix index 0a0b1be2a945fda9e372343a59472d98d7de6932..6e12a52611d2f3b04ddb1df7bf017000e44cb2d5 100644 --- a/overlay.nix +++ b/overlay.nix @@ -179,6 +179,8 @@ final: prev: with pkgs.haskell.lib; { hspec-golden = final.callPackage (./pkgs/hspec-golden.nix) { }; + hspec-golden-aeson = final.callPackage (./pkgs/hspec-golden-aeson.nix) { }; + hsyslog = final.callPackage (./pkgs/hsyslog.nix) { }; html-entities = final.callPackage (./pkgs/html-entities.nix) { }; diff --git a/pkgs/hspec-golden-aeson.nix b/pkgs/hspec-golden-aeson.nix new file mode 100644 index 0000000000000000000000000000000000000000..8df558b854f9108ae0ec341ba1bbec91d44a7ea8 --- /dev/null +++ b/pkgs/hspec-golden-aeson.nix @@ -0,0 +1,61 @@ +{ mkDerivation +, HUnit +, QuickCheck +, aeson +, aeson-pretty +, base +, bytestring +, directory +, filepath +, hspec +, hspec-core +, lib +, quickcheck-arbitrary-adt +, random +, silently +, transformers +}: +mkDerivation { + pname = "hspec-golden-aeson"; + version = "0.9.0.0"; + sha256 = "04b1510fd21af7ccefbb753ffeb6474eed055120a27ef7fcbcc22a63bb0945d6"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ + aeson + aeson-pretty + base + bytestring + directory + filepath + hspec + HUnit + QuickCheck + quickcheck-arbitrary-adt + random + transformers + ]; + testHaskellDepends = [ + aeson + base + directory + hspec + hspec-core + QuickCheck + quickcheck-arbitrary-adt + silently + transformers + ]; + enableLibraryProfiling = true; + enableExecutableProfiling = true; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + homepage = "https://github.com/plow-technologies/hspec-golden-aeson#readme"; + description = "Use tests to monitor changes in Aeson serialization"; + license = lib.licenses.bsd3; + broken = false; +}