tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
libf2c: mark cross as broken
FliegendeWurst
10 months ago
96e83da6
f28864e0
+10
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
li
libf2c
package.nix
+10
pkgs/by-name/li/libf2c/package.nix
···
20
unzip ${src}
21
'';
22
0
0
0
0
0
23
makeFlags = [
24
"-f"
25
"makefile.u"
0
26
];
27
28
installPhase = ''
···
44
homepage = "http://www.netlib.org/f2c/";
45
license = lib.licenses.mit;
46
platforms = lib.platforms.unix;
0
0
0
0
47
};
48
}
···
20
unzip ${src}
21
'';
22
23
+
postPatch = ''
24
+
substituteInPlace makefile.u \
25
+
--replace-fail "ld" "${stdenv.cc.targetPrefix}ld"
26
+
'';
27
+
28
makeFlags = [
29
"-f"
30
"makefile.u"
31
+
"CC=${stdenv.cc.targetPrefix}cc"
32
];
33
34
installPhase = ''
···
50
homepage = "http://www.netlib.org/f2c/";
51
license = lib.licenses.mit;
52
platforms = lib.platforms.unix;
53
+
# Generates arith.h at build time. Uses non-standard fpu_control.h.
54
+
broken =
55
+
(!stdenv.buildPlatform.canExecute stdenv.hostPlatform)
56
+
|| (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.libc != "glibc");
57
};
58
}