aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/tools/misc/as-tree/default.nix
blob: 7cc97fd79e467f37b696bae584ca5c5cb7433188 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ 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;
  };
}