diff --git a/manifest.dhall b/manifest.dhall index 84d9d37d314829a6335c09af308cd7c01d6ffd2f..99c8940b2d273954f6fa5805fafb4e9d58cd32b8 100644 --- a/manifest.dhall +++ b/manifest.dhall @@ -303,6 +303,7 @@ in [ callHackage "Cabal" "3.8.1.0" , callHackage "pandoc" "2.19.2" , callHackage "parallel" "3.2.2.0" , callHackage "password-types" "1.0.0.0" + , callHackage "password" "3.0.2.0" , callHackage "pcg-random" "0.1.3.7" , callHackage "pcre2" "2.2.1" , callHackage "persistent" "2.14.3.0" diff --git a/overlay.nix b/overlay.nix index 76792828de06a71990f32d28bc6325062d05018f..063ea58c713b6170593fe4d17033bdb98c7e3ec3 100644 --- a/overlay.nix +++ b/overlay.nix @@ -359,6 +359,8 @@ final: prev: with pkgs.haskell.lib; { parallel = prev.callPackage (./pkgs/parallel.nix) { }; + password = prev.callPackage (./pkgs/password.nix) { }; + password-types = prev.callPackage (./pkgs/password-types.nix) { }; pcg-random = prev.callPackage (./pkgs/pcg-random.nix) { }; diff --git a/pkgs/password.nix b/pkgs/password.nix new file mode 100644 index 0000000000000000000000000000000000000000..640186126672931b4437ceb3924a7511403a5566 --- /dev/null +++ b/pkgs/password.nix @@ -0,0 +1,27 @@ +{ mkDerivation, base, base-compat, base64, bytestring, Cabal +, cabal-doctest, cryptonite, doctest, lib, memory, password-types +, QuickCheck, quickcheck-instances, scrypt, tasty, tasty-hunit +, tasty-quickcheck, template-haskell, text +}: +mkDerivation { + pname = "password"; + version = "3.0.2.0"; + sha256 = "14c5b664ec2d3064059f8de7170c4eb10e847397de9f98a841b8ea5ea6cf4c24"; + setupHaskellDepends = [ base Cabal cabal-doctest ]; + libraryHaskellDepends = [ + base base64 bytestring cryptonite memory password-types + template-haskell text + ]; + testHaskellDepends = [ + base base-compat bytestring cryptonite doctest memory + password-types QuickCheck quickcheck-instances scrypt tasty + tasty-hunit tasty-quickcheck template-haskell text + ]; + doHaddock = false; + jailbreak = true; + doCheck = false; + hyperlinkSource = false; + homepage = "https://github.com/cdepillabout/password/tree/master/password#readme"; + description = "Hashing and checking of passwords"; + license = lib.licenses.bsd3; +} \ No newline at end of file