From 6606e3daddb3b2e2ce73a8b64fd50ed49cfc3c1e Mon Sep 17 00:00:00 2001 From: brian Date: Tue, 23 Aug 2022 09:39:30 -0400 Subject: [PATCH] trashy: init at 1.0.3 --- pkgs/tools/misc/trashy/default.nix | 31 ++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/tools/misc/trashy/default.nix diff --git a/pkgs/tools/misc/trashy/default.nix b/pkgs/tools/misc/trashy/default.nix new file mode 100644 index 000000000000..7d3b3952a7ca --- /dev/null +++ b/pkgs/tools/misc/trashy/default.nix @@ -0,0 +1,31 @@ +{ lib, fetchFromGitHub, rustPlatform, installShellFiles }: + +rustPlatform.buildRustPackage rec { + pname = "trashy"; + version = "1.0.3"; + + src = fetchFromGitHub { + owner = "oberblastmeister"; + repo = "trashy"; + rev = "v${version}"; + sha256 = "sha256-b50Q7knJzXKDfM1kw6wLvXunhgOXVs+zYvZx/NYqMdk="; + }; + + cargoSha256 = "sha256-2hNNLXuAHd1bquhHimniqryTVMfBmPAOossggICScqQ="; + + nativeBuildInputs = [ installShellFiles ]; + + preFixup = '' + installShellCompletion --cmd trash \ + --bash <($out/bin/trash completions bash) \ + --fish <($out/bin/trash completions fish) \ + --zsh <($out/bin/trash completions zsh) \ + ''; + + meta = with lib; { + description = "A simple, fast, and featureful alternative to rm and trash-cli."; + homepage = "https://github.com/oberblastmeister/trashy"; + license = with licenses; [ asl20 /* or */ mit ]; + maintainers = with maintainers; [ oberblastmeister ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d7e51dae0ca1..289cbb688fd5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11574,6 +11574,8 @@ with pkgs; trash-cli = callPackage ../tools/misc/trash-cli { }; + trashy = callPackage ../tools/misc/trashy { }; + trenchbroom = libsForQt5.callPackage ../applications/misc/trenchbroom { inherit (xorg) libXxf86vm; };