nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchsvn,
5 xorg,
6}:
7
8stdenv.mkDerivation {
9 pname = "xlife";
10 version = "6.7.5";
11
12 src = fetchsvn {
13 url = "https://svn.code.sf.net/p/xlife-cal/xlife/trunk";
14 rev = "365";
15 sha256 = "1gadlcp32s179kd7ypxr8cymd6s060p6z4c2vnx94i8bmiw3nn8h";
16 };
17
18 nativeBuildInputs = with xorg; [
19 imake
20 gccmakedep
21 ];
22 buildInputs = [ xorg.libX11 ];
23
24 hardeningDisable = [ "format" ];
25 installPhase = ''
26 install -Dm755 xlife -t $out/bin
27 install -Dm755 lifeconv -t $out/bin
28 '';
29
30 meta = with lib; {
31 homepage = "http://litwr2.atspace.eu/xlife.php";
32 description = "Conway's Game of Life and other cellular automata, for X";
33 license = licenses.hpndSellVariant;
34 maintainers = with maintainers; [ djanatyn ];
35 };
36}