mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
creep: split outputs in out and otb
This commit is contained in:
parent
f16019c58f
commit
dcc8e45dab
@ -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;
|
||||
|
@ -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 {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user