home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

default.nix (728B)


      1 { stdenv, lib, fetchFromGitHub, buildGoModule }:
      2 
      3 buildGoModule rec {
      4   name = "buildkit-${version}";
      5   version = "0.8.0";
      6   rev = "v${version}";
      7 
      8   subPackages = [ "cmd/buildctl" "cmd/buildkitd" ];
      9 
     10   buildFlagsArray = let t = "github.com/moby/buildkit/version"; in
     11     ''
     12       -ldflags=
     13         -X ${t}.Version=${version}
     14     '';
     15 
     16   src = fetchFromGitHub {
     17     inherit rev;
     18     owner = "moby";
     19     repo = "buildkit";
     20     sha256 = "0qcgq93wj77i912xqhwrzkzaqz608ilczfn5kcsrf9jk2m1gnx7m";
     21   };
     22   vendorSha256 = null;
     23   doCheck = false;
     24 
     25   meta = {
     26     description = "concurrent, cache-efficient, and Dockerfile-agnostic builder toolkit";
     27     homepage = https://github.com/moby/buildkit;
     28     license = lib.licenses.asl20;
     29   };
     30 }