nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 50 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 rustPlatform, 6 pkg-config, 7 openssl, 8 versionCheckHook, 9 nix-update-script, 10}: 11 12rustPlatform.buildRustPackage (finalAttrs: { 13 pname = "nvme-rs"; 14 version = "0.2.1"; 15 16 src = fetchFromGitHub { 17 owner = "liberodark"; 18 repo = "nvme-rs"; 19 tag = "v${finalAttrs.version}"; 20 hash = "sha256-AhvjwrrX4Av6eZlg5yMamtVkqSKIY8hwuOwzRwXT94M="; 21 }; 22 23 cargoHash = "sha256-I7cpLnE9d/GwKBkAok4qNNQiBwHXrsAbtiHDKMw+QYY="; 24 25 nativeBuildInputs = [ 26 pkg-config 27 ]; 28 29 buildInputs = [ 30 openssl 31 ]; 32 33 nativeInstallCheckInputs = [ 34 versionCheckHook 35 ]; 36 doInstallCheck = true; 37 38 passthru = { 39 updateScript = nix-update-script { }; 40 }; 41 42 meta = { 43 description = "Lightweight tool for monitoring NVMe drive health with email alerts"; 44 homepage = "https://github.com/liberodark/nvme-rs"; 45 license = lib.licenses.gpl3Only; 46 maintainers = with lib.maintainers; [ liberodark ]; 47 platforms = lib.platforms.linux; 48 mainProgram = "nvme-rs"; 49 }; 50})