proggyfonts: rename name to pname&version (#193937)

This commit is contained in:
erdnaxe 2022-10-05 14:36:18 +02:00 committed by GitHub
parent b093aa5350
commit 9a2bba46e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,17 +1,22 @@
{ lib, stdenv, fetchurl, mkfontscale }: { lib, stdenv, fetchurl, mkfontscale }:
stdenv.mkDerivation { stdenv.mkDerivation rec {
name = "proggyfonts-0.1"; pname = "proggyfonts";
version = "0.1";
src = fetchurl { src = fetchurl {
url = "https://web.archive.org/web/20150801042353/http://kaictl.net/software/proggyfonts-0.1.tar.gz"; url = "https://web.archive.org/web/20150801042353/http://kaictl.net/software/proggyfonts-${version}.tar.gz";
sha256 = "1plcm1sjpa3hdqhhin48fq6zmz3ndm4md72916hd8ff0w6596q0n"; hash = "sha256-SsLzZdR5icVJNbr5rcCPbagPPtWghbqs2Jxmrtufsa4=";
}; };
nativeBuildInputs = [ mkfontscale ]; nativeBuildInputs = [ mkfontscale ];
installPhase = dontConfigure = true;
'' dontBuild = true;
installPhase = ''
runHook preInstall
# compress pcf fonts # compress pcf fonts
mkdir -p $out/share/fonts/misc mkdir -p $out/share/fonts/misc
rm Speedy.pcf # duplicated as Speedy11.pcf rm Speedy.pcf # duplicated as Speedy11.pcf
@ -25,14 +30,12 @@ stdenv.mkDerivation {
mkfontscale "$out/share/fonts/truetype" mkfontscale "$out/share/fonts/truetype"
mkfontdir "$out/share/fonts/misc" mkfontdir "$out/share/fonts/misc"
runHook postInstall
''; '';
outputHashAlgo = "sha256";
outputHashMode = "recursive";
outputHash = "1x196rp3wqjd7m57bgp5kfy5jmj97qncxi1vwibs925ji7dqzfgf";
meta = with lib; { meta = with lib; {
homepage = "http://upperbounds.net"; homepage = "http://www.upperbounds.net";
description = "A set of fixed-width screen fonts that are designed for code listings"; description = "A set of fixed-width screen fonts that are designed for code listings";
license = licenses.mit; license = licenses.mit;
platforms = platforms.all; platforms = platforms.all;