aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/tools/misc/convfont/default.nix
blob: 0cc181082a4fcc211f9f161d521fc6f489ed2e2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv
, fetchFromGitHub
}:

stdenv.mkDerivation rec {
  pname = "convfont";
  version = "1.0";

  src = fetchFromGitHub {
    owner = "drdnar";
    repo = pname;
    rev = "v20190438";
    sha256 = "1lj24yq5gj9hxhy1srk73521q95zyqzkws0q4v271hf5wmqaxa2f";
  };

  makeFlags = [ "CC=cc" ];

  installPhase = ''
    install -Dm755 convfont $out/bin/convfont
  '';

  meta = with stdenv.lib; {
    description = "Converts font for use with FontLibC";
    homepage = "https://github.com/drdnar/convfont";
    license = licenses.wtfpl;
    maintainers = with maintainers; [ luc65r ];
    platforms = platforms.all;
  };
}