nixpkgs-suyu/pkgs/development/tools/misc/moby/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

27 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;
};
}