nixpkgs/pkgs/tools/audio/abcm2ps/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
945 B
Nix
Raw Normal View History

2022-01-30 06:06:04 +00:00
{ lib
, stdenv
, fetchFromGitHub
, docutils
, pkg-config
, freetype
, pango
2024-01-09 12:23:02 +00:00
, testers
2022-01-30 06:06:04 +00:00
}:
2017-09-17 18:37:50 +01:00
2024-01-09 12:23:02 +00:00
stdenv.mkDerivation (finalAttrs: {
pname = "abcm2ps";
2024-01-09 09:06:50 +00:00
version = "8.14.15";
2017-09-17 18:37:50 +01:00
src = fetchFromGitHub {
owner = "leesavide";
repo = "abcm2ps";
2024-01-09 12:23:02 +00:00
rev = "v${finalAttrs.version}";
2024-01-09 09:06:50 +00:00
hash = "sha256-0ZSMKARX16/33sIWR8LOVOFblI/Q+iZgnfVq/xqRMnI=";
2017-09-17 18:37:50 +01:00
};
configureFlags = [
"--INSTALL=install"
];
2022-01-30 06:06:04 +00:00
nativeBuildInputs = [ docutils pkg-config ];
2018-08-02 11:29:35 +01:00
buildInputs = [ freetype pango ];
2017-09-17 18:37:50 +01:00
2024-01-09 12:23:02 +00:00
passthru.tests = {
version = testers.testVersion {
package = finalAttrs.finalPackage;
command = "abcm2ps -V";
};
};
meta = with lib; {
homepage = "http://moinejf.free.fr/";
2021-07-23 23:11:04 +01:00
license = licenses.lgpl3Plus;
2019-03-15 09:39:21 +00:00
description = "A command line program which converts ABC to music sheet in PostScript or SVG format";
platforms = platforms.unix;
2017-09-17 18:37:50 +01:00
maintainers = [ maintainers.dotlambda ];
2023-11-23 21:09:35 +00:00
mainProgram = "abcm2ps";
2017-09-17 18:37:50 +01:00
};
2024-01-09 12:23:02 +00:00
})