diff options
author | Ben Siraphob <bensiraphob@gmail.com> | 2021-03-03 18:56:53 +0700 |
---|---|---|
committer | Ben Siraphob <bensiraphob@gmail.com> | 2021-03-03 22:35:06 +0700 |
commit | c47331a6c0b1c31d0e2a1f3ae1a24c20b428b358 (patch) | |
tree | d7b334aa4375314773b453afa5770ffb6849e83e /pkgs/development/compilers/serpent | |
parent | 9ef6fe63be0d3baa269d534b622667bf4ea66515 (diff) |
serpent: fix darwin build
Diffstat (limited to 'pkgs/development/compilers/serpent')
-rw-r--r-- | pkgs/development/compilers/serpent/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/compilers/serpent/default.nix b/pkgs/development/compilers/serpent/default.nix index 775a78a97341e..fbcbf4485a470 100644 --- a/pkgs/development/compilers/serpent/default.nix +++ b/pkgs/development/compilers/serpent/default.nix @@ -14,6 +14,10 @@ stdenv.mkDerivation { sha256 = "1bns9wgn5i1ahj19qx7v1wwdy8ca3q3pigxwznm5nywsw7s7lqxs"; }; + postPatch = '' + substituteInPlace Makefile --replace 'g++' '${stdenv.cc.targetPrefix}c++' + ''; + installPhase = '' mkdir -p $out/bin mv serpent $out/bin @@ -33,6 +37,6 @@ stdenv.mkDerivation { homepage = "https://github.com/ethereum/wiki/wiki/Serpent"; license = with licenses; [ wtfpl ]; maintainers = with maintainers; [ chris-martin ]; - platforms = with platforms; linux; + platforms = platforms.all; }; } |