nixpkgs/pkgs/tools/misc/pipe-rename/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
688 B
Nix
Raw Normal View History

2021-09-21 01:13:44 +02:00
{ lib, rustPlatform, fetchCrate, python3 }:
rustPlatform.buildRustPackage rec {
pname = "pipe-rename";
2022-07-29 02:44:10 +02:00
version = "1.5.0";
2021-09-21 01:13:44 +02:00
src = fetchCrate {
inherit pname version;
2022-07-29 02:44:10 +02:00
sha256 = "sha256-NTAZy2ERxznRVld1WzYBchJakOIfs5uJr3yRNt81rMg=";
2021-09-21 01:13:44 +02:00
};
2022-07-29 02:44:10 +02:00
cargoSha256 = "sha256-6Rv3rVQEvxdrEp5plhf9NAxpXOD4szwFGU5M6tvakzk=";
2021-09-21 01:13:44 +02:00
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";
};
}