Merge pull request #173230 from delroth/restool-werror

restool: fix x86_64-linux build
This commit is contained in:
Robert Scott 2022-05-17 21:48:49 +01:00 committed by GitHub
commit acc4a0bbb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,6 +18,12 @@ stdenv.mkDerivation rec {
"VERSION=${version}"
];
postPatch = ''
# -Werror makes this derivation fragile on compiler version upgrades, patch
# it out.
sed -i /-Werror/d Makefile
'';
preFixup = ''
# wrapProgram interacts badly with the ls-main tool, which relies on the
# shell's $0 argument to figure out which operation to run (busybox-style