diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/misc/gringo/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/misc/gringo/default.nix | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/nixpkgs/pkgs/tools/misc/gringo/default.nix b/nixpkgs/pkgs/tools/misc/gringo/default.nix deleted file mode 100644 index 02314ec77e9c..000000000000 --- a/nixpkgs/pkgs/tools/misc/gringo/default.nix +++ /dev/null @@ -1,57 +0,0 @@ -{ lib, stdenv, fetchurl, - bison, re2c, sconsPackages, - libcxx -}: - -stdenv.mkDerivation rec { - pname = "gringo"; - version = "4.5.4"; - - src = fetchurl { - url = "mirror://sourceforge/project/potassco/gringo/${version}/gringo-${version}-source.tar.gz"; - sha256 = "16k4pkwyr2mh5w8j91vhxh9aff7f4y31npwf09w6f8q63fxvpy41"; - }; - - buildInputs = [ bison re2c sconsPackages.scons_3_1_2 ]; - - patches = [ - ./gringo-4.5.4-cmath.patch - ./gringo-4.5.4-to_string.patch - ]; - - postPatch = lib.optionalString stdenv.isDarwin '' - substituteInPlace ./SConstruct \ - --replace \ - "env['CXX'] = 'g++'" \ - "env['CXX'] = '$CXX'" - - substituteInPlace ./SConstruct \ - --replace \ - "env['CPPPATH'] = []" \ - "env['CPPPATH'] = ['${lib.getDev libcxx}/include/c++/v1']" - - substituteInPlace ./SConstruct \ - --replace \ - "env['LIBPATH'] = []" \ - "env['LIBPATH'] = ['${lib.getLib libcxx}/lib']" - '' + '' - sed '1i#include <limits>' -i libgringo/gringo/{control,term}.hh - ''; - - buildPhase = '' - scons WITH_PYTHON= --build-dir=release - ''; - - installPhase = '' - mkdir -p $out/bin - cp build/release/gringo $out/bin/gringo - ''; - - meta = with lib; { - description = "Converts input programs with first-order variables to equivalent ground programs"; - homepage = "http://potassco.sourceforge.net/"; - platforms = platforms.all; - maintainers = [ maintainers.hakuch ]; - license = licenses.gpl3Plus; - }; -} |