Unverified Commit 08acf170 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

containerlab: 0.56.0 -> 0.57.0 (#336679)

parents 1a91113d 3c9d0c6c
Loading
Loading
Loading
Loading
+11 −6
Original line number Diff line number Diff line
@@ -6,27 +6,32 @@

buildGoModule rec {
  pname = "containerlab";
  version = "0.56.0";
  version = "0.57.0";

  src = fetchFromGitHub {
    owner = "srl-labs";
    repo = "containerlab";
    rev = "v${version}";
    hash = "sha256-7jQvfEplGIwTtIAOBc6R5OfcxPQuEbBnzBoAI9mE+7E=";
    hash = "sha256-dqREbTDRhSEQg8swZ5ljhAtu3Yv421/QNmpkWopPWbk=";
  };

  nativeBuildInputs = [ installShellFiles ];

  vendorHash = "sha256-SPxpi9jG3Xtit9JOAv0xWd89qWJZXeIjMwoNTkVeDgk=";
  vendorHash = "sha256-3ESz1wnbm6KfXSO5Fw4c7uUxL3K8Lsib5KAYoRD6vrw=";

  ldflags = [
    "-s"
    "-w"
    "-X" "github.com/srl-labs/containerlab/cmd.version=${version}"
    "-X" "github.com/srl-labs/containerlab/cmd.commit=${src.rev}"
    "-X" "github.com/srl-labs/containerlab/cmd.date=1970-01-01T00:00:00Z"
    "-X github.com/srl-labs/containerlab/cmd.version=${version}"
    "-X github.com/srl-labs/containerlab/cmd.commit=${src.rev}"
    "-X github.com/srl-labs/containerlab/cmd.date=1970-01-01T00:00:00Z"
  ];

  preCheck = ''
    # Fix failed TestLabelsInit test
    export USER="runner"
  '';

  postInstall = ''
    local INSTALL="$out/bin/containerlab"
    installShellCompletion --cmd containerlab \
+0 −2
Original line number Diff line number Diff line
@@ -523,8 +523,6 @@ with pkgs;
  conserver = callPackage ../tools/misc/conserver { };
  containerlab = callPackage ../tools/networking/containerlab { };
  coolercontrol = recurseIntoAttrs (callPackage ../applications/system/coolercontrol { });
  confetty = callPackage ../applications/misc/confetty { };