{ stdenv, fetchFromGitHub, pkgconfig, which, docutils, freetype, pango }: stdenv.mkDerivation rec { name = "abcm2ps-${version}"; version = "8.14.5"; src = fetchFromGitHub { owner = "leesavide"; repo = "abcm2ps"; rev = "v${version}"; sha256 = "1i6db49khqy8bqg21cn90b1fvyw8mh1asdswzssr6dr2g8bhdwmq"; }; configureFlags = [ "--INSTALL=install" ]; buildFlags = [ "CC=${stdenv.cc}/bin/cc" ]; nativeBuildInputs = [ which pkgconfig docutils ]; buildInputs = [ freetype pango ]; meta = with stdenv.lib; { homepage = http://moinejf.free.fr/; license = licenses.gpl3; description = "A command line program which converts ABC to music sheet in PostScript or SVG format"; platforms = platforms.unix; maintainers = [ maintainers.dotlambda ]; }; }