diff options
author | David Morgan <djm_uk@protonmail.com> | 2022-12-13 16:23:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-13 17:23:15 +0100 |
commit | 1b299a2e6cfcb6fccccc07dbbd9e1e7bb3e30816 (patch) | |
tree | 25385c66aa61ee874e44368f1579cf26b454f67f /pkgs/tools/misc/ea | |
parent | f668826e1307bbaa40940a6478f0b5a75344c775 (diff) |
ea: init at 0.2.1 (#204816)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/tools/misc/ea')
-rw-r--r-- | pkgs/tools/misc/ea/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/misc/ea/default.nix b/pkgs/tools/misc/ea/default.nix new file mode 100644 index 0000000000000..cbef6caebbbcb --- /dev/null +++ b/pkgs/tools/misc/ea/default.nix @@ -0,0 +1,31 @@ +{ lib, stdenv, fetchFromGitHub, rustPlatform, installShellFiles, libiconv }: + +rustPlatform.buildRustPackage rec { + pname = "dduan"; + version = "0.2.1"; + + src = fetchFromGitHub { + owner = "dduan"; + repo = "ea"; + rev = version; + sha256 = "VXSSe5d7VO3LfjumzN9a7rrKRedOtOzTdLVQWgV1ED8="; + }; + + cargoSha256 = "sha256-QNj24qKZFqG4QXG6rIFV2Y/BNPTXt7HaX7smsJRrdzg="; + + nativeBuildInputs = [ installShellFiles ]; + buildInputs = lib.optionals stdenv.isDarwin [ + libiconv + ]; + + postInstall = '' + installManPage docs/ea.1 + ''; + + meta = with lib; { + description = "Makes file paths from CLI output actionable"; + homepage = "https://github.com/dduan/ea"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ deejayem ]; + }; +} |