summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/co/convfont/package.nix
blob: 8687c4bb0d67bec74ac8f34f19fae8569612334a (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
30
31
32
{
  lib,
  stdenv,
  fetchFromGitHub,
}:

stdenv.mkDerivation {
  pname = "convfont";
  version = "1.2";

  src = fetchFromGitHub {
    owner = "drdnar";
    repo = "convfont";
    rev = "a4f90539165ef15e391ad8cf26a14d4876072dc8";
    sha256 = "sha256-xDn29/HETeao0cwvt2LohA37sGQQ20gtBdYr20vA04A=";
  };

  makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];

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

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