nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 35 lines 850 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 rustPlatform, 5}: 6 7rustPlatform.buildRustPackage rec { 8 pname = "diskus"; 9 version = "0.9.0"; 10 11 src = fetchFromGitHub { 12 owner = "sharkdp"; 13 repo = "diskus"; 14 rev = "v${version}"; 15 sha256 = "sha256-z0w2wzlbF7mY8kr6N//Rsm8G5P1jhrEwoOJ7MYrbKIE="; 16 }; 17 18 cargoHash = "sha256-PngglR3BNktjnb8hdd3A6iKu/Q0OCCj9aTxyWBuy6a0="; 19 20 meta = { 21 description = "Minimal, fast alternative to 'du -sh'"; 22 homepage = "https://github.com/sharkdp/diskus"; 23 license = with lib.licenses; [ 24 asl20 # or 25 mit 26 ]; 27 maintainers = [ lib.maintainers.fuerbringer ]; 28 platforms = lib.platforms.unix; 29 longDescription = '' 30 diskus is a very simple program that computes the total size of the 31 current directory. It is a parallelized version of du -sh. 32 ''; 33 mainProgram = "diskus"; 34 }; 35}