tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
fairymax: use SRI hash format
AndersonTorres
3 years ago
1404529e
233e380f
+24
-14
1 changed file
expand all
collapse all
unified
split
pkgs
games
fairymax
default.nix
+24
-14
pkgs/games/fairymax/default.nix
···
1
-
{lib, stdenv, fetchurl}:
0
0
0
0
2
stdenv.mkDerivation rec {
3
pname = "fairymax";
4
version = "4.8";
0
5
src = fetchurl {
6
url = "http://home.hccnet.nl/h.g.muller/fmax4_8w.c";
7
-
sha256 = "01vxhpa4z0613mkgkzmsln293wxmyp5kdzil93cd1ik51q4gwjca";
8
};
0
9
ini = fetchurl {
10
url = "http://home.hccnet.nl/h.g.muller/fmax.ini";
11
-
sha256 = "1zwx70g3gspbqx1zf9gm1may8jrli9idalvskxbdg33qgjys47cn";
12
};
0
13
unpackPhase = ''
14
cp ${src} fairymax.c
15
cp ${ini} fmax.ini
16
'';
0
17
buildPhase = ''
18
-
$CC *.c -Wno-return-type -o fairymax -DINI_FILE='"'"$out/share/fairymax/fmax.ini"'"'
0
0
19
'';
0
20
installPhase = ''
21
mkdir -p "$out"/{bin,share/fairymax}
22
cp fairymax "$out/bin"
23
cp fmax.ini "$out/share/fairymax"
24
'';
25
-
meta = {
0
0
26
description = "A small chess engine supporting fairy pieces";
27
longDescription = ''
28
-
A version of micro-Max that reads the piece description
29
-
from a file fmax.ini, so that arbitrary fairy pieces can be
30
-
implemented. This version (4.8J) supports up to 15 piece types,
31
-
and board sizes up to 12x8. A Linux port exists in the
32
-
format of a debian package.
33
'';
34
-
license = lib.licenses.free ;
35
-
maintainers = [lib.maintainers.raskin];
36
-
platforms = lib.platforms.all;
37
-
homepage = "http://home.hccnet.nl/h.g.muller/dwnldpage.html";
38
};
39
}
···
1
+
{ lib
2
+
, stdenv
3
+
, fetchurl
4
+
}:
5
+
6
stdenv.mkDerivation rec {
7
pname = "fairymax";
8
version = "4.8";
9
+
10
src = fetchurl {
11
url = "http://home.hccnet.nl/h.g.muller/fmax4_8w.c";
12
+
hash = "sha256-ikn+CA5lxtDYSDT+Nsv1tfORhKW6/vlmHcGAT9SFfQc=";
13
};
14
+
15
ini = fetchurl {
16
url = "http://home.hccnet.nl/h.g.muller/fmax.ini";
17
+
hash = "sha256-lh2ivXx4jNdWn3pT1WKKNEvkVQ31JfdDx+vqNx44nf8=";
18
};
19
+
20
unpackPhase = ''
21
cp ${src} fairymax.c
22
cp ${ini} fmax.ini
23
'';
24
+
25
buildPhase = ''
26
+
cc *.c -Wno-return-type \
27
+
-o fairymax \
28
+
-DINI_FILE='"'"$out/share/fairymax/fmax.ini"'"'
29
'';
30
+
31
installPhase = ''
32
mkdir -p "$out"/{bin,share/fairymax}
33
cp fairymax "$out/bin"
34
cp fmax.ini "$out/share/fairymax"
35
'';
36
+
37
+
meta = with lib; {
38
+
homepage = "http://home.hccnet.nl/h.g.muller/dwnldpage.html";
39
description = "A small chess engine supporting fairy pieces";
40
longDescription = ''
41
+
A version of micro-Max that reads the piece description from a file
42
+
fmax.ini, so that arbitrary fairy pieces can be implemented. This version
43
+
(4.8J) supports up to 15 piece types, and board sizes up to 12x8.
0
0
44
'';
45
+
license = licenses.free;
46
+
maintainers = [ maintainers.raskin ];
47
+
platforms = platforms.all;
0
48
};
49
}