packages/searxng: convert to pin

This commit is contained in:
Max Headroom 2022-05-26 21:39:50 +02:00
parent 0c8d518b5d
commit 2d4885c9bd
3 changed files with 16 additions and 8 deletions

View file

@ -70,6 +70,7 @@ in
in pullDownPackages [ "httpcore" "httpx" "httpx-socks" "h2" "python-socks" "socksio" ]);
in pkgs.callPackage ./web-apps/searxng rec {
python3Packages = scope;
inherit pins;
};
sips = pkgs.callPackage ./servers/sips { };

View file

@ -1,5 +1,17 @@
{
"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": {
"type": "GitRelease",
"repository": {

View file

@ -1,17 +1,12 @@
{ lib, nixosTests, python3, python3Packages, fetchFromGitHub, fetchpatch }:
{ lib, nixosTests, python3, python3Packages, fetchFromGitHub, fetchpatch, pins }:
with python3Packages;
toPythonModule (buildPythonApplication rec {
pname = "searxng";
version = "20220524";
version = "1.0.0pre_${builtins.substring 0 7 pins.searxng.revision}";
src = fetchFromGitHub {
owner = "searxng";
repo = "searxng";
rev = "fddbc5ed00ded5f28ef3b643686e7c177a3a75ce";
sha256 = "sha256-8noXHSIxf+PprZbwJ6mYoRprred75ixatjG/uXVnJ3w=";
};
src = pins.searxng;
postPatch = ''
sed -i 's/==.*$//' requirements.txt