diff options
author | yunfachi <yunfachi@gmail.com> | 2023-09-17 14:12:38 +0000 |
---|---|---|
committer | yunfachi <yunfachi@gmail.com> | 2023-10-28 13:39:52 +0300 |
commit | 70f36277f9756f230bd2081da08abb8f25f2d9f9 (patch) | |
tree | fe1352a04f749ba820977dec1e25fcd6a78ce825 /pkgs/by-name/yu | |
parent | 865e14d5595a4ca23ee2e9234d7119ab282a9297 (diff) |
yunfaavatar: init at 0.2.0
Co-Authored-By: Christina Sørensen <christina@cafkafk.com> Co-Authored-By: éclairevoyant <848000+eclairevoyant@users.noreply.github.com>
Diffstat (limited to 'pkgs/by-name/yu')
-rw-r--r-- | pkgs/by-name/yu/yunfaavatar/package.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/by-name/yu/yunfaavatar/package.nix b/pkgs/by-name/yu/yunfaavatar/package.nix new file mode 100644 index 0000000000000..369f89d7c888d --- /dev/null +++ b/pkgs/by-name/yu/yunfaavatar/package.nix @@ -0,0 +1,40 @@ +{ + lib, + stdenvNoCC, + fetchFromGitHub, + bash, + 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"; + }; +} |