diff options
-rw-r--r-- | pkgs/development/libraries/openssl/default.nix | 12 | ||||
-rw-r--r-- | pkgs/misc/cups/default.nix | 2 |
2 files changed, 6 insertions, 8 deletions
diff --git a/pkgs/development/libraries/openssl/default.nix b/pkgs/development/libraries/openssl/default.nix index 8ba7e41425b8..6a3beee80de4 100644 --- a/pkgs/development/libraries/openssl/default.nix +++ b/pkgs/development/libraries/openssl/default.nix @@ -82,6 +82,10 @@ stdenv.mkDerivation { mkdir $dev mv $out/include $dev/ + + # OpenSSL installs readonly files, which otherwise we can't strip. + # FIXME: Can remove this after the next stdenv merge. + chmod -R +w $out ''; # */ crossAttrs = { @@ -92,14 +96,6 @@ stdenv.mkDerivation { export configureFlags="--libdir=lib --cross-compile-prefix=${stdenv.cross.config}- shared ${opensslCrossSystem}" ''; - postInstall = '' - # Openssl installs readonly files, which otherwise we can't strip. - # This could at some stdenv hash change be put out of crossAttrs, too - chmod -R +w $out - - # Remove references to perl, to avoid depending on it at runtime - rm $out/bin/c_rehash $out/ssl/misc/CA.pl $out/ssl/misc/tsget - ''; configureScript = "./Configure"; }; diff --git a/pkgs/misc/cups/default.nix b/pkgs/misc/cups/default.nix index d479e6e69718..be442fd22a61 100644 --- a/pkgs/misc/cups/default.nix +++ b/pkgs/misc/cups/default.nix @@ -45,6 +45,8 @@ stdenv.mkDerivation { '' mkdir $dev/bin mv $out/bin/cups-config $dev/bin/ + + chmod -R +w $out ''; meta = { |