tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
usbguard-notifier: init at 0.1.0
Franz Pletz
2 years ago
a2f9942d
306d3faf
+46
2 changed files
expand all
collapse all
unified
split
pkgs
os-specific
linux
usbguard-notifier
default.nix
top-level
all-packages.nix
+44
pkgs/os-specific/linux/usbguard-notifier/default.nix
···
1
1
+
{
2
2
+
lib,
3
3
+
stdenv,
4
4
+
fetchFromGitHub,
5
5
+
autoreconfHook,
6
6
+
pkg-config,
7
7
+
libqb,
8
8
+
usbguard,
9
9
+
librsvg,
10
10
+
libnotify,
11
11
+
catch2,
12
12
+
asciidoc,
13
13
+
}:
14
14
+
15
15
+
stdenv.mkDerivation rec {
16
16
+
pname = "usbguard-notifier";
17
17
+
version = "0.1.0";
18
18
+
19
19
+
src = fetchFromGitHub {
20
20
+
owner = "Cropi";
21
21
+
repo = pname;
22
22
+
rev = "${pname}-${version}";
23
23
+
hash = "sha256-gWvCGSbOuey2ELAPD2WCG4q77IClL0S7rE2RaUJDc1I=";
24
24
+
};
25
25
+
26
26
+
nativeBuildInputs = [ autoreconfHook pkg-config asciidoc ];
27
27
+
buildInputs = [ libqb usbguard librsvg libnotify ];
28
28
+
29
29
+
configureFlags = [ "CPPFLAGS=-I${catch2}/include/catch2" ];
30
30
+
31
31
+
prePatch = ''
32
32
+
substituteInPlace configure.ac \
33
33
+
--replace 'AC_MSG_FAILURE([Cannot detect the systemd system unit dir])' \
34
34
+
'systemd_unit_dir="$out/lib/systemd/user"'
35
35
+
'';
36
36
+
37
37
+
meta = {
38
38
+
description = "Notifications for detecting usbguard policy and device presence changes";
39
39
+
homepage = "https://github.com/Cropi/usbguard-notifier";
40
40
+
maintainers = with lib.maintainers; [ fpletz ];
41
41
+
platforms = lib.platforms.linux;
42
42
+
license = lib.licenses.gpl2Plus;
43
43
+
};
44
44
+
}
+2
pkgs/top-level/all-packages.nix
···
27163
27163
27164
27164
usbguard = callPackage ../os-specific/linux/usbguard { };
27165
27165
27166
27166
+
usbguard-notifier = callPackage ../os-specific/linux/usbguard-notifier { };
27167
27167
+
27166
27168
usbrelay = callPackage ../os-specific/linux/usbrelay { };
27167
27169
usbrelayd = callPackage ../os-specific/linux/usbrelay/daemon.nix { };
27168
27170