2021-09-22 15:38:15 +00:00
|
|
|
{ lib, rustPlatform, fetchCrate, python3 }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "pipe-rename";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "1.6.3";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-vpSzyDswIIKVFEHwTvFvPq3SRoBePHSv4A31rlj4ymU=";
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
cargoHash = "sha256-tlG2Vk1YJBZs2mX1/QqIyFqOsnaK9oa+PsYcmKISC4E=";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ python3 ];
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
patchShebangs tests/editors/env-editor.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Rename your files using your favorite text editor";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://github.com/marcusbuffett/pipe-rename";
|
2021-09-22 15:38:15 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
mainProgram = "renamer";
|
|
|
|
};
|
|
|
|
}
|