home

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

default.nix (703B)


      1 { stdenv, lib, fetchFromGitHub, buildGoModule }:
      2 
      3 buildGoModule rec {
      4   name = "buildx-${version}";
      5   version = "0.5.1";
      6   rev = "v${version}";
      7 
      8   subPackages = [ "cmd/buildx" ];
      9 
     10   buildFlagsArray = let t = "github.com/docker/buildx/version"; in
     11     ''
     12       -ldflags=
     13         -X ${t}.Version=${version}
     14     '';
     15 
     16   src = fetchFromGitHub {
     17     inherit rev;
     18     owner = "docker";
     19     repo = "buildx";
     20     sha256 = "0l03ncs1x4lhgy0kf7bd1zq00md8fi93f8xq6k0ans4400divfzk";
     21   };
     22   vendorSha256 = null;
     23   doCheck = false;
     24 
     25   meta = {
     26     description = "Docker CLI plugin for extended build capabilities with buildkit";
     27     homepage = https://github.com/docker/buildx;
     28     license = lib.licenses.asl20;
     29   };
     30 }