Merge pull request #92132 from marsam/update-cozette
cozette: 1.5.1 -> 1.8.3
This commit is contained in:
commit
d16b7018b1
@ -1,55 +1,28 @@
|
|||||||
{ stdenv, fetchurl, mkfontscale }:
|
{ lib, fetchzip }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "1.5.1";
|
version = "1.8.3";
|
||||||
releaseUrl =
|
in
|
||||||
"https://github.com/slavfox/Cozette/releases/download/v.${version}";
|
fetchzip rec {
|
||||||
in stdenv.mkDerivation rec {
|
name = "Cozette-${version}";
|
||||||
pname = "Cozette";
|
|
||||||
inherit version;
|
|
||||||
|
|
||||||
srcs = map fetchurl [
|
url = "https://github.com/slavfox/Cozette/releases/download/v.${version}/CozetteFonts.zip";
|
||||||
{
|
|
||||||
url = "${releaseUrl}/cozette.otb";
|
|
||||||
sha256 = "05k45n7jar11gnng2awpmc7zk9jdlzd6wz87xx49cp75jm4z9xm8";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
url = "${releaseUrl}/CozetteVector.otf";
|
|
||||||
sha256 = "1sqhnjpizn1wi26lc7z2zml7yr7zkcpa72mh1drvd74rlcs1ip30";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
url = "${releaseUrl}/CozetteVector.ttf";
|
|
||||||
sha256 = "1q4ml8shv9lmyc6bwhffwvbvl92s73j7xkb0rkqvci4f0zbz7mcy";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = [ mkfontscale ];
|
sha256 = "1nc4zk6n7cbv9vwlhpm3ady5lc4d4ic1klyywwfg27w8j0jv57hx";
|
||||||
|
|
||||||
sourceRoot = "./";
|
postFetch = ''
|
||||||
|
mkdir -p $out/share/fonts
|
||||||
unpackCmd = ''
|
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
||||||
otName=$(stripHash "$curSrc")
|
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
|
||||||
cp $curSrc ./$otName
|
unzip -j $downloadedFile \*.bdf -d $out/share/fonts/misc
|
||||||
|
unzip -j $downloadedFile \*.otb -d $out/share/fonts/misc
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
meta = with lib; {
|
||||||
|
|
||||||
install -D -m 644 *.otf -t "$out/share/fonts/opentype"
|
|
||||||
install -D -m 644 *.ttf -t "$out/share/fonts/truetype"
|
|
||||||
install -D -m 644 *.otb -t "$out/share/fonts/misc"
|
|
||||||
|
|
||||||
mkfontdir "$out/share/fonts/misc"
|
|
||||||
mkfontscale "$out/share/fonts/truetype"
|
|
||||||
mkfontscale "$out/share/fonts/opentype"
|
|
||||||
'';
|
|
||||||
|
|
||||||
outputs = [ "out" ];
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
description = "A bitmap programming font optimized for coziness.";
|
description = "A bitmap programming font optimized for coziness.";
|
||||||
homepage = "https://github.com/slavfox/cozette";
|
homepage = "https://github.com/slavfox/cozette";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = with maintainers; [ brettlyons ];
|
maintainers = with maintainers; [ brettlyons marsam ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user