From b7ab8a708590c8a50a08ef5e63de1a9ed9a3e9bf Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 8 Jan 2023 23:36:42 +0100 Subject: [PATCH] packages/searxng: show version in application --- packages/web-apps/searxng/default.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/packages/web-apps/searxng/default.nix b/packages/web-apps/searxng/default.nix index 4f45883..56ff6d0 100644 --- a/packages/web-apps/searxng/default.nix +++ b/packages/web-apps/searxng/default.nix @@ -1,10 +1,13 @@ { lib, nixosTests, python3, python3Packages, npins, pins }: -with python3Packages; +let + pin = pins.searxng; + repo = pin.repository; +in with python3Packages; -toPythonModule (buildPythonApplication { +toPythonModule (buildPythonApplication rec { pname = "searxng"; - version = "1.0.0pre_${builtins.substring 0 7 pins.searxng.revision}"; + version = "1.0.0pre_${builtins.substring 0 7 pin.revision}"; src = npins.mkSource pins.searxng; @@ -13,6 +16,12 @@ toPythonModule (buildPythonApplication { -e 's/==.*$//' \ -e 's/fasttext-predict/fasttext/g' \ requirements.txt + cat >searx/version_frozen.py <