qrcode: build on darwin
Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
This commit is contained in:
parent
a93b10e233
commit
2426da9b0e
|
@ -13,6 +13,8 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-Wno-error=unused-result";
|
NIX_CFLAGS_COMPILE = "-Wno-error=unused-result";
|
||||||
|
|
||||||
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p "$out"/{bin,share/doc/qrcode}
|
mkdir -p "$out"/{bin,share/doc/qrcode}
|
||||||
cp qrcode "$out/bin"
|
cp qrcode "$out/bin"
|
||||||
|
@ -23,6 +25,6 @@ stdenv.mkDerivation {
|
||||||
description = "A small QR-code tool";
|
description = "A small QR-code tool";
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
maintainers = with maintainers; [ raskin ];
|
maintainers = with maintainers; [ raskin ];
|
||||||
platforms = with platforms; linux;
|
platforms = with platforms; unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue