diff options
author | Nick Novitski <github@nicknovitski.com> | 2019-07-24 15:19:01 -0700 |
---|---|---|
committer | Nick Novitski <github@nicknovitski.com> | 2019-07-25 21:32:20 -0700 |
commit | e65244ee568e197d3e8f9287f6792e802c7c5f62 (patch) | |
tree | 54b8cab31ef7c649e5a7a246a272d037f9559ae5 /pkgs/development/tools/misc/linuxkit | |
parent | bbd4a0c1001a2cce7457c8ae2a8f8ef905daa424 (diff) |
linuxkit: 2017-07-08 -> 0.7
Diffstat (limited to 'pkgs/development/tools/misc/linuxkit')
-rw-r--r-- | pkgs/development/tools/misc/linuxkit/default.nix | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/pkgs/development/tools/misc/linuxkit/default.nix b/pkgs/development/tools/misc/linuxkit/default.nix index 27f49ebcf38ca..5dd6f422713ba 100644 --- a/pkgs/development/tools/misc/linuxkit/default.nix +++ b/pkgs/development/tools/misc/linuxkit/default.nix @@ -1,29 +1,29 @@ { lib, buildGoPackage, fetchFromGitHub }: buildGoPackage rec { - name = "linuxkit-${version}"; - version = "2017-07-08"; - rev = "8ca19a84d5281b1b15c7a48c21e5786943b47f1c"; + pname = "linuxkit"; + version = "0.7"; goPackagePath = "github.com/linuxkit/linuxkit"; src = fetchFromGitHub { owner = "linuxkit"; repo = "linuxkit"; - inherit rev; - sha256 = "150y7hnjhi81iik7np27y5466ldaackq72mpi7vmybbl7vr1wgw4"; + rev = "v${version}"; + sha256 = "1mnaqzd4r0fdgjhjvbi4p0wwvz69i82b33iizz81wvkr1mkakgl2"; }; subPackages = [ "src/cmd/linuxkit" ]; preBuild = '' - buildFlagsArray+=("-ldflags" "-X main.GitCommit=${builtins.substring 0 7 rev} -X main.Version=0.0.0") + buildFlagsArray+=("-ldflags" "-X github.com/linuxkit/linuxkit/src/cmd/linuxkit/version.Version=${src.rev}") ''; - meta = { + meta = with lib; { description = "A toolkit for building secure, portable and lean operating systems for containers"; - license = lib.licenses.asl20; + license = licenses.asl20; homepage = https://github.com/linuxkit/linuxkit; - platforms = lib.platforms.unix; + maintainers = [ maintainers.nicknovitski ]; + platforms = platforms.unix; }; } |