{ stdenv, fetchFromGitHub, pkgconfig, which, freetype, pango }: stdenv.mkDerivation rec { name = "abcm2ps-${version}"; version = "8.13.17"; src = fetchFromGitHub { owner = "leesavide"; repo = "abcm2ps"; rev = "v${version}"; sha256 = "1niafqn3kzd3fpx2c7m0by8il52ird2hbhvr7l03l290vlpjw6zc"; }; prePatch = '' chmod +x configure ''; configureFlags = [ "--INSTALL=install" ]; 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"; maintainers = [ maintainers.dotlambda ]; }; }