From 9ef31b2f96eeae83f8689a0f3459caeb3bc51a8f Mon Sep 17 00:00:00 2001 From: Christopher Ostrouchov Date: Thu, 13 Sep 2018 17:35:06 -0400 Subject: [PATCH] papi: init at 5.6.0 (#46619) papi is a high resolution performance counter. --- .../science/benchmark/papi/default.nix | 30 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/libraries/science/benchmark/papi/default.nix diff --git a/pkgs/development/libraries/science/benchmark/papi/default.nix b/pkgs/development/libraries/science/benchmark/papi/default.nix new file mode 100644 index 000000000000..f727728943bd --- /dev/null +++ b/pkgs/development/libraries/science/benchmark/papi/default.nix @@ -0,0 +1,30 @@ +{ stdenv +, fetchurl +}: + +stdenv.mkDerivation rec { + version = "5.6.0"; + name = "papi-${version}"; + + src = fetchurl { + url = "https://bitbucket.org/icl/papi/get/papi-5-6-0-t.tar.gz"; + sha256 = "13mngf9kl0y2wfxqvkad0smdaag7k8fvw82b4312gx62nwhc1i6r"; + }; + + buildInputs = [ stdenv ]; + + preConfigure = '' + cd src + ''; + + doCheck = true; + checkTarget = "test"; + + meta = with stdenv.lib; { + homepage = https://icl.utk.edu/papi/; + description = "PAPI provides the tool designer and application engineer with a consistent interface and methodology for use of the performance counter hardware found in most major microprocessors"; + license = licenses.bsdOriginal; + platforms = platforms.linux; + maintainers = [ maintainers.costrouc ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3dda86d71490..517681381d12 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20619,6 +20619,10 @@ with pkgs; tetgen = callPackage ../applications/science/geometry/tetgen { }; # AGPL3+ tetgen_1_4 = callPackage ../applications/science/geometry/tetgen/1.4.nix { }; # MIT + ### SCIENCE/BENCHMARK + + papi = callPackage ../development/libraries/science/benchmark/papi { }; + ### SCIENCE/BIOLOGY alliance = callPackage ../applications/science/electronics/alliance { };