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