diff options
author | Ludovic Courtès <ludo@gnu.org> | 2009-09-18 15:01:47 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2009-09-18 15:01:47 +0000 |
commit | 519b26bd4d90486464c807f199ccdd0cffaaaec5 (patch) | |
tree | 6f9d9fd59e76ac23c7e3e9739e891e7b1099a533 /pkgs/development | |
parent | 26dc84f99a8c2dfb7d00879bebff3e6324cc1944 (diff) |
GNU Nettle: Tentative patch for Cygwin.
svn path=/nixpkgs/trunk/; revision=17250
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/libraries/nettle/cygwin.patch | 12 | ||||
-rw-r--r-- | pkgs/development/libraries/nettle/default.nix | 3 |
2 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/development/libraries/nettle/cygwin.patch b/pkgs/development/libraries/nettle/cygwin.patch new file mode 100644 index 0000000000000..d5036237c8d53 --- /dev/null +++ b/pkgs/development/libraries/nettle/cygwin.patch @@ -0,0 +1,12 @@ +Cygwin sucks. Patch suggested by Niel Möller. + +--- nettle-2.0/examples/setup-env 2009-06-08 20:27:12.000000000 +0200 ++++ nettle-2.0/examples/setup-env 2009-09-18 16:58:03.000000000 +0200 +@@ -3,5 +3,5 @@ + set -e + + if [ -x rsa-keygen ] ; then +- ./rsa-keygen -r rsa-decrypt -o testkey || exit 1 ++ ./rsa-keygen -r rsa-decrypt.exe -o testkey || exit 1 + fi + diff --git a/pkgs/development/libraries/nettle/default.nix b/pkgs/development/libraries/nettle/default.nix index 1b439eed9b76e..6261b72e581dd 100644 --- a/pkgs/development/libraries/nettle/default.nix +++ b/pkgs/development/libraries/nettle/default.nix @@ -13,6 +13,9 @@ stdenv.mkDerivation rec { doCheck = true; + patches = stdenv.lib.optional (stdenv.system == "i686-cygwin") + ./cygwin.patch; + meta = { description = "GNU Nettle, a cryptographic library"; |