depot/third_party/nixpkgs/pkgs/tools/misc/pipe-rename/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

27 lines
691 B
Nix

{ lib, rustPlatform, fetchCrate, python3 }:
rustPlatform.buildRustPackage rec {
pname = "pipe-rename";
version = "1.6.3";
src = fetchCrate {
inherit pname version;
hash = "sha256-vpSzyDswIIKVFEHwTvFvPq3SRoBePHSv4A31rlj4ymU=";
};
cargoHash = "sha256-tlG2Vk1YJBZs2mX1/QqIyFqOsnaK9oa+PsYcmKISC4E=";
nativeCheckInputs = [ python3 ];
preCheck = ''
patchShebangs tests/editors/env-editor.py
'';
meta = with lib; {
description = "Rename your files using your favorite text editor";
homepage = "https://github.com/marcusbuffett/pipe-rename";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
mainProgram = "renamer";
};
}