summary refs log tree commit diff
diff options
context:
space:
mode:
authorBen Siraphob <bensiraphob@gmail.com>2021-03-17 16:53:05 +0700
committerBen Siraphob <bensiraphob@gmail.com>2021-03-18 23:02:06 +0700
commite3e70904594566e3fbb5328c8d7276a0adbd468e (patch)
tree83780fd7d53d2d9524524f07c9b25eca30caac55
parent3bced99816f7bcafb1d243a1d7d1baa557595b1c (diff)
downloadnixpkgs-e3e70904594566e3fbb5328c8d7276a0adbd468e.tar
nixpkgs-e3e70904594566e3fbb5328c8d7276a0adbd468e.tar.gz
nixpkgs-e3e70904594566e3fbb5328c8d7276a0adbd468e.tar.bz2
nixpkgs-e3e70904594566e3fbb5328c8d7276a0adbd468e.tar.lz
nixpkgs-e3e70904594566e3fbb5328c8d7276a0adbd468e.tar.xz
nixpkgs-e3e70904594566e3fbb5328c8d7276a0adbd468e.tar.zst
nixpkgs-e3e70904594566e3fbb5328c8d7276a0adbd468e.zip
dejsonlz4: fix build on darwin
-rw-r--r--pkgs/tools/compression/dejsonlz4/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/tools/compression/dejsonlz4/default.nix b/pkgs/tools/compression/dejsonlz4/default.nix
index 9e6f95aecb8..07b6a5979a4 100644
--- a/pkgs/tools/compression/dejsonlz4/default.nix
+++ b/pkgs/tools/compression/dejsonlz4/default.nix
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
     };
 
     buildPhase = ''
-      gcc -Wall -o dejsonlz4 src/dejsonlz4.c src/lz4.c
+      ${stdenv.cc.targetPrefix}cc -o dejsonlz4 src/dejsonlz4.c src/lz4.c
     '';
 
     installPhase = ''
@@ -23,6 +23,6 @@ stdenv.mkDerivation rec {
       homepage = "https://github.com/avih/dejsonlz4";
       license = licenses.bsd2;
       maintainers = with maintainers; [ mt-caret ];
-      platforms = platforms.linux;
+      platforms = platforms.all;
     };
   }