From 2e7f260e3593b1eb02a781e8946878de227eeec2 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Wed, 2 Jan 2019 15:07:20 -0600 Subject: [PATCH 1/2] terminus-font: 4.46 -> 4.47 http://terminus-font.sourceforge.net/ Also cleanup/modernize a bit. Replace homepage (dead?) with SF url. --- pkgs/data/fonts/terminus-font/default.nix | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/pkgs/data/fonts/terminus-font/default.nix b/pkgs/data/fonts/terminus-font/default.nix index c1ee2250c9a2..adbce5c8cf9b 100644 --- a/pkgs/data/fonts/terminus-font/default.nix +++ b/pkgs/data/fonts/terminus-font/default.nix @@ -1,26 +1,22 @@ { stdenv, fetchurl, python3, bdftopcf, mkfontdir, mkfontscale }: stdenv.mkDerivation rec { - name = "terminus-font-4.46"; + name = "terminus-font-4.47"; src = fetchurl { url = "mirror://sourceforge/project/terminus-font/${name}/${name}.tar.gz"; - sha256 = "1kavqw38aarz0vpwz4b7l6l8xkyc5096zaf9ypqnvdwraqz46aaf"; + sha256 = "15qjcpalcxjiwsjgjg5k88vkwp56cs2nnx4ghya6mqp4i1c206qg"; }; - buildInputs = [ python3 bdftopcf mkfontdir mkfontscale ]; + nativeBuildInputs = [ python3 bdftopcf mkfontdir mkfontscale ]; patchPhase = '' substituteInPlace Makefile --replace 'fc-cache' '#fc-cache' ''; - configurePhase = '' - sh ./configure --prefix=$out - ''; + enableParallelBuilding = true; - installPhase = '' - make install fontdir - ''; + installTargets = [ "install" "fontdir" ]; meta = with stdenv.lib; { description = "A clean fixed width font"; @@ -36,7 +32,7 @@ stdenv.mkDerivation rec { 16x32. The styles are normal and bold (except for 6x12), plus EGA/VGA-bold for 8x14 and 8x16. ''; - homepage = http://www.is-vn.bg/hamster/; + homepage = http://terminus-font.sourceforge.net/; license = licenses.gpl2Plus; maintainers = with maintainers; [ astsmtl ]; platforms = platforms.linux; From d5dc90c1e1f59abe8ba6ede0d36cf17f00b00123 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Wed, 2 Jan 2019 18:56:56 -0600 Subject: [PATCH 2/2] terminus-font: set version, pname, kinda --- pkgs/data/fonts/terminus-font/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/data/fonts/terminus-font/default.nix b/pkgs/data/fonts/terminus-font/default.nix index adbce5c8cf9b..2221f6bc6f5f 100644 --- a/pkgs/data/fonts/terminus-font/default.nix +++ b/pkgs/data/fonts/terminus-font/default.nix @@ -1,10 +1,12 @@ { stdenv, fetchurl, python3, bdftopcf, mkfontdir, mkfontscale }: stdenv.mkDerivation rec { - name = "terminus-font-4.47"; + pname = "terminus-font"; + version = "4.47"; + name = "${pname}-${version}"; # set here for use in URL below src = fetchurl { - url = "mirror://sourceforge/project/terminus-font/${name}/${name}.tar.gz"; + url = "mirror://sourceforge/project/${pname}/${name}/${name}.tar.gz"; sha256 = "15qjcpalcxjiwsjgjg5k88vkwp56cs2nnx4ghya6mqp4i1c206qg"; };