mirror of
https://github.com/nix-community/linuxkit-nix.git
synced 2024-11-22 11:47:57 +03:00
linuxkit: 0.2 -> 0.6
This commit is contained in:
parent
a070a2bfbc
commit
ce33e0ef7c
@ -1,8 +1,12 @@
|
||||
{ lib, buildGoPackage, go, fetchFromGitHub }:
|
||||
|
||||
buildGoPackage rec {
|
||||
let
|
||||
# Make sure to keep those in sync
|
||||
version = "0.6";
|
||||
rev = "10f07ca";
|
||||
in
|
||||
buildGoPackage {
|
||||
name = "linuxkit-${version}";
|
||||
version = "0.2";
|
||||
|
||||
goPackagePath = "github.com/linuxkit/linuxkit";
|
||||
|
||||
@ -10,13 +14,13 @@ buildGoPackage rec {
|
||||
owner = "linuxkit";
|
||||
repo = "linuxkit";
|
||||
rev = "v${version}";
|
||||
sha256 = "1y7pjmzimnm52v218fznqg8gjiwzxg38ywxiqig8iiljpc6hiyha";
|
||||
sha256 = "12nph1sxgp7l2sb3ar7x8a2rrk2bqphca6snwbcqaqln2ixsh78i";
|
||||
};
|
||||
|
||||
subPackages = [ "src/cmd/linuxkit" ];
|
||||
|
||||
preBuild = ''
|
||||
buildFlagsArray+=("-ldflags" "-X main.GitCommit=1c552f7 -X main.Version=0.2.0")
|
||||
buildFlagsArray+=("-ldflags" "-X main.GitCommit=${rev} -X main.Version=${version}")
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
Loading…
Reference in New Issue
Block a user