diff options
author | Will Dietz <w@wdtz.org> | 2017-07-08 09:20:23 -0500 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2017-07-08 09:25:01 -0500 |
commit | ceff05aa4f25ce8d0d0b7a81761017c406497393 (patch) | |
tree | f060e611ad8fb2d7139dd025012c4ec09ebc27cd /pkgs/development/tools/misc/linuxkit | |
parent | 0b6a5042835787bcfe9ab4901d8f364058998ade (diff) |
linuxkit: init at 2017-07-08
Diffstat (limited to 'pkgs/development/tools/misc/linuxkit')
-rw-r--r-- | pkgs/development/tools/misc/linuxkit/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/linuxkit/default.nix b/pkgs/development/tools/misc/linuxkit/default.nix new file mode 100644 index 0000000000000..71bc3b87a7ac6 --- /dev/null +++ b/pkgs/development/tools/misc/linuxkit/default.nix @@ -0,0 +1,29 @@ +{ lib, buildGoPackage, go, fetchFromGitHub }: + +buildGoPackage rec { + name = "linuxkit-${version}"; + version = "2017-07-08"; + rev = "8ca19a84d5281b1b15c7a48c21e5786943b47f1c"; + + goPackagePath = "github.com/linuxkit/linuxkit"; + + src = fetchFromGitHub { + owner = "linuxkit"; + repo = "linuxkit"; + inherit rev; + sha256 = "150y7hnjhi81iik7np27y5466ldaackq72mpi7vmybbl7vr1wgw4"; + }; + + subPackages = [ "src/cmd/linuxkit" ]; + + preBuild = '' + buildFlagsArray+=("-ldflags" "-X main.GitCommit=${builtins.substring 0 7 rev} -X main.Version=0.0.0") + ''; + + meta = { + description = "A toolkit for building secure, portable and lean operating systems for containers"; + license = lib.licenses.asl20; + homepage = https://github.com/linuxkit/linuxkit; + platforms = lib.platforms.unix; + }; +} |