diff --git a/pkgs/applications/science/math/pagsuite/default.nix b/pkgs/applications/science/math/pagsuite/default.nix new file mode 100644 index 000000000000..e8ae3318eeba --- /dev/null +++ b/pkgs/applications/science/math/pagsuite/default.nix @@ -0,0 +1,37 @@ +{ 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ac055c3ff4c6..12584c764a5b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -35323,6 +35323,8 @@ with pkgs; bcal = callPackage ../applications/science/math/bcal { }; + pagsuite = callPackage ../applications/science/math/pagsuite { }; + pspp = callPackage ../applications/science/math/pspp { }; ssw = callPackage ../applications/misc/ssw { };