Add caroline husky stickers

This commit is contained in:
Charlotte 🦝 Delenk 2022-11-25 18:56:13 +01:00
parent 46e47e40ae
commit 1c88959cc9
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
4 changed files with 59 additions and 0 deletions

View file

@ -20,6 +20,7 @@ jobs:
- emoji-volpeon-fox
- emoji-volpeon-raccoon
- emoji-volpeon-vlpn
- emoji-caro
- lotte-art
- drone-runner-docker
- alco-sans

View file

@ -0,0 +1,46 @@
{
fetchFromGitHub,
stdenvNoCC,
imagemagick,
lib,
callPackage,
oxipng,
pngquant,
}: let
source = builtins.fromJSON (builtins.readFile ./source.json);
in
stdenvNoCC.mkDerivation {
pname = "caroline-stickers";
version = source.date;
src = fetchFromGitHub {
owner = "CarolineHusky";
repo = "CarolineStickers";
inherit (source) rev sha256;
};
nativeBuildInputs = [
imagemagick
oxipng
pngquant
];
buildPhase = ''
rm credits_*.png
mv "bluefox_thanks I hate it.png" "bluefox_thanks_I_hate_it.png"
mogrify -resize 256x256\> *.png
find . -type f -name '*.png' -execdir ${../../../lib/crushpng.sh} {} {}.new 40000 \;
for f in $(find . -type f -name '*.new'); do
mv $f ${"$"}{f%.new}
done
'';
installPhase = ''
mkdir $out
mv *.png $out
'';
meta = {
description = "CarolineHusky stickers";
license = lib.licenses.cc-by-nc-sa-40;
};
passthru.updateScript = [../scripts/update-git.sh "https://github.com/CarolineHusky/CarolineStickers" "art/emoji/caro/source.json"];
}

View file

@ -0,0 +1,11 @@
{
"url": "https://github.com/CarolineHusky/CarolineStickers",
"rev": "bd717e1c83d24be58612157ffd67ee92fffa8178",
"date": "2022-04-01T14:18:07+02:00",
"path": "/nix/store/g7cq22k0q1fhv6jajzmy2k0sl1xmz7n5-CarolineStickers",
"sha256": "14wgn1jdp698anbkgilf6x90vgkwgls4c17jaa9qqs3fxrj44ij3",
"fetchLFS": false,
"fetchSubmodules": false,
"deepClone": false,
"leaveDotGit": false
}

View file

@ -23,6 +23,7 @@
emoji-volpeon-fox = pkgs.callPackage ./art/emoji/volpeon/fox.nix {};
emoji-volpeon-raccoon = pkgs.callPackage ./art/emoji/volpeon/raccoon.nix {};
emoji-volpeon-vlpn = pkgs.callPackage ./art/emoji/volpeon/vlpn.nix {};
emoji-caro = pkgs.callPackage ./art/emoji/caro {};
lotte-art = pkgs.callPackage ./art/lotte {};
drone-runner-docker = pkgs.callPackage ./ci/drone-runner-docker {};
alco-sans = pkgs.callPackage ./fonts/kreative/alco-sans.nix {};