{ lib, stdenv, fetchfossil, docutils, pkg-config, freetype, pango, testers, }: stdenv.mkDerivation (finalAttrs: { pname = "abcm2ps"; version = "8.14.18"; src = fetchfossil { url = "https://chiselapp.com/user/moinejf/repository/abcm2ps"; rev = "v${finalAttrs.version}"; hash = "sha256-2nmKjLEZ9dTk+oE16gBm9iheVlLvQFvcdc5FPcxaq6M="; }; configureFlags = [ "--INSTALL=install" ]; nativeBuildInputs = [ docutils pkg-config ]; buildInputs = [ freetype pango ]; passthru.tests = { version = testers.testVersion { package = finalAttrs.finalPackage; command = "abcm2ps -V"; }; }; meta = { homepage = "http://moinejf.free.fr/"; license = lib.licenses.lgpl3Plus; description = "Command line program which converts ABC to music sheet in PostScript or SVG format"; platforms = lib.platforms.unix; maintainers = with lib.maintainers; [ dotlambda ]; mainProgram = "abcm2ps"; }; })