Loading nixos/modules/services/misc/sourcehut/default.nix +5 −0 Original line number Diff line number Diff line Loading @@ -1316,6 +1316,11 @@ in (import ./service.nix "paste" { inherit configIniOfService; port = 5011; extraServices.pastesrht-api = { serviceConfig.Restart = "always"; serviceConfig.RestartSec = "5s"; serviceConfig.ExecStart = "${pkgs.sourcehut.pastesrht}/bin/pastesrht-api -b ${cfg.listenAddress}:${toString (cfg.paste.port + 100)}"; }; }) (import ./service.nix "todo" { Loading pkgs/applications/version-management/sourcehut/paste.nix +19 −2 Original line number Diff line number Diff line { lib , fetchFromSourcehut , buildGoModule , buildPythonPackage , srht , pyyaml , python , unzip }: buildPythonPackage rec { pname = "pastesrht"; let version = "0.15.1"; src = fetchFromSourcehut { Loading @@ -17,6 +18,17 @@ buildPythonPackage rec { sha256 = "sha256-IUFX7/V8AWqN+iuisLAyu7lMNIUCzSMoOfcZiYJTnrM="; }; pastesrht-api = buildGoModule ({ inherit src version; pname = "pastesrht-api"; modRoot = "api"; vendorSha256 = "sha256-jiE73PUPSHxtWp7XBdH4mJw95pXmZjCl4tk2wQUf2M4"; } // import ./fix-gqlgen-trimpath.nix { inherit unzip; }); in buildPythonPackage rec { inherit src version; pname = "pastesrht"; postPatch = '' substituteInPlace Makefile \ --replace "all: api" "" Loading @@ -32,6 +44,11 @@ buildPythonPackage rec { export SRHT_PATH=${srht}/${python.sitePackages}/srht ''; postInstall = '' mkdir -p $out/bin ln -s ${pastesrht-api}/bin/api $out/bin/pastesrht-api ''; pythonImportsCheck = [ "pastesrht" ]; meta = with lib; { Loading Loading
nixos/modules/services/misc/sourcehut/default.nix +5 −0 Original line number Diff line number Diff line Loading @@ -1316,6 +1316,11 @@ in (import ./service.nix "paste" { inherit configIniOfService; port = 5011; extraServices.pastesrht-api = { serviceConfig.Restart = "always"; serviceConfig.RestartSec = "5s"; serviceConfig.ExecStart = "${pkgs.sourcehut.pastesrht}/bin/pastesrht-api -b ${cfg.listenAddress}:${toString (cfg.paste.port + 100)}"; }; }) (import ./service.nix "todo" { Loading
pkgs/applications/version-management/sourcehut/paste.nix +19 −2 Original line number Diff line number Diff line { lib , fetchFromSourcehut , buildGoModule , buildPythonPackage , srht , pyyaml , python , unzip }: buildPythonPackage rec { pname = "pastesrht"; let version = "0.15.1"; src = fetchFromSourcehut { Loading @@ -17,6 +18,17 @@ buildPythonPackage rec { sha256 = "sha256-IUFX7/V8AWqN+iuisLAyu7lMNIUCzSMoOfcZiYJTnrM="; }; pastesrht-api = buildGoModule ({ inherit src version; pname = "pastesrht-api"; modRoot = "api"; vendorSha256 = "sha256-jiE73PUPSHxtWp7XBdH4mJw95pXmZjCl4tk2wQUf2M4"; } // import ./fix-gqlgen-trimpath.nix { inherit unzip; }); in buildPythonPackage rec { inherit src version; pname = "pastesrht"; postPatch = '' substituteInPlace Makefile \ --replace "all: api" "" Loading @@ -32,6 +44,11 @@ buildPythonPackage rec { export SRHT_PATH=${srht}/${python.sitePackages}/srht ''; postInstall = '' mkdir -p $out/bin ln -s ${pastesrht-api}/bin/api $out/bin/pastesrht-api ''; pythonImportsCheck = [ "pastesrht" ]; meta = with lib; { Loading