Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 854096fa4f95
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d6de45d7de2e
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jan 2, 2021

  1. shellhub-agent: set passthru.updateScript using genericUpdater

    Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
    otavio authored and Jonathan Ringer committed Jan 2, 2021

    Verified

    This commit was signed with the committer’s verified signature.
    zimbatm Jonas Chevalier
    Copy the full SHA
    d6de45d View commit details
Showing with 15 additions and 1 deletion.
  1. +15 −1 pkgs/applications/networking/shellhub-agent/default.nix
16 changes: 15 additions & 1 deletion pkgs/applications/networking/shellhub-agent/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{ stdenv, buildGoModule, fetchFromGitHub }:
{ stdenv
, buildGoModule
, fetchFromGitHub
, genericUpdater
, common-updater-scripts
}:

buildGoModule rec {
pname = "shellhub-agent";
@@ -17,6 +22,15 @@ buildGoModule rec {

buildFlagsArray = [ "-ldflags=-s -w -X main.AgentVersion=v${version}" ];

passthru = {
updateScript = genericUpdater {
inherit pname version;
versionLister = "${common-updater-scripts}/bin/list-git-tags ${src.meta.homepage}";
rev-prefix = "v";
ignoredVersions = ".(rc|beta).*";
};
};

meta = with stdenv.lib; {
description =
"Enables easy access any Linux device behind firewall and NAT";