nixpkgs/pkgs/by-name/po/poweralertd/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
976 B
Nix
Raw Normal View History

2020-11-26 19:26:23 +00:00
{ lib, stdenv, fetchFromSourcehut, meson, ninja, pkg-config, scdoc, systemd }:
stdenv.mkDerivation rec {
pname = "poweralertd";
2024-04-21 11:13:47 +00:00
version = "0.3.0";
2020-11-26 19:26:23 +00:00
outputs = [ "out" "man" ];
src = fetchFromSourcehut {
owner = "~kennylevinsen";
repo = "poweralertd";
rev = version;
2024-04-21 11:13:47 +00:00
hash = "sha256-WzqThv3Vu8R+g6Bn8EfesRk18rchCvw/UMPwbn9YC80=";
2020-11-26 19:26:23 +00:00
};
postPatch = ''
2024-04-21 11:13:47 +00:00
substituteInPlace meson.build --replace-fail "systemd.get_pkgconfig_variable('systemduserunitdir')" "'${placeholder "out"}/lib/systemd/user'"
2020-11-26 19:26:23 +00:00
'';
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 ];
2023-11-27 01:17:53 +00:00
mainProgram = "poweralertd";
2020-11-26 19:26:23 +00:00
};
}