about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/misc/convfont/default.nix
blob: aeecb053212762cf4bab241825bf628f1030f863 (plain) (blame)
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
{ lib, 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 lib; {
    description = "Converts font for use with FontLibC";
    homepage = "https://github.com/drdnar/convfont";
    license = licenses.wtfpl;
    maintainers = with maintainers; [ luc65r ];
    platforms = platforms.all;
  };
}