Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions pkgs/by-name/ne/neohtop/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
lib,
stdenv,
rustPlatform,
cargo-tauri,
nodejs,
npmHooks,
fetchNpmDeps,
pkg-config,
webkitgtk_4_1,
fetchFromGitHub,
glib,
gtk3,
libsoup_2_4,
openssl,
nix-update-script,
}:

rustPlatform.buildRustPackage (finalAttrs: {
pname = "neohtop";
version = "1.1.2";

src = fetchFromGitHub {
owner = "Abdenasser";
repo = "neohtop";
tag = "v${finalAttrs.version}";
hash = "sha256-5hDxMQlDPXf0llu51Hwb/9n0GX0YSvVJUS+RvEiLsnM=";
};

npmDeps = fetchNpmDeps {
inherit (finalAttrs) src;
hash = "sha256-qhAdKLtTQ2iUFc7UNJNeB1Mzbzg/NrGAWrKQTdGiN4Y=";
};

useFetchCargoVendor = true;

cargoHash = "sha256-nYBPvfBzRIJdvfuOZnzs+kuSozlkBB/ImqjDYfvNBrA=";

cargoRoot = "src-tauri";

buildAndTestSubdir = "src-tauri";

nativeBuildInputs = [
cargo-tauri.hook
npmHooks.npmConfigHook
pkg-config
nodejs
];

buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
glib
gtk3
openssl
libsoup_2_4
webkitgtk_4_1
];

passthru.updateScript = nix-update-script { };

meta = {
description = "Blazing-fast system monitoring for your desktop";
homepage = "https://github.com/Abdenasser/neohtop";
changelog = "https://github.com/Abdenasser/neohtop/releases/tag/v${finalAttrs.version}";
mainProgram = "NeoHtop";
license = lib.licenses.mit;
platforms = lib.platforms.linux ++ lib.platforms.darwin;
maintainers = with lib.maintainers; [ emaryn ];
};
})