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