-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpackage.nix
More file actions
85 lines (76 loc) 路 1.55 KB
/
Copy pathpackage.nix
File metadata and controls
85 lines (76 loc) 路 1.55 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
stdenv,
lib,
fetchFromGitHub,
cargo,
desktop-file-utils,
gnome-desktop,
meson,
ninja,
pkg-config,
polkit,
rustc,
rustPlatform,
wrapGAppsHook4,
gdk-pixbuf,
glib,
adwaita-icon-theme,
gtk4,
libadwaita,
openssl,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "e-imzo-manager";
# todo
version = "1.1.0";
src = fetchFromGitHub {
owner = "xinux-org";
repo = "e-imzo-manager";
tag = finalAttrs.version;
# todo
hash = "sha256-8olOo67dxanmUj+NcGwGs7rnpZRMlPjNi28UIEf/Azg=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit (finalAttrs) pname version src;
# todo
hash = "sha256-K9crHcYCDRknK53bB6NH5TnsU9dpgWbPqSWhFvnAWa8=";
};
strictDeps = true;
nativeBuildInputs = [
meson
ninja
pkg-config
cargo
rustPlatform.cargoSetupHook
rustc
desktop-file-utils
wrapGAppsHook4
];
buildInputs = [
gdk-pixbuf
glib
gnome-desktop
adwaita-icon-theme
gtk4
libadwaita
openssl
rustPlatform.bindgenHook
polkit
];
propagatedUserEnvPkgs = [ polkit ];
postInstall = ''
gappsWrapperArgs+=(
--suffix PATH : ${lib.makeBinPath finalAttrs.propagatedUserEnvPkgs}
)
'';
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://github.com/xinux-org/e-imzo";
mainProgram = "E-IMZO-Manager";
description = "GTK application for managing E-IMZO keys";
license = with lib.licenses; [ agpl3Plus ];
platforms = lib.platforms.linux;
teams = [ lib.teams.uzinfocom ];
};
})