summary refs log tree commit diff
path: root/pkgs/games/black-hole-solver/default.nix
blob: e859e72d96b15b75a873edef4963d8596b456bd9 (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
30
{
  stdenv, lib, fetchurl,
  cmake, perl, pkg-config, python3,
  rinutils, PathTiny,
}:

stdenv.mkDerivation rec {
  pname = "black-hole-solver";
  version = "1.10.1";

  meta = with lib; {
    homepage = "https://www.shlomifish.org/open-source/projects/black-hole-solitaire-solver/";
    description = "A solver for Solitaire variants Golf, Black Hole, and All in a Row.";
    license = licenses.mit;
  };

  src = fetchurl {
    url = "https://fc-solve.shlomifish.org/downloads/fc-solve/${pname}-${version}.tar.xz";
    sha256 = "1qhihmk4fwz6n16c7bnxnh3v7jhbb7xhkc9wk9484bp0k4x9bq9n";
  };

  nativeBuildInputs = [ cmake perl pkg-config python3 ];

  buildInputs = [ rinutils PathTiny ];

  prePatch = ''
    patchShebangs ./scripts
  '';

}