diff --git a/pkgs/by-name/bf/bfg-repo-cleaner/package.nix b/pkgs/by-name/bf/bfg-repo-cleaner/package.nix index 447f9e7d84dc..d2044dd34c78 100644 --- a/pkgs/by-name/bf/bfg-repo-cleaner/package.nix +++ b/pkgs/by-name/bf/bfg-repo-cleaner/package.nix @@ -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