2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-10-28 11:04:04 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "convfont";
|
|
|
|
version = "1.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "drdnar";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v20190438";
|
|
|
|
sha256 = "1lj24yq5gj9hxhy1srk73521q95zyqzkws0q4v271hf5wmqaxa2f";
|
|
|
|
};
|
|
|
|
|
2021-02-16 11:48:46 +00:00
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
|
2020-10-28 11:04:04 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 convfont $out/bin/convfont
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-28 11:04:04 +00:00
|
|
|
description = "Converts font for use with FontLibC";
|
|
|
|
homepage = "https://github.com/drdnar/convfont";
|
|
|
|
license = licenses.wtfpl;
|
|
|
|
maintainers = with maintainers; [ luc65r ];
|
|
|
|
platforms = platforms.all;
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "convfont";
|
2020-10-28 11:04:04 +00:00
|
|
|
};
|
|
|
|
}
|