mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
36 lines
871 B
Nix
36 lines
871 B
Nix
{ lib, buildGoModule, fetchFromGitHub, lazydocker, testers }:
|
|
|
|
buildGoModule rec {
|
|
pname = "lazydocker";
|
|
version = "0.23.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jesseduffield";
|
|
repo = "lazydocker";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-1nw0X8sZBtBsxlEUDVYMAinjMEMlIlzjJ4s+WApeE6o=";
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|