cryptopp: be graceful when removing static lib, fixing cross compilation
commit52f2f6cf4be9eb88711644282e5e706cfa03cc69
authorNick Cao <nickcao@nichi.co>
dateFri 7 Jan 2022, 18:36 (5 years ago)
parent8aeafc2
pkgs/development/libraries/crypto++/default.nix+1−1
@@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
3434 doCheck = true;
3535
3636 # always built for checks but install static lib only when necessary
37− preInstall = lib.optionalString (!enableStatic) "rm libcryptopp.a";
37+ preInstall = lib.optionalString (!enableStatic) "rm -f libcryptopp.a";
3838
3939 installTargets = [ "install-lib" ];
4040 installFlags = [ "LDCONF=true" ];