Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / misc / otf2bdf / default.nix
blob947957df284cfbad20ec5d73ce45bd476c409313
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , freetype
5 }:
7 stdenv.mkDerivation rec {
8   pname = "otf2bdf";
9   version = "3.1";
11   # Original site http://sofia.nmsu.edu/~mleisher/Software/otf2bdf/ unreachable,
12   # This is a mirror.
13   src = fetchFromGitHub {
14     owner = "jirutka";
15     repo  = "otf2bdf";
16     rev   = "v${version}";
17     hash  = "sha256-HK9ZrnwKhhYcBvSl+3RwFD7m/WSaPkGKX6utXnk5k+A=";
18   };
20   buildInputs = [ freetype ];
22   installPhase = ''
23     mkdir -p $out/bin $out/share/man/man1
24     install otf2bdf $out/bin
25     cp otf2bdf.man $out/share/man/man1/otf2bdf.1
26   '';
28   meta = with lib; {
29     #homepage = "http://sofia.nmsu.edu/~mleisher/Software/otf2bdf/";  # timeout
30     homepage = "https://github.com/jirutka/otf2bdf";
31     description = "OpenType to BDF font converter";
32     license = licenses.mit0;
33     platforms = platforms.all;
34     maintainers = with maintainers; [ hzeller ];
35   };