From ab0bd8ca527f9e21a80562f39eb4a5a9a565780a Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 24 Mar 2024 15:48:22 +0100 Subject: [PATCH] puppet-lint: add meta, passthru.{tests,updateScript} --- .../tools/puppet/puppet-lint/default.nix | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/puppet/puppet-lint/default.nix b/pkgs/development/tools/puppet/puppet-lint/default.nix index 2940605b1b08..588d9f0c86fa 100644 --- a/pkgs/development/tools/puppet/puppet-lint/default.nix +++ b/pkgs/development/tools/puppet/puppet-lint/default.nix @@ -1,7 +1,30 @@ -{ bundlerApp }: +{ + bundlerApp, + bundlerUpdateScript, + lib, + puppet-lint, + testers, +}: bundlerApp { pname = "puppet-lint"; gemdir = ./.; exes = [ "puppet-lint" ]; + + passthru = { + tests.version = testers.testVersion { + package = puppet-lint; + version = (import ./gemset.nix).puppet-lint.version; + }; + updateScript = bundlerUpdateScript "puppet-lint"; + }; + + meta = { + description = "Checks Puppet code against the recommended Puppet language style guide"; + homepage = "https://github.com/puppetlabs/puppet-lint"; + changelog = "https://github.com/puppetlabs/puppet-lint/blob/main/CHANGELOG.md"; + license = lib.licenses.mit; + mainProgram = "puppet-lint"; + maintainers = with lib.maintainers; [ anthonyroussel ]; + }; }