make sakomoji

This commit is contained in:
Sakooooo 2025-01-10 18:55:32 +04:00
parent fae67af4b2
commit d831de957b
Signed by: sako
GPG key ID: FE52FD65B76E4751
2 changed files with 32 additions and 0 deletions

View file

@ -4,4 +4,5 @@
# example = pkgs.callPackage ./example { };
nullpomino = pkgs.callPackage ./nullpomino.nix { };
ddns-updater = pkgs.callPackage ./ddns-updater.nix { };
akkoma-emoji.sakomoji = pkgs.callPackage ./sakomoji { };
}

31
packages/sakomoji.nix Normal file
View file

@ -0,0 +1,31 @@
{ lib, stdenvNoCC, fetchurl, unzip, }:
let rev = "4d65b3cdaa726a29276d1ca5669c5eb38beee223";
in stdenvNoCC.mkDerivation {
pname = "sakomoji";
version = "${rev}";
src = fetchurl {
url = "https://git.sako.lol/sako/sakomoji/archive/${rev}.zip";
hash = "sha256-OhLzoYFnjVs1hKYglUEbDWCjNRGBNZENh5kg+K3lpX8=";
};
sourceRoot = ".";
nativeBuildInputs = [ unzip ];
installPhase = ''
runHook preInstall
mkdir -p $out
cp *.png $out
cp *.gif $out
runHook postInstall
'';
meta = {
description = "sakomoji";
homepage = "https://sako.lol";
};
}