mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
poweralertd: init at 0.1.0
This commit is contained in:
parent
540199893d
commit
df63ee8dcf
42
pkgs/tools/misc/poweralertd/default.nix
Normal file
42
pkgs/tools/misc/poweralertd/default.nix
Normal file
@ -0,0 +1,42 @@
|
||||
{ lib, stdenv, fetchFromSourcehut, meson, ninja, pkg-config, scdoc, systemd }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "poweralertd";
|
||||
version = "0.1.0";
|
||||
|
||||
outputs = [ "out" "man" ];
|
||||
|
||||
src = fetchFromSourcehut {
|
||||
owner = "~kennylevinsen";
|
||||
repo = "poweralertd";
|
||||
rev = version;
|
||||
sha256 = "136xcrp7prilh905a6v933vryqy20l7nw24ahc4ycax8f0s906x9";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace meson.build --replace "systemd.get_pkgconfig_variable('systemduserunitdir')" "'${placeholder "out"}/lib/systemd/user'"
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
systemd
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
];
|
||||
|
||||
depsBuildBuild = [
|
||||
scdoc
|
||||
pkg-config
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "UPower-powered power alerter";
|
||||
homepage = "https://git.sr.ht/~kennylevinsen/poweralertd";
|
||||
license = licenses.gpl3Only;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ thibautmarty ];
|
||||
};
|
||||
}
|
@ -2860,6 +2860,8 @@ in
|
||||
|
||||
playerctl = callPackage ../tools/audio/playerctl { };
|
||||
|
||||
poweralertd = callPackage ../tools/misc/poweralertd { };
|
||||
|
||||
ps_mem = callPackage ../tools/system/ps_mem { };
|
||||
|
||||
psstop = callPackage ../tools/system/psstop { };
|
||||
|
Loading…
Reference in New Issue
Block a user