diff options
author | Sandro | 2024-07-06 20:02:14 +0200 |
---|---|---|
committer | GitHub | 2024-07-06 20:02:14 +0200 |
commit | f00f4ce07e710140223200a88738661a2af984a2 (patch) | |
tree | d8b62ae44e2b5f9e9b7f1c438419d88381869c30 /pkgs/by-name/fa | |
parent | 757c5d5f022e817201ae6ba1a80c5194452b27da (diff) | |
parent | 62f45765a83b1b13c76c10e1b736e814099a568a (diff) |
Merge pull request #323468 from D3vil0p3r/patch-1
fairywren: init at 0-unstable-2024-06-10
Diffstat (limited to 'pkgs/by-name/fa')
-rw-r--r-- | pkgs/by-name/fa/fairywren/package.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/by-name/fa/fairywren/package.nix b/pkgs/by-name/fa/fairywren/package.nix new file mode 100644 index 000000000000..f28ec94a3719 --- /dev/null +++ b/pkgs/by-name/fa/fairywren/package.nix @@ -0,0 +1,44 @@ +{ lib +, stdenvNoCC +, fetchFromGitLab +, colorVariants ? [] # default: install all icons +}: + +let + pname = "fairywren"; + colorVariantList = [ + "FairyWren_Dark" + "FairyWren_Light" + ]; + +in +lib.checkListOfEnum "${pname}: colorVariants" colorVariantList colorVariants + +stdenvNoCC.mkDerivation { + inherit pname; + version = "0-unstable-2024-06-10"; + + src = fetchFromGitLab{ + owner = "aiyahm"; + repo = "FairyWren-Icons"; + rev = "a86736cc9ff50af0ca59ef31c464da2f9e9da103"; + hash = "sha256-IzTq45lMdlAt+mEb7gpp1hWKBUSeLWINK53Sv4RithI="; + }; + + installPhase = '' + runHook preInstall + mkdir -p $out/share/icons + cp -r ${lib.concatStringsSep " " (if colorVariants != [] then colorVariants else colorVariantList)} $out/share/icons/ + runHook postInstall + ''; + + dontFixup = true; + + meta = with lib; { + description = "FairyWren Icon Set"; + homepage = "https://gitlab.com/aiyahm/FairyWren-Icons"; + maintainers = with maintainers; [ d3vil0p3r ]; + platforms = platforms.all; + license = with licenses; [ gpl3Plus ]; + }; +} |