sourcehut.mansrht: 0.15.26 -> 0.16.1
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
parent
b0fb4dc3a9
commit
30054093c9
@ -1,22 +1,35 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, fetchFromSourcehut
|
, fetchFromSourcehut
|
||||||
|
, buildGoModule
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, srht
|
, srht
|
||||||
, pygit2
|
, pygit2
|
||||||
, python
|
, python
|
||||||
|
, unzip
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "mansrht";
|
pname = "mansrht";
|
||||||
version = "0.15.26";
|
version = "0.16.1";
|
||||||
|
|
||||||
src = fetchFromSourcehut {
|
src = fetchFromSourcehut {
|
||||||
owner = "~sircmpwn";
|
owner = "~sircmpwn";
|
||||||
repo = "man.sr.ht";
|
repo = "man.sr.ht";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-5xZH6DrTXMdWd26OGICp7lZ/QDjACIa7zNUJHB7jzGo=";
|
sha256 = "sha256-94G9/Kzt1gaQ2CaXtsJYCB6W5OTdn27XhVdpNJ9a5cE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace Makefile --replace "all: api" ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
mansrht-api = buildGoModule ({
|
||||||
|
inherit src version;
|
||||||
|
pname = "mansrht-api";
|
||||||
|
modRoot = "api";
|
||||||
|
vendorHash = "sha256-K5EmZ4U+xItTR85+SCwhwg5KUGLkKHo9Nr2pkvmJpfo=";
|
||||||
|
} // import ./fix-gqlgen-trimpath.nix { inherit unzip; gqlgenVersion = "0.17.20"; });
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
srht
|
srht
|
||||||
pygit2
|
pygit2
|
||||||
@ -27,6 +40,10 @@ buildPythonPackage rec {
|
|||||||
export SRHT_PATH=${srht}/${python.sitePackages}/srht
|
export SRHT_PATH=${srht}/${python.sitePackages}/srht
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
ln -s ${mansrht-api}/bin/api $out/bin/mansrht-api
|
||||||
|
'';
|
||||||
|
|
||||||
pythonImportsCheck = [ "mansrht" ];
|
pythonImportsCheck = [ "mansrht" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user