sourcehut.buildsrht: 0.63.4 -> 0.66.7

authored by

Thomas Bereknyei and committed by
tomberek
1383d557 385dc32f

+21 -11
+21 -11
pkgs/applications/version-management/sourcehut/builds.nix
··· 1 - { lib, fetchgit, buildPythonPackage 1 + { lib 2 + , fetchFromSourcehut 3 + , buildPythonPackage 2 4 , buildGoModule 3 - , srht, redis, celery, pyyaml, markdown }: 4 - 5 + , srht 6 + , redis 7 + , celery 8 + , pyyaml 9 + , markdown 10 + , ansi2html 11 + , python 12 + }: 5 13 let 6 - version = "0.63.4"; 14 + version = "0.66.7"; 7 15 8 16 buildWorker = src: buildGoModule { 9 17 inherit src version; 10 18 pname = "builds-sr-ht-worker"; 11 19 12 - vendorSha256 = "1sbcjp93gb0c4p7dd1gjhmhwr1pygxvrrzp954j2fvxvi38w6571"; 20 + vendorSha256 = "sha256-giOaldV46aBqXyFH/cQVsbUr6Rb4VMhbBO86o48tRZY="; 13 21 }; 14 - in buildPythonPackage rec { 22 + in 23 + buildPythonPackage rec { 15 24 inherit version; 16 25 pname = "buildsrht"; 17 26 18 - src = fetchgit { 19 - url = "https://git.sr.ht/~sircmpwn/builds.sr.ht"; 27 + src = fetchFromSourcehut { 28 + owner = "~sircmpwn"; 29 + repo = "builds.sr.ht"; 20 30 rev = version; 21 - sha256 = "1w3rb685nqg2h0k3ag681svc400si9r1gy0sdim3wa2qh8glbqni"; 31 + sha256 = "sha256-2MLs/DOXHjEYarXDVUcPZe3o0fmZbzVxn528SE72lhM="; 22 32 }; 23 33 24 34 nativeBuildInputs = srht.nativeBuildInputs; ··· 29 39 celery 30 40 pyyaml 31 41 markdown 42 + ansi2html 32 43 ]; 33 44 34 45 preBuild = '' 35 46 export PKGVER=${version} 47 + export SRHT_PATH=${srht}/${python.sitePackages}/srht 36 48 ''; 37 49 38 50 postInstall = '' ··· 43 55 cp contrib/submit_image_build $out/bin/builds.sr.ht 44 56 cp ${buildWorker "${src}/worker"}/bin/worker $out/bin/builds.sr.ht-worker 45 57 ''; 46 - 47 - dontUseSetuptoolsCheck = true; 48 58 49 59 meta = with lib; { 50 60 homepage = "https://git.sr.ht/~sircmpwn/builds.sr.ht";