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
873 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";
2023-10-21 03:37:03 +00:00
version = "0.23.1";
2019-07-06 07:40:34 +00:00
src = fetchFromGitHub {
owner = "jesseduffield";
repo = "lazydocker";
rev = "v${version}";
2023-10-21 03:37:03 +00:00
sha256 = "sha256-nW3eaSisXLqoWZ+5YLLCfC1k4lTXWd5ZqY2xTM/I0PY=";
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; {
2019-07-06 07:40:34 +00:00
description = "A 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
};
}