git.iko.soy/typeable/nixpkgs
on master help sign in
gsb: remove, depends on vulnerable curl3
commit296c6714541c0da4e712834ff4ac255a49c22790 authorFranz Pletz <fpletz@fnordicwalking.de> dateWed 14 Sep 2016, 08:22 (10 years ago) parent1781e95
2 files changed−77
pkgs/games/gsb/default.nix−75 pkgs/top-level/all-packages.nix−2
pkgs/games/gsb/default.nixdeleted−75
@@ -1,75 +0,0 @@
1−{ stdenv, config, requireFile
2−, curl3, SDL, SDL_image, libpng12, libjpeg62, libvorbis, libogg, openal, mesa
3−, libX11, libXext, libXft, fontconfig, zlib }:
4−
5−assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
6−
7−stdenv.mkDerivation rec {
8− name = "gsb-1.56.0";
9−
10− goBuyItNow = ''
11− We cannot download the full version automatically, as you require a license.
12− Once you bought a license, you need to add your downloaded version to the nix store.
13− You can do this by using "nix-prefetch-url file://gsb1324679796.tar.gz" in the
14− directory where you saved it.
15− '';
16−
17− src = requireFile {
18− message = goBuyItNow;
19− name = "gsb1324679796.tar.gz";
20− sha256 = "12jsz9v55w9zxwiz4kbm6phkv60q3c2kyv5imsls13385pzwcs8i";
21− };
22−
23− arch = if stdenv.system == "i686-linux" then "x86" else "x86_64";
24−
25− phases = "unpackPhase installPhase";
26−
27− # XXX: stdenv.lib.makeLibraryPath doesn't pick up /lib64
28− libPath = stdenv.lib.makeLibraryPath [ stdenv.cc.cc stdenv.cc.libc ]
29− + ":" + stdenv.lib.makeLibraryPath [ SDL SDL_image libjpeg62 libpng12 mesa ]
30− + ":" + stdenv.lib.makeLibraryPath [ curl3 openal libvorbis libogg ]
31− + ":" + stdenv.lib.makeLibraryPath [ libX11 libXext libXft fontconfig zlib ]
32− + ":" + stdenv.cc.cc + "/lib64";
33−
34− installPhase = ''
35− mkdir -p $out/libexec/positech/GSB/
36− mkdir -p $out/bin
37−
38− patchelf \
39− --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
40− --set-rpath $libPath \
41− ./GSB.bin.$arch
42−
43− cp -r * $out/libexec/positech/GSB/
44− rm -rf $out/libexec/positech/GSB/lib64/
45− rm -rf $out/libexec/positech/GSB/lib/
46−
47− #makeWrapper doesn't do cd. :(
48−
49− cat > $out/bin/GSB << EOF
50− #!/bin/sh
51− cd $out/libexec/positech/GSB
52− exec ./GSB.bin.$arch
53− EOF
54− chmod +x $out/bin/GSB
55− '';
56−
57− meta = with stdenv.lib; {
58− description = "Gratuitous Space Battles";
59− longDescription = ''
60− a strategy / management / simulation game that does away with all the
61− base building and delays and gets straight to the meat and potatoes of
62− science-fiction games : The big space battles fought by huge spaceships with
63− tons of laser beams and things going 'zap!', 'ka-boom!' and 'ka-pow!'. In GSB
64− you put your ships together from modular components, arrange them into fleets,
65− give your ships orders of engagement and then hope they emerge victorious from
66− battle (or at least blow to bits in aesthetically pleasing ways).
67− '';
68− homepage = http://www.positech.co.uk/gratuitousspacebattles/index.html;
69− license = licenses.unfree;
70− maintainers = with maintainers; [ jcumming ];
71− platforms = [ "x86_64-linux" "i686-linux" ] ;
72− broken = true;
73− };
74−
75−}
pkgs/top-level/all-packages.nix−2
@@ -15871,8 +15871,6 @@ in
1587115871
1587215872 gnugo = callPackage ../games/gnugo { };
1587315873
15874− gsb = callPackage ../games/gsb { };
15875−
1587615874 gtypist = callPackage ../games/gtypist { };
1587715875
1587815876 gzdoom = callPackage ../games/gzdoom { };