nixpkgs/pkgs/development/tools/misc/linuxkit/default.nix

28 lines
842 B
Nix
Raw Normal View History

{ lib, buildGoPackage, fetchFromGitHub }:
2017-07-08 15:20:23 +01:00
buildGoPackage rec {
2019-07-24 23:19:01 +01:00
pname = "linuxkit";
2020-07-27 20:30:08 +01:00
version = "0.8";
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}";
2020-07-27 20:30:08 +01:00
sha256 = "15jj60k8wz9cahjbdscnwyyfb1k1grjh7yrilb1cj4r8mby4sp2g";
2017-07-08 15:20:23 +01:00
};
subPackages = [ "src/cmd/linuxkit" ];
2020-07-27 22:20:00 +01:00
buildFlagsArray = [ "-ldflags=-s -w -X ${goPackagePath}/src/cmd/linuxkit/version.GitCommit=${src.rev} -X ${goPackagePath}/src/cmd/linuxkit/version.Version=${version}" ];
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;
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
};
}