Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
40 lines
916 B
Nix
40 lines
916 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 = with lib; {
|
|
description = "Utility for automatic centralized changing of avatar in Github, Discord, Steam, Shikimori, and many more";
|
|
homepage = "https://github.com/yunfachi/yunfaAvatar";
|
|
license = licenses.mit;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ yunfachi ];
|
|
mainProgram = "yunfaavatar";
|
|
};
|
|
}
|