fix(bbuddy): quantity unit conversion

This commit is contained in:
arcnmx 2024-08-27 14:50:35 -07:00
parent 67108c0d41
commit 5975a2b7a8
2 changed files with 10 additions and 0 deletions

View file

@ -19,6 +19,8 @@ in {
settings = { settings = {
EXTERNAL_GROCY_URL = "https://grocy.${config.networking.domain}"; EXTERNAL_GROCY_URL = "https://grocy.${config.networking.domain}";
DISABLE_AUTHENTICATION = true; DISABLE_AUTHENTICATION = true;
USE_GROCY_QU_FACTOR = true;
SHOW_STOCK_ON_SCAN = true;
}; };
nginxPhpSettings.extraConfig = '' nginxPhpSettings.extraConfig = ''
include ${config.sops.secrets.barcodebuddy-fastcgi-params.path}; include ${config.sops.secrets.barcodebuddy-fastcgi-params.path};

View file

@ -1,6 +1,7 @@
{ {
stdenvNoCC, stdenvNoCC,
fetchFromGitHub, fetchFromGitHub,
fetchpatch,
lib, lib,
... ...
}: let }: let
@ -17,6 +18,13 @@ in
inherit (barcodebuddy.locked) repo owner rev; inherit (barcodebuddy.locked) repo owner rev;
sha256 = barcodebuddy.locked.narHash; sha256 = barcodebuddy.locked.narHash;
}; };
patches = [
(fetchpatch {
name = "barcodebuddy-quantity.patch";
url = "https://github.com/gensokyo-zone/barcodebuddy/commit/c46416b40540da0bef4841c2ddf884fa7dd152fe.diff";
sha256 = "sha256-PPVZ996Tm+/YkzECFsy1PJQMCjk3+i9jQuOawYzXRgU=";
})
];
skipConfigure = true; skipConfigure = true;
skipBuild = true; skipBuild = true;