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