2021-09-22 15:38:15 +00:00
|
|
|
{ lib, rustPlatform, fetchCrate, python3 }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "pipe-rename";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "1.4.1";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-3Jl/G1QqcChwkI5n1zQLBgGxT2CYdh3XdMHkF+V5SG4=";
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
cargoSha256 = "sha256-y5BsdkHrjJHNO66MQTbvA6kKx6tLP7jNk5UmAmslz14=";
|
2021-09-22 15:38:15 +00: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";
|
|
|
|
};
|
|
|
|
}
|