diff options
author | Ben Siraphob <bensiraphob@gmail.com> | 2021-03-12 13:03:03 +0700 |
---|---|---|
committer | Ben Siraphob <bensiraphob@gmail.com> | 2021-03-12 13:04:59 +0700 |
commit | 82a0379d9c954d3e27620277db9204916a040077 (patch) | |
tree | f29161d15a4551706eb5f4866c3e429cdcf88daa /pkgs/development/libraries/shhopt | |
parent | 5eeece814a50716a212f5c0c7be6938918956a2c (diff) |
shhopt: fix darwin build
Diffstat (limited to 'pkgs/development/libraries/shhopt')
-rw-r--r-- | pkgs/development/libraries/shhopt/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/libraries/shhopt/default.nix b/pkgs/development/libraries/shhopt/default.nix index da1b820fcd543..0657b13e55797 100644 --- a/pkgs/development/libraries/shhopt/default.nix +++ b/pkgs/development/libraries/shhopt/default.nix @@ -8,12 +8,16 @@ stdenv.mkDerivation rec { sha256 = "0yd6bl6qw675sxa81nxw6plhpjf9d2ywlm8a5z66zyjf28sl7sds"; }; + postPatch = '' + substituteInPlace Makefile --replace "gcc" "${stdenv.cc.targetPrefix}cc" + ''; + installFlags = [ "INSTBASEDIR=$(out)" ]; meta = with lib; { description = "A library for parsing command line options"; homepage = "https://shh.thathost.com/pub-unix/"; license = licenses.artistic1; - platforms = platforms.linux; + platforms = platforms.all; }; } |