sourcehut.gitsrht: include api module
This commit is contained in:
parent
3fd4e765d0
commit
8518ef1687
|
@ -41,9 +41,18 @@ let
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
buildAPI = src: buildGoModule {
|
||||||
|
inherit src version;
|
||||||
|
pname = "gitsrht-api";
|
||||||
|
|
||||||
|
vendorSha256 = "1drrs3wrvhw8lp0877zkbx8gnbxly3fsqynww9vplajkx62z5m3a";
|
||||||
|
|
||||||
|
doCheck = false;
|
||||||
|
};
|
||||||
in buildPythonPackage rec {
|
in buildPythonPackage rec {
|
||||||
inherit version;
|
|
||||||
pname = "gitsrht";
|
pname = "gitsrht";
|
||||||
|
inherit version;
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = "https://git.sr.ht/~sircmpwn/git.sr.ht";
|
url = "https://git.sr.ht/~sircmpwn/git.sr.ht";
|
||||||
|
@ -70,6 +79,7 @@ in buildPythonPackage rec {
|
||||||
cp ${buildDispatcher "${src}/gitsrht-dispatch"}/bin/gitsrht-dispatch $out/bin/gitsrht-dispatch
|
cp ${buildDispatcher "${src}/gitsrht-dispatch"}/bin/gitsrht-dispatch $out/bin/gitsrht-dispatch
|
||||||
cp ${buildKeys "${src}/gitsrht-keys"}/bin/gitsrht-keys $out/bin/gitsrht-keys
|
cp ${buildKeys "${src}/gitsrht-keys"}/bin/gitsrht-keys $out/bin/gitsrht-keys
|
||||||
cp ${buildUpdateHook "${src}/gitsrht-update-hook"}/bin/gitsrht-update-hook $out/bin/gitsrht-update-hook
|
cp ${buildUpdateHook "${src}/gitsrht-update-hook"}/bin/gitsrht-update-hook $out/bin/gitsrht-update-hook
|
||||||
|
cp ${buildAPI "${src}/api"}/bin/api $out/bin/gitsrht-api
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
|
Loading…
Reference in New Issue