Merge pull request #21694 from dtzWill/fix/skype-pax

skype: paxmark to fix execution on PaX-enabled kernels
This commit is contained in:
Joachim F 2017-01-07 08:05:02 +01:00 committed by GitHub
commit f1dc2dd552

View File

@ -38,6 +38,9 @@ stdenv.mkDerivation rec {
mkdir -p $out/{libexec/skype/,bin}
cp -r * $out/libexec/skype/
# Fix execution on PaX-enabled kernels
paxmark m $out/libexec/skype/skype
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath "${lib.makeLibraryPath buildInputs}" $out/libexec/skype/skype