blob: 0d5f2eab97868030c4a250017ef70948b1d39b0d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
{
stdenv, lib, fetchurl,
cmake, perl, pkg-config, python3,
rinutils, PathTiny,
}:
stdenv.mkDerivation rec {
pname = "black-hole-solver";
version = "1.12.0";
src = fetchurl {
url = "https://fc-solve.shlomifish.org/downloads/fc-solve/${pname}-${version}.tar.xz";
sha256 = "sha256-0y8yU291cykliPQbsNha5C1WE3bCGNxKtrrf5JBKN6c=";
};
nativeBuildInputs = [ cmake perl pkg-config python3 ];
buildInputs = [ rinutils PathTiny ];
prePatch = ''
patchShebangs ./scripts
'';
meta = with lib; {
description = "A solver for Solitaire variants Golf, Black Hole, and All in a Row";
homepage = "https://www.shlomifish.org/open-source/projects/black-hole-solitaire-solver/";
license = licenses.mit;
};
}
|