From 66c98fe36504e8fa22c602955358bda4c6696d7c Mon Sep 17 00:00:00 2001 From: twoneis Date: Mon, 24 Feb 2025 19:45:01 +0100 Subject: [PATCH] neocats --- modules/fedi/default.nix | 4 ++++ modules/fedi/neocat.nix | 27 +++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 modules/fedi/neocat.nix diff --git a/modules/fedi/default.nix b/modules/fedi/default.nix index f0e3733..c48bac8 100644 --- a/modules/fedi/default.nix +++ b/modules/fedi/default.nix @@ -2,6 +2,7 @@ inherit (lib) mkIf; inherit (config) conf; inherit ((pkgs.formats.elixirConf { }).lib) mkMap; + neocat = (pkgs.callPackage ./neocat.nix { }); in mkIf conf.fedi.enable { services.akkoma = { enable = true; @@ -99,6 +100,9 @@ in mkIf conf.fedi.enable { }; }; }; + extraStatic = { + "emoji/neocat" = neocat; + }; nginx = { serverName = "fedi.twoneis.site"; useACMEHost = "twoneis.site"; diff --git a/modules/fedi/neocat.nix b/modules/fedi/neocat.nix new file mode 100644 index 0000000..5f42edd --- /dev/null +++ b/modules/fedi/neocat.nix @@ -0,0 +1,27 @@ +{ + stdenvNoCC, + fetchurl, + unzip, +}: +stdenvNoCC.mkDerivation { + pname = "blobs.gg"; + version = "unstable-2019-07-24"; + + src = fetchurl { + url = "https://volpeon.ink/emojis/neocat/neocat.zip"; + hash = ""; + }; + + sourceRoot = "."; + + nativeBuildInputs = [ unzip ]; + + installPhase = '' + runHook preInstall + + mkdir -p $out + cp *.png $out + + runHook postInstall + ''; +}