diff options
author | Will Dietz <w@wdtz.org> | 2017-07-08 08:44:14 -0500 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2017-07-08 09:25:01 -0500 |
commit | 0b6a5042835787bcfe9ab4901d8f364058998ade (patch) | |
tree | 639693af53fa820addec9cea221d4705f1f24f02 /pkgs/development/tools/misc/moby | |
parent | 89fcb633266e4b96bd206393df333b773a64f260 (diff) |
moby: init at 2017-07-06
Diffstat (limited to 'pkgs/development/tools/misc/moby')
-rw-r--r-- | pkgs/development/tools/misc/moby/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/moby/default.nix b/pkgs/development/tools/misc/moby/default.nix new file mode 100644 index 00000000000..e6f7ac3290b --- /dev/null +++ b/pkgs/development/tools/misc/moby/default.nix @@ -0,0 +1,27 @@ +{ lib, buildGoPackage, go, fetchFromGitHub }: + +buildGoPackage rec { + name = "moby-${version}"; + 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; + }; +} |