From b8f7c48ad7a4d55112123d361bbc1fd8e4d87abe Mon Sep 17 00:00:00 2001 From: Timo Kaufmann Date: Wed, 25 Mar 2020 15:01:12 +0100 Subject: [PATCH 1/2] home-manager: install bash completions --- pkgs/tools/package-management/home-manager/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/tools/package-management/home-manager/default.nix b/pkgs/tools/package-management/home-manager/default.nix index 3fb14f99faf66..79e87066b50d6 100644 --- a/pkgs/tools/package-management/home-manager/default.nix +++ b/pkgs/tools/package-management/home-manager/default.nix @@ -28,6 +28,9 @@ stdenv.mkDerivation rec { --subst-var-by gnused "${gnused}" \ --subst-var-by less "${less}" \ --subst-var-by HOME_MANAGER_PATH '${src}' + + install -D -m755 home-manager/completion.bash \ + "$out/share/bash-completion/completions/home-manager" ''; meta = with stdenv.lib; { From f2df5db02f973877f6d331c46173a3daa3cbd5e0 Mon Sep 17 00:00:00 2001 From: Timo Kaufmann Date: Wed, 25 Mar 2020 15:01:31 +0100 Subject: [PATCH 2/2] home-manger: extend platforms to unix To match the upstream default.nix. --- pkgs/tools/package-management/home-manager/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/package-management/home-manager/default.nix b/pkgs/tools/package-management/home-manager/default.nix index 79e87066b50d6..793c7cfae32d1 100644 --- a/pkgs/tools/package-management/home-manager/default.nix +++ b/pkgs/tools/package-management/home-manager/default.nix @@ -36,7 +36,7 @@ stdenv.mkDerivation rec { meta = with stdenv.lib; { description = "A user environment configurator"; maintainers = with maintainers; [ rycee ]; - platforms = platforms.linux; + platforms = platforms.unix; license = licenses.mit; };