tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
harec: enable cross-compilation
Coutinho de Souza
2 years ago
f8b46d2b
1bdb07e1
+9
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
ha
harec
package.nix
+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
10
+
qbePlatform = {
11
11
+
x86_64 = "amd64_sysv";
12
12
+
aarch64 = "arm64";
13
13
+
riscv64 = "rv64";
14
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
39
+
"QBEFLAGS=-t${qbePlatform}"
40
40
+
"CC=${stdenv.cc.targetPrefix}cc"
41
41
+
"AS=${stdenv.cc.targetPrefix}as"
42
42
+
"LD=${stdenv.cc.targetPrefix}ld"
34
43
];
35
44
36
45
strictDeps = true;