bfg-repo-cleaner: format with nixfmt-rfc-style and add passthru.tests.version (#357491)

This commit is contained in:
Aleksana 2024-11-29 17:13:52 +08:00 committed by GitHub
commit 43d34c4e96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,12 @@
{ lib, stdenv, fetchurl, jre, makeWrapper }:
{
lib,
stdenv,
fetchurl,
jre,
makeWrapper,
testers,
bfg-repo-cleaner,
}:
stdenv.mkDerivation rec {
pname = "bfg-repo-cleaner";
@ -23,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