nixpkgs/pkgs/development/libraries/gecode/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

50 lines
861 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
bison,
flex,
perl,
gmp,
mpfr,
qtbase,
enableGist ? true,
}:
stdenv.mkDerivation rec {
pname = "gecode";
version = "6.2.0";
src = fetchFromGitHub {
owner = "Gecode";
repo = "gecode";
rev = "release-${version}";
sha256 = "0b1cq0c810j1xr2x9y9996p894571sdxng5h74py17c6nr8c6dmk";
};
patches = [
(import ./fix-const-weights-clang-patch.nix fetchpatch)
];
enableParallelBuilding = true;
dontWrapQtApps = true;
nativeBuildInputs = [
bison
flex
];
buildInputs = [
perl
gmp
mpfr
]
++ lib.optional enableGist qtbase;
meta = {
license = lib.licenses.mit;
homepage = "https://www.gecode.org";
description = "Toolkit for developing constraint-based systems";
platforms = lib.platforms.all;
maintainers = [ ];
};
}