1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/misc/linuxkit/default.nix

30 lines
802 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";
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
};
}