lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 22.05-pre 65 lines 1.3 kB view raw
1{ lib 2, fetchFromSourcehut 3, buildPythonPackage 4, buildGoModule 5, srht 6, redis 7, celery 8, pyyaml 9, markdown 10, ansi2html 11, python 12}: 13let 14 version = "0.66.7"; 15 16 buildWorker = src: buildGoModule { 17 inherit src version; 18 pname = "builds-sr-ht-worker"; 19 20 vendorSha256 = "sha256-giOaldV46aBqXyFH/cQVsbUr6Rb4VMhbBO86o48tRZY="; 21 }; 22in 23buildPythonPackage rec { 24 inherit version; 25 pname = "buildsrht"; 26 27 src = fetchFromSourcehut { 28 owner = "~sircmpwn"; 29 repo = "builds.sr.ht"; 30 rev = version; 31 sha256 = "sha256-2MLs/DOXHjEYarXDVUcPZe3o0fmZbzVxn528SE72lhM="; 32 }; 33 34 nativeBuildInputs = srht.nativeBuildInputs; 35 36 propagatedBuildInputs = [ 37 srht 38 redis 39 celery 40 pyyaml 41 markdown 42 ansi2html 43 ]; 44 45 preBuild = '' 46 export PKGVER=${version} 47 export SRHT_PATH=${srht}/${python.sitePackages}/srht 48 ''; 49 50 postInstall = '' 51 mkdir -p $out/lib 52 mkdir -p $out/bin/builds.sr.ht 53 54 cp -r images $out/lib 55 cp contrib/submit_image_build $out/bin/builds.sr.ht 56 cp ${buildWorker "${src}/worker"}/bin/worker $out/bin/builds.sr.ht-worker 57 ''; 58 59 meta = with lib; { 60 homepage = "https://git.sr.ht/~sircmpwn/builds.sr.ht"; 61 description = "Continuous integration service for the sr.ht network"; 62 license = licenses.agpl3; 63 maintainers = with maintainers; [ eadwu ]; 64 }; 65}