Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
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-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a8340a301aab
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 09f4fec63c5d
Choose a head ref

Commits on Apr 26, 2020

  1. Copy the full SHA
    c1facd1 View commit details
  2. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    talyz Kim Lindberger
    Copy the full SHA
    7a40eb5 View commit details
  3. cypress: 4.3.0 -> 4.4.1

    DamienCassou committed Apr 26, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    primeos Michael Weiss
    Copy the full SHA
    25e4c9d View commit details
  4. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    9c32e5c View commit details
  5. maintainers: add numkem

    numkem committed Apr 26, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    35b8193 View commit details
  6. hashi-ui: init at 1.3.8

    numkem committed Apr 26, 2020
    Copy the full SHA
    b987b25 View commit details
  7. kops: use installShellFiles

    zowoq committed Apr 26, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    Mic92 Jörg Thalheim
    Copy the full SHA
    16df607 View commit details
  8. stern: use installShellFiles

    zowoq committed Apr 26, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    954eab8 View commit details
  9. rclone: use installShellFiles

    zowoq committed Apr 26, 2020
    Copy the full SHA
    0bead92 View commit details
  10. Copy the full SHA
    e754652 View commit details
  11. Copy the full SHA
    2dca3f2 View commit details
  12. Copy the full SHA
    94e4ec1 View commit details
  13. lxd: use installShellFiles

    zowoq committed Apr 26, 2020
    Copy the full SHA
    e7b4478 View commit details
  14. gopass: use installShellFiles

    zowoq committed Apr 26, 2020
    Copy the full SHA
    148f862 View commit details
  15. vault: use installShellFiles

    zowoq committed Apr 26, 2020
    Copy the full SHA
    8193ac0 View commit details
  16. kompose: update completion

    zowoq committed Apr 26, 2020
    Copy the full SHA
    fb5cf24 View commit details
  17. kind: update completion

    zowoq committed Apr 26, 2020
    Copy the full SHA
    454f8ef View commit details

