Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5294194fe213
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5087dcf24759
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Nov 26, 2018

  1. Copy the full SHA
    5087dcf View commit details
Showing with 17 additions and 8 deletions.
  1. +17 −8 pkgs/applications/networking/cluster/stern/default.nix
25 changes: 17 additions & 8 deletions pkgs/applications/networking/cluster/stern/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, buildGoPackage, fetchFromGitHub }:
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
name = "stern-${version}";
@@ -15,11 +15,20 @@ buildGoPackage rec {

goDeps = ./deps.nix;

meta = with lib; {
description = "Multi pod and container log tailing for Kubernetes";
homepage = "https://github.com/wercker/stern";
license = licenses.asl20;
maintainers = with maintainers; [ mbode ];
platforms = platforms.unix;
};
# Only build shell completion if we're _not_ cross compiling,
# because it requires executing the compiled stern binary.
postInstall = lib.optionalString (stdenv.buildPlatform == stdenv.hostPlatform) ''
mkdir -p $bin/share/bash-completion/completions
$bin/bin/stern --completion bash > $bin/share/bash-completion/completions/stern
mkdir -p $bin/share/zsh/site-functions
$bin/bin/stern --completion zsh > $bin/share/zsh/site-functions/_stern
'';

meta = with lib; {
description = "Multi pod and container log tailing for Kubernetes";
homepage = "https://github.com/wercker/stern";
license = licenses.asl20;
maintainers = with maintainers; [ mbode ];
platforms = platforms.unix;
};
}