bfg-repo-cleaner: format with nixfmt-rfc-style and add passthru.tests.version (#357491)
This commit is contained in:
commit
43d34c4e96
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user