nixos-config/patches/202363.patch
Charlotte Van Petegem 53c93b3fe2
Add autojump fix patch
2022-11-23 08:35:45 +01:00

25 lines
940 B
Diff

From f6b4b52a17e47707e9ab6b252c50b663781f34c1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= <joerg@thalheim.io>
Date: Tue, 22 Nov 2022 16:19:35 +0100
Subject: [PATCH] autojump: fixup python shebang after cross fix
we need python also in buildInputs for the shebang to get fixed properly
---
pkgs/tools/misc/autojump/default.nix | 2 ++
1 file changed, 2 insertions(+)
diff --git a/pkgs/tools/misc/autojump/default.nix b/pkgs/tools/misc/autojump/default.nix
index 844e3ba99ea9cf..424497ee182b76 100644
--- a/pkgs/tools/misc/autojump/default.nix
+++ b/pkgs/tools/misc/autojump/default.nix
@@ -11,8 +11,10 @@ stdenv.mkDerivation rec {
sha256 = "1rgpsh70manr2dydna9da4x7p8ahii7dgdgwir5fka340n1wrcws";
};
+ buildInputs = [ python3 ];
nativeBuildInputs = [ python3 ];
dontBuild = true;
+ strictDeps = true;
installPhase = ''
python ./install.py -d "$out" -p "" -z "$out/share/zsh/site-functions/"