2018-07-21 02:44:44 +02:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2017-07-08 15:44:14 +02:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "moby";
|
2017-07-08 15:44:14 +02:00
|
|
|
version = "2017-07-06";
|
|
|
|
rev = "d87a3f9990ed24ebbb51695879cd640cb07a4b40";
|
|
|
|
|
|
|
|
goPackagePath = "github.com/moby/tool";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "moby";
|
|
|
|
repo = "tool";
|
|
|
|
inherit rev;
|
|
|
|
sha256 = "0xhasm69g5gwihcm8g7rff9nkx7iffvd642bknky6j3w133gs5lp";
|
|
|
|
};
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
buildFlagsArray+=("-ldflags" "-X main.GitCommit=${builtins.substring 0 7 rev} -X main.Version=0.0.0")
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Assembly tool for the Moby project, an open framework to assemble specialized container systems without reinventing the wheel";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
homepage = https://mobyproject.org;
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|