Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 51 lines 993 B view raw
1{ 2 lib, 3 stdenv, 4 fetchfossil, 5 docutils, 6 pkg-config, 7 freetype, 8 pango, 9 testers, 10}: 11 12stdenv.mkDerivation (finalAttrs: { 13 pname = "abcm2ps"; 14 version = "8.14.17"; 15 16 src = fetchfossil { 17 url = "https://chiselapp.com/user/moinejf/repository/abcm2ps"; 18 rev = "v${finalAttrs.version}"; 19 hash = "sha256-YA36wfj7owKu/KyWgCj6U8EJEh831cFtQj4/JtH6kVg="; 20 }; 21 22 configureFlags = [ 23 "--INSTALL=install" 24 ]; 25 26 nativeBuildInputs = [ 27 docutils 28 pkg-config 29 ]; 30 31 buildInputs = [ 32 freetype 33 pango 34 ]; 35 36 passthru.tests = { 37 version = testers.testVersion { 38 package = finalAttrs.finalPackage; 39 command = "abcm2ps -V"; 40 }; 41 }; 42 43 meta = { 44 homepage = "http://moinejf.free.fr/"; 45 license = lib.licenses.lgpl3Plus; 46 description = "Command line program which converts ABC to music sheet in PostScript or SVG format"; 47 platforms = lib.platforms.unix; 48 maintainers = with lib.maintainers; [ dotlambda ]; 49 mainProgram = "abcm2ps"; 50 }; 51})