From 17b89a82df406bd943e2dc309aabeebe09372dc0 Mon Sep 17 00:00:00 2001 From: figsoda Date: Mon, 20 Sep 2021 19:13:44 -0400 Subject: [PATCH] pipe-rename: init at 1.4.0 --- pkgs/tools/misc/pipe-rename/default.nix | 27 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/tools/misc/pipe-rename/default.nix diff --git a/pkgs/tools/misc/pipe-rename/default.nix b/pkgs/tools/misc/pipe-rename/default.nix new file mode 100644 index 000000000000..15468773e422 --- /dev/null +++ b/pkgs/tools/misc/pipe-rename/default.nix @@ -0,0 +1,27 @@ +{ lib, rustPlatform, fetchCrate, python3 }: + +rustPlatform.buildRustPackage rec { + pname = "pipe-rename"; + version = "1.4.0"; + + src = fetchCrate { + inherit pname version; + sha256 = "sha256-AMBdDsn3jS2dXUnEDKZILUlLHS9FIECZhc3EjxLoOZU="; + }; + + cargoSha256 = "sha256-ulNyTRRFtHQ7+sRaKczLiDPIKG2TIcbbsD9x1di2ypw="; + + checkInputs = [ python3 ]; + + preCheck = '' + patchShebangs tests/editors/env-editor.py + ''; + + meta = with lib; { + description = "Rename your files using your favorite text editor"; + homepage = "https://github.com/marcusbuffet/pipe-rename"; + license = licenses.mit; + maintainers = with maintainers; [ figsoda ]; + mainProgram = "renamer"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9453bcc5829f..80bbf853266d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8081,6 +8081,8 @@ with pkgs; pick = callPackage ../tools/misc/pick { }; + pipe-rename = callPackage ../tools/misc/pipe-rename { }; + pitivi = callPackage ../applications/video/pitivi { }; prism = callPackage ../applications/video/prism { };