blob: 62313198f92b169a471fd2cbe88928509e5ef470 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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;
};
}
|