Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
46 lines
874 B
Nix
46 lines
874 B
Nix
{
|
|
lib,
|
|
buildDubPackage,
|
|
fetchFromGitHub,
|
|
ncurses,
|
|
zlib,
|
|
}:
|
|
|
|
buildDubPackage rec {
|
|
pname = "btdu";
|
|
version = "0.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CyberShadow";
|
|
repo = "btdu";
|
|
rev = "v${version}";
|
|
hash = "sha256-B8ojxdXibeNEZay9S5lzpB6bTKNB2ZI6AQ3XKUHioE0=";
|
|
};
|
|
|
|
dubLock = ./dub-lock.json;
|
|
|
|
buildInputs = [
|
|
ncurses
|
|
zlib
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -Dm755 btdu -t $out/bin
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Sampling disk usage profiler for btrfs";
|
|
homepage = "https://github.com/CyberShadow/btdu";
|
|
changelog = "https://github.com/CyberShadow/btdu/releases/tag/${src.rev}";
|
|
license = licenses.gpl2Only;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [
|
|
atila
|
|
cybershadow
|
|
];
|
|
mainProgram = "btdu";
|
|
};
|
|
}
|