diff options
Diffstat (limited to 'pkgs/development/libraries/nettle')
-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"; |