btop: modernize
This commit is contained in:
@@ -8,19 +8,20 @@
|
|||||||
autoAddDriverRunpath,
|
autoAddDriverRunpath,
|
||||||
apple-sdk_15,
|
apple-sdk_15,
|
||||||
versionCheckHook,
|
versionCheckHook,
|
||||||
|
nix-update-script,
|
||||||
rocmPackages,
|
rocmPackages,
|
||||||
cudaSupport ? config.cudaSupport,
|
cudaSupport ? config.cudaSupport,
|
||||||
rocmSupport ? config.rocmSupport,
|
rocmSupport ? config.rocmSupport,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "btop";
|
pname = "btop";
|
||||||
version = "1.4.5";
|
version = "1.4.5";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "aristocratos";
|
owner = "aristocratos";
|
||||||
repo = "btop";
|
repo = "btop";
|
||||||
rev = "v${version}";
|
tag = "v${finalAttrs.version}";
|
||||||
hash = "sha256-ZLT+Hc1rvBFyhey+imbgGzSH/QaVxIh/jvDKVSmDrA0=";
|
hash = "sha256-ZLT+Hc1rvBFyhey+imbgGzSH/QaVxIh/jvDKVSmDrA0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -55,10 +56,12 @@ stdenv.mkDerivation rec {
|
|||||||
versionCheckProgramArg = "--version";
|
versionCheckProgramArg = "--version";
|
||||||
doInstallCheck = true;
|
doInstallCheck = true;
|
||||||
|
|
||||||
|
passthru.updateScript = nix-update-script { };
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Monitor of resources";
|
description = "Monitor of resources";
|
||||||
homepage = "https://github.com/aristocratos/btop";
|
homepage = "https://github.com/aristocratos/btop";
|
||||||
changelog = "https://github.com/aristocratos/btop/blob/v${version}/CHANGELOG.md";
|
changelog = "https://github.com/aristocratos/btop/blob/v${finalAttrs.version}/CHANGELOG.md";
|
||||||
license = lib.licenses.asl20;
|
license = lib.licenses.asl20;
|
||||||
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
||||||
maintainers = with lib.maintainers; [
|
maintainers = with lib.maintainers; [
|
||||||
@@ -68,4 +71,4 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
mainProgram = "btop";
|
mainProgram = "btop";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user