nixpkgs/pkgs/by-name/pa/pagsuite/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1.0 KiB
Nix
Raw Normal View History

2024-11-15 23:29:29 +00:00
{
lib,
stdenv,
fetchurl,
2024-11-15 23:31:49 +00:00
fetchpatch,
2024-11-15 23:29:29 +00:00
cmake,
unzip,
gmp,
scalp,
2022-09-28 17:51:05 +00:00
}:
stdenv.mkDerivation rec {
pname = "pagsuite";
version = "1.80";
2023-01-17 01:24:12 +00:00
src = fetchurl {
2024-11-15 23:29:29 +00:00
url = "https://gitlab.com/kumm/pagsuite/-/raw/master/releases/pagsuite_${
lib.replaceStrings [ "." ] [ "_" ] version
}.zip";
2023-01-17 01:24:12 +00:00
hash = "sha256-TYd+dleVPWEWU9Cb3XExd7ixJZyiUAp9QLtorYJSIbQ=";
2022-09-28 17:51:05 +00:00
};
2024-11-15 23:31:49 +00:00
patches = [
# Fix issue with latest ScaLP update
(fetchpatch {
url = "https://gitlab.com/kumm/pagsuite/-/commit/cae9f78bec93a7f197461358f2f796f6b5778781.patch";
hash = "sha256-12IisS6oGYLRicORTemHB7bw9EB9cuQjxG8f6X0WMrU=";
})
];
2024-11-15 23:29:29 +00:00
sourceRoot = "pagsuite_${lib.replaceStrings [ "." ] [ "_" ] version}";
2023-01-17 01:24:12 +00:00
2022-09-28 17:51:05 +00:00
nativeBuildInputs = [
cmake
2023-01-17 01:24:12 +00:00
unzip
2022-09-28 17:51:05 +00:00
];
buildInputs = [
gmp
scalp
];
meta = with lib; {
description = "Optimization tools for the (P)MCM problem";
homepage = "https://gitlab.com/kumm/pagsuite";
maintainers = with maintainers; [ wegank ];
license = licenses.unfree;
};
}