summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/da/dapper/package.nix
blob: 0260b5efbed12ca385c5470fcdd94f21647bb0ce (plain)
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
30
31
{
  lib,
  buildGoModule,
  fetchFromGitHub,
}:

buildGoModule (finalAttrs: {
  pname = "dapper";
  version = "0.6.0";

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

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

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