Unverified Commit c42f42b6 authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

dcv: init at v0.3.1 (#483145)

parents 964c427f 0706b85c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -8540,6 +8540,11 @@
    github = "felixdorn";
    githubId = 55788595;
  };
  FelixLusseau = {
    name = "Félix Lusseau";
    github = "FelixLusseau";
    githubId = 94113911;
  };
  felixscheinost = {
    name = "Felix Scheinost";
    email = "felix.scheinost@posteo.de";
+43 −0
Original line number Diff line number Diff line
{
  lib,
  buildGoModule,
  fetchFromGitHub,
}:

buildGoModule (finalAttrs: {
  pname = "dcv";
  version = "v0.3.1";

  src = fetchFromGitHub {
    owner = "tokuhirom";
    repo = "dcv";
    tag = "${finalAttrs.version}";
    hash = "sha256-OwfGZq+ce6RNb5dhNHsQ15iMPoEp7QlaYIUVYIiVqmI=";
  };

  vendorHash = "sha256-xwTPb+eGsisYB9Jy7rG9tQlIbnKWTbAdXqJBsjB0YK0=";

  # Don't use the vendored dependencies as they are out of sync with go.mod
  # Instead, let Go download dependencies through the module proxy
  proxyVendor = true;

  # Build helper binaries for all architectures before the main build
  # These helpers are embedded in the binary and used for container filesystem operations
  preBuild = ''
    make build-helpers
  '';

  # Strip debug symbols and DWARF tables to reduce binary size
  ldflags = [
    "-s"
    "-w"
  ];

  meta = {
    description = "TUI (Terminal User Interface) tool for monitoring Docker containers and Docker Compose applications";
    homepage = "https://github.com/tokuhirom/dcv";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ FelixLusseau ];
    mainProgram = "dcv";
  };
})