mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-19 15:11:30 +00:00
[Backport release-26.05] ioquake3: fix riscv cross-compilation (#542728)
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
mumble,
|
||||
unstableGitUpdater,
|
||||
bc,
|
||||
buildPackages,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
@@ -33,6 +34,11 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
hash = "sha256-OszPRlS5NTvajDZhtGw2wa275O8YodkIgiBz3POouYs=";
|
||||
};
|
||||
|
||||
makeFlags = [
|
||||
"ARCH=${stdenv.hostPlatform.parsed.cpu.name}"
|
||||
"NO_STRIP=1"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
copyDesktopItems
|
||||
makeBinaryWrapper
|
||||
@@ -55,6 +61,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
mumble
|
||||
];
|
||||
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
preConfigure = ''
|
||||
|
||||
Reference in New Issue
Block a user