nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 45 lines 890 B view raw
1{ 2 stdenv, 3 coreutils, 4 findutils, 5 gnused, 6 lib, 7 fetchFromGitea, 8 makeWrapper, 9}: 10stdenv.mkDerivation (finalAttrs: { 11 12 pname = "edname"; 13 version = "1.0.2"; 14 15 nativeBuildInputs = [ makeWrapper ]; 16 17 src = fetchFromGitea { 18 domain = "git.tudbut.de"; 19 owner = "TudbuT"; 20 repo = "edname"; 21 rev = "v${finalAttrs.version}"; 22 hash = "sha256-8aT/xwdx/ORyCFfOu4LZuxUiErZ9ZiCdhJ/WKAiQwe0="; 23 }; 24 25 installPhase = '' 26 mkdir -p $out/bin 27 cp edname.sh "$out/bin/edname" 28 wrapProgram "$out/bin/edname" \ 29 --prefix PATH : "${ 30 lib.makeBinPath [ 31 coreutils 32 findutils 33 gnused 34 ] 35 }" 36 ''; 37 38 meta = { 39 description = "Mass renamer using $EDITOR"; 40 license = lib.licenses.mit; 41 maintainers = [ lib.maintainers.tudbut ]; 42 homepage = "https://git.tudbut.de/TudbuT/edname"; 43 mainProgram = "edname"; 44 }; 45})