packages/searxng: convert to pin
This commit is contained in:
parent
0c8d518b5d
commit
2d4885c9bd
3 changed files with 16 additions and 8 deletions
|
@ -70,6 +70,7 @@ in
|
||||||
in pullDownPackages [ "httpcore" "httpx" "httpx-socks" "h2" "python-socks" "socksio" ]);
|
in pullDownPackages [ "httpcore" "httpx" "httpx-socks" "h2" "python-socks" "socksio" ]);
|
||||||
in pkgs.callPackage ./web-apps/searxng rec {
|
in pkgs.callPackage ./web-apps/searxng rec {
|
||||||
python3Packages = scope;
|
python3Packages = scope;
|
||||||
|
inherit pins;
|
||||||
};
|
};
|
||||||
|
|
||||||
sips = pkgs.callPackage ./servers/sips { };
|
sips = pkgs.callPackage ./servers/sips { };
|
||||||
|
|
|
@ -1,5 +1,17 @@
|
||||||
{
|
{
|
||||||
"pins": {
|
"pins": {
|
||||||
|
"searxng": {
|
||||||
|
"type": "Git",
|
||||||
|
"repository": {
|
||||||
|
"type": "GitHub",
|
||||||
|
"owner": "searxng",
|
||||||
|
"repo": "searxng"
|
||||||
|
},
|
||||||
|
"branch": "master",
|
||||||
|
"revision": "fddbc5ed00ded5f28ef3b643686e7c177a3a75ce",
|
||||||
|
"url": "https://github.com/searxng/searxng/archive/fddbc5ed00ded5f28ef3b643686e7c177a3a75ce.tar.gz",
|
||||||
|
"hash": "0z17cxsvkgrinrd2rrkvwynnn6m1k2ljgw4nmply6zri48fifypj"
|
||||||
|
},
|
||||||
"uptime-kuma": {
|
"uptime-kuma": {
|
||||||
"type": "GitRelease",
|
"type": "GitRelease",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
@ -1,17 +1,12 @@
|
||||||
{ lib, nixosTests, python3, python3Packages, fetchFromGitHub, fetchpatch }:
|
{ lib, nixosTests, python3, python3Packages, fetchFromGitHub, fetchpatch, pins }:
|
||||||
|
|
||||||
with python3Packages;
|
with python3Packages;
|
||||||
|
|
||||||
toPythonModule (buildPythonApplication rec {
|
toPythonModule (buildPythonApplication rec {
|
||||||
pname = "searxng";
|
pname = "searxng";
|
||||||
version = "20220524";
|
version = "1.0.0pre_${builtins.substring 0 7 pins.searxng.revision}";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = pins.searxng;
|
||||||
owner = "searxng";
|
|
||||||
repo = "searxng";
|
|
||||||
rev = "fddbc5ed00ded5f28ef3b643686e7c177a3a75ce";
|
|
||||||
sha256 = "sha256-8noXHSIxf+PprZbwJ6mYoRprred75ixatjG/uXVnJ3w=";
|
|
||||||
};
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i 's/==.*$//' requirements.txt
|
sed -i 's/==.*$//' requirements.txt
|
||||||
|
|
Loading…
Reference in a new issue