about summary refs log tree commit diff
path: root/pkgs/tools/graphics/qrcode
diff options
context:
space:
mode:
authorPatrick Mahoney <pat@polycrystal.org>2021-01-27 10:03:14 -0600
committerPatrick Mahoney <pat@polycrystal.org>2021-01-27 10:17:32 -0600
commit2426da9b0e95a686d7e5423e04d882c96e5134e0 (patch)
tree09f8cfd292d0daf3413185ac1bbc95236deda586 /pkgs/tools/graphics/qrcode
parenta93b10e233dd7825751884e7fea24abc47db41cc (diff)
qrcode: build on darwin
Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
Diffstat (limited to 'pkgs/tools/graphics/qrcode')
-rw-r--r--pkgs/tools/graphics/qrcode/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/tools/graphics/qrcode/default.nix b/pkgs/tools/graphics/qrcode/default.nix
index 4f1770be17ede..93a620b57792e 100644
--- a/pkgs/tools/graphics/qrcode/default.nix
+++ b/pkgs/tools/graphics/qrcode/default.nix
@@ -13,6 +13,8 @@ stdenv.mkDerivation {
 
   NIX_CFLAGS_COMPILE = "-Wno-error=unused-result";
 
+  makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
+
   installPhase = ''
     mkdir -p "$out"/{bin,share/doc/qrcode}
     cp qrcode "$out/bin"
@@ -23,6 +25,6 @@ stdenv.mkDerivation {
     description = "A small QR-code tool";
     license = licenses.gpl3Plus;
     maintainers = with maintainers; [ raskin ];
-    platforms = with platforms; linux;
+    platforms = with platforms; unix;
   };
 }