2018-07-21 01:44:44 +01:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2017-07-08 15:20:23 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-07-24 23:19:01 +01:00
|
|
|
pname = "linuxkit";
|
|
|
|
version = "0.7";
|
2017-07-08 15:20:23 +01:00
|
|
|
|
|
|
|
goPackagePath = "github.com/linuxkit/linuxkit";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxkit";
|
|
|
|
repo = "linuxkit";
|
2019-07-24 23:19:01 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1mnaqzd4r0fdgjhjvbi4p0wwvz69i82b33iizz81wvkr1mkakgl2";
|
2017-07-08 15:20:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
subPackages = [ "src/cmd/linuxkit" ];
|
|
|
|
|
|
|
|
preBuild = ''
|
2019-07-24 23:19:01 +01:00
|
|
|
buildFlagsArray+=("-ldflags" "-X github.com/linuxkit/linuxkit/src/cmd/linuxkit/version.Version=${src.rev}")
|
2017-07-08 15:20:23 +01:00
|
|
|
'';
|
|
|
|
|
2019-07-24 23:19:01 +01:00
|
|
|
meta = with lib; {
|
2017-07-08 15:20:23 +01:00
|
|
|
description = "A toolkit for building secure, portable and lean operating systems for containers";
|
2019-07-24 23:19:01 +01:00
|
|
|
license = licenses.asl20;
|
2017-07-08 15:20:23 +01:00
|
|
|
homepage = https://github.com/linuxkit/linuxkit;
|
2019-07-24 23:19:01 +01:00
|
|
|
maintainers = [ maintainers.nicknovitski ];
|
|
|
|
platforms = platforms.unix;
|
2017-07-08 15:20:23 +01:00
|
|
|
};
|
|
|
|
}
|