1 file changed +68
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ lib ,
3
+ rustPlatform ,
4
+ cargo-tauri ,
5
+ nodejs ,
6
+ npmHooks ,
7
+ fetchNpmDeps ,
8
+ pkg-config ,
9
+ webkitgtk_4_1 ,
10
+ fetchFromGitHub ,
11
+ glib ,
12
+ gtk3 ,
13
+ libsoup_2_4 ,
14
+ openssl ,
15
+ nix-update-script ,
16
+ } :
17
+
18
+ rustPlatform . buildRustPackage rec {
19
+ pname = "neohtop" ;
20
+ version = "1.1.2" ;
21
+
22
+ src = fetchFromGitHub {
23
+ owner = "Abdenasser" ;
24
+ repo = "neohtop" ;
25
+ tag = "v${ version } " ;
26
+ hash = "sha256-5hDxMQlDPXf0llu51Hwb/9n0GX0YSvVJUS+RvEiLsnM=" ;
27
+ } ;
28
+
29
+ npmDeps = fetchNpmDeps {
30
+ inherit src ;
31
+ hash = "sha256-qhAdKLtTQ2iUFc7UNJNeB1Mzbzg/NrGAWrKQTdGiN4Y=" ;
32
+ } ;
33
+
34
+ useFetchCargoVendor = true ;
35
+
36
+ cargoHash = "sha256-nYBPvfBzRIJdvfuOZnzs+kuSozlkBB/ImqjDYfvNBrA=" ;
37
+
38
+ cargoRoot = "src-tauri" ;
39
+
40
+ buildAndTestSubdir = "src-tauri" ;
41
+
42
+ nativeBuildInputs = [
43
+ cargo-tauri . hook
44
+ npmHooks . npmConfigHook
45
+ pkg-config
46
+ nodejs
47
+ ] ;
48
+
49
+ buildInputs = [
50
+ glib
51
+ gtk3
52
+ openssl
53
+ libsoup_2_4
54
+ webkitgtk_4_1
55
+ ] ;
56
+
57
+ passthru . updateScript = nix-update-script { } ;
58
+
59
+ meta = {
60
+ description = "Blazing-fast system monitoring for your desktop" ;
61
+ homepage = "https://github.com/Abdenasser/neohtop" ;
62
+ changelog = "https://github.com/Abdenasser/neohtop/releases/tag/${ src . tag } " ;
63
+ mainProgram = "NeoHtop" ;
64
+ license = lib . licenses . mit ;
65
+ platforms = lib . platforms . linux ;
66
+ maintainers = with lib . maintainers ; [ emaryn ] ;
67
+ } ;
68
+ }
0 commit comments