containerlab: init at 0.41.2
This commit is contained in:
parent
901f3e3cad
commit
3869e53589
35
pkgs/tools/networking/containerlab/default.nix
Normal file
35
pkgs/tools/networking/containerlab/default.nix
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{ lib
|
||||||
|
, buildGoModule
|
||||||
|
, fetchFromGitHub
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "containerlab";
|
||||||
|
version = "0.41.2";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "srl-labs";
|
||||||
|
repo = "containerlab";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-HOsfQUCYlU19C30XKCQZj2Mw5NQfmp9miZYmN1s14QU=";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorHash = "sha256-dumXV5o/x4rqvX3tATsWFXz6DSowTSgaiHvzFoQaDIw=";
|
||||||
|
|
||||||
|
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"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Container-based networking lab";
|
||||||
|
homepage = "https://containerlab.dev/";
|
||||||
|
changelog = "https://github.com/srl-labs/containerlab/releases/tag/${src.rev}";
|
||||||
|
license = licenses.bsd3;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ janik ];
|
||||||
|
};
|
||||||
|
}
|
@ -483,6 +483,8 @@ with pkgs;
|
|||||||
|
|
||||||
conserver = callPackage ../tools/misc/conserver { };
|
conserver = callPackage ../tools/misc/conserver { };
|
||||||
|
|
||||||
|
containerlab = callPackage ../tools/networking/containerlab { };
|
||||||
|
|
||||||
containerpilot = callPackage ../applications/networking/cluster/containerpilot { };
|
containerpilot = callPackage ../applications/networking/cluster/containerpilot { };
|
||||||
|
|
||||||
coost = callPackage ../development/libraries/coost { };
|
coost = callPackage ../development/libraries/coost { };
|
||||||
|
Loading…
Reference in New Issue
Block a user