dlx: fix cross-compilation

This commit is contained in:
Ben Siraphob 2021-02-16 17:30:38 +07:00
parent 028ebdb0b0
commit 2877a5c7ee

View file

@ -8,9 +8,9 @@ stdenv.mkDerivation {
sha256 = "0q5hildq2xcig7yrqi26n7fqlanyssjirm7swy2a9icfxpppfpkn";
};
buildInputs = [ unzip ];
nativeBuildInputs = [ unzip ];
makeFlags = [ "LINK=gcc" "CFLAGS=-O2" ];
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "LINK=${stdenv.cc.targetPrefix}cc" "CFLAGS=-O2" ];
hardeningDisable = [ "format" ];
@ -26,6 +26,6 @@ stdenv.mkDerivation {
homepage = "http://www.davidviner.com/dlx.php";
description = "DLX Simulator";
license = lib.licenses.gpl2;
platforms = lib.platforms.linux;
platforms = lib.platforms.all;
};
}