nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

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

sourcehut.mansrht: 0.16.5 -> 0.18.1

(cherry picked from commit 0b0a6d144cdde0ca43aa070be33388c5ed65505b)

authored by

Marcin Serwin and committed by
github-actions[bot]
2caf79ff 8d5cacf2

+46 -16
+21 -16
pkgs/applications/version-management/sourcehut/man.nix
··· 9 unzip, 10 pip, 11 pythonOlder, 12 - setuptools, 13 }: 14 15 let 16 - version = "0.16.5"; 17 gqlgen = import ./fix-gqlgen-trimpath.nix { 18 inherit unzip; 19 - gqlgenVersion = "0.17.43"; 20 }; 21 22 src = fetchFromSourcehut { 23 owner = "~sircmpwn"; 24 repo = "man.sr.ht"; 25 rev = version; 26 - hash = "sha256-JFMtif2kIE/fs5PNcQtkJikAFNszgZTU7BG/8fTncTI="; 27 }; 28 29 mansrht-api = buildGoModule ( 30 { 31 - inherit src version; 32 pname = "mansrht-api"; 33 modRoot = "api"; 34 - vendorHash = "sha256-GVN11nEJqIHh8MtKvIXe4zcUwJph9eTSkJ2R+ufD+ic="; 35 } 36 // gqlgen 37 ); 38 in 39 buildPythonPackage rec { 40 - inherit src version; 41 pname = "mansrht"; 42 pyproject = true; 43 44 disabled = pythonOlder "3.7"; 45 46 - postPatch = '' 47 - substituteInPlace Makefile --replace "all: api" "" 48 - ''; 49 - 50 nativeBuildInputs = [ 51 pip 52 - setuptools 53 ]; 54 55 propagatedBuildInputs = [ ··· 55 pygit2 56 ]; 57 58 - preBuild = '' 59 - export PKGVER=${version} 60 - export SRHT_PATH=${srht}/${python.sitePackages}/srht 61 ''; 62 63 postInstall = '' 64 - ln -s ${mansrht-api}/bin/api $out/bin/mansrht-api 65 ''; 66 67 pythonImportsCheck = [ "mansrht" ];
··· 9 unzip, 10 pip, 11 pythonOlder, 12 + setuptools-scm, 13 }: 14 15 let 16 + version = "0.18.1"; 17 gqlgen = import ./fix-gqlgen-trimpath.nix { 18 inherit unzip; 19 + gqlgenVersion = "0.17.64"; 20 }; 21 + 22 + patches = [ ./patches/core-go-update/man/patch-deps.patch ]; 23 24 src = fetchFromSourcehut { 25 owner = "~sircmpwn"; 26 repo = "man.sr.ht"; 27 rev = version; 28 + hash = "sha256-c2xFC1pmOSGGMP4RVOmgFogj7CY2kHrADsWsm7M5ZK4="; 29 }; 30 31 mansrht-api = buildGoModule ( 32 { 33 + inherit src version patches; 34 pname = "mansrht-api"; 35 modRoot = "api"; 36 + vendorHash = "sha256-jKNHZrFydp3+cD8MR2izzE8bi4H2uT/7+x/wmPkEIIc="; 37 } 38 // gqlgen 39 ); 40 in 41 buildPythonPackage rec { 42 + inherit src version patches; 43 pname = "mansrht"; 44 pyproject = true; 45 46 disabled = pythonOlder "3.7"; 47 48 nativeBuildInputs = [ 49 pip 50 + setuptools-scm 51 ]; 52 53 propagatedBuildInputs = [ ··· 57 pygit2 58 ]; 59 60 + env = { 61 + PKGVER = version; 62 + SRHT_PATH = "${srht}/${python.sitePackages}/srht"; 63 + PREFIX = placeholder "out"; 64 + }; 65 + 66 + postBuild = '' 67 + make SASSC_INCLUDE=-I${srht}/share/sourcehut/scss/ all-share 68 ''; 69 70 postInstall = '' 71 + ln -s ${mansrht-api}/bin/api $out/bin/man.sr.ht-api 72 + install -Dm644 schema.sql $out/share/sourcehut/man.sr.ht-schema.sql 73 + make install-share 74 ''; 75 76 pythonImportsCheck = [ "mansrht" ];
+25
pkgs/applications/version-management/sourcehut/patches/core-go-update/man/patch-deps.patch
···
··· 1 + diff --git a/go.mod b/go.mod 2 + index 21c7713..8f158a2 100644 3 + --- a/go.mod 4 + +++ b/go.mod 5 + @@ -5,7 +5,7 @@ go 1.22.5 6 + toolchain go1.24.0 7 + 8 + require ( 9 + - git.sr.ht/~sircmpwn/core-go v0.0.0-20250304085405-cbf919e45b5b 10 + + git.sr.ht/~sircmpwn/core-go v0.0.0-20250311210855-6ba248d8be1b 11 + git.sr.ht/~sircmpwn/dowork v0.0.0-20241216125407-2b00aa42322c 12 + github.com/99designs/gqlgen v0.17.64 13 + github.com/vektah/gqlparser/v2 v2.5.23 14 + diff --git a/go.sum b/go.sum 15 + index f67a555..a366a60 100644 16 + --- a/go.sum 17 + +++ b/go.sum 18 + @@ -1,5 +1,7 @@ 19 + git.sr.ht/~sircmpwn/core-go v0.0.0-20250304085405-cbf919e45b5b h1:d76irAQODAtl5G1zmKfwf60544fyGz74YT9k+7yYVxc= 20 + git.sr.ht/~sircmpwn/core-go v0.0.0-20250304085405-cbf919e45b5b/go.mod h1:UHi3kXwgfZ/DIbMu5LeqZb3KrY/jsdUDefc8+3YWC3c= 21 + +git.sr.ht/~sircmpwn/core-go v0.0.0-20250311210855-6ba248d8be1b h1:UuQxEJrh/NNdmaVcK34opEz7ypXnPyxeRcT7Aigz+7E= 22 + +git.sr.ht/~sircmpwn/core-go v0.0.0-20250311210855-6ba248d8be1b/go.mod h1:UHi3kXwgfZ/DIbMu5LeqZb3KrY/jsdUDefc8+3YWC3c= 23 + git.sr.ht/~sircmpwn/dowork v0.0.0-20241216125407-2b00aa42322c h1:v2opuaN0C5ZpuCifRNR9ZQ8V9IG+Ja80otK1MFj5RnI= 24 + git.sr.ht/~sircmpwn/dowork v0.0.0-20241216125407-2b00aa42322c/go.mod h1:8neHEO3503w/rNtttnR0JFpQgM/GFhaafVwvkPsFIDw= 25 + git.sr.ht/~sircmpwn/getopt v0.0.0-20191230200459-23622cc906b3/go.mod h1:wMEGFFFNuPos7vHmWXfszqImLppbc0wEhh6JBfJIUgw=