udev-block-notify: init at 0.7.11
This commit is contained in:
parent
56195a6a38
commit
9ac50cec50
54
pkgs/by-name/ud/udev-block-notify/package.nix
Normal file
54
pkgs/by-name/ud/udev-block-notify/package.nix
Normal file
@ -0,0 +1,54 @@
|
||||
{
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
multimarkdown,
|
||||
libnotify,
|
||||
udev,
|
||||
systemdLibs,
|
||||
glib,
|
||||
pkg-config,
|
||||
lib,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "udev-block-notify";
|
||||
version = "0.7.11";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "eworm-de";
|
||||
repo = "udev-block-notify";
|
||||
rev = "refs/tags/${finalAttrs.version}";
|
||||
hash = "sha256-A0uhfb2mEAAJgxRkv+MWTk/9oFiz3r7deAlu1Kpk+CI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
multimarkdown
|
||||
pkg-config
|
||||
];
|
||||
buildInputs = [
|
||||
libnotify
|
||||
udev
|
||||
systemdLibs
|
||||
glib
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
substituteInPlace systemd/udev-block-notify.service \
|
||||
--replace-fail '/usr/bin/udev-block-notify' "$out/bin/udev-block-notify"
|
||||
|
||||
install -D -m0755 udev-block-notify $out/bin/udev-block-notify
|
||||
install -D -m0644 systemd/udev-block-notify.service $out/lib/systemd/user/udev-block-notify.service
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/eworm-de/udev-block-notify";
|
||||
description = "Notify about udev block events";
|
||||
mainProgram = "udev-block-notify";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
maintainers = with lib.maintainers; [ danbulant ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user