Merge pull request #131366 from SuperSandro2000/s9fes

This commit is contained in:
Ben Siraphob 2021-07-25 00:20:47 +07:00 committed by GitHub
commit 606502a6c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,14 +9,15 @@ stdenv.mkDerivation rec {
version = "20181205";
src = fetchurl {
url = "http://www.t3x.org/s9fes/s9fes-${version}.tgz";
url = "https://www.t3x.org/s9fes/s9fes-${version}.tgz";
sha256 = "sha256-Lp/akaDy3q4FmIE6x0fj9ae/SOD7tdsmzy2xdcCh13o=";
};
# Fix cross-compilation
postPatch = ''
substituteInPlace Makefile --replace 'ar q' '${stdenv.cc.targetPrefix}ar q'
substituteInPlace Makefile --replace 'strip' '${stdenv.cc.targetPrefix}strip'
substituteInPlace Makefile \
--replace 'ar q' '${stdenv.cc.targetPrefix}ar q' \
--replace 'strip' '${stdenv.cc.targetPrefix}strip'
${lib.optionalString isCrossCompiling "substituteInPlace Makefile --replace ./s9 '${buildPackages.s9fes}/bin/s9'"}
'';