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 <