···1+{ lib, fetchFromGitHub, rustPlatform }:
2+3+rustPlatform.buildRustPackage rec {
4+ pname = "as-tree";
5+ version = "0.12.0";
6+7+ src = fetchFromGitHub {
8+ owner = "jez";
9+ repo = pname;
10+ rev = version;
11+ sha256 = "0c0g32pkyhyvqpgvzlw9244c80npq6s8mxy3may7q4qyd7hi3dz5";
12+ };
13+14+ cargoSha256 = "0yhd9svdxg7akv61msn7rf3rfblb7kxnyn955dfdwyxbxq48qwpr";
15+ # the upstream 0.12.0 release didn't update the Cargo.lock file properly
16+ # they have updated their release script, so this patch can be removed
17+ # when the next version is released.
18+ cargoPatches = [ ./cargo-lock.patch ];
19+20+ meta = with lib; {
21+ description = "Print a list of paths as a tree of paths";
22+ homepage = "https://github.com/jez/as-tree";
23+ license = with licenses; [ blueOak100 ];
24+ maintainers = with maintainers; [ jshholland ];
25+ platforms = platforms.all;
26+ };
27+}