diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2023-03-17 17:23:43 +0100 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2023-03-17 17:23:43 +0100 |
commit | a2f9942dd8f0304a00aab859b3cc911062f7ede9 (patch) | |
tree | c7b44c649c4880191079161d74f025abf62d9018 /pkgs/os-specific/linux/usbguard-notifier | |
parent | 306d3faf68a4a038617a3f544521c60c6a7ed67d (diff) | |
download | nixpkgs-a2f9942dd8f0304a00aab859b3cc911062f7ede9.tar nixpkgs-a2f9942dd8f0304a00aab859b3cc911062f7ede9.tar.gz nixpkgs-a2f9942dd8f0304a00aab859b3cc911062f7ede9.tar.bz2 nixpkgs-a2f9942dd8f0304a00aab859b3cc911062f7ede9.tar.lz nixpkgs-a2f9942dd8f0304a00aab859b3cc911062f7ede9.tar.xz nixpkgs-a2f9942dd8f0304a00aab859b3cc911062f7ede9.tar.zst nixpkgs-a2f9942dd8f0304a00aab859b3cc911062f7ede9.zip |
usbguard-notifier: init at 0.1.0
Diffstat (limited to 'pkgs/os-specific/linux/usbguard-notifier')
-rw-r--r-- | pkgs/os-specific/linux/usbguard-notifier/default.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/usbguard-notifier/default.nix b/pkgs/os-specific/linux/usbguard-notifier/default.nix new file mode 100644 index 00000000000..c5b296809da --- /dev/null +++ b/pkgs/os-specific/linux/usbguard-notifier/default.nix @@ -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; + }; +} |