Commits on Apr 27, 2020

  1. etcd: 3.3.13 -> 3.3.20

    zowoq committed Apr 27, 2020
    Copy the full SHA
    0f4ffe9 View commit details
  2. Copy the full SHA
    e9c44e8 View commit details
  3. Copy the full SHA
    3e4f1e5 View commit details
  4. Copy the full SHA
    fa4747c View commit details
  5. Copy the full SHA
    cf536ed View commit details
  6. dqlite: 1.4.0 -> 1.4.1

    Mic92 committed Apr 27, 2020
    Copy the full SHA
    498e960 View commit details
  7. Copy the full SHA
    c10d823 View commit details
  8. Merge pull request #84286 from numkem/master

    hashi-ui: init at 1.3.8
    DamienCassou authored Apr 27, 2020
    Copy the full SHA
    9a23aea View commit details
  9. gitlab: support passing --rev to the update-all script

    While it's already possible to invoke `update-data` with the `--rev`
    argument, one still needs to run all later phases manually.
    
    Fix this, by having `update-all` also accept a `--rev` argument, and
    pass it down to `update-data`.
    
    Also, make the help text a bit more usable, by suggesting the usual
    versioning scheme used these times.
    flokli authored and Milan committed Apr 27, 2020
    Copy the full SHA
    412bb5e View commit details
  10. gitlab: update.py: invoke bundle lock manually

    `bundix -l` doesn't work, as it treats bundler's warning about upgrading
    the lockfile version as an error, so invoke `bundle lock` manually.
    manveru authored and Milan committed Apr 27, 2020
    Copy the full SHA
    4c26ab4 View commit details
  11. Copy the full SHA
    d190292 View commit details
  12. gitlab-workhorse: 8.21.1 -> 8.21.2

    flokli authored and Milan committed Apr 27, 2020
    Copy the full SHA
    b1f66bf View commit details
  13. gitaly: 12.8.8 -> 12.8.9

    flokli authored and Milan committed Apr 27, 2020
    Copy the full SHA
    81c34ec View commit details
  14. Copy the full SHA
    3629975 View commit details
  15. Copy the full SHA
    2060bc0 View commit details
  16. Merge pull request #85928 from DamienCassou/damien/cypress-4.4.1

    cypress: 4.3.0 -> 4.4.1
    mmahut authored Apr 27, 2020
    Copy the full SHA
    a6b85b9 View commit details
  17. Copy the full SHA
    a90356e View commit details
  18. Copy the full SHA
    c32c613 View commit details
  19. Merge pull request #86038 from zowoq/etcd

    etcd: 3.3.13 -> 3.3.20
    marsam authored Apr 27, 2020
    Copy the full SHA
    7320cdf View commit details
  20. Copy the full SHA
    e92b11d View commit details
  21. ocamlPackages.bigstring: init at 0.2

    alexfmpe authored and bennofs committed Apr 27, 2020
    Copy the full SHA
    ce6dbcc View commit details
  22. zsh-powerlevel10k: v1.5.0 → v1.6.0

    Changes since the last release
    
        Wizard
            Configuration wizard now reacts to terminal size changes in real time and can function at much smaller terminal dimensions.
            Configs with prompt_char now have vi_mode disabled by default.
            Generated configs now unset DEFAULT_USER.
            Classic and Rainbow configs now set POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_GAP_BACKGROUND. This makes it easier to define 3-line prompt.
    
        New parameters
            If POWERLEVEL9K_CONFIG_FILE is set, configuration wizard will write configs to the specified location instead of the default ${ZDOTDIR:-~}/.p10k.zsh.
    
        gitstatus
            Support older macOS versions (at least El Capitan; even older versions might work).
            Support Linux on armv6, i386 and i686.
            Support cygwin and msys2 on i686.
            macOS builds now use iconv from Homebrew.
            gitstatusd binaries are now being built with https://github.com/romkatv/gitstatus/blob/release/mbuild.
    
        Misc
            The default icon for proxy segment is now ↔ instead of ⮂. The old icon is missing in many fonts.
    
        Bug fixes
            gitstatus once again works on 64-bit Linux without glibc.
            Instant prompt no longer gets gradually slower over time when XDG_HOME_CACHE is on a slow filesystem.
            Instant prompt no longer prints spurious erros when XDG_HOME_CACHE is on NTFS.
            The old-style (and discouraged) custom prompts now work on zsh 5.3.1.
            Configuration wizard once again presents "extra icons" and "fluent prompt" options when using 12-hour time format.
    mweinelt committed Apr 27, 2020
    Copy the full SHA
    c17800c View commit details
  23. Copy the full SHA
    b53cabc View commit details
  24. Copy the full SHA
    2b81a97 View commit details
  25. Copy the full SHA
    8f5e4d1 View commit details
  26. Merge pull request #86107 from xwvvvvwx/wireguard-compat-1.0.20200426

    wireguard-compat: 1.0.20200413 -> 1.0.20200426
    Ma27 authored Apr 27, 2020
    Copy the full SHA
    730aad7 View commit details
  27. Copy the full SHA
    09f4fec View commit details
