diff options
author | Julien Malka <julien@malka.sh> | 2024-06-17 00:00:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-17 00:00:02 +0200 |
commit | cf4afc1c78e70845d9c0aee673068a379d707eed (patch) | |
tree | 64b5e968b01875d4f371099c9d01fc993643067e /pkgs | |
parent | c20473241d1263a880e3dd7e5422d7526a1e6a18 (diff) | |
parent | c64175dae0517fe224a6b2b43e103f513efd8c75 (diff) |
Merge pull request #320289 from JulienMalka/init-powerjoular
powerjoular: init at 0.7.3
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/by-name/po/powerjoular/package.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/by-name/po/powerjoular/package.nix b/pkgs/by-name/po/powerjoular/package.nix new file mode 100644 index 0000000000000..62313198f92b1 --- /dev/null +++ b/pkgs/by-name/po/powerjoular/package.nix @@ -0,0 +1,45 @@ +{ + stdenv, + lib, + fetchFromGitHub, + gnat, + gprbuild, +}: + +stdenv.mkDerivation rec { + pname = "powerjoular"; + version = "0.7.3"; + + src = fetchFromGitHub { + owner = "joular"; + repo = pname; + rev = version; + hash = "sha256-UjoGY1C58xhINmji7R63wqkWK9yCeXa0wwosnIcfYdA="; + }; + + nativeBuildInputs = [ + gnat + gprbuild + ]; + + buildPhase = '' + runHook preBuild + gprbuild + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + mkdir -p $out/bin + cp obj/powerjoular $out/bin + runHook postInstall + ''; + + meta = with lib; { + description = "CLI software to monitor the power consumption of software and hardware components"; + homepage = "https://github.com/joular/powerjoular"; + maintainers = [ maintainers.julienmalka ]; + license = licenses.gpl3Plus; + platforms = platforms.linux; + }; +} |