git.iko.soy/typeable/nixpkgs
on master help sign in
fsg: disable format hardening
commit57bd89e447911c26c02b7884d5a3cbff3557ab9f authorRobin Gloster <mail@glob.in> dateMon 29 Aug 2016, 17:01 (10 years ago) parent6541dfe
1 file changed+2−20
pkgs/games/fsg/default.nix+2−20
pkgs/games/fsg/default.nix+2−20
@@ -4,31 +4,13 @@ stdenv.mkDerivation {
44 name = "fsg-4.4";
55
66 src = fetchurl {
7− #url = http://www.piettes.com/fallingsandgame/fsg-src-4.4.tar.gz;
87 url = http://www.sourcefiles.org/Games/Simulation/Other/fsg-src-4.4.tar.gz;
98 sha256 = "1756y01rkvd3f1pkj88jqh83fqcfl2fy0c48mcq53pjzln9ycv8c";
109 };
1110
12− buildInputs = [ gtk glib pkgconfig mesa wxGTK libX11 xproto ];
13−
14−/*
15−# One day Unicode will overcome?
11+ hardeningDisable = [ "format" ];
1612
17− preBuild = "
18− sed -e '
19− s/\\(str\\.Printf(\\)\\(\".*\"\\)/\\1_(\\2)/;
20− s@\\<fopen(\\([^\"),]\\+\\)@fopen(wxConvertWX2MB(\\1)@
21− s@\\<wxString(\\([^)]\\+\\)@wxString(wxConvertMB2WX(\\1)@
22− s/\\(wxString str(\\)\\(\".*\"\\)/\\1_(\\2)/;
23− ' -i MainFrame.cpp Canvas.cpp;
24− sed -e '
25− s@\\(^[^\"]*([^\"]*[^(]\\|^[^\"].*[^_](\\)\\(\"\\([^\"]\\|\\\"\\)*\"\\)@\\1_(\\2)@;
26− ' -i DownloadFileDialog.cpp;
27− sed -e '
28− s@currentProbIndex != 100@0@;
29− ' -i MainFrame.cpp;
30− cp -r . /tmp/fsg
31− ";*/
13+ buildInputs = [ gtk glib pkgconfig mesa wxGTK libX11 xproto ];
3214
3315 preBuild = ''
3416 sed -e '