depot/third_party/nixpkgs/pkgs/tools/misc/lazydocker/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

35 lines
871 B
Nix

{ lib, buildGoModule, fetchFromGitHub, lazydocker, testers }:
buildGoModule rec {
pname = "lazydocker";
version = "0.23.3";
src = fetchFromGitHub {
owner = "jesseduffield";
repo = "lazydocker";
rev = "v${version}";
sha256 = "sha256-1nw0X8sZBtBsxlEUDVYMAinjMEMlIlzjJ4s+WApeE6o=";
};
vendorHash = null;
postPatch = ''
rm -f pkg/config/app_config_test.go
'';
excludedPackages = [ "scripts" "test/printrandom" ];
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
passthru.tests.version = testers.testVersion {
package = lazydocker;
};
meta = with lib; {
description = "Simple terminal UI for both docker and docker-compose";
homepage = "https://github.com/jesseduffield/lazydocker";
license = licenses.mit;
maintainers = with maintainers; [ das-g Br1ght0ne ];
mainProgram = "lazydocker";
};
}