Skip to content

Commit

Permalink
pmt: init at 1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
foolnotion committed Sep 20, 2024
1 parent 90bf924 commit 10347fe
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
2 changes: 2 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@

pmlb = pkgs.python3Packages.callPackage ./pkgs/pmlb { };

pmt = pkgs.callPackage ./pkgs/pmt { };

q5go = pkgs.libsForQt5.callPackage ./pkgs/q5go { };

scnlib = pkgs.callPackage ./pkgs/scnlib { };
Expand Down
33 changes: 33 additions & 0 deletions pkgs/pmt/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ lib
, stdenv
, fetchFromGitLab
, cmake
, buildShared ? !stdenv.hostPlatform.isStatic
}:

stdenv.mkDerivation rec {
pname = "pmt";
version = "1.3.1";

src = fetchFromGitLab {
domain = "git.astron.nl";
owner = "RD";
repo = "pmt";
rev = "c6b44f2060b5c4ed143ae28bea8c48b64640b89d";
sha256 = "sha256-2YsG9YU+Ao9x0LHW9w7ImJoJx0LVGCGyjHbXijV/FFM=";
fetchSubmodules = true;
};

nativeBuildInputs = [ cmake ];

cmakeFlags = [ "-DPMT_BUILD_RAPL=ON" ] ++ lib.optional buildShared "-DBUILD_SHARED_LIBS=ON";

meta = with lib; {
description = "High-level software library capable of collecting power consumption measurements on various hardware";
homepage = "https://git.astron.nl/RD/pmt";
license = licenses.asl20;
platforms = platforms.all;
#maintainers = with maintainers; [ foolnotion ];
};
}

0 comments on commit 10347fe

Please sign in to comment.