mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 21:33:07 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
29 lines
819 B
Nix
29 lines
819 B
Nix
{ fetchFromGitHub, lib, rustPlatform }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "dutree";
|
|
version = "0.2.18";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nachoparker";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "17lm8jd07bi499mywg2iq669im34j4x4yhc8a3adxn12f8j0dfg7";
|
|
# test directory has files with unicode names which causes hash mismatches
|
|
# It is also not used by any tests or parts of build process
|
|
postFetch = ''
|
|
rm -r $out/test
|
|
'';
|
|
};
|
|
|
|
cargoHash = "sha256-/E+4yJEhZbERy4vOqn0Ruv3zOcd2FA+q41qZ0Tvg4T0=";
|
|
|
|
meta = with lib; {
|
|
description = "Tool to analyze file system usage written in Rust";
|
|
homepage = "https://github.com/nachoparker/dutree";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ figsoda ];
|
|
mainProgram = "dutree";
|
|
};
|
|
}
|