mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-25 06:38:22 +03:00
Merge pull request #221689 from fpletz/pkg/usbguard-notifier-0.1.0
This commit is contained in:
commit
21bec028ba
44
pkgs/os-specific/linux/usbguard-notifier/default.nix
Normal file
44
pkgs/os-specific/linux/usbguard-notifier/default.nix
Normal file
@ -0,0 +1,44 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
autoreconfHook,
|
||||
pkg-config,
|
||||
libqb,
|
||||
usbguard,
|
||||
librsvg,
|
||||
libnotify,
|
||||
catch2,
|
||||
asciidoc,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "usbguard-notifier";
|
||||
version = "0.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Cropi";
|
||||
repo = pname;
|
||||
rev = "${pname}-${version}";
|
||||
hash = "sha256-gWvCGSbOuey2ELAPD2WCG4q77IClL0S7rE2RaUJDc1I=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook pkg-config asciidoc ];
|
||||
buildInputs = [ libqb usbguard librsvg libnotify ];
|
||||
|
||||
configureFlags = [ "CPPFLAGS=-I${catch2}/include/catch2" ];
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace configure.ac \
|
||||
--replace 'AC_MSG_FAILURE([Cannot detect the systemd system unit dir])' \
|
||||
'systemd_unit_dir="$out/lib/systemd/user"'
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Notifications for detecting usbguard policy and device presence changes";
|
||||
homepage = "https://github.com/Cropi/usbguard-notifier";
|
||||
maintainers = with lib.maintainers; [ fpletz ];
|
||||
platforms = lib.platforms.linux;
|
||||
license = lib.licenses.gpl2Plus;
|
||||
};
|
||||
}
|
@ -27179,6 +27179,8 @@ with pkgs;
|
||||
|
||||
usbguard = callPackage ../os-specific/linux/usbguard { };
|
||||
|
||||
usbguard-notifier = callPackage ../os-specific/linux/usbguard-notifier { };
|
||||
|
||||
usbrelay = callPackage ../os-specific/linux/usbrelay { };
|
||||
usbrelayd = callPackage ../os-specific/linux/usbrelay/daemon.nix { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user