mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
31 lines
777 B
Nix
31 lines
777 B
Nix
{
|
|
stdenv, lib, fetchurl,
|
|
cmake, perl, pkg-config, python3,
|
|
rinutils, PathTiny,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "black-hole-solver";
|
|
version = "1.12.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://fc-solve.shlomifish.org/downloads/fc-solve/${pname}-${version}.tar.xz";
|
|
sha256 = "sha256-0y8yU291cykliPQbsNha5C1WE3bCGNxKtrrf5JBKN6c=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake perl pkg-config python3 ];
|
|
|
|
buildInputs = [ rinutils PathTiny ];
|
|
|
|
prePatch = ''
|
|
patchShebangs ./scripts
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Solver for Solitaire variants Golf, Black Hole, and All in a Row";
|
|
mainProgram = "black-hole-solve";
|
|
homepage = "https://www.shlomifish.org/open-source/projects/black-hole-solitaire-solver/";
|
|
license = licenses.mit;
|
|
};
|
|
}
|