depot/third_party/nixpkgs/pkgs/tools/misc/lazydocker/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

34 lines
841 B
Nix

{ lib, buildGoModule, fetchFromGitHub, lazydocker, testers }:
buildGoModule rec {
pname = "lazydocker";
version = "0.21.1";
src = fetchFromGitHub {
owner = "jesseduffield";
repo = "lazydocker";
rev = "v${version}";
sha256 = "sha256-fzHsLKtlyTKcuOqTYtoE5Wv0Y45tAMgRpYmXA4oYrVY=";
};
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 = "A simple terminal UI for both docker and docker-compose";
homepage = "https://github.com/jesseduffield/lazydocker";
license = licenses.mit;
maintainers = with maintainers; [ das-g Br1ght0ne ];
};
}