depot/third_party/nixpkgs/pkgs/by-name/po/powerjoular/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

45 lines
853 B
Nix

{
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;
};
}