2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "linuxkit";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "0.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/linuxkit/linuxkit";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxkit";
|
|
|
|
repo = "linuxkit";
|
|
|
|
rev = "v${version}";
|
2020-08-20 17:08:02 +00:00
|
|
|
sha256 = "15jj60k8wz9cahjbdscnwyyfb1k1grjh7yrilb1cj4r8mby4sp2g";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
subPackages = [ "src/cmd/linuxkit" ];
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X ${goPackagePath}/src/cmd/linuxkit/version.GitCommit=${src.rev} -X ${goPackagePath}/src/cmd/linuxkit/version.Version=${version}" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A toolkit for building secure, portable and lean operating systems for containers";
|
|
|
|
license = licenses.asl20;
|
|
|
|
homepage = "https://github.com/linuxkit/linuxkit";
|
|
|
|
maintainers = [ maintainers.nicknovitski ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|