f5_6: migrate to stdenvNoCC, fix download link

This commit is contained in:
Minijackson 2023-01-22 11:20:07 +01:00
parent 616a088011
commit 3e68671ed0
No known key found for this signature in database
GPG Key ID: FEA888C9F5D64F62

View File

@ -1,27 +1,32 @@
{ lib, fetchzip }:
{ lib, stdenvNoCC, fetchzip }:
let
majorVersion = "0";
minorVersion = "110";
pname = "f5_6";
in
stdenvNoCC.mkDerivation (self: {
pname = "f5_6";
version = "${majorVersion}.${minorVersion}";
fetchzip {
name = "${pname}-font-${majorVersion}.${minorVersion}";
src = fetchzip {
url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip";
hash = "sha256-FeCU+mzR0iO5tixI72XUnhvpGj+WRfKyT3mhBtud3uE=";
stripRoot = false;
};
url = "http://dotcolon.net/DL/font/${pname}_${majorVersion}${minorVersion}.zip";
sha256 = "04p6lccd26rhjbpq3ddxi5vkk3lk8lqbpnk8lakjzixp3fgdqpp4";
installPhase = ''
runHook preInstall
postFetch = ''
mkdir -p $out/share/fonts/opentype/${pname}
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/${pname}
install -D -m444 -t $out/share/fonts/opentype $src/*.otf
runHook postInstall
'';
meta = with lib; {
homepage = "http://dotcolon.net/font/${pname}/";
homepage = "http://dotcolon.net/font/${self.pname}/";
description = "A weighted decorative font";
platforms = platforms.all;
maintainers = with maintainers; [ leenaars ];
maintainers = with maintainers; [ leenaars minijackson ];
license = licenses.ofl;
};
}
})