-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdefault.nix
More file actions
61 lines (53 loc) · 1.4 KB
/
default.nix
File metadata and controls
61 lines (53 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{ lib
, python3Packages
, wrapGAppsHook4
, gobject-introspection
, gtk4
, libadwaita
, rustPlatform
, pkg-config
}:
let
daemon = rustPlatform.buildRustPackage {
pname = "big-parental-daemon";
version = "1.0.0";
src = ./big-parental-daemon;
cargoLock.lockFile = ./big-parental-daemon/Cargo.lock;
nativeBuildInputs = [ pkg-config ];
};
in
python3Packages.buildPythonApplication {
pname = "big-parental-controls";
version = "1.0.0";
pyproject = true;
src = ./.;
build-system = [ python3Packages.hatchling ];
nativeBuildInputs = [
wrapGAppsHook4
gobject-introspection
];
buildInputs = [
gtk4
libadwaita
];
propagatedBuildInputs = with python3Packages; [
pygobject3
pycairo
];
dontWrapGApps = true;
makeWrapperArgs = [ "\${gappsWrapperArgs[@]}" ];
postInstall = ''
install -Dm755 ${daemon}/bin/big-parental-daemon $out/bin/big-parental-daemon
install -Dm644 big-parental-controls/usr/share/applications/*.desktop \
-t $out/share/applications/
install -Dm644 big-parental-controls/usr/share/icons/hicolor/scalable/apps/*.svg \
-t $out/share/icons/hicolor/scalable/apps/
'';
meta = with lib; {
description = "Parental controls for BigLinux";
homepage = "https://github.com/biglinux/big-parental-controls";
license = licenses.gpl3Plus;
platforms = platforms.linux;
mainProgram = "big-parental-controls";
};
}