summary refs log tree commit diff
path: root/pkgs/tools/misc/skim
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-04-07 04:20:00 -0500
committerMario Rodas <marsam@users.noreply.github.com>2020-04-07 04:20:00 -0500
commite4f9166a24296e358477337affb7450a6c2d12f5 (patch)
tree2fc6e1be5502b8fc6451d4c47c2aa6c7135ceaca /pkgs/tools/misc/skim
parentdbc8a54ce5c29884091414e91204a7f0a11a298f (diff)
downloadnixpkgs-e4f9166a24296e358477337affb7450a6c2d12f5.tar
nixpkgs-e4f9166a24296e358477337affb7450a6c2d12f5.tar.gz
nixpkgs-e4f9166a24296e358477337affb7450a6c2d12f5.tar.bz2
nixpkgs-e4f9166a24296e358477337affb7450a6c2d12f5.tar.lz
nixpkgs-e4f9166a24296e358477337affb7450a6c2d12f5.tar.xz
nixpkgs-e4f9166a24296e358477337affb7450a6c2d12f5.tar.zst
nixpkgs-e4f9166a24296e358477337affb7450a6c2d12f5.zip
skim: fix bash completion
Diffstat (limited to 'pkgs/tools/misc/skim')
-rw-r--r--pkgs/tools/misc/skim/default.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/tools/misc/skim/default.nix b/pkgs/tools/misc/skim/default.nix
index 7c906ecddf9..fca2d35e37c 100644
--- a/pkgs/tools/misc/skim/default.nix
+++ b/pkgs/tools/misc/skim/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchFromGitHub, rustPlatform }:
+{ stdenv, fetchFromGitHub, rustPlatform, fetchpatch }:
 
 rustPlatform.buildRustPackage rec {
   pname = "skim";
@@ -15,7 +15,15 @@ rustPlatform.buildRustPackage rec {
 
   cargoSha256 = "14p4ppbl2mak21jvxpbd1b28jaw2629bc8kv7875cdzy3ksxyji3";
 
-  patchPhase = ''
+  patches = [
+    # Fix bash completion. Remove with the next release
+    (fetchpatch {
+      url = "https://github.com/lotabout/skim/commit/60ca3484090c2e73a1de396500c73a6ad6e0bde9.patch";
+      sha256 = "07nibr13vmxscbwavrckhcbsvxwkpan4a6ml0qfr1ny36xbc6y3p";
+    })
+  ];
+
+  postPatch = ''
     sed -i -e "s|expand('<sfile>:h:h')|'$out'|" plugin/skim.vim
   '';