nixpkgs/pkgs/tools/misc/lazydocker/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
871 B
Nix
Raw Normal View History

2023-09-18 19:58:14 +00:00
{ lib, buildGoModule, fetchFromGitHub, lazydocker, testers }:
2019-07-06 07:40:34 +00:00
2022-05-14 08:44:24 +00:00
buildGoModule rec {
2019-07-06 07:40:34 +00:00
pname = "lazydocker";
2024-05-26 13:11:58 +00:00
version = "0.23.3";
2019-07-06 07:40:34 +00:00
src = fetchFromGitHub {
owner = "jesseduffield";
repo = "lazydocker";
rev = "v${version}";
2024-05-26 13:11:58 +00:00
sha256 = "sha256-1nw0X8sZBtBsxlEUDVYMAinjMEMlIlzjJ4s+WApeE6o=";
2019-07-06 07:40:34 +00:00
};
2023-07-25 06:54:06 +00:00
vendorHash = null;
2019-07-06 07:40:34 +00:00
2022-05-14 08:44:24 +00:00
postPatch = ''
rm -f pkg/config/app_config_test.go
'';
excludedPackages = [ "scripts" "test/printrandom" ];
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
2019-07-06 07:40:34 +00:00
2023-09-18 19:58:14 +00:00
passthru.tests.version = testers.testVersion {
package = lazydocker;
};
meta = with lib; {
description = "Simple terminal UI for both docker and docker-compose";
2019-12-05 16:12:19 +00:00
homepage = "https://github.com/jesseduffield/lazydocker";
2019-07-06 07:40:34 +00:00
license = licenses.mit;
maintainers = with maintainers; [ das-g Br1ght0ne ];
2023-11-27 01:17:53 +00:00
mainProgram = "lazydocker";
2019-07-06 07:40:34 +00:00
};
}