mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2026-02-06 01:52:47 +01:00
add edname
This commit is contained in:
parent
5463ce39cf
commit
a057b68280
2 changed files with 47 additions and 0 deletions
|
|
@ -68,6 +68,8 @@ with builtins;
|
|||
ungoogled-chromium
|
||||
scc
|
||||
speedtest-rs
|
||||
|
||||
(pkgs.callPackage ./programs/edname.nix {})
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
|||
45
programs/edname.nix
Normal file
45
programs/edname.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue