Skip to content

Commit 40b6b9a

Browse files
committedMar 25, 2025
neohtop: init at 1.1.2
1 parent 0f0e0f2 commit 40b6b9a

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed
 

‎pkgs/by-name/ne/neohtop/package.nix

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

0 commit comments

Comments
 (0)
Failed to load comments.