From 334e8270319869b76eada63c72d2a306f3e2d458 Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Sun, 23 Oct 2022 08:13:28 +0100 Subject: [PATCH] password: init at 3.0.2.0 --- manifest.dhall | 1 + overlay.nix | 2 ++ pkgs/password.nix | 27 +++++++++++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 pkgs/password.nix diff --git a/manifest.dhall b/manifest.dhall index 84d9d37d..99c8940b 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 76792828..063ea58c 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 00000000..64018612 --- /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 -- GitLab