summary refs log tree commit diff
path: root/pkgs/applications/office
diff options
context:
space:
mode:
authorYongun Seong <nevivurn@nevi.dev>2023-01-08 02:47:22 +0900
committerYongun Seong <nevivurn@nevi.dev>2023-01-08 02:50:56 +0900
commit2b86dd96768dee4c246006cdf67cfcc59e2a0a40 (patch)
tree22eae172a79466026e33bc3aa0fe21f8e418087d /pkgs/applications/office
parent298add347c2bbce14020fcb54051f517c391196b (diff)
downloadnixpkgs-2b86dd96768dee4c246006cdf67cfcc59e2a0a40.tar
nixpkgs-2b86dd96768dee4c246006cdf67cfcc59e2a0a40.tar.gz
nixpkgs-2b86dd96768dee4c246006cdf67cfcc59e2a0a40.tar.bz2
nixpkgs-2b86dd96768dee4c246006cdf67cfcc59e2a0a40.tar.lz
nixpkgs-2b86dd96768dee4c246006cdf67cfcc59e2a0a40.tar.xz
nixpkgs-2b86dd96768dee4c246006cdf67cfcc59e2a0a40.tar.zst
nixpkgs-2b86dd96768dee4c246006cdf67cfcc59e2a0a40.zip
gnucash: exec Finance::Quote helpers directly
Diffstat (limited to 'pkgs/applications/office')
-rw-r--r--pkgs/applications/office/gnucash/0004-exec-fq-helpers.patch23
-rw-r--r--pkgs/applications/office/gnucash/default.nix2
2 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/applications/office/gnucash/0004-exec-fq-helpers.patch b/pkgs/applications/office/gnucash/0004-exec-fq-helpers.patch
new file mode 100644
index 00000000000..28982236549
--- /dev/null
+++ b/pkgs/applications/office/gnucash/0004-exec-fq-helpers.patch
@@ -0,0 +1,23 @@
+diff --git a/gnucash/price-quotes.scm b/gnucash/price-quotes.scm
+index 8e3ff255f..a6b805fa5 100644
+--- a/gnucash/price-quotes.scm
++++ b/gnucash/price-quotes.scm
+@@ -44,7 +44,7 @@
+     (define (start-program)
+       (set! program
+         (gnc-spawn-process-async
+-         (list "perl" "-w" gnc:*finance-quote-check*) #t)))
++         (list gnc:*finance-quote-check*) #t)))
+ 
+     (define (get-sources)
+       (when program
+@@ -119,7 +119,7 @@
+ 
+     (define (start-quoter)
+       (set! quoter
+-        (gnc-spawn-process-async (list "perl" "-w" gnc:*finance-quote-helper*) #t)))
++        (gnc-spawn-process-async (list gnc:*finance-quote-helper*) #t)))
+ 
+     (define (get-quotes)
+       (when quoter
+
diff --git a/pkgs/applications/office/gnucash/default.nix b/pkgs/applications/office/gnucash/default.nix
index 9e5294c4b00..700a9442996 100644
--- a/pkgs/applications/office/gnucash/default.nix
+++ b/pkgs/applications/office/gnucash/default.nix
@@ -72,6 +72,8 @@ stdenv.mkDerivation rec {
     ./0002-disable-gnc-fq-update.patch
     # this patch prevents the building of gnucash-valgrind
     ./0003-remove-valgrind.patch
+    # this patch makes gnucash exec the Finance::Quote helpers directly
+    ./0004-exec-fq-helpers.patch
   ];
 
   # this needs to be an environment variable and not a cmake flag to suppress