mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 03:25:02 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
28 lines
765 B
Nix
28 lines
765 B
Nix
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "moby";
|
|
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;
|
|
};
|
|
}
|