add edname

This commit is contained in:
Schrottkatze 2026-01-26 00:42:20 +01:00
commit a057b68280
No known key found for this signature in database
2 changed files with 47 additions and 0 deletions

View file

@ -68,6 +68,8 @@ with builtins;
ungoogled-chromium
scc
speedtest-rs
(pkgs.callPackage ./programs/edname.nix {})
];
};

45
programs/edname.nix Normal file
View file

@ -0,0 +1,45 @@
{
stdenv,
coreutils,
findutils,
gnused,
lib,
fetchFromGitea,
makeWrapper,
}:
stdenv.mkDerivation rec {
pname = "edname";
version = "1.0.2";
nativeBuildInputs = [ makeWrapper ];
src = fetchFromGitea {
domain = "git.tudbut.de";
owner = "TudbuT";
repo = "edname";
rev = "v${version}";
hash = "sha256-8aT/xwdx/ORyCFfOu4LZuxUiErZ9ZiCdhJ/WKAiQwe0=";
};
installPhase = ''
mkdir -p $out/bin
cp edname.sh "$out/bin/edname"
wrapProgram "$out/bin/edname" \
--prefix PATH : "${
lib.makeBinPath [
coreutils
findutils
gnused
]
}"
'';
meta = with lib; {
description = "Mass renamer using $EDITOR";
license = licenses.mit;
maintainers = [ maintainers.tudbut ];
homepage = "https://git.tudbut.de/TudbuT/edname";
mainProgram = "edname";
};
}