depot/third_party/nixpkgs/pkgs/applications/science/math/pagsuite/default.nix
Default email 5083ee08a2 Project import generated by Copybara.
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
2022-09-30 06:47:45 -05:00

37 lines
721 B
Nix

{ lib
, stdenv
, fetchzip
, cmake
, gmp
, scalp
}:
stdenv.mkDerivation rec {
pname = "pagsuite";
version = "1.80";
src = fetchzip {
url = "https://gitlab.com/kumm/pagsuite/-/raw/master/releases/pagsuite_${lib.replaceStrings ["."] ["_"] version}.zip";
sha256 = "sha256-JuRuDPhKKBGz8jUBkZcZW5s2berOewjsPNR/n7kuofY=";
stripRoot = false;
postFetch = ''
mv $out/pagsuite*/* $out
'';
};
nativeBuildInputs = [
cmake
];
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;
};
}