Add all of volpeon’s emoji
This commit is contained in:
parent
b6313c5998
commit
6916404e28
1 changed files with 11 additions and 8 deletions
|
@ -2,20 +2,24 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
nix-packages,
|
nix-packages,
|
||||||
config,
|
config,
|
||||||
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
raccoon-emoji = pkgs.fetchzip {
|
emoji_set_names = ["volpeon-blobfox-flip" "volpeon-blobfox" "volpeon-bunhd-flip" "volpeon-bunhd" "volpeon-drgn" "vulpeon-fox" "vulpeon-raccoon" "vulpeon-vlpn"];
|
||||||
url = "https://volpeon.ink/art/emojis/raccoon/raccoon.zip";
|
emoji_sets = builtins.listToAttrs (map (name: {
|
||||||
sha256 = "sha256-GkMiYAP0LS0TL6GMDG4R4FkGwFjhIwn3pAWUmCTUfHg=";
|
inherit name;
|
||||||
stripRoot = false;
|
value = "${pkgs."emoji-${name}"}";
|
||||||
};
|
}));
|
||||||
|
copy_emoji_set = name: ''
|
||||||
|
mkdir -p $out/emoji/${name}
|
||||||
|
lndir ${emoji_sets.${name}} $out/emoji/${name}
|
||||||
|
'';
|
||||||
static_dir = pkgs.stdenvNoCC.mkDerivation {
|
static_dir = pkgs.stdenvNoCC.mkDerivation {
|
||||||
name = "akkoma-static";
|
name = "akkoma-static";
|
||||||
src = pkgs.emptyDirectory;
|
src = pkgs.emptyDirectory;
|
||||||
nativeBuildInputs = with pkgs; [xorg.lndir];
|
nativeBuildInputs = with pkgs; [xorg.lndir];
|
||||||
akkoma_fe = nix-packages.packages.${pkgs.system}.pleroma-fe;
|
akkoma_fe = nix-packages.packages.${pkgs.system}.pleroma-fe;
|
||||||
akkoma_admin_fe = nix-packages.packages.${pkgs.system}.admin-fe;
|
akkoma_admin_fe = nix-packages.packages.${pkgs.system}.admin-fe;
|
||||||
raccoon_emoji = raccoon-emoji;
|
|
||||||
tos = ./terms-of-service.html;
|
tos = ./terms-of-service.html;
|
||||||
dontUnpack = false;
|
dontUnpack = false;
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
@ -23,8 +27,7 @@
|
||||||
lndir $akkoma_fe $out/frontends/pleroma-fe/stable
|
lndir $akkoma_fe $out/frontends/pleroma-fe/stable
|
||||||
mkdir -p $out/frontends/admin-fe/stable
|
mkdir -p $out/frontends/admin-fe/stable
|
||||||
lndir $akkoma_admin_fe $out/frontends/admin-fe/stable
|
lndir $akkoma_admin_fe $out/frontends/admin-fe/stable
|
||||||
mkdir -p $out/emoji/raccoons
|
${toString (map copy_emoji_set emoji_set_names)}
|
||||||
lndir $raccoon_emoji $out/emoji/raccoons
|
|
||||||
mkdir $out/static
|
mkdir $out/static
|
||||||
cp $tos $out/static/terms-of-service.html
|
cp $tos $out/static/terms-of-service.html
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue