lol

harec: enable cross-compilation

+9
+9
pkgs/by-name/ha/harec/package.nix
··· 7 7 let 8 8 platform = lib.toLower stdenv.hostPlatform.uname.system; 9 9 arch = stdenv.hostPlatform.uname.processor; 10 + qbePlatform = { 11 + x86_64 = "amd64_sysv"; 12 + aarch64 = "arm64"; 13 + riscv64 = "rv64"; 14 + }.${arch}; 10 15 in 11 16 stdenv.mkDerivation (finalAttrs: { 12 17 pname = "harec"; ··· 31 36 "PREFIX=${builtins.placeholder "out"}" 32 37 "ARCH=${arch}" 33 38 "VERSION=${finalAttrs.version}-nixpkgs" 39 + "QBEFLAGS=-t${qbePlatform}" 40 + "CC=${stdenv.cc.targetPrefix}cc" 41 + "AS=${stdenv.cc.targetPrefix}as" 42 + "LD=${stdenv.cc.targetPrefix}ld" 34 43 ]; 35 44 36 45 strictDeps = true;