ankacoder: migrate to finalAttrs, use installFonts (#528044)

This commit is contained in:
Weijia Wang
2026-08-22 23:25:41 +00:00
committed by GitHub

View File

@@ -2,26 +2,25 @@
lib,
stdenvNoCC,
fetchzip,
installFonts,
}:
stdenvNoCC.mkDerivation rec {
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "ankacoder";
version = "1.100";
strictDeps = true;
__structuredAttrs = true;
src = fetchzip {
url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/anka-coder-fonts/AnkaCoder.${version}.zip";
url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/anka-coder-fonts/AnkaCoder.${finalAttrs.version}.zip";
stripRoot = false;
hash = "sha256-14ItaSQ/fO/WDq0O4SXGWnZgiM0kayJrWQgsKb7bsyY=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts/truetype
cp *.ttf $out/share/fonts/truetype
runHook postInstall
'';
nativeBuildInputs = [
installFonts
];
meta = {
description = "Anka/Coder fonts";
@@ -30,4 +29,4 @@ stdenvNoCC.mkDerivation rec {
maintainers = [ ];
platforms = lib.platforms.all;
};
}
})