504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
35 lines
873 B
Nix
35 lines
873 B
Nix
{ lib, buildGoModule, fetchFromGitHub, lazydocker, testers }:
|
|
|
|
buildGoModule rec {
|
|
pname = "lazydocker";
|
|
version = "0.23.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jesseduffield";
|
|
repo = "lazydocker";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-nW3eaSisXLqoWZ+5YLLCfC1k4lTXWd5ZqY2xTM/I0PY=";
|
|
};
|
|
|
|
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 ];
|
|
mainProgram = "lazydocker";
|
|
};
|
|
}
|