anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / games / black-hole-solver / default.nix
blobcab7b2ca6d6bddbcfb2f88ee2185c22b68a3f9a9
2   stdenv, lib, fetchurl,
3   cmake, perl, pkg-config, python3,
4   rinutils, PathTiny,
5 }:
7 stdenv.mkDerivation rec {
8   pname = "black-hole-solver";
9   version = "1.12.0";
11   src = fetchurl {
12     url = "https://fc-solve.shlomifish.org/downloads/fc-solve/${pname}-${version}.tar.xz";
13     sha256 = "sha256-0y8yU291cykliPQbsNha5C1WE3bCGNxKtrrf5JBKN6c=";
14   };
16   nativeBuildInputs = [ cmake perl pkg-config python3 ];
18   buildInputs = [ rinutils PathTiny ];
20   prePatch = ''
21     patchShebangs ./scripts
22   '';
24   meta = with lib; {
25     description = "Solver for Solitaire variants Golf, Black Hole, and All in a Row";
26     mainProgram = "black-hole-solve";
27     homepage = "https://www.shlomifish.org/open-source/projects/black-hole-solitaire-solver/";
28     license = licenses.mit;
29   };