qrcode: build on darwin

Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
This commit is contained in:
Patrick Mahoney 2021-01-27 10:03:14 -06:00
parent a93b10e233
commit 2426da9b0e

View file

@ -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;
};
}