make sakomoji
This commit is contained in:
parent
fae67af4b2
commit
d831de957b
|
@ -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
31
packages/sakomoji.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue