nixpkgs/pkgs/games/freecell-solver/default.nix

45 lines
1.3 KiB
Nix
Raw Normal View History

2017-02-24 11:35:48 +00:00
{ stdenv, fetchurl, pkgconfig, cmake
, perl, gmp, libtap, gperf
2018-06-03 22:19:54 +01:00
, perlPackages, python3 }:
2015-08-04 01:53:33 +01:00
with stdenv.lib;
stdenv.mkDerivation rec{
pname = "freecell-solver";
freecell-solver: 4.16.0 -> 4.18.0 Semi-automatic update generated by https://github.com/ryantm/nix-update tools. This update was made based on information from https://repology.org/metapackage/freecell-solver/versions. These checks were done: - built on NixOS - ran `/nix/store/k186rg37jwk63hvw2h1nmpmssa3cwrj4-freecell-solver-4.18.0/bin/fc-solve -h` got 0 exit code - ran `/nix/store/k186rg37jwk63hvw2h1nmpmssa3cwrj4-freecell-solver-4.18.0/bin/fc-solve --help` got 0 exit code - ran `/nix/store/k186rg37jwk63hvw2h1nmpmssa3cwrj4-freecell-solver-4.18.0/bin/fc-solve --version` and found version 4.18.0 - ran `/nix/store/k186rg37jwk63hvw2h1nmpmssa3cwrj4-freecell-solver-4.18.0/bin/pi-make-microsoft-freecell-board -h` got 0 exit code - ran `/nix/store/k186rg37jwk63hvw2h1nmpmssa3cwrj4-freecell-solver-4.18.0/bin/pi-make-microsoft-freecell-board --help` got 0 exit code - ran `/nix/store/k186rg37jwk63hvw2h1nmpmssa3cwrj4-freecell-solver-4.18.0/bin/pi-make-microsoft-freecell-board help` got 0 exit code - ran `/nix/store/k186rg37jwk63hvw2h1nmpmssa3cwrj4-freecell-solver-4.18.0/bin/fc_solve_find_index_s2ints.py -h` got 0 exit code - ran `/nix/store/k186rg37jwk63hvw2h1nmpmssa3cwrj4-freecell-solver-4.18.0/bin/fc_solve_find_index_s2ints.py --help` got 0 exit code - ran `/nix/store/k186rg37jwk63hvw2h1nmpmssa3cwrj4-freecell-solver-4.18.0/bin/fc_solve_find_index_s2ints.py help` got 0 exit code - found 4.18.0 with grep in /nix/store/k186rg37jwk63hvw2h1nmpmssa3cwrj4-freecell-solver-4.18.0 - directory tree listing: https://gist.github.com/2c22e8a4355b2da3c90bfde6c8d92c13
2018-03-25 21:16:50 +01:00
version = "4.18.0";
2015-08-04 01:53:33 +01:00
src = fetchurl {
url = "https://fc-solve.shlomifish.org/downloads/fc-solve/${pname}-${version}.tar.xz";
freecell-solver: 4.16.0 -> 4.18.0 Semi-automatic update generated by https://github.com/ryantm/nix-update tools. This update was made based on information from https://repology.org/metapackage/freecell-solver/versions. These checks were done: - built on NixOS - ran `/nix/store/k186rg37jwk63hvw2h1nmpmssa3cwrj4-freecell-solver-4.18.0/bin/fc-solve -h` got 0 exit code - ran `/nix/store/k186rg37jwk63hvw2h1nmpmssa3cwrj4-freecell-solver-4.18.0/bin/fc-solve --help` got 0 exit code - ran `/nix/store/k186rg37jwk63hvw2h1nmpmssa3cwrj4-freecell-solver-4.18.0/bin/fc-solve --version` and found version 4.18.0 - ran `/nix/store/k186rg37jwk63hvw2h1nmpmssa3cwrj4-freecell-solver-4.18.0/bin/pi-make-microsoft-freecell-board -h` got 0 exit code - ran `/nix/store/k186rg37jwk63hvw2h1nmpmssa3cwrj4-freecell-solver-4.18.0/bin/pi-make-microsoft-freecell-board --help` got 0 exit code - ran `/nix/store/k186rg37jwk63hvw2h1nmpmssa3cwrj4-freecell-solver-4.18.0/bin/pi-make-microsoft-freecell-board help` got 0 exit code - ran `/nix/store/k186rg37jwk63hvw2h1nmpmssa3cwrj4-freecell-solver-4.18.0/bin/fc_solve_find_index_s2ints.py -h` got 0 exit code - ran `/nix/store/k186rg37jwk63hvw2h1nmpmssa3cwrj4-freecell-solver-4.18.0/bin/fc_solve_find_index_s2ints.py --help` got 0 exit code - ran `/nix/store/k186rg37jwk63hvw2h1nmpmssa3cwrj4-freecell-solver-4.18.0/bin/fc_solve_find_index_s2ints.py help` got 0 exit code - found 4.18.0 with grep in /nix/store/k186rg37jwk63hvw2h1nmpmssa3cwrj4-freecell-solver-4.18.0 - directory tree listing: https://gist.github.com/2c22e8a4355b2da3c90bfde6c8d92c13
2018-03-25 21:16:50 +01:00
sha256 = "1cmaib69pijmcpvgjvrdry8j4xys8l906l80b8z21vvyhdwrfdnn";
2015-08-04 01:53:33 +01:00
};
2018-06-03 22:19:54 +01:00
nativeBuildInputs = [
cmake perl pkgconfig
] ++ (with perlPackages; TaskFreecellSolverTesting.buildInputs ++ [
GamesSolitaireVerify StringShellQuote TaskFreecellSolverTesting TemplateToolkit
]);
buildInputs = [
gmp libtap gperf
python3 python3.pkgs.random2
];
# "ninja t/CMakeFiles/delta-states-test.t.exe.dir/__/delta_states.c.o" fails
# to depend on the generated "is_king.h".
enableParallelBuilding = false;
2015-08-04 01:53:33 +01:00
meta = {
description = "A FreeCell automatic solver";
longDescription = ''
FreeCell Solver is a program that automatically solves layouts
of Freecell and similar variants of Card Solitaire such as Eight
Off, Forecell, and Seahaven Towers, as well as Simple Simon
boards.
'';
homepage = "https://fc-solve.shlomifish.org/";
2015-08-04 01:53:33 +01:00
license = licenses.mit;
maintainers = [ maintainers.AndersonTorres ];
2017-02-24 11:35:48 +00:00
platforms = platforms.unix;
2015-08-04 01:53:33 +01:00
};
}