mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
99e06fe771
The opam package manager relies on external solvers to determine package management decisions it makes related to upgrades, new installations, etc. While, strictly speaking, an external solver is optional, aspcud is highly recommended in documentation. Furthermore, even having a relatively small number of packages installed quickly causes the limits of the interal solver to be reached (before it times out). Aspcud itself depends on two programs from the same suite: gringo, and clasp. On Darwin, Boost 1.55 (and thus Gringo) do not build, so we only support Aspcud on non-Darwin platforms.
40 lines
858 B
Nix
40 lines
858 B
Nix
{ stdenv, fetchurl,
|
|
bison, re2c, scons
|
|
}:
|
|
|
|
let
|
|
version = "4.5.4";
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "gringo-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/project/potassco/gringo/${version}/gringo-${version}-source.tar.gz";
|
|
sha256 = "16k4pkwyr2mh5w8j91vhxh9aff7f4y31npwf09w6f8q63fxvpy41";
|
|
};
|
|
|
|
buildInputs = [ bison re2c scons ];
|
|
|
|
patches = [
|
|
./gringo-4.5.4-cmath.patch
|
|
];
|
|
|
|
buildPhase = ''
|
|
scons --build-dir=release
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp build/release/gringo $out/bin/gringo
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Converts input programs with first-order variables to equivalent ground programs";
|
|
homepage = http://potassco.sourceforge.net/;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.hakuch ];
|
|
license = licenses.gpl3Plus;
|
|
};
|
|
}
|