From dcc8e45dab2f77103166226711c221d851acc049 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Sun, 9 Feb 2020 19:05:06 +0100 Subject: [PATCH] creep: split outputs in out and otb --- pkgs/data/fonts/creep/default.nix | 17 +++++++++++++---- pkgs/top-level/all-packages.nix | 3 ++- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/pkgs/data/fonts/creep/default.nix b/pkgs/data/fonts/creep/default.nix index bad78e3433e..90b0d19ae99 100644 --- a/pkgs/data/fonts/creep/default.nix +++ b/pkgs/data/fonts/creep/default.nix @@ -1,4 +1,6 @@ -{ stdenv, fetchFromGitHub, fontforge }: +{ stdenv, fetchFromGitHub, libfaketime +, fonttosfnt, mkfontscale +}: stdenv.mkDerivation rec { pname = "creep"; @@ -11,14 +13,21 @@ stdenv.mkDerivation rec { sha256 = "0zs21kznh1q883jfdgz74bb63i4lxlv98hj3ipp0wvsi6zw0vs8n"; }; - nativeBuildInputs = [ fontforge ]; + nativeBuildInputs = [ libfaketime fonttosfnt mkfontscale ]; - dontBuild = true; + buildPhase = '' + faketime -f "1970-01-01 00:00:01" fonttosfnt -g 2 -m 2 -o creep.otb creep.bdf + ''; installPhase = '' - install -D -m644 creep.bdf "$out/usr/share/fonts/misc/creep.bdf" + install -D -m644 creep.bdf "$out/share/fonts/misc/creep.bdf" + mkfontdir "$out/share/fonts/misc" + install -D -m644 creep.otb "$otb/share/fonts/misc/creep.otb" + mkfontdir "$otb/share/fonts/misc" ''; + outputs = [ "out" "otb" ]; + meta = with stdenv.lib; { description = "A pretty sweet 4px wide pixel font"; homepage = https://github.com/romeovs/creep; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c0c47548307..ad6111341bf 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17366,7 +17366,8 @@ in cm_unicode = callPackage ../data/fonts/cm-unicode {}; - creep = callPackage ../data/fonts/creep { }; + creep = callPackage ../data/fonts/creep + { inherit (buildPackages.xorg) fonttosfnt mkfontscale; }; crimson = callPackage ../data/fonts/crimson {};