packages/searxng: show version in application
This commit is contained in:
parent
47ac6261ac
commit
b7ab8a7085
1 changed files with 12 additions and 3 deletions
|
@ -1,10 +1,13 @@
|
||||||
{ lib, nixosTests, python3, python3Packages, npins, pins }:
|
{ 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";
|
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;
|
src = npins.mkSource pins.searxng;
|
||||||
|
|
||||||
|
@ -13,6 +16,12 @@ toPythonModule (buildPythonApplication {
|
||||||
-e 's/==.*$//' \
|
-e 's/==.*$//' \
|
||||||
-e 's/fasttext-predict/fasttext/g' \
|
-e 's/fasttext-predict/fasttext/g' \
|
||||||
requirements.txt
|
requirements.txt
|
||||||
|
cat >searx/version_frozen.py <<EOF
|
||||||
|
VERSION_STRING="${version}"
|
||||||
|
VERSION_TAG="${pin.revision}"
|
||||||
|
GIT_URL="https://github.com/${repo.owner}/${repo.repo}"
|
||||||
|
GIT_BRANCH="${pin.branch}"
|
||||||
|
EOF
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
|
|
Loading…
Reference in a new issue