bfg-repo-cleaner: format with nixfmt-rfc-style and add passthru.tests.version (#357491)
This commit is contained in:
@@ -1,4 +1,12 @@
|
|||||||
{ lib, stdenv, fetchurl, jre, makeWrapper }:
|
{
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
fetchurl,
|
||||||
|
jre,
|
||||||
|
makeWrapper,
|
||||||
|
testers,
|
||||||
|
bfg-repo-cleaner,
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "bfg-repo-cleaner";
|
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"
|
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; {
|
meta = with lib; {
|
||||||
homepage = "https://rtyley.github.io/bfg-repo-cleaner/";
|
homepage = "https://rtyley.github.io/bfg-repo-cleaner/";
|
||||||
# Descriptions taken with minor modification from the homepage of bfg-repo-cleaner
|
# Descriptions taken with minor modification from the homepage of bfg-repo-cleaner
|
||||||
|
|||||||
Reference in New Issue
Block a user