abcm2ps: add version test

This commit is contained in:
Robert Schütz 2024-01-09 04:23:02 -08:00
parent edb804f869
commit 5df8c87c20

View File

@ -5,16 +5,17 @@
, pkg-config
, freetype
, pango
, testers
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "abcm2ps";
version = "8.14.15";
src = fetchFromGitHub {
owner = "leesavide";
repo = "abcm2ps";
rev = "v${version}";
rev = "v${finalAttrs.version}";
hash = "sha256-0ZSMKARX16/33sIWR8LOVOFblI/Q+iZgnfVq/xqRMnI=";
};
@ -26,6 +27,13 @@ stdenv.mkDerivation rec {
buildInputs = [ freetype pango ];
passthru.tests = {
version = testers.testVersion {
package = finalAttrs.finalPackage;
command = "abcm2ps -V";
};
};
meta = with lib; {
homepage = "http://moinejf.free.fr/";
license = licenses.lgpl3Plus;
@ -34,4 +42,4 @@ stdenv.mkDerivation rec {
maintainers = [ maintainers.dotlambda ];
mainProgram = "abcm2ps";
};
}
})