about summary refs log tree commit diff
path: root/pkgs/development/compilers/xa
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2021-03-17 16:46:15 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2021-03-17 20:59:19 -0300
commit6603130e7e1a5d478b6f2be992a0aac9af9fb491 (patch)
tree615657ba46ace4e0ef615d64719ca8f84b153a5c /pkgs/development/compilers/xa
parent0408ccf4ffe0eb4c56b2086ed6bec72589cabb5f (diff)
xa: fix a typo in substituteInPlace
Also, move the file argument
Diffstat (limited to 'pkgs/development/compilers/xa')
-rw-r--r--pkgs/development/compilers/xa/xa.nix9
1 files changed, 4 insertions, 5 deletions
diff --git a/pkgs/development/compilers/xa/xa.nix b/pkgs/development/compilers/xa/xa.nix
index 163b0bba513ba..c445940f5cde1 100644
--- a/pkgs/development/compilers/xa/xa.nix
+++ b/pkgs/development/compilers/xa/xa.nix
@@ -15,13 +15,12 @@ stdenv.mkDerivation rec {
   dontConfigure = true;
 
   postPatch = ''
-    substitueInPlace \
+    substituteInPlace Makefile \
       --replace "DESTDIR" "PREFIX" \
-      --replace "CC = gcc" "CC = cc" \
-      --replace "LDD = gcc" "LDD = ld" \
+      --replace "CC = gcc" "CC = ${stdenv.cc.targetPrefix}cc" \
+      --replace "LDD = gcc" "LDD = ${stdenv.cc.targetPrefix}cc" \
       --replace "CFLAGS = -O2" "CFLAGS ?=" \
-      --replace "LDFLAGS = -lc" "LDFLAGS ?= -lc" \
-      Makefile
+      --replace "LDFLAGS = -lc" "LDFLAGS ?= -lc"
   '';
 
   makeFlags = [ "PREFIX=${placeholder "out"}" ];