p7zip: fix build when enableUnfree is true
`chmod +x install.sh` was only being executed when enableUnfree was false. Therefore, building p7zip with enableUnfree set to true would fail because install.sh was not an executable file.
This commit is contained in:
parent
cf059b32d9
commit
410dbaa077
@ -16,6 +16,7 @@ stdenv.mkDerivation rec {
|
|||||||
# Default makefile is full of impurities on Darwin. The patch doesn't hurt Linux so I'm leaving it unconditional
|
# Default makefile is full of impurities on Darwin. The patch doesn't hurt Linux so I'm leaving it unconditional
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i '/CC=\/usr/d' makefile.macosx_llvm_64bits
|
sed -i '/CC=\/usr/d' makefile.macosx_llvm_64bits
|
||||||
|
chmod +x install.sh
|
||||||
|
|
||||||
# I think this is a typo and should be CXX? Either way let's kill it
|
# I think this is a typo and should be CXX? Either way let's kill it
|
||||||
sed -i '/XX=\/usr/d' makefile.macosx_llvm_64bits
|
sed -i '/XX=\/usr/d' makefile.macosx_llvm_64bits
|
||||||
@ -28,7 +29,6 @@ stdenv.mkDerivation rec {
|
|||||||
# (see DOC/License.txt, https://fedoraproject.org/wiki/Licensing:Unrar)
|
# (see DOC/License.txt, https://fedoraproject.org/wiki/Licensing:Unrar)
|
||||||
rm -r CPP/7zip/Compress/Rar*
|
rm -r CPP/7zip/Compress/Rar*
|
||||||
find . -name makefile'*' -exec sed -i '/Rar/d' {} +
|
find . -name makefile'*' -exec sed -i '/Rar/d' {} +
|
||||||
chmod +x install.sh
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user