Skip to content

Commit f65cd08

Browse files
committed
gradia: 1.11.3 -> 1.12.0
1 parent c9a8b5e commit f65cd08

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

pkgs/by-name/gr/gradia/package.nix

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,20 @@
1818
webp-pixbuf-loader,
1919
libsoup_3,
2020
bash,
21+
glib-networking,
22+
tesseract,
2123
nix-update-script,
2224
}:
2325
python3Packages.buildPythonApplication (finalAttrs: {
2426
pname = "gradia";
25-
version = "1.11.3";
27+
version = "1.12.0";
2628
pyproject = false;
2729

2830
src = fetchFromGitHub {
2931
owner = "AlexanderVanhee";
3032
repo = "Gradia";
31-
rev = "472a970e10c3a85f9db938719ebba121321c1d90";
32-
hash = "sha256-2PSpFmojAIyDNx5yYrLE3CjO/q5iBArmIRikxCGW1HM=";
33+
tag = "v${finalAttrs.version}";
34+
hash = "sha256-iYqMuqq2AmrdNMa7dkDUGg1+gCG7wL/rDEdWAPfcQnw=";
3335
};
3436

3537
nativeBuildInputs = [
@@ -49,8 +51,15 @@ python3Packages.buildPythonApplication (finalAttrs: {
4951
libportal-gtk4
5052
libsoup_3
5153
bash
54+
glib-networking
55+
tesseract
5256
];
5357

58+
postPatch = ''
59+
substituteInPlace meson.build \
60+
--replace "/app/bin/tesseract" "${lib.getExe tesseract}"
61+
'';
62+
5463
dependencies = with python3Packages; [
5564
pygobject3
5665
pillow

0 commit comments

Comments
 (0)