python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / security / pass / extension-dir.patch
blob028da31c461752dc29fe05c20f7fd8241a87b790
1 diff --git a/Makefile b/Makefile
2 index eac2291..1b1df0a 100644
3 --- a/Makefile
4 +++ b/Makefile
5 @@ -46,12 +46,12 @@ install: install-common
6 @install -v -d "$(DESTDIR)$(LIBDIR)/password-store" && install -m 0644 -v "$(PLATFORMFILE)" "$(DESTDIR)$(LIBDIR)/password-store/platform.sh"
7 @install -v -d "$(DESTDIR)$(LIBDIR)/password-store/extensions"
8 @install -v -d "$(DESTDIR)$(BINDIR)/"
9 - @trap 'rm -f src/.pass' EXIT; sed 's:.*PLATFORM_FUNCTION_FILE.*:source "$(LIBDIR)/password-store/platform.sh":;s:^SYSTEM_EXTENSION_DIR=.*:SYSTEM_EXTENSION_DIR="$(LIBDIR)/password-store/extensions":' src/password-store.sh > src/.pass && \
10 + @trap 'rm -f src/.pass' EXIT; sed 's:.*PLATFORM_FUNCTION_FILE.*:source "$(LIBDIR)/password-store/platform.sh":;' src/password-store.sh > src/.pass && \
11 install -v -d "$(DESTDIR)$(BINDIR)/" && install -m 0755 -v src/.pass "$(DESTDIR)$(BINDIR)/pass"
12 else
13 install: install-common
14 @install -v -d "$(DESTDIR)$(LIBDIR)/password-store/extensions"
15 - @trap 'rm -f src/.pass' EXIT; sed '/PLATFORM_FUNCTION_FILE/d;s:^SYSTEM_EXTENSION_DIR=.*:SYSTEM_EXTENSION_DIR="$(LIBDIR)/password-store/extensions":' src/password-store.sh > src/.pass && \
16 + @trap 'rm -f src/.pass' EXIT; sed '/PLATFORM_FUNCTION_FILE/d;' src/password-store.sh > src/.pass && \
17 install -v -d "$(DESTDIR)$(BINDIR)/" && install -m 0755 -v src/.pass "$(DESTDIR)$(BINDIR)/pass"
18 endif
20 diff --git a/src/password-store.sh b/src/password-store.sh
21 index 68551a4..2f3b5b7 100755
22 --- a/src/password-store.sh
23 +++ b/src/password-store.sh
24 @@ -656,7 +656,7 @@ cmd_extension_or_show() {
28 -SYSTEM_EXTENSION_DIR=""
29 +SYSTEM_EXTENSION_DIR="${SYSTEM_EXTENSION_DIR:-@out@/lib/password-store/extensions}"
30 cmd_extension() {
31 check_sneaky_paths "$1"
32 local user_extension system_extension extension