creep: split outputs in out and otb

This commit is contained in:
rnhmjoj 2020-02-09 19:05:06 +01:00
parent f16019c58f
commit dcc8e45dab
No known key found for this signature in database
GPG key ID: BFBAF4C975F76450
2 changed files with 15 additions and 5 deletions

View file

@ -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;

View file

@ -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 {};