3
0
Fork 0
forked from mirrors/nixpkgs

route159: migrate to stdenvNoCC, fix download link

This commit is contained in:
Minijackson 2023-01-22 11:22:34 +01:00
parent 655b521833
commit 424820916f
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 = "1";
minorVersion = "10";
pname = "route159";
in
stdenvNoCC.mkDerivation (self: {
pname = "route159";
version = "${majorVersion}.${minorVersion}";
fetchzip {
name = "${pname}-font-${majorVersion}.${minorVersion}";
src = fetchzip {
url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip";
hash = "sha256-1InyBW1LGbp/IU/ql9mvT14W3MTxJdWThFwRH6VHpTU=";
stripRoot = false;
};
url = "http://dotcolon.net/DL/font/${pname}_${majorVersion}${minorVersion}.zip";
sha256 = "1nv5csg73arvvwpac7ylh4j9n0s3qp79rbv2s4jvs2bf6gqhsq7h";
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 sans serif font";
platforms = platforms.all;
maintainers = with maintainers; [ leenaars ];
maintainers = with maintainers; [ leenaars minijackson ];
license = licenses.ofl;
};
}
})