From a508572731ac71208a5caedf3526c6ce79dd6a4f Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 4 Sep 2013 14:08:10 +0200 Subject: [PATCH] haskell-cipher-{blowfish,camellia,des}: add new packages --- .../haskell/cipher-blowfish/default.nix | 20 +++++++++++++++++++ .../haskell/cipher-camellia/default.nix | 20 +++++++++++++++++++ .../libraries/haskell/cipher-des/default.nix | 20 +++++++++++++++++++ pkgs/top-level/haskell-packages.nix | 6 ++++++ 4 files changed, 66 insertions(+) create mode 100644 pkgs/development/libraries/haskell/cipher-blowfish/default.nix create mode 100644 pkgs/development/libraries/haskell/cipher-camellia/default.nix create mode 100644 pkgs/development/libraries/haskell/cipher-des/default.nix diff --git a/pkgs/development/libraries/haskell/cipher-blowfish/default.nix b/pkgs/development/libraries/haskell/cipher-blowfish/default.nix new file mode 100644 index 00000000000..af8114c6d02 --- /dev/null +++ b/pkgs/development/libraries/haskell/cipher-blowfish/default.nix @@ -0,0 +1,20 @@ +{ cabal, byteable, cryptoCipherTests, cryptoCipherTypes, QuickCheck +, securemem, testFramework, testFrameworkQuickcheck2, vector +}: + +cabal.mkDerivation (self: { + pname = "cipher-blowfish"; + version = "0.0.1"; + sha256 = "0bz8jd65idcalyzcbmgz16hr6y5mnw7mckk5yvrm9k19cr6mwq52"; + buildDepends = [ byteable cryptoCipherTypes securemem vector ]; + testDepends = [ + byteable cryptoCipherTests cryptoCipherTypes QuickCheck + testFramework testFrameworkQuickcheck2 + ]; + meta = { + homepage = "http://github.com/vincenthz/hs-crypto-cipher"; + description = "Blowfish cipher"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/development/libraries/haskell/cipher-camellia/default.nix b/pkgs/development/libraries/haskell/cipher-camellia/default.nix new file mode 100644 index 00000000000..6d29792ea33 --- /dev/null +++ b/pkgs/development/libraries/haskell/cipher-camellia/default.nix @@ -0,0 +1,20 @@ +{ cabal, byteable, cryptoCipherTests, cryptoCipherTypes, QuickCheck +, securemem, testFramework, testFrameworkQuickcheck2, vector +}: + +cabal.mkDerivation (self: { + pname = "cipher-camellia"; + version = "0.0.1"; + sha256 = "11narl4h77v7317hdqy8zxhym3k7xrmw97yfwh0vr8k1y5dkiqh3"; + buildDepends = [ byteable cryptoCipherTypes securemem vector ]; + testDepends = [ + byteable cryptoCipherTests cryptoCipherTypes QuickCheck + testFramework testFrameworkQuickcheck2 + ]; + meta = { + homepage = "http://github.com/vincenthz/hs-crypto-cipher"; + description = "Camellia block cipher primitives"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/development/libraries/haskell/cipher-des/default.nix b/pkgs/development/libraries/haskell/cipher-des/default.nix new file mode 100644 index 00000000000..2217fddffcc --- /dev/null +++ b/pkgs/development/libraries/haskell/cipher-des/default.nix @@ -0,0 +1,20 @@ +{ cabal, byteable, cryptoCipherTests, cryptoCipherTypes, QuickCheck +, securemem, testFramework, testFrameworkQuickcheck2 +}: + +cabal.mkDerivation (self: { + pname = "cipher-des"; + version = "0.0.2"; + sha256 = "1bykxfn2jhqzr5l2319bbyr8ky6i844m2lm39axvfizfxav9wbgz"; + buildDepends = [ byteable cryptoCipherTypes securemem ]; + testDepends = [ + byteable cryptoCipherTests cryptoCipherTypes QuickCheck + testFramework testFrameworkQuickcheck2 + ]; + meta = { + homepage = "http://github.com/vincenthz/hs-crypto-cipher"; + description = "DES and 3DES primitives"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 60f5a767cd1..6a5065fa049 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -698,6 +698,12 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x cipherAes = callPackage ../development/libraries/haskell/cipher-aes {}; + cipherBlowfish = callPackage ../development/libraries/haskell/cipher-blowfish {}; + + cipherCamellia = callPackage ../development/libraries/haskell/cipher-camellia {}; + + cipherDes = callPackage ../development/libraries/haskell/cipher-des {}; + cipherRc4 = callPackage ../development/libraries/haskell/cipher-rc4 {}; circlePacking = callPackage ../development/libraries/haskell/circle-packing {};