Showing with 256 additions and 184 deletions.
  1. +5 −4 .github/CONTRIBUTING.md
  2. +6 −0 maintainers/maintainer-list.nix
  3. +1 −0 nixos/modules/config/fonts/fontdir.nix
  4. +1 −0 nixos/modules/config/fonts/ghostscript.nix
  5. +2 −0 nixos/modules/config/ldap.nix
  6. +1 −0 nixos/modules/security/apparmor-suid.nix
  7. +3 −12 nixos/modules/security/pam.nix
  8. +1 −0 nixos/modules/services/mail/postfix.nix
  9. +1 −0 nixos/modules/services/mail/spamassassin.nix
  10. +1 −0 nixos/modules/services/misc/autofs.nix
  11. +1 −4 nixos/modules/services/misc/disnix.nix
  12. +1 −0 nixos/modules/services/networking/gogoclient.nix
  13. +2 −0 nixos/modules/services/networking/hostapd.nix
  14. +1 −0 nixos/modules/services/networking/openfire.nix
  15. +6 −0 nixos/modules/services/networking/ssh/lshd.nix
  16. +1 −0 nixos/modules/services/networking/tcpcrypt.nix
  17. +1 −0 nixos/modules/services/networking/wicd.nix
  18. +1 −0 nixos/modules/services/web-servers/jboss/default.nix
  19. +2 −1 nixos/modules/services/x11/display-managers/gdm.nix
  20. +1 −6 nixos/modules/services/x11/hardware/digimend.nix
  21. +3 −8 nixos/modules/virtualisation/xen-dom0.nix
  22. +7 −7 pkgs/applications/networking/cluster/docker-machine/default.nix
  23. +4 −3 pkgs/applications/networking/cluster/kompose/default.nix
  24. +6 −6 pkgs/applications/networking/cluster/kops/default.nix
  25. +7 −5 pkgs/applications/networking/cluster/stern/default.nix
  26. +8 −5 pkgs/applications/networking/sync/rclone/default.nix
  27. +3 −3 pkgs/applications/version-management/git-and-tools/gitstatus/default.nix
  28. +6 −6 pkgs/applications/version-management/git-and-tools/hub/default.nix
  29. +5 −5 pkgs/applications/version-management/gitlab/data.json
  30. +1 −1 pkgs/applications/version-management/gitlab/gitaly/Gemfile.lock
  31. +2 −2 pkgs/applications/version-management/gitlab/gitaly/default.nix
  32. +2 −2 pkgs/applications/version-management/gitlab/gitlab-workhorse/default.nix
  33. +1 −1 pkgs/applications/version-management/gitlab/rubyEnv/Gemfile
  34. +8 −8 pkgs/applications/version-management/gitlab/rubyEnv/Gemfile.lock
  35. +8 −8 pkgs/applications/version-management/gitlab/rubyEnv/gemset.nix
  36. +7 −4 pkgs/applications/version-management/gitlab/update.py
  37. +1 −5 pkgs/development/go-packages/generic/default.nix
  38. +11 −10 pkgs/development/libraries/dqlite/default.nix
  39. +2 −2 pkgs/development/libraries/raft-canonical/default.nix
  40. +24 −0 pkgs/development/ocaml-modules/bigstring/default.nix
  41. +4 −4 pkgs/development/tools/continuous-integration/gitlab-runner/default.nix
  42. +4 −3 pkgs/development/tools/kind/default.nix
  43. +2 −2 pkgs/development/web/cypress/default.nix
  44. +2 −2 pkgs/os-specific/linux/wireguard/default.nix
  45. +24 −17 pkgs/servers/etcd/default.nix
  46. +25 −0 pkgs/servers/hashi-ui/default.nix
  47. +5 −3 pkgs/servers/monitoring/prometheus/mail-exporter.nix
  48. +3 −2 pkgs/servers/sql/cockroachdb/default.nix
  49. +2 −2 pkgs/shells/zsh/zsh-powerlevel10k/default.nix
  50. +3 −3 pkgs/tools/admin/lxd/default.nix
  51. +11 −15 pkgs/tools/backup/restic/default.nix
  52. +6 −9 pkgs/tools/security/gopass/default.nix
  53. +5 −3 pkgs/tools/security/vault/default.nix
  54. +2 −0 pkgs/top-level/all-packages.nix
  55. +1 −1 pkgs/top-level/emacs-packages.nix
  56. +2 −0 pkgs/top-level/ocaml-packages.nix
9 changes: 5 additions & 4 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -50,12 +50,13 @@ For package version upgrades and such a one-line commit message is usually suffi

## Backporting changes

To [backport a change into a release branch](https://nixos.org/nixpkgs/manual/#submitting-changes-stable-release-branches):
Follow these steps to backport a change into a release branch in compliance with the [commit policy](https://nixos.org/nixpkgs/manual/#submitting-changes-stable-release-branches).

1. Take note of the commit in which the change was introduced into `master`.
1. Take note of the commits in which the change was introduced into `master` branch.
2. Check out the target _release branch_, e.g. `release-20.03`. Do not use a _channel branch_ like `nixos-20.03` or `nixpkgs-20.03`.
3. Use `git cherry-pick -x <original commit>`.
4. Open your backport PR. Make sure to select the release branch (e.g. `release-20.03`) as the target branch of the PR, and link to the PR in which the original change was made to `master`.
3. Create a branch for your change, e.g. `git checkout -b backport`.
4. When the reason to backport is not obvious from the original commit message, use `git cherry-pick -xe <original commit>` and add a reason. Otherwise use `git cherry-pick -x <original commit>`. That's fine for minor version updates that only include security and bug fixes, commits that fixes an otherwise broken package or similar.
5. Push to GitHub and open a backport pull request. Make sure to select the release branch (e.g. `release-20.03`) as the target branch of the pull request, and link to the pull request in which the original change was comitted to `master`. The pull request title should be the commit title with the release version as prefix, e.g. `[20.03]`.

## Reviewing contributions

6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
@@ -5608,6 +5608,12 @@
githubId = 369111;
name = "Morgan Jones";
};
numkem = {
name = "Sebastien Bariteau";
email = "numkem@numkem.org";
github = "numkem";
githubId = 332423;
};
nyanloutre = {
email = "paul@nyanlout.re";
github = "nyanloutre";
1 change: 1 addition & 0 deletions nixos/modules/config/fonts/fontdir.nix
Original file line number Diff line number Diff line change
@@ -25,6 +25,7 @@ in
fonts = {

enableFontDir = mkOption {
type = types.bool;
default = false;
description = ''
Whether to create a directory with links to all fonts in
1 change: 1 addition & 0 deletions nixos/modules/config/fonts/ghostscript.nix
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@ with lib;
fonts = {

enableGhostscriptFonts = mkOption {
type = types.bool;
default = false;
description = ''
Whether to add the fonts provided by Ghostscript (such as
2 changes: 2 additions & 0 deletions nixos/modules/config/ldap.nix
Original file line number Diff line number Diff line change
@@ -88,6 +88,7 @@ in
};

useTLS = mkOption {
type = types.bool;
default = false;
description = ''
If enabled, use TLS (encryption) over an LDAP (port 389)
@@ -109,6 +110,7 @@ in

daemon = {
enable = mkOption {
type = types.bool;
default = false;
description = ''
Whether to let the nslcd daemon (nss-pam-ldapd) handle the
1 change: 1 addition & 0 deletions nixos/modules/security/apparmor-suid.nix
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@ with lib;
];

options.security.apparmor.confineSUIDApplications = mkOption {
type = types.bool;
default = true;
description = ''
Install AppArmor profiles for commonly-used SUID application
15 changes: 3 additions & 12 deletions nixos/modules/security/pam.nix
Original file line number Diff line number Diff line change
@@ -545,6 +545,7 @@ in
};

security.pam.enableSSHAgentAuth = mkOption {
type = types.bool;
default = false;
description =
''
@@ -555,12 +556,7 @@ in
'';
};

security.pam.enableOTPW = mkOption {
default = false;
description = ''
Enable the OTPW (one-time password) PAM module.
'';
};
security.pam.enableOTPW = mkEnableOption "the OTPW (one-time password) PAM module";

security.pam.u2f = {
enable = mkOption {
@@ -719,12 +715,7 @@ in
};
};

security.pam.enableEcryptfs = mkOption {
default = false;
description = ''
Enable eCryptfs PAM module (mounting ecryptfs home directory on login).
'';
};
security.pam.enableEcryptfs = mkEnableOption "eCryptfs PAM module (mounting ecryptfs home directory on login)";

users.motd = mkOption {
default = null;
1 change: 1 addition & 0 deletions nixos/modules/services/mail/postfix.nix
Original file line number Diff line number Diff line change
@@ -269,6 +269,7 @@ in
};

enableSmtp = mkOption {
type = types.bool;
default = true;
description = "Whether to enable smtp in master.cf.";
};
1 change: 1 addition & 0 deletions nixos/modules/services/mail/spamassassin.nix
Original file line number Diff line number Diff line change
@@ -15,6 +15,7 @@ in
enable = mkEnableOption "the SpamAssassin daemon";

debug = mkOption {
type = types.bool;
default = false;
description = "Whether to run the SpamAssassin daemon in debug mode";
};
1 change: 1 addition & 0 deletions nixos/modules/services/misc/autofs.nix
Original file line number Diff line number Diff line change
@@ -57,6 +57,7 @@ in
};

debug = mkOption {
type = types.bool;
default = false;
description = ''
Pass -d and -7 to automount and write log to the system journal.
5 changes: 1 addition & 4 deletions nixos/modules/services/misc/disnix.nix
Original file line number Diff line number Diff line change
@@ -25,10 +25,7 @@ in
description = "Whether to support multi-user mode by enabling the Disnix D-Bus service";
};

useWebServiceInterface = mkOption {
default = false;
description = "Whether to enable the DisnixWebService interface running on Apache Tomcat";
};
useWebServiceInterface = mkEnableOption "the DisnixWebService interface running on Apache Tomcat";

package = mkOption {
type = types.path;
1 change: 1 addition & 0 deletions nixos/modules/services/networking/gogoclient.nix
Original file line number Diff line number Diff line change
@@ -19,6 +19,7 @@ in
'';
};
autorun = mkOption {
type = types.bool;
default = true;
description = ''
Whether to automatically start the tunnel.
2 changes: 2 additions & 0 deletions nixos/modules/services/networking/hostapd.nix
Original file line number Diff line number Diff line change
@@ -72,6 +72,7 @@ in
};

noScan = mkOption {
type = types.bool;
default = false;
description = ''
Do not scan for overlapping BSSs in HT40+/- mode.
@@ -127,6 +128,7 @@ in
};

wpa = mkOption {
type = types.bool;
default = true;
description = ''
Enable WPA (IEEE 802.11i/D3.0) to authenticate with the access point.
1 change: 1 addition & 0 deletions nixos/modules/services/networking/openfire.nix
Original file line number Diff line number Diff line change
@@ -12,6 +12,7 @@ with lib;
enable = mkEnableOption "OpenFire XMPP server";

usePostgreSQL = mkOption {
type = types.bool;
default = true;
description = "
Whether you use PostgreSQL service for your storage back-end.
6 changes: 6 additions & 0 deletions nixos/modules/services/networking/ssh/lshd.nix
Original file line number Diff line number Diff line change
@@ -54,21 +54,25 @@ in
};

syslog = mkOption {
type = types.bool;
default = true;
description = ''Whether to enable syslog output.'';
};

passwordAuthentication = mkOption {
type = types.bool;
default = true;
description = ''Whether to enable password authentication.'';
};

publicKeyAuthentication = mkOption {
type = types.bool;
default = true;
description = ''Whether to enable public key authentication.'';
};

rootLogin = mkOption {
type = types.bool;
default = false;
description = ''Whether to enable remote root login.'';
};
@@ -90,11 +94,13 @@ in
};

tcpForwarding = mkOption {
type = types.bool;
default = true;
description = ''Whether to enable TCP/IP forwarding.'';
};

x11Forwarding = mkOption {
type = types.bool;
default = true;
description = ''Whether to enable X11 forwarding.'';
};
1 change: 1 addition & 0 deletions nixos/modules/services/networking/tcpcrypt.nix
Original file line number Diff line number Diff line change
@@ -15,6 +15,7 @@ in
options = {

networking.tcpcrypt.enable = mkOption {
type = types.bool;
default = false;
description = ''
Whether to enable opportunistic TCP encryption. If the other end
1 change: 1 addition & 0 deletions nixos/modules/services/networking/wicd.nix
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@ with lib;
options = {

networking.wicd.enable = mkOption {
type = types.bool;
default = false;
description = ''
Whether to start <command>wicd</command>. Wired and
1 change: 1 addition & 0 deletions nixos/modules/services/web-servers/jboss/default.nix
Original file line number Diff line number Diff line change
@@ -60,6 +60,7 @@ in
};

useJK = mkOption {
type = types.bool;
default = false;
description = "Whether to use to connector to the Apache HTTP server";
};
3 changes: 2 additions & 1 deletion nixos/modules/services/x11/display-managers/gdm.nix
Original file line number Diff line number Diff line change
@@ -93,16 +93,17 @@ in
};

wayland = mkOption {
type = types.bool;
default = true;
description = ''
Allow GDM to run on Wayland instead of Xserver.
Note to enable Wayland with Nvidia you need to
enable the <option>nvidiaWayland</option>.
'';
type = types.bool;
};

nvidiaWayland = mkOption {
type = types.bool;
default = false;
description = ''
Whether to allow wayland to be used with the proprietary
7 changes: 1 addition & 6 deletions nixos/modules/services/x11/hardware/digimend.nix
Original file line number Diff line number Diff line change
@@ -16,12 +16,7 @@ in

services.xserver.digimend = {

enable = mkOption {
default = false;
description = ''
Whether to enable the digimend drivers for Huion/XP-Pen/etc. tablets.
'';
};
enable = mkEnableOption "the digimend drivers for Huion/XP-Pen/etc. tablets";

};

11 changes: 3 additions & 8 deletions nixos/modules/virtualisation/xen-dom0.nix
Original file line number Diff line number Diff line change
@@ -103,6 +103,7 @@ in
};

forwardDns = mkOption {
type = types.bool;
default = false;
description = ''
If set to <literal>true</literal>, the DNS queries from the
@@ -135,14 +136,8 @@ in
};
};

virtualisation.xen.trace =
mkOption {
default = false;
description =
''
Enable Xen tracing.
'';
};
virtualisation.xen.trace = mkEnableOption "Xen tracing";

};


14 changes: 7 additions & 7 deletions pkgs/applications/networking/cluster/docker-machine/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file was generated by go2nix.
{ stdenv, buildGoPackage, fetchFromGitHub }:
{ stdenv, buildGoPackage, fetchFromGitHub, installShellFiles }:

buildGoPackage rec {
pname = "machine";
@@ -14,13 +14,13 @@ buildGoPackage rec {
sha256 = "0xxzxi5v7ji9j2k7kxhi0ah91lfa7b9rg3nywgx0lkv8dlgp8kmy";
};

postInstall = ''
mkdir -p \
$bin/share/bash-completion/completions/ \
$bin/share/zsh/site-functions/
nativeBuildInputs = [ installShellFiles ];

cp go/src/github.com/docker/machine/contrib/completion/bash/* $bin/share/bash-completion/completions/
cp go/src/github.com/docker/machine/contrib/completion/zsh/* $bin/share/zsh/site-functions/
postInstall = ''
pushd go/src/${goPackagePath}/contrib/completion
installShellCompletion --bash bash/*
installShellCompletion --zsh zsh/*
popd
'';

meta = with stdenv.lib; {
7 changes: 4 additions & 3 deletions pkgs/applications/networking/cluster/kompose/default.nix
Original file line number Diff line number Diff line change
@@ -15,9 +15,10 @@ buildGoPackage rec {

nativeBuildInputs = [ installShellFiles ];
postInstall = ''
$bin/bin/kompose completion bash > kompose.bash
$bin/bin/kompose completion zsh > kompose.zsh
installShellCompletion kompose.{bash,zsh}
for shell in bash zsh; do
$bin/bin/kompose completion $shell > kompose.$shell
installShellCompletion kompose.$shell
done
'';

meta = with lib; {
12 changes: 6 additions & 6 deletions pkgs/applications/networking/cluster/kops/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, lib, buildGoPackage, fetchFromGitHub, go-bindata }:
{ stdenv, lib, buildGoPackage, fetchFromGitHub, go-bindata, installShellFiles }:

let
goPackagePath = "k8s.io/kops";
@@ -18,7 +18,7 @@ let
inherit sha256;
};

nativeBuildInputs = [ go-bindata ];
nativeBuildInputs = [ go-bindata installShellFiles ];
subPackages = [ "cmd/kops" ];

buildFlagsArray = ''
@@ -33,10 +33,10 @@ let
'';

postInstall = ''
mkdir -p $bin/share/bash-completion/completions
mkdir -p $bin/share/zsh/site-functions
$bin/bin/kops completion bash > $bin/share/bash-completion/completions/kops
$bin/bin/kops completion zsh > $bin/share/zsh/site-functions/_kops
for shell in bash zsh; do
$bin/bin/kops completion $shell > kops.$shell
installShellCompletion kops.$shell
done
'';

meta = with stdenv.lib; {
12 changes: 7 additions & 5 deletions pkgs/applications/networking/cluster/stern/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, lib, buildPackages, buildGoPackage, fetchFromGitHub }:
{ stdenv, lib, buildPackages, buildGoPackage, fetchFromGitHub, installShellFiles }:

let isCrossBuild = stdenv.hostPlatform != stdenv.buildPlatform; in

@@ -17,13 +17,15 @@ buildGoPackage rec {

goDeps = ./deps.nix;

nativeBuildInputs = [ installShellFiles ];

postInstall =
let stern = if isCrossBuild then buildPackages.stern else "$bin"; in
''
mkdir -p $bin/share/bash-completion/completions
${stern}/bin/stern --completion bash > $bin/share/bash-completion/completions/stern
mkdir -p $bin/share/zsh/site-functions
${stern}/bin/stern --completion zsh > $bin/share/zsh/site-functions/_stern
for shell in bash zsh; do
${stern}/bin/stern --completion $shell > stern.$shell
installShellCompletion stern.$shell
done
'';

meta = with lib; {
Loading