2021-01-17 05:49:22 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, cmake
|
2017-02-24 11:35:48 +00:00
|
|
|
, perl, gmp, libtap, gperf
|
2018-06-03 22:19:54 +01:00
|
|
|
, perlPackages, python3 }:
|
2015-08-04 01:53:33 +01:00
|
|
|
|
2021-01-15 04:31:39 +00:00
|
|
|
with lib;
|
2020-06-07 22:11:08 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2015-08-04 01:53:33 +01:00
|
|
|
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "freecell-solver";
|
2018-03-25 21:16:50 +01:00
|
|
|
version = "4.18.0";
|
2015-08-04 01:53:33 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://fc-solve.shlomifish.org/downloads/fc-solve/${pname}-${version}.tar.xz";
|
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 = [
|
2021-01-17 05:49:22 +00:00
|
|
|
cmake perl pkg-config
|
2018-06-03 22:19:54 +01:00
|
|
|
] ++ (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.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|