about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/dapper/default.nix
blob: c2b6066f61bd0a76150176889088005fedc54893 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib
, buildGoModule
, fetchFromGitHub
}:

buildGoModule rec {
  pname = "dapper";
  version = "0.6.0";

  src = fetchFromGitHub {
    owner = "rancher";
    repo = "dapper";
    rev = "v${version}";
    sha256 = "sha256-V+lHnOmIWjI1qmoJ7+pp+cGmJAtSeY+r2I9zykswQzM=";
  };
  vendorHash = null;

  patchPhase = ''
    substituteInPlace main.go --replace 0.0.0 ${version}
  '';

  meta = with lib; {
    description = "Docker build wrapper";
    homepage = "https://github.com/rancher/dapper";
    license = licenses.asl20;
    platforms = platforms.linux;
    maintainers = with maintainers; [ kuznero ];
  };
}