summary refs log tree commit diff
path: root/pkgs/development/interpreters
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-03-09 21:14:38 +0100
committerGitHub <noreply@github.com>2021-03-09 21:14:38 +0100
commitaa3af1977451ab9e1d05a0451001bde98262b40a (patch)
tree4fc2e6919788ea49e2412a8640454c4bd35e20c0 /pkgs/development/interpreters
parentaf48e8377b69fee2e705e1d8cc2554a66c264984 (diff)
parent0be95fbe46b23fc790e6db9c5f4e188ef8926c3a (diff)
downloadnixpkgs-aa3af1977451ab9e1d05a0451001bde98262b40a.tar
nixpkgs-aa3af1977451ab9e1d05a0451001bde98262b40a.tar.gz
nixpkgs-aa3af1977451ab9e1d05a0451001bde98262b40a.tar.bz2
nixpkgs-aa3af1977451ab9e1d05a0451001bde98262b40a.tar.lz
nixpkgs-aa3af1977451ab9e1d05a0451001bde98262b40a.tar.xz
nixpkgs-aa3af1977451ab9e1d05a0451001bde98262b40a.tar.zst
nixpkgs-aa3af1977451ab9e1d05a0451001bde98262b40a.zip
Merge pull request #115424 from siraben/darwin-mass-fix-buildInputs=0
Diffstat (limited to 'pkgs/development/interpreters')
-rw-r--r--pkgs/development/interpreters/ceptre/default.nix2
-rw-r--r--pkgs/development/interpreters/duktape/default.nix10
2 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/development/interpreters/ceptre/default.nix b/pkgs/development/interpreters/ceptre/default.nix
index a9b8f54ab87..c3fa6a645e0 100644
--- a/pkgs/development/interpreters/ceptre/default.nix
+++ b/pkgs/development/interpreters/ceptre/default.nix
@@ -20,6 +20,6 @@ stdenv.mkDerivation {
     description = "A linear logic programming language for modeling generative interactive systems";
     homepage = "https://github.com/chrisamaphone/interactive-lp";
     maintainers = with maintainers; [ pSub ];
-    platforms = with platforms; linux;
+    platforms = platforms.unix;
   };
 }
diff --git a/pkgs/development/interpreters/duktape/default.nix b/pkgs/development/interpreters/duktape/default.nix
index f864f5bf6f9..360666d898a 100644
--- a/pkgs/development/interpreters/duktape/default.nix
+++ b/pkgs/development/interpreters/duktape/default.nix
@@ -8,6 +8,14 @@ stdenv.mkDerivation rec {
     sha256 = "19szwxzvl2g65fw95ggvb8h0ma5bd9vvnnccn59hwnc4dida1x4n";
   };
 
+  postPatch = ''
+    substituteInPlace Makefile.sharedlibrary \
+      --replace 'gcc' '${stdenv.cc.targetPrefix}cc' \
+      --replace 'g++' '${stdenv.cc.targetPrefix}c++'
+    substituteInPlace Makefile.cmdline \
+      --replace 'gcc' '${stdenv.cc.targetPrefix}cc' \
+      --replace 'g++' '${stdenv.cc.targetPrefix}c++'
+  '';
   buildPhase = ''
     make -f Makefile.sharedlibrary
     make -f Makefile.cmdline
@@ -27,6 +35,6 @@ stdenv.mkDerivation rec {
     downloadPage = "https://duktape.org/download.html";
     license = licenses.mit;
     maintainers = [ maintainers.fgaz ];
-    platforms = platforms.linux;
+    platforms = platforms.all;
   };
 }