tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
fsg: fix cross build
FliegendeWurst
1 year ago
7b55ce83
f28864e0
+10
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
fs
fsg
package.nix
+10
pkgs/by-name/fs/fsg/package.nix
···
25
25
26
26
patches = [ ./wxgtk-3.2.patch ];
27
27
28
28
+
# use correct wx-config for cross-compiling
29
29
+
postPatch = ''
30
30
+
substituteInPlace makefile \
31
31
+
--replace-fail 'wx-config' "${lib.getExe' wxGTK32 "wx-config"}"
32
32
+
'';
33
33
+
28
34
hardeningDisable = [ "format" ];
29
35
30
36
nativeBuildInputs = [ pkg-config ];
···
44
50
' -i MainFrame.cpp
45
51
sed -re '/ctrans_prob/s/energy\[center][+]energy\[other]/(int)(fmin(energy[center]+energy[other],99))/g' -i Canvas.cpp
46
52
'';
53
53
+
54
54
+
makeFlags = [
55
55
+
"CPP=${stdenv.cc.targetPrefix}c++"
56
56
+
];
47
57
48
58
installPhase = ''
49
59
mkdir -p $out/bin $out/libexec