mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 21:09:00 +02:00
fast-downward: substitute version, fix buildInputs, minor cleanup
This commit is contained in:
parent
6b9c75bed5
commit
f1189d812e
|
@ -7,22 +7,21 @@
|
||||||
, cplex
|
, cplex
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
pname = "fast-downward";
|
pname = "fast-downward";
|
||||||
version = "21.12.0";
|
version = "21.12.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "aibasel";
|
owner = "aibasel";
|
||||||
repo = "downward";
|
repo = "downward";
|
||||||
rev = "release-21.12.0";
|
rev = "release-${version}";
|
||||||
sha256 = "sha256-qc+SaUpIYm7bnOZlHH2mdvUaMBB+VRyOCQM/BOoOaPE=";
|
sha256 = "sha256-qc+SaUpIYm7bnOZlHH2mdvUaMBB+VRyOCQM/BOoOaPE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake python3.pkgs.wrapPython ];
|
||||||
buildInputs = [ python3 python3.pkgs.wrapPython osi ];
|
buildInputs = [ python3 osi ];
|
||||||
|
|
||||||
cmakeFlags =
|
cmakeFlags = lib.optional osi.withCplex [ "-DDOWNWARD_CPLEX_ROOT=${cplex}/cplex" ];
|
||||||
lib.optional osi.withCplex [ "-DDOWNWARD_CPLEX_ROOT=${cplex}/cplex" ];
|
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
python build.py release
|
python build.py release
|
||||||
|
@ -62,7 +61,7 @@ stdenv.mkDerivation {
|
||||||
description = "A domain-independent planning system";
|
description = "A domain-independent planning system";
|
||||||
homepage = "https://www.fast-downward.org/";
|
homepage = "https://www.fast-downward.org/";
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
platforms = with platforms; (linux ++ darwin);
|
platforms = platforms.unix;
|
||||||
maintainers = with maintainers; [ abbradar ];
|
maintainers = with maintainers; [ abbradar ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue