git-extras: fix lazy bash-completion loading when loaded through XDG_DATA_DIRS

This commit is contained in:
Sandro Jäckel 2022-07-08 13:53:39 +02:00
parent 3014367d9e
commit bf67d1e09d
No known key found for this signature in database
GPG Key ID: B1763F8651144063

View File

@ -1,4 +1,10 @@
{ lib, stdenv, fetchFromGitHub, unixtools, which }:
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, unixtools
, which
}:
stdenv.mkDerivation rec {
pname = "git-extras";
@ -11,6 +17,13 @@ stdenv.mkDerivation rec {
sha256 = "sha256-Cn7IXMzgg0QIsNIHz+X14Gkmop0UbsSBlGlGkmg71ek=";
};
patches = [
(fetchpatch {
url = "https://github.com/tj/git-extras/commit/66961ad4911cd0f1a908530f2b725bacc7d198e1.patch";
sha256 = "sha256-iC1lUf/NmuAPADxDWZ2JScHIMgYjIaR0edlGpq0qCOc=";
})
];
postPatch = ''
patchShebangs check_dependencies.sh
'';