tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
black-hole-solver: init at 1.10.1
Thomas Tuegel
5 years ago
446405cc
500eb309
+34
2 changed files
expand all
collapse all
unified
split
pkgs
games
black-hole-solver
default.nix
top-level
all-packages.nix
+30
pkgs/games/black-hole-solver/default.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{
2
+
stdenv, lib, fetchurl,
3
+
cmake, perl, pkg-config, python3,
4
+
rinutils, PathTiny,
5
+
}:
6
+
7
+
stdenv.mkDerivation rec {
8
+
pname = "black-hole-solver";
9
+
version = "1.10.1";
10
+
11
+
meta = with lib; {
12
+
homepage = "https://www.shlomifish.org/open-source/projects/black-hole-solitaire-solver/";
13
+
description = "A solver for Solitaire variants Golf, Black Hole, and All in a Row.";
14
+
license = licenses.mit;
15
+
};
16
+
17
+
src = fetchurl {
18
+
url = "https://fc-solve.shlomifish.org/downloads/fc-solve/${pname}-${version}.tar.xz";
19
+
sha256 = "1qhihmk4fwz6n16c7bnxnh3v7jhbb7xhkc9wk9484bp0k4x9bq9n";
20
+
};
21
+
22
+
nativeBuildInputs = [ cmake perl pkg-config python3 ];
23
+
24
+
buildInputs = [ rinutils PathTiny ];
25
+
26
+
prePatch = ''
27
+
patchShebangs ./scripts
28
+
'';
29
+
30
+
}
+4
pkgs/top-level/all-packages.nix
···
26385
lua = lua5;
26386
};
26387
0
0
0
0
26388
blackshades = callPackage ../games/blackshades { };
26389
26390
blobby = callPackage ../games/blobby { };
···
26385
lua = lua5;
26386
};
26387
26388
+
black-hole-solver = callPackage ../games/black-hole-solver {
26389
+
inherit (perlPackages) PathTiny;
26390
+
};
26391
+
26392
blackshades = callPackage ../games/blackshades { };
26393
26394
blobby = callPackage ../games/blobby { };