Merge: zmap: 4.2.0 -> 4.3.1 (#364578)
[NixPkgs.git] / pkgs / games / black-hole-solver / default.nix
blobdc9e1c7e9672018c4590feee9d72abab059656a3
2   stdenv,
3   lib,
4   fetchurl,
5   cmake,
6   perl,
7   pkg-config,
8   python3,
9   rinutils,
10   PathTiny,
13 stdenv.mkDerivation rec {
14   pname = "black-hole-solver";
15   version = "1.12.0";
17   src = fetchurl {
18     url = "https://fc-solve.shlomifish.org/downloads/fc-solve/${pname}-${version}.tar.xz";
19     sha256 = "sha256-0y8yU291cykliPQbsNha5C1WE3bCGNxKtrrf5JBKN6c=";
20   };
22   nativeBuildInputs = [
23     cmake
24     perl
25     pkg-config
26     python3
27   ];
29   buildInputs = [
30     rinutils
31     PathTiny
32   ];
34   prePatch = ''
35     patchShebangs ./scripts
36   '';
38   meta = with lib; {
39     description = "Solver for Solitaire variants Golf, Black Hole, and All in a Row";
40     mainProgram = "black-hole-solve";
41     homepage = "https://www.shlomifish.org/open-source/projects/black-hole-solitaire-solver/";
42     license = licenses.mit;
43   };