Merge pull request #234701 from wegank/blobs-gg-derivation

akkoma-emoji.blobs_gg: convert to stdenvNoCC.mkDerivation
This commit is contained in:
Weijia Wang 2023-05-29 03:19:31 +03:00 committed by GitHub
commit 413a534a8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,15 +1,29 @@
{ lib, fetchzip }:
{ lib, stdenvNoCC, fetchurl, unzip }:
let
rev = "e764ba00b9c34524e3ff3ffd19a44fa2a5c296a5";
in fetchzip {
in
stdenvNoCC.mkDerivation {
pname = "blobs.gg";
version = "unstable-2019-07-24";
url = "https://git.pleroma.social/pleroma/emoji-index/-/raw/${rev}/packs/blobs_gg.zip";
hash = "sha256-dnOwW93xTyJKRnYgvPgsqZHNWod4y80aNhBSVKNk6do=";
src = fetchurl {
url = "https://git.pleroma.social/pleroma/emoji-index/-/raw/${rev}/packs/blobs_gg.zip";
hash = "sha256-OhLzoYFnjVs1hKYglUEbDWCjNRGBNZENh5kg+K3lpX8=";
};
stripRoot = false;
sourceRoot = ".";
nativeBuildInputs = [ unzip ];
installPhase = ''
runHook preInstall
mkdir -p $out
cp *.png LICENSE $out
runHook postInstall
'';
meta = with lib; {
description = "Blob emoji from blobs.gg repacked as APNG";