about summary refs log tree commit diff
path: root/pkgs/tools/misc/as-tree/default.nix
diff options
context:
space:
mode:
authorJosh Holland <josh@inv.alid.pw>2020-07-28 12:54:30 +0100
committerJosh Holland <josh@inv.alid.pw>2020-11-07 11:20:20 +0000
commitbcb92f53d59bb9f63fbe537ac17b9780852a339b (patch)
tree4f4993fac16eae2f5ff2409af0c009ba11d8cc1c /pkgs/tools/misc/as-tree/default.nix
parent4c68a713372a6a021e4e3f4f16565be1605f10d0 (diff)
as-tree: init at 0.12.0
Diffstat (limited to 'pkgs/tools/misc/as-tree/default.nix')
-rw-r--r--pkgs/tools/misc/as-tree/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/tools/misc/as-tree/default.nix b/pkgs/tools/misc/as-tree/default.nix
new file mode 100644
index 0000000000000..7cc97fd79e467
--- /dev/null
+++ b/pkgs/tools/misc/as-tree/default.nix
@@ -0,0 +1,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;
+  };
+}