From 25028cb750f9224ace34c53b33d6f50b17e5a935 Mon Sep 17 00:00:00 2001 From: wisut hantanong Date: Thu, 6 Jul 2017 18:53:25 +0700 Subject: [PATCH] add btrfs-progs bash-completion, fix #25793 --- pkgs/tools/filesystems/btrfs-progs/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/tools/filesystems/btrfs-progs/default.nix b/pkgs/tools/filesystems/btrfs-progs/default.nix index 525aa2fec28..d9b01eb5239 100644 --- a/pkgs/tools/filesystems/btrfs-progs/default.nix +++ b/pkgs/tools/filesystems/btrfs-progs/default.nix @@ -21,6 +21,10 @@ stdenv.mkDerivation rec { # This should be fine on all platforms so apply universally patchPhase = "sed -i s/-O1/-O2/ configure"; + postInstall = '' + install -v -m 444 -D btrfs-completion $out/etc/bash_completion.d/btrfs + ''; + meta = with stdenv.lib; { description = "Utilities for the btrfs filesystem"; homepage = https://btrfs.wiki.kernel.org/;