nixpkgs/pkgs/tools/misc/as-tree/default.nix
2020-11-07 11:20:20 +00:00

28 lines
846 B
Nix

{ lib, fetchFromGitHub, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "as-tree";
version = "0.12.0";
src = fetchFromGitHub {
owner = "jez";
repo = pname;
rev = version;
sha256 = "0c0g32pkyhyvqpgvzlw9244c80npq6s8mxy3may7q4qyd7hi3dz5";
};
cargoSha256 = "0yhd9svdxg7akv61msn7rf3rfblb7kxnyn955dfdwyxbxq48qwpr";
# the upstream 0.12.0 release didn't update the Cargo.lock file properly
# they have updated their release script, so this patch can be removed
# when the next version is released.
cargoPatches = [ ./cargo-lock.patch ];
meta = with lib; {
description = "Print a list of paths as a tree of paths";
homepage = "https://github.com/jez/as-tree";
license = with licenses; [ blueOak100 ];
maintainers = with maintainers; [ jshholland ];
platforms = platforms.all;
};
}