Files
nixpkgs/pkgs/by-name/yu/yunfaavatar/package.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

40 lines
918 B
Nix

{
lib,
stdenvNoCC,
fetchFromGitHub,
imagemagick,
makeWrapper,
}:
stdenvNoCC.mkDerivation rec {
pname = "yunfaavatar";
version = "0.2.0";
src = fetchFromGitHub {
owner = "yunfachi";
repo = "yunfaAvatar";
rev = version;
hash = "sha256-hCpbe+gW9hkiVOKq7a55n5s3bMpyCNGWiY3D2b4VYxg=";
};
strictDeps = true;
nativeBuildInputs = [ makeWrapper ];
makeFlags = [
"PREFIX=${placeholder "out"}"
];
postInstall = ''
wrapProgram "$out/bin/yunfaavatar" \
--prefix PATH : "${lib.makeBinPath [ imagemagick ]}"
'';
meta = {
description = "Utility for automatic centralized changing of avatar in Github, Discord, Steam, Shikimori, and many more";
homepage = "https://github.com/yunfachi/yunfaAvatar";
license = lib.licenses.mit;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ yunfachi ];
mainProgram = "yunfaavatar";
};
}