depot/third_party/nixpkgs/pkgs/tools/misc/pipe-rename/default.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

27 lines
688 B
Nix

{ lib, rustPlatform, fetchCrate, python3 }:
rustPlatform.buildRustPackage rec {
pname = "pipe-rename";
version = "1.6.1";
src = fetchCrate {
inherit pname version;
sha256 = "sha256-95Gj5iy8VYBzpV0kmGhronIR5LSjelfOueBQD/8gbfw=";
};
cargoSha256 = "sha256-HiElAPgNeICEVbMBfK6syCoQb5smHhBH1MOuo2swci4=";
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";
};
}