bfg-repo-cleaner: add passthru.tests.version

This commit is contained in:
Kenichi Kamiya 2024-11-20 16:54:15 +09:00
parent 8ad7b50bf8
commit 5a4df0c14f
No known key found for this signature in database
GPG Key ID: 9BE4016A38165CCB

View File

@ -4,6 +4,8 @@
fetchurl,
jre,
makeWrapper,
testers,
bfg-repo-cleaner,
}:
stdenv.mkDerivation rec {
@ -29,6 +31,10 @@ stdenv.mkDerivation rec {
makeWrapper "${jre}/bin/java" $out/bin/bfg --add-flags "-cp $out/share/java/$jarName com.madgag.git.bfg.cli.Main"
'';
passthru.tests.version = testers.testVersion {
package = bfg-repo-cleaner;
};
meta = with lib; {
homepage = "https://rtyley.github.io/bfg-repo-cleaner/";
# Descriptions taken with minor modification from the homepage of bfg-repo-cleaner