From 428cdfb60904194b608fc5a84c53ba02ad7ca784 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Wed, 28 Sep 2022 19:51:05 +0200 Subject: [PATCH] pagsuite: init at 1.80 --- .../science/math/pagsuite/default.nix | 37 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/applications/science/math/pagsuite/default.nix 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 { };