···11+{ lib, fetchFromGitHub, rustPlatform }:
22+33+rustPlatform.buildRustPackage rec {
44+ pname = "as-tree";
55+ version = "0.12.0";
66+77+ src = fetchFromGitHub {
88+ owner = "jez";
99+ repo = pname;
1010+ rev = version;
1111+ sha256 = "0c0g32pkyhyvqpgvzlw9244c80npq6s8mxy3may7q4qyd7hi3dz5";
1212+ };
1313+1414+ cargoSha256 = "0yhd9svdxg7akv61msn7rf3rfblb7kxnyn955dfdwyxbxq48qwpr";
1515+ # the upstream 0.12.0 release didn't update the Cargo.lock file properly
1616+ # they have updated their release script, so this patch can be removed
1717+ # when the next version is released.
1818+ cargoPatches = [ ./cargo-lock.patch ];
1919+2020+ meta = with lib; {
2121+ description = "Print a list of paths as a tree of paths";
2222+ homepage = "https://github.com/jez/as-tree";
2323+ license = with licenses; [ blueOak100 ];
2424+ maintainers = with maintainers; [ jshholland ];
2525+ platforms = platforms.all;
2626+ };
2727+}