depot/third_party/nixpkgs/pkgs/by-name/la/lazydocker/package.nix

51 lines
922 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
lazydocker,
testers,
}:
buildGoModule rec {
pname = "lazydocker";
version = "0.24.1";
src = fetchFromGitHub {
owner = "jesseduffield";
repo = "lazydocker";
rev = "v${version}";
sha256 = "sha256-cVjDdrxmGt+hj/WWP9B3BT739k9SSr4ryye5qWb3XNM=";
};
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";
};
}