ferrum: migrate to stdenvNoCC, fix download link

This commit is contained in:
Minijackson 2023-01-22 11:21:36 +01:00
parent 50b0534bdc
commit 2734632de8
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 = "200";
pname = "ferrum";
in
stdenvNoCC.mkDerivation (self: {
pname = "ferrum";
version = "${majorVersion}.${minorVersion}";
fetchzip {
name = "${pname}-font-${majorVersion}.${minorVersion}";
src = fetchzip {
url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip";
hash = "sha256-NDJwgFWZgyhMkGRWlY55l2omEw6ju3e3dHCEsWNzQIc=";
stripRoot = false;
};
url = "http://dotcolon.net/DL/font/${pname}.zip";
sha256 = "1w1b3ch7ik4264f05lxms01ls0aargvlx770a9szm682dfmizn8w";
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 decorative font";
platforms = platforms.all;
maintainers = with maintainers; [ leenaars ];
maintainers = with maintainers; [ leenaars minijackson ];
license = licenses.cc0;
};
}
})