nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchFromGitHub, libfaketime
2, xorg
3}:
4
5stdenv.mkDerivation rec {
6 pname = "creep";
7 version = "0.31";
8
9 src = fetchFromGitHub {
10 owner = "romeovs";
11 repo = pname;
12 rev = version;
13 sha256 = "0zs21kznh1q883jfdgz74bb63i4lxlv98hj3ipp0wvsi6zw0vs8n";
14 };
15
16 nativeBuildInputs = [ libfaketime xorg.fonttosfnt xorg.mkfontscale ];
17
18 buildPhase = ''
19 faketime -f "1970-01-01 00:00:01" fonttosfnt -g 2 -m 2 -o creep.otb creep.bdf
20 '';
21
22 installPhase = ''
23 install -D -m644 creep.otb creep.bdf -t "$out/share/fonts/misc/"
24 mkfontdir "$out/share/fonts/misc"
25 '';
26
27 meta = with lib; {
28 description = "A pretty sweet 4px wide pixel font";
29 homepage = "https://github.com/romeovs/creep";
30 license = licenses.mit;
31 platforms = platforms.all;
32 maintainers = with maintainers; [ buffet ];
33 };
34}