2021-01-31 20:26:47 +00:00
|
|
|
{
|
|
|
|
stdenv, lib, fetchurl,
|
|
|
|
cmake, perl, pkg-config, python3,
|
|
|
|
rinutils, PathTiny,
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "black-hole-solver";
|
2022-03-29 09:48:54 +00:00
|
|
|
version = "1.12.0";
|
2021-01-31 20:26:47 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://fc-solve.shlomifish.org/downloads/fc-solve/${pname}-${version}.tar.xz";
|
2022-03-29 09:48:54 +00:00
|
|
|
sha256 = "sha256-0y8yU291cykliPQbsNha5C1WE3bCGNxKtrrf5JBKN6c=";
|
2021-01-31 20:26:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake perl pkg-config python3 ];
|
|
|
|
|
|
|
|
buildInputs = [ rinutils PathTiny ];
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
patchShebangs ./scripts
|
|
|
|
'';
|
|
|
|
|
2024-01-12 16:07:33 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Solver for Solitaire variants Golf, Black Hole, and All in a Row";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "black-hole-solve";
|
2024-01-12 16:07:33 +00:00
|
|
|
homepage = "https://www.shlomifish.org/open-source/projects/black-hole-solitaire-solver/";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
2021-01-31 20:26:47 +00:00
|
|
|
}
|