sourcehut.gitsrht: 0.61.10 -> 0.72.8

authored by

Thomas Bereknyei and committed by
tomberek
a8dec0e5 9636d25a

+28 -24
+28 -24
pkgs/applications/version-management/sourcehut/git.nix
··· 1 - { lib, fetchgit, buildPythonPackage 1 + { lib 2 + , fetchFromSourcehut 3 + , buildPythonPackage 2 4 , buildGoModule 3 - , srht, minio, pygit2, scmsrht }: 4 - 5 + , python 6 + , srht 7 + , pygit2 8 + , scmsrht 9 + }: 5 10 let 6 - version = "0.61.10"; 11 + version = "0.72.8"; 12 + 13 + src = fetchFromSourcehut { 14 + owner = "~sircmpwn"; 15 + repo = "git.sr.ht"; 16 + rev = version; 17 + sha256 = "sha256-AB2uzajO5PtcpJfbOOTfuDFM6is5K39v3AZJ1hShRNc="; 18 + }; 7 19 8 20 buildShell = src: buildGoModule { 9 21 inherit src version; 10 22 pname = "gitsrht-shell"; 11 - vendorSha256 = "1abyv2s5l3bs0iylpgyj3jri2hh1iy8fiadxm7g6l2vl58h0b9ba"; 23 + vendorSha256 = "sha256-aqUFICp0C2reqb2p6JCPAUIRsxzSv0t9BHoNWrTYfqk="; 12 24 }; 13 25 14 26 buildDispatcher = src: buildGoModule { 15 27 inherit src version; 16 28 pname = "gitsrht-dispatcher"; 17 - vendorSha256 = "1lzkf13m54pq0gnn3bcxc80nfg76hgck4l8q8jpaicrsiwgcyrd9"; 29 + vendorSha256 = "sha256-qWXPHo86s6iuRBhRMtmD5jxnAWKdrWHtA/iSUkdw89M="; 18 30 }; 19 31 20 32 buildKeys = src: buildGoModule { ··· 29 41 vendorSha256 = "0fwzqpjv8x5y3w3bfjd0x0cvqjjak23m0zj88hf32jpw49xmjkih"; 30 42 }; 31 43 32 - buildAPI = src: buildGoModule { 33 - inherit src version; 34 - pname = "gitsrht-api"; 35 - vendorSha256 = "0d6kmsbsgj2q5nddx4w675zbsiarffj9vqplwvqk7dwz4id2wnif"; 36 - }; 37 - in buildPythonPackage rec { 38 - pname = "gitsrht"; 39 - inherit version; 44 + updateHook = buildUpdateHook "${src}/gitsrht-update-hook"; 40 45 41 - src = fetchgit { 42 - url = "https://git.sr.ht/~sircmpwn/git.sr.ht"; 43 - rev = version; 44 - sha256 = "0g7aj5wlns0m3kf2aajqjjb5fwk5vbb8frrkdfp4118235h3xcqy"; 45 - }; 46 + in 47 + buildPythonPackage rec { 48 + inherit src version; 49 + pname = "gitsrht"; 46 50 47 51 nativeBuildInputs = srht.nativeBuildInputs; 48 52 49 53 propagatedBuildInputs = [ 50 54 srht 51 - minio 52 55 pygit2 53 56 scmsrht 54 57 ]; 55 58 56 59 preBuild = '' 57 60 export PKGVER=${version} 61 + export SRHT_PATH=${srht}/${python.sitePackages}/srht 58 62 ''; 59 63 60 64 postInstall = '' ··· 62 66 cp ${buildShell "${src}/gitsrht-shell"}/bin/gitsrht-shell $out/bin/gitsrht-shell 63 67 cp ${buildDispatcher "${src}/gitsrht-dispatch"}/bin/gitsrht-dispatch $out/bin/gitsrht-dispatch 64 68 cp ${buildKeys "${src}/gitsrht-keys"}/bin/gitsrht-keys $out/bin/gitsrht-keys 65 - cp ${buildUpdateHook "${src}/gitsrht-update-hook"}/bin/gitsrht-update-hook $out/bin/gitsrht-update-hook 66 - cp ${buildAPI "${src}/api"}/bin/api $out/bin/gitsrht-api 69 + cp ${updateHook}/bin/gitsrht-update-hook $out/bin/gitsrht-update-hook 67 70 ''; 68 - 69 - dontUseSetuptoolsCheck = true; 71 + passthru = { 72 + inherit updateHook; 73 + }; 70 74 71 75 meta = with lib; { 72 76 homepage = "https://git.sr.ht/~sircmpwn/git.sr.ht";