2018-07-21 00:44:44 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2017-07-08 14:20:23 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-07-24 22:19:01 +00:00
|
|
|
pname = "linuxkit";
|
2020-07-27 19:30:08 +00:00
|
|
|
version = "0.8";
|
2017-07-08 14:20:23 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/linuxkit/linuxkit";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxkit";
|
|
|
|
repo = "linuxkit";
|
2019-07-24 22:19:01 +00:00
|
|
|
rev = "v${version}";
|
2020-07-27 19:30:08 +00:00
|
|
|
sha256 = "15jj60k8wz9cahjbdscnwyyfb1k1grjh7yrilb1cj4r8mby4sp2g";
|
2017-07-08 14:20:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
subPackages = [ "src/cmd/linuxkit" ];
|
|
|
|
|
2021-08-26 03:31:57 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X ${goPackagePath}/src/cmd/linuxkit/version.GitCommit=${src.rev}" "-X ${goPackagePath}/src/cmd/linuxkit/version.Version=${version}" ];
|
2017-07-08 14:20:23 +00:00
|
|
|
|
2019-07-24 22:19:01 +00:00
|
|
|
meta = with lib; {
|
2017-07-08 14:20:23 +00:00
|
|
|
description = "A toolkit for building secure, portable and lean operating systems for containers";
|
2019-07-24 22:19:01 +00:00
|
|
|
license = licenses.asl20;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/linuxkit/linuxkit";
|
2019-07-24 22:19:01 +00:00
|
|
|
maintainers = [ maintainers.nicknovitski ];
|
|
|
|
platforms = platforms.unix;
|
2017-07-08 14:20:23 +00:00
|
|
|
};
|
|
|
|
}
|