Merge pull request #188033 from oberblastmeister/trashy
trashy: init at 1.0.3
This commit is contained in:
commit
963ee52906
3 changed files with 39 additions and 0 deletions
|
@ -9686,6 +9686,12 @@
|
|||
githubId = 3359345;
|
||||
name = "obadz";
|
||||
};
|
||||
oberblastmeister = {
|
||||
email = "littlebubu.shu@gmail.com";
|
||||
github = "oberblastmeister";
|
||||
githubId = 61095988;
|
||||
name = "Brian Shu";
|
||||
};
|
||||
obsidian-systems-maintenance = {
|
||||
name = "Obsidian Systems Maintenance";
|
||||
email = "maintainer@obsidian.systems";
|
||||
|
|
31
pkgs/tools/misc/trashy/default.nix
Normal file
31
pkgs/tools/misc/trashy/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -11593,6 +11593,8 @@ with pkgs;
|
|||
|
||||
trash-cli = callPackage ../tools/misc/trash-cli { };
|
||||
|
||||
trashy = callPackage ../tools/misc/trashy { };
|
||||
|
||||
trenchbroom = libsForQt5.callPackage ../applications/misc/trenchbroom {
|
||||
inherit (xorg) libXxf86vm;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue