lol
1{ stdenv, fetchFromGitHub, pkgconfig, which, freetype, pango }:
2
3stdenv.mkDerivation rec {
4 name = "abcm2ps-${version}";
5 version = "8.13.20";
6
7 src = fetchFromGitHub {
8 owner = "leesavide";
9 repo = "abcm2ps";
10 rev = "v${version}";
11 sha256 = "0zgwrclky6b1l1pd07s31azyxf4clwi3cp5x0wjix0wp78b89pbx";
12 };
13
14 prePatch = ''
15 chmod +x configure
16 '';
17
18 configureFlags = [
19 "--INSTALL=install"
20 ];
21
22 buildFlags = [
23 "CC=${stdenv.cc}/bin/cc"
24 ];
25
26 buildInputs = [ which pkgconfig freetype pango ];
27
28 meta = with stdenv.lib; {
29 homepage = http://moinejf.free.fr/;
30 license = licenses.gpl3;
31 description = "abcm2ps is a command line program which converts ABC to music sheet in PostScript or SVG format";
32 platforms = platforms.unix;
33 maintainers = [ maintainers.dotlambda ];
34 };
35}