sourcehut.mansrht: 0.15.26 -> 0.16.1

Signed-off-by: Christoph Heiss <christoph@c8h4.io>

+19 -2
+19 -2
pkgs/applications/version-management/sourcehut/man.nix
··· 1 { lib 2 , fetchFromSourcehut 3 , buildPythonPackage 4 , srht 5 , pygit2 6 , python 7 }: 8 9 buildPythonPackage rec { 10 pname = "mansrht"; 11 - version = "0.15.26"; 12 13 src = fetchFromSourcehut { 14 owner = "~sircmpwn"; 15 repo = "man.sr.ht"; 16 rev = version; 17 - sha256 = "sha256-5xZH6DrTXMdWd26OGICp7lZ/QDjACIa7zNUJHB7jzGo="; 18 }; 19 20 propagatedBuildInputs = [ 21 srht 22 pygit2 ··· 25 preBuild = '' 26 export PKGVER=${version} 27 export SRHT_PATH=${srht}/${python.sitePackages}/srht 28 ''; 29 30 pythonImportsCheck = [ "mansrht" ];
··· 1 { lib 2 , fetchFromSourcehut 3 + , buildGoModule 4 , buildPythonPackage 5 , srht 6 , pygit2 7 , python 8 + , unzip 9 }: 10 11 buildPythonPackage rec { 12 pname = "mansrht"; 13 + version = "0.16.1"; 14 15 src = fetchFromSourcehut { 16 owner = "~sircmpwn"; 17 repo = "man.sr.ht"; 18 rev = version; 19 + sha256 = "sha256-94G9/Kzt1gaQ2CaXtsJYCB6W5OTdn27XhVdpNJ9a5cE="; 20 }; 21 22 + postPatch = '' 23 + substituteInPlace Makefile --replace "all: api" "" 24 + ''; 25 + 26 + mansrht-api = buildGoModule ({ 27 + inherit src version; 28 + pname = "mansrht-api"; 29 + modRoot = "api"; 30 + vendorHash = "sha256-K5EmZ4U+xItTR85+SCwhwg5KUGLkKHo9Nr2pkvmJpfo="; 31 + } // import ./fix-gqlgen-trimpath.nix { inherit unzip; gqlgenVersion = "0.17.20"; }); 32 + 33 propagatedBuildInputs = [ 34 srht 35 pygit2 ··· 38 preBuild = '' 39 export PKGVER=${version} 40 export SRHT_PATH=${srht}/${python.sitePackages}/srht 41 + ''; 42 + 43 + postInstall = '' 44 + ln -s ${mansrht-api}/bin/api $out/bin/mansrht-api 45 ''; 46 47 pythonImportsCheck = [ "mansrht" ];