medio: migrate to stdenvNoCC, fix download link
This commit is contained in:
parent
b3f58e84f5
commit
50b0534bdc
|
@ -1,24 +1,29 @@
|
||||||
{ lib, fetchzip }:
|
{ lib, stdenvNoCC, fetchzip }:
|
||||||
|
|
||||||
let
|
let
|
||||||
majorVersion = "0";
|
majorVersion = "0";
|
||||||
minorVersion = "200";
|
minorVersion = "200";
|
||||||
pname = "medio";
|
|
||||||
in
|
in
|
||||||
|
stdenvNoCC.mkDerivation (self: {
|
||||||
|
pname = "medio";
|
||||||
|
version = "${majorVersion}.${minorVersion}";
|
||||||
|
|
||||||
fetchzip {
|
src = fetchzip {
|
||||||
name = "${pname}-font-${majorVersion}.${minorVersion}";
|
url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip";
|
||||||
|
hash = "sha256-S+CcwD4zGVk7cIFD6K4NnpE/0mrJq4RnDJC576rhcLQ=";
|
||||||
|
stripRoot = false;
|
||||||
|
};
|
||||||
|
|
||||||
url = "http://dotcolon.net/DL/font/${pname}.zip";
|
installPhase = ''
|
||||||
sha256 = "0gxcmhjlsh2pzsmj78vw4v935ax7hfk533ddlhfhfma52zyxyh7x";
|
runHook preInstall
|
||||||
|
|
||||||
postFetch = ''
|
install -D -m444 -t $out/share/fonts/opentype $src/*.otf
|
||||||
mkdir -p $out/share/fonts/opentype/${pname}
|
|
||||||
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/${pname}
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "http://dotcolon.net/font/${pname}/";
|
homepage = "http://dotcolon.net/font/${self.pname}/";
|
||||||
description = "Serif font designed by Sora Sagano";
|
description = "Serif font designed by Sora Sagano";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
Medio is a serif font designed by Sora Sagano, based roughly
|
Medio is a serif font designed by Sora Sagano, based roughly
|
||||||
|
@ -26,7 +31,7 @@ fetchzip {
|
||||||
but with hairline serifs in the style of a Didone.
|
but with hairline serifs in the style of a Didone.
|
||||||
'';
|
'';
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = with maintainers; [ leenaars ];
|
maintainers = with maintainers; [ leenaars minijackson ];
|
||||||
license = licenses.cc0;
|
license = licenses.cc0;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue