···1{ lib, stdenv, fetchurl, libvorbis, libogg, libtheora, SDL, libXft, SDL_image, zlib, libX11, libpng, openal, runtimeShell, requireFile, commercialVersion ? false }:
23-let plainName = "andyetitmoves";
4- version = "1.2.2";
5-in
6-7-stdenv.mkDerivation {
8- name = "${plainName}-${version}";
910 src = if stdenv.hostPlatform.system == "i686-linux" || stdenv.hostPlatform.system == "x86_64-linux"
11 then
12 let postfix = if stdenv.hostPlatform.system == "i686-linux" then "i386" else "x86_64";
13- commercialName = "${plainName}-${version}_${postfix}.tar.gz";
14- demoUrl = "http://www.andyetitmoves.net/demo/${plainName}Demo-${version}_${postfix}.tar.gz";
15 in
16 if commercialVersion
17 then requireFile {
···1{ lib, stdenv, fetchurl, libvorbis, libogg, libtheora, SDL, libXft, SDL_image, zlib, libX11, libpng, openal, runtimeShell, requireFile, commercialVersion ? false }:
23+stdenv.mkDerivation rec {
4+ pname = "andyetitmoves";
5+ version = "1.2.2";
00067 src = if stdenv.hostPlatform.system == "i686-linux" || stdenv.hostPlatform.system == "x86_64-linux"
8 then
9 let postfix = if stdenv.hostPlatform.system == "i686-linux" then "i386" else "x86_64";
10+ commercialName = "${pname}-${version}_${postfix}.tar.gz";
11+ demoUrl = "http://www.andyetitmoves.net/demo/${pname}Demo-${version}_${postfix}.tar.gz";
12 in
13 if commercialVersion
14 then requireFile {
+8-7
pkgs/games/arena/default.nix
···1213in
14stdenv.mkDerivation rec {
15- name = "arena-3.10-beta";
01617 src = fetchurl {
18- url = "http://www.playwitharena.de/downloads/arenalinux_64bit_3.10beta.tar.gz";
19 sha256 = "1pzb9sg4lzbbi4gbldvlb85p8xyl9xnplxwyb9pkk2mwzvvxkf0d";
20 };
21···25 unpackPhase = ''
26 # This is is a tar bomb, i.e. it extract a dozen files and directories to
27 # the top-level, so we must create a sub-directory first.
28- mkdir -p $out/lib/${name}
29- tar -C $out/lib/${name} -xf ${src}
3031 # Remove executable bits from data files. This matters for the find command
32 # we'll use below to find all bundled engines.
33- chmod -x $out/lib/${name}/Engines/*/*.{txt,bin,bmp,zip}
34 '';
3536 buildPhase = ''
37 # Arena has (at least) two executables plus a couple of bundled chess
38 # engines that we need to patch.
39 exes=( $(find $out -name '*x86_64_linux')
40- $(find $out/lib/${name}/Engines -type f -perm /u+x)
41 )
42 for i in "''${exes[@]}"; do
43 # Arminius is statically linked.
···5253 installPhase = ''
54 mkdir -p $out/bin
55- ln -s $out/lib/${name}/Arena_x86_64_linux $out/bin/arena
56 '';
5758 dontStrip = true;
···1213in
14stdenv.mkDerivation rec {
15+ pname = "arena";
16+ version = "3.10-beta";
1718 src = fetchurl {
19+ url = "http://www.playwitharena.de/downloads/arenalinux_64bit_${lib.replaceStrings ["-"] [""] version}.tar.gz";
20 sha256 = "1pzb9sg4lzbbi4gbldvlb85p8xyl9xnplxwyb9pkk2mwzvvxkf0d";
21 };
22···26 unpackPhase = ''
27 # This is is a tar bomb, i.e. it extract a dozen files and directories to
28 # the top-level, so we must create a sub-directory first.
29+ mkdir -p $out/lib/${pname}-${version}
30+ tar -C $out/lib/${pname}-${version} -xf ${src}
3132 # Remove executable bits from data files. This matters for the find command
33 # we'll use below to find all bundled engines.
34+ chmod -x $out/lib/${pname}-${version}/Engines/*/*.{txt,bin,bmp,zip}
35 '';
3637 buildPhase = ''
38 # Arena has (at least) two executables plus a couple of bundled chess
39 # engines that we need to patch.
40 exes=( $(find $out -name '*x86_64_linux')
41+ $(find $out/lib/${pname}-${version}/Engines -type f -perm /u+x)
42 )
43 for i in "''${exes[@]}"; do
44 # Arminius is statically linked.
···5354 installPhase = ''
55 mkdir -p $out/bin
56+ ln -s $out/lib/${pname}-${version}/Arena_x86_64_linux $out/bin/arena
57 '';
5859 dontStrip = true;
···1{ lib, stdenv, requireFile, SDL, libpulseaudio, alsa-lib, runtimeShell }:
23stdenv.mkDerivation rec {
4- name = "vessel-12082012";
056 goBuyItNow = ''
7 We cannot download the full version automatically, as you require a license.
8 Once you bought a license, you need to add your downloaded version to the nix store.
9- You can do this by using "nix-prefetch-url file://\$PWD/${name}-bin" in the
10 directory where you saved it.
11 '';
1213 src = if (stdenv.isi686) then
14 requireFile {
15 message = goBuyItNow;
16- name = "${name}-bin";
17 sha256 = "1vpwcrjiln2mx43h7ib3jnccyr3chk7a5x2bw9kb4lw8ycygvg96";
18 } else throw "unsupported platform ${stdenv.hostPlatform.system} only i686-linux supported for now.";
19
···1{ lib, stdenv, requireFile, SDL, libpulseaudio, alsa-lib, runtimeShell }:
23stdenv.mkDerivation rec {
4+ pname = "vessel";
5+ version = "12082012";
67 goBuyItNow = ''
8 We cannot download the full version automatically, as you require a license.
9 Once you bought a license, you need to add your downloaded version to the nix store.
10+ You can do this by using "nix-prefetch-url file://\$PWD/vessel-${version}-bin" in the
11 directory where you saved it.
12 '';
1314 src = if (stdenv.isi686) then
15 requireFile {
16 message = goBuyItNow;
17+ name = "vessel-${version}-bin";
18 sha256 = "1vpwcrjiln2mx43h7ib3jnccyr3chk7a5x2bw9kb4lw8ycygvg96";
19 } else throw "unsupported platform ${stdenv.hostPlatform.system} only i686-linux supported for now.";
20