Merge pull request #286993 from christoph-heiss/srht-updates-next-round

sourcehut: update all components

authored by tomberek and committed by GitHub 6e60c852 5e1f0770

+136 -113
+1 -1
nixos/modules/services/misc/sourcehut/default.nix
··· 1370 1370 ]; 1371 1371 1372 1372 meta.doc = ./default.md; 1373 - meta.maintainers = with maintainers; [ tomberek nessdoor ]; 1373 + meta.maintainers = with maintainers; [ tomberek nessdoor christoph-heiss ]; 1374 1374 }
+10 -9
pkgs/applications/version-management/sourcehut/builds.nix
··· 16 16 , setuptools 17 17 }: 18 18 let 19 - version = "0.86.10"; 19 + version = "0.89.13"; 20 + gqlgen = import ./fix-gqlgen-trimpath.nix { inherit unzip; gqlgenVersion = "0.17.39"; }; 20 21 21 22 src = fetchFromSourcehut { 22 23 owner = "~sircmpwn"; 23 24 repo = "builds.sr.ht"; 24 25 rev = version; 25 - hash = "sha256-frwJgwJst2/NWd8VR0KbsVwm8JfWuekkY2oIIAdh3Fw="; 26 + hash = "sha256-JpRVRzuHB6cgk/qW1j4zF8/K1xwz3J4nZhijmz5kVWU="; 26 27 }; 27 28 28 29 buildsrht-api = buildGoModule ({ 29 30 inherit src version; 30 31 pname = "buildsrht-api"; 31 32 modRoot = "api"; 32 - vendorHash = "sha256-2khk7j22KON4MsuvFUNKSUpouJtVIOxE0hkh63iaxZ4="; 33 - } // import ./fix-gqlgen-trimpath.nix { inherit unzip; gqlgenVersion = "0.17.29"; }); 33 + vendorHash = "sha256-kTqoUfFEoNdDDzVNJ7XIbH7tbsl5MdBL+/UDHFv7D+A="; 34 + } // gqlgen); 34 35 35 - buildsrht-worker = buildGoModule { 36 + buildsrht-worker = buildGoModule ({ 36 37 inherit src version; 37 - sourceRoot = "${src.name}/worker"; 38 38 pname = "buildsrht-worker"; 39 - vendorHash = "sha256-obdaeRwMhuiCV2kVwDo1c+rU/hmsbiL1IgAf7AcIpoc="; 40 - }; 39 + modRoot = "worker"; 40 + vendorHash = "sha256-kTqoUfFEoNdDDzVNJ7XIbH7tbsl5MdBL+/UDHFv7D+A="; 41 + } // gqlgen); 41 42 in 42 43 buildPythonPackage rec { 43 44 inherit src version; ··· 88 89 homepage = "https://git.sr.ht/~sircmpwn/builds.sr.ht"; 89 90 description = "Continuous integration service for the sr.ht network"; 90 91 license = licenses.agpl3Only; 91 - maintainers = with maintainers; [ eadwu ]; 92 + maintainers = with maintainers; [ eadwu christoph-heiss ]; 92 93 }; 93 94 }
+3 -3
pkgs/applications/version-management/sourcehut/core.nix
··· 28 28 29 29 buildPythonPackage rec { 30 30 pname = "srht"; 31 - version = "0.69.15"; 31 + version = "0.71.5"; 32 32 pyproject = true; 33 33 34 34 disabled = pythonOlder "3.7"; ··· 37 37 owner = "~sircmpwn"; 38 38 repo = "core.sr.ht"; 39 39 rev = version; 40 - sha256 = "sha256-T9yewweqnWL3IW5PHGyAcsIWCGn1ayK2rwrHVukYpgE="; 40 + hash = "sha256-YIoKOiTi/9X4bSiG+GvnwzvKYhbfywrv/dTjxaJOOTQ="; 41 41 fetchSubmodules = true; 42 42 }; 43 43 ··· 89 89 homepage = "https://git.sr.ht/~sircmpwn/srht"; 90 90 description = "Core modules for sr.ht"; 91 91 license = licenses.bsd3; 92 - maintainers = with maintainers; [ eadwu ]; 92 + maintainers = with maintainers; [ eadwu christoph-heiss ]; 93 93 }; 94 94 }
+1 -1
pkgs/applications/version-management/sourcehut/fix-gqlgen-trimpath.nix
··· 1 1 { unzip 2 - , gqlgenVersion ? "0.17.20" 2 + , gqlgenVersion ? "0.17.42" 3 3 }: 4 4 { 5 5 overrideModAttrs = (_: {
+18 -18
pkgs/applications/version-management/sourcehut/git.nix
··· 13 13 , setuptools 14 14 }: 15 15 let 16 - version = "0.84.2"; 16 + version = "0.85.7"; 17 + gqlgen = import ./fix-gqlgen-trimpath.nix { inherit unzip; }; 17 18 18 19 src = fetchFromSourcehut { 19 20 owner = "~sircmpwn"; 20 21 repo = "git.sr.ht"; 21 22 rev = version; 22 - sha256 = "sha256-sAkTsQlWtNDQ5vAhA2EeOvuJcj9A6AG8pgDyIKtr65s="; 23 + hash = "sha256-jkESrrVE+0O2g64zzPOpqhl8DpvmosQvuF0s6Xd+lbM="; 23 24 }; 24 25 25 26 gitApi = buildGoModule ({ 26 27 inherit src version; 27 28 pname = "gitsrht-api"; 28 29 modRoot = "api"; 29 - vendorHash = "sha256-LAYp0zgosZnFEbtxzjuTH9++0lbxhACr705HqXJz3D0="; 30 - } // import ./fix-gqlgen-trimpath.nix { inherit unzip; }); 30 + vendorHash = "sha256-yWVpldqwpEZmeI18tvdIgof8GgSFEP70c8T5XDkryn0="; 31 + } // gqlgen); 31 32 32 - gitDispatch = buildGoModule { 33 + gitDispatch = buildGoModule ({ 33 34 inherit src version; 34 35 pname = "gitsrht-dispatch"; 35 36 modRoot = "gitsrht-dispatch"; 36 - vendorHash = "sha256-EDvSZ3/g0xDSohrsAIpNhk+F0yy8tbnTW/3tURTonMc="; 37 + vendorHash = "sha256-yWVpldqwpEZmeI18tvdIgof8GgSFEP70c8T5XDkryn0="; 37 38 38 39 postPatch = '' 39 40 substituteInPlace gitsrht-dispatch/main.go \ 40 41 --replace /var/log/gitsrht-dispatch /var/log/sourcehut/gitsrht-dispatch 41 42 ''; 42 - }; 43 + } // gqlgen); 43 44 44 - gitKeys = buildGoModule { 45 + gitKeys = buildGoModule ({ 45 46 inherit src version; 46 47 pname = "gitsrht-keys"; 47 48 modRoot = "gitsrht-keys"; 48 - vendorHash = "sha256-9pojS69HCKVHUceyOpGtv9ewcxFD4WsOVsEzkmWJkF4="; 49 + vendorHash = "sha256-yWVpldqwpEZmeI18tvdIgof8GgSFEP70c8T5XDkryn0="; 49 50 50 51 postPatch = '' 51 52 substituteInPlace gitsrht-keys/main.go \ 52 53 --replace /var/log/gitsrht-keys /var/log/sourcehut/gitsrht-keys 53 54 ''; 54 - }; 55 + } // gqlgen); 55 56 56 - gitShell = buildGoModule { 57 + gitShell = buildGoModule ({ 57 58 inherit src version; 58 59 pname = "gitsrht-shell"; 59 60 modRoot = "gitsrht-shell"; 60 - vendorHash = "sha256-WqfvSPuVsOHA//86u33atMfeA11+DJhjLmWy8Ivq0NI="; 61 + vendorHash = "sha256-yWVpldqwpEZmeI18tvdIgof8GgSFEP70c8T5XDkryn0="; 61 62 62 63 postPatch = '' 63 64 substituteInPlace gitsrht-shell/main.go \ 64 65 --replace /var/log/gitsrht-shell /var/log/sourcehut/gitsrht-shell 65 66 ''; 66 - }; 67 + } // gqlgen); 67 68 68 - gitUpdateHook = buildGoModule { 69 + gitUpdateHook = buildGoModule ({ 69 70 inherit src version; 70 71 pname = "gitsrht-update-hook"; 71 72 modRoot = "gitsrht-update-hook"; 72 - vendorHash = "sha256-Bc3yPabS2S+qiroHFKrtkII/CfzBDYQ6xWxKHAME+Tc="; 73 + vendorHash = "sha256-yWVpldqwpEZmeI18tvdIgof8GgSFEP70c8T5XDkryn0="; 73 74 74 75 postPatch = '' 75 76 substituteInPlace gitsrht-update-hook/main.go \ 76 77 --replace /var/log/gitsrht-update-hook /var/log/sourcehut/gitsrht-update-hook 77 78 ''; 78 - }; 79 - 79 + } // gqlgen); 80 80 in 81 81 buildPythonPackage rec { 82 82 inherit src version; ··· 122 122 homepage = "https://git.sr.ht/~sircmpwn/git.sr.ht"; 123 123 description = "Git repository hosting service for the sr.ht network"; 124 124 license = licenses.agpl3Only; 125 - maintainers = with maintainers; [ eadwu ]; 125 + maintainers = with maintainers; [ eadwu christoph-heiss ]; 126 126 }; 127 127 }
+18 -13
pkgs/applications/version-management/sourcehut/hg.nix
··· 13 13 , setuptools 14 14 }: 15 15 16 - buildPythonPackage rec { 17 - pname = "hgsrht"; 16 + let 18 17 version = "0.32.4"; 18 + gqlgen = import ./fix-gqlgen-trimpath.nix { inherit unzip; gqlgenVersion = "0.17.20"; }; 19 + 19 20 pyproject = true; 20 21 21 22 disabled = pythonOlder "3.7"; ··· 24 25 owner = "~sircmpwn"; 25 26 repo = "hg.sr.ht"; 26 27 rev = version; 27 - sha256 = "mYkA44c9wy/Iy1h1lXkVpc9gN7rQXFm4T3YBlQ1Dj60="; 28 + hash = "sha256-mYkA44c9wy/Iy1h1lXkVpc9gN7rQXFm4T3YBlQ1Dj60="; 28 29 vc = "hg"; 29 30 }; 30 31 31 - postPatch = '' 32 - substituteInPlace Makefile \ 33 - --replace "all: api hgsrht-keys" "" 34 - 35 - substituteInPlace hgsrht-shell \ 36 - --replace /var/log/hgsrht-shell /var/log/sourcehut/hgsrht-shell 37 - ''; 38 - 39 32 hgsrht-api = buildGoModule ({ 40 33 inherit src version; 41 34 pname = "hgsrht-api"; 42 35 modRoot = "api"; 43 36 vendorHash = "sha256-vuOYpnF3WjA6kOe9MVSuVMhJBQqCmIex+QUBJrP+VDs="; 44 - } // import ./fix-gqlgen-trimpath.nix { inherit unzip; }); 37 + } // gqlgen); 45 38 46 39 hgsrht-keys = buildGoModule { 47 40 inherit src version; ··· 54 47 --replace /var/log/hgsrht-keys /var/log/sourcehut/hgsrht-keys 55 48 ''; 56 49 }; 50 + in 51 + buildPythonPackage rec { 52 + inherit src version; 53 + pname = "hgsrht"; 54 + 55 + postPatch = '' 56 + substituteInPlace Makefile \ 57 + --replace "all: api hgsrht-keys" "" 58 + 59 + substituteInPlace hgsrht-shell \ 60 + --replace /var/log/hgsrht-shell /var/log/sourcehut/hgsrht-shell 61 + ''; 57 62 58 63 nativeBuildInputs = [ 59 64 pip ··· 83 88 homepage = "https://git.sr.ht/~sircmpwn/hg.sr.ht"; 84 89 description = "Mercurial repository hosting service for the sr.ht network"; 85 90 license = licenses.agpl3Only; 86 - maintainers = with maintainers; [ eadwu ]; 91 + maintainers = with maintainers; [ eadwu christoph-heiss ]; 87 92 }; 88 93 }
+18 -14
pkgs/applications/version-management/sourcehut/hub.nix
··· 11 11 , unzip 12 12 }: 13 13 14 - buildPythonPackage rec { 15 - pname = "hubsrht"; 16 - version = "0.17.2"; 17 - pyproject = true; 18 - 19 - disabled = pythonOlder "3.7"; 14 + let 15 + version = "0.17.5"; 16 + gqlgen = import ./fix-gqlgen-trimpath.nix { inherit unzip; gqlgenVersion = "0.17.41"; }; 20 17 21 18 src = fetchFromSourcehut { 22 19 owner = "~sircmpwn"; 23 20 repo = "hub.sr.ht"; 24 21 rev = version; 25 - sha256 = "sha256-A+lvRsPz5EBnM0gB4PJuxSMpELZTrK14ORxDbTKPXWg="; 22 + hash = "sha256-GbBxK3XE+Y6Jiap0Nxa8vk4Kv6IbcdSi4NN59AeKwjA="; 26 23 }; 27 - 28 - postPatch = '' 29 - substituteInPlace Makefile --replace "all: api" "" 30 - ''; 31 24 32 25 hubsrht-api = buildGoModule ({ 33 26 inherit src version; 34 27 pname = "hubsrht-api"; 35 28 modRoot = "api"; 36 - vendorHash = "sha256-K5EmZ4U+xItTR85+SCwhwg5KUGLkKHo9Nr2pkvmJpfo="; 37 - } // import ./fix-gqlgen-trimpath.nix { inherit unzip; }); 29 + vendorHash = "sha256-wmuM0SxQbohTDaU8zmkw1TQTmqhOy1yAl1jRWk6TKL8="; 30 + } // gqlgen); 31 + in 32 + buildPythonPackage rec { 33 + inherit src version; 34 + pname = "hubsrht"; 35 + pyproject = true; 36 + 37 + disabled = pythonOlder "3.7"; 38 + 39 + postPatch = '' 40 + substituteInPlace Makefile --replace "all: api" "" 41 + ''; 38 42 39 43 nativeBuildInputs = [ 40 44 pip ··· 67 71 homepage = "https://git.sr.ht/~sircmpwn/hub.sr.ht"; 68 72 description = "Project hub service for the sr.ht network"; 69 73 license = licenses.agpl3Only; 70 - maintainers = with maintainers; [ eadwu ]; 74 + maintainers = with maintainers; [ eadwu christoph-heiss ]; 71 75 }; 72 76 }
+14 -10
pkgs/applications/version-management/sourcehut/lists.nix
··· 14 14 , setuptools 15 15 }: 16 16 17 - buildPythonPackage rec { 18 - pname = "listssrht"; 19 - version = "0.57.8"; 20 - pyproject = true; 21 - 22 - disabled = pythonOlder "3.7"; 17 + let 18 + version = "0.57.14"; 19 + gqlgen = import ./fix-gqlgen-trimpath.nix { inherit unzip; gqlgenVersion = "0.17.36"; }; 23 20 24 21 src = fetchFromSourcehut { 25 22 owner = "~sircmpwn"; 26 23 repo = "lists.sr.ht"; 27 24 rev = version; 28 - sha256 = "sha256-nQZRSTAyTWxcPHrRVCZ5TgcrNgrlxBFc1vRds0cQwA0="; 25 + hash = "sha256-rzOxlat7Lbgt0Wl6vvnAC+fS3MynFVKFvVdIdxgA5e0="; 29 26 }; 30 27 31 28 listssrht-api = buildGoModule ({ 32 29 inherit src version; 33 30 pname = "listssrht-api"; 34 31 modRoot = "api"; 35 - vendorHash = "sha256-E5Zzft9ANJT/nhhCuenZpdo3t9QYLmA+AyDyrbGectE="; 36 - } // import ./fix-gqlgen-trimpath.nix { inherit unzip; }); 32 + vendorHash = "sha256-OWgrPvXVlvJPcoABP0ZxKzoYFhU44j/I44sBBRbd6KY="; 33 + } // gqlgen); 34 + in 35 + buildPythonPackage rec { 36 + inherit src version; 37 + pname = "listssrht"; 38 + pyproject = true; 39 + 40 + disabled = pythonOlder "3.7"; 37 41 38 42 postPatch = '' 39 43 substituteInPlace Makefile \ ··· 69 73 homepage = "https://git.sr.ht/~sircmpwn/lists.sr.ht"; 70 74 description = "Mailing list service for the sr.ht network"; 71 75 license = licenses.agpl3Only; 72 - maintainers = with maintainers; [ eadwu ]; 76 + maintainers = with maintainers; [ eadwu christoph-heiss ]; 73 77 }; 74 78 }
+18 -14
pkgs/applications/version-management/sourcehut/man.nix
··· 11 11 , setuptools 12 12 }: 13 13 14 - buildPythonPackage rec { 15 - pname = "mansrht"; 16 - version = "0.16.1"; 17 - pyproject = true; 18 - 19 - disabled = pythonOlder "3.7"; 14 + let 15 + version = "0.16.3"; 16 + gqlgen = import ./fix-gqlgen-trimpath.nix { inherit unzip; gqlgenVersion = "0.17.36"; }; 20 17 21 18 src = fetchFromSourcehut { 22 19 owner = "~sircmpwn"; 23 20 repo = "man.sr.ht"; 24 21 rev = version; 25 - sha256 = "sha256-94G9/Kzt1gaQ2CaXtsJYCB6W5OTdn27XhVdpNJ9a5cE="; 22 + hash = "sha256-o1A3LmwH6WgpFqjKyL3UTru9q7TgKdOdbKZfJHR6fCA="; 26 23 }; 27 24 28 - postPatch = '' 29 - substituteInPlace Makefile --replace "all: api" "" 30 - ''; 31 - 32 25 mansrht-api = buildGoModule ({ 33 26 inherit src version; 34 27 pname = "mansrht-api"; 35 28 modRoot = "api"; 36 - vendorHash = "sha256-K5EmZ4U+xItTR85+SCwhwg5KUGLkKHo9Nr2pkvmJpfo="; 37 - } // import ./fix-gqlgen-trimpath.nix { inherit unzip; }); 29 + vendorHash = "sha256-6AzKWytdyuofCFaDEdeO24mv1mtpnQEJydrjVWGY2eU="; 30 + } // gqlgen); 31 + in 32 + buildPythonPackage rec { 33 + inherit src version; 34 + pname = "mansrht"; 35 + pyproject = true; 36 + 37 + disabled = pythonOlder "3.7"; 38 + 39 + postPatch = '' 40 + substituteInPlace Makefile --replace "all: api" "" 41 + ''; 38 42 39 43 nativeBuildInputs = [ 40 44 pip ··· 61 65 homepage = "https://git.sr.ht/~sircmpwn/man.sr.ht"; 62 66 description = "Wiki service for the sr.ht network"; 63 67 license = licenses.agpl3Only; 64 - maintainers = with maintainers; [ eadwu ]; 68 + maintainers = with maintainers; [ eadwu christoph-heiss ]; 65 69 }; 66 70 }
+6 -6
pkgs/applications/version-management/sourcehut/meta.nix
··· 18 18 , setuptools 19 19 }: 20 20 let 21 - version = "0.64.8"; 21 + version = "0.68.5"; 22 + gqlgen = import ./fix-gqlgen-trimpath.nix { inherit unzip; gqlgenVersion = "0.17.36"; }; 22 23 23 24 src = fetchFromSourcehut { 24 25 owner = "~sircmpwn"; 25 26 repo = "meta.sr.ht"; 26 27 rev = version; 27 - hash = "sha256-eiNvoy68PvjZ3iwdeNPjsXJjxAXb2PMF1/HvJquWa/U="; 28 + hash = "sha256-mwUqBzi7nMTZL7uwv7hBjGkO8U3krXXpvfUCaYHgHBU="; 28 29 }; 29 30 30 31 metasrht-api = buildGoModule ({ 31 32 inherit src version; 32 33 pname = "metasrht-api"; 33 34 modRoot = "api"; 34 - vendorHash = "sha256-D3stDSb99uXze49kKZgGrAq5Zmg6hkIzIpsQKlnKVtE="; 35 - } // import ./fix-gqlgen-trimpath.nix { inherit unzip; }); 36 - 35 + vendorHash = "sha256-4T1xnHDjxsIyddA51exNwwz6ZWeuT7N8LBsCJ7c8sRI="; 36 + } // gqlgen); 37 37 in 38 38 buildPythonPackage rec { 39 39 pname = "metasrht"; ··· 80 80 homepage = "https://git.sr.ht/~sircmpwn/meta.sr.ht"; 81 81 description = "Account management service for the sr.ht network"; 82 82 license = licenses.agpl3Only; 83 - maintainers = with maintainers; [ eadwu ]; 83 + maintainers = with maintainers; [ eadwu christoph-heiss ]; 84 84 }; 85 85 }
+4 -4
pkgs/applications/version-management/sourcehut/pages.nix
··· 6 6 7 7 buildGoModule (rec { 8 8 pname = "pagessrht"; 9 - version = "0.13.0"; 9 + version = "0.15.4"; 10 10 11 11 src = fetchFromSourcehut { 12 12 owner = "~sircmpwn"; 13 13 repo = "pages.sr.ht"; 14 14 rev = version; 15 - sha256 = "sha256-vUN6c6cyhcLI8bKrFYKoxlBQ29VS/bowpSfBRmi47wg="; 15 + hash = "sha256-3kdQVIL7xaIPu2elxj1k+4/y75bd+OKP5+VPSniF7w8="; 16 16 }; 17 17 18 18 postPatch = '' ··· 20 20 --replace "all: server" "" 21 21 ''; 22 22 23 - vendorHash = "sha256-GKuHkUqSVBLN3k8YsFtxdmdHFkqKo9YZqDk2GBmbfWo="; 23 + vendorHash = "sha256-DP+6rxjiXzs0RbSuMD20XwO/+v7QXCNgXj2LxZ96lWE="; 24 24 25 25 postInstall = '' 26 26 mkdir -p $out/share/sql/ ··· 31 31 homepage = "https://git.sr.ht/~sircmpwn/pages.sr.ht"; 32 32 description = "Web hosting service for the sr.ht network"; 33 33 license = licenses.agpl3Only; 34 - maintainers = with maintainers; [ eadwu ]; 34 + maintainers = with maintainers; [ eadwu christoph-heiss ]; 35 35 }; 36 36 # There is no ./loaders but this does not cause troubles 37 37 # to go generate
+4 -3
pkgs/applications/version-management/sourcehut/paste.nix
··· 13 13 14 14 let 15 15 version = "0.15.2"; 16 + gqlgen = import ./fix-gqlgen-trimpath.nix { inherit unzip; gqlgenVersion = "0.17.20"; }; 16 17 17 18 src = fetchFromSourcehut { 18 19 owner = "~sircmpwn"; 19 20 repo = "paste.sr.ht"; 20 21 rev = version; 21 - sha256 = "sha256-ZZzcd14Jbo1MfET7B56X/fl9xWXpCJ8TuKrGVgJwZfQ="; 22 + hash = "sha256-ZZzcd14Jbo1MfET7B56X/fl9xWXpCJ8TuKrGVgJwZfQ="; 22 23 }; 23 24 24 25 pastesrht-api = buildGoModule ({ ··· 26 27 pname = "pastesrht-api"; 27 28 modRoot = "api"; 28 29 vendorHash = "sha256-jiE73PUPSHxtWp7XBdH4mJw95pXmZjCl4tk2wQUf2M4="; 29 - } // import ./fix-gqlgen-trimpath.nix { inherit unzip; }); 30 + } // gqlgen); 30 31 in 31 32 buildPythonPackage rec { 32 33 inherit src version; ··· 66 67 homepage = "https://git.sr.ht/~sircmpwn/paste.sr.ht"; 67 68 description = "Ad-hoc text file hosting service for the sr.ht network"; 68 69 license = licenses.agpl3Only; 69 - maintainers = with maintainers; [ eadwu nessdoor ]; 70 + maintainers = with maintainers; [ eadwu nessdoor christoph-heiss ]; 70 71 }; 71 72 }
+2 -2
pkgs/applications/version-management/sourcehut/scm.nix
··· 19 19 owner = "~sircmpwn"; 20 20 repo = "scm.sr.ht"; 21 21 rev = version; 22 - sha256 = "sha256-058dOEYJDY3jtxH1VkV1CFq5CZTkauSnTWg57DCnNtw="; 22 + hash = "sha256-058dOEYJDY3jtxH1VkV1CFq5CZTkauSnTWg57DCnNtw="; 23 23 }; 24 24 25 25 nativeBuildInputs = [ ··· 44 44 homepage = "https://git.sr.ht/~sircmpwn/scm.sr.ht"; 45 45 description = "Shared support code for sr.ht source control services."; 46 46 license = licenses.agpl3Only; 47 - maintainers = with maintainers; [ eadwu ]; 47 + maintainers = with maintainers; [ eadwu christoph-heiss ]; 48 48 }; 49 49 }
+19 -15
pkgs/applications/version-management/sourcehut/todo.nix
··· 12 12 , setuptools 13 13 }: 14 14 15 - buildPythonPackage rec { 16 - pname = "todosrht"; 17 - version = "0.74.6"; 18 - pyproject = true; 19 - 20 - disabled = pythonOlder "3.7"; 15 + let 16 + version = "0.75.6"; 17 + gqlgen = import ./fix-gqlgen-trimpath.nix { inherit unzip; gqlgenVersion = "0.17.36"; }; 21 18 22 19 src = fetchFromSourcehut { 23 20 owner = "~sircmpwn"; 24 21 repo = "todo.sr.ht"; 25 22 rev = version; 26 - sha256 = "sha256-j12pCGfKf6+9R8NOBIrH2V4OuSMuncU6S1AMWFVoHts="; 23 + hash = "sha256-BPJ1M9dX+xNIw++VZ0Si/rjnfI9BY95TE2o+u7JRVAU="; 27 24 }; 28 - 29 - postPatch = '' 30 - substituteInPlace Makefile \ 31 - --replace "all: api" "" 32 - ''; 33 25 34 26 todosrht-api = buildGoModule ({ 35 27 inherit src version; 36 28 pname = "todosrht-api"; 37 29 modRoot = "api"; 38 - vendorHash = "sha256-rvfG5F6ez8UM0dYVhKfzwtb7ZEJlaKMBAfKDbo3Aofc="; 39 - } // import ./fix-gqlgen-trimpath.nix { inherit unzip; }); 30 + vendorHash = "sha256-vTKIJFE8AFR2eZFwG9ba6FWPW02og3ZVcrsqUnOkJIQ="; 31 + } // gqlgen); 32 + in 33 + buildPythonPackage rec { 34 + inherit src version; 35 + pname = "todosrht"; 36 + pyproject = true; 37 + 38 + disabled = pythonOlder "3.7"; 39 + 40 + postPatch = '' 41 + substituteInPlace Makefile \ 42 + --replace "all: api" "" 43 + ''; 40 44 41 45 nativeBuildInputs = [ 42 46 setuptools ··· 69 73 homepage = "https://todo.sr.ht/~sircmpwn/todo.sr.ht"; 70 74 description = "Ticket tracking service for the sr.ht network"; 71 75 license = licenses.agpl3Only; 72 - maintainers = with maintainers; [ eadwu ]; 76 + maintainers = with maintainers; [ eadwu christoph-heiss ]; 73 77 }; 74 78 }