sourcehut.hubsrht: init at 0.10.6

This commit is contained in:
Edmund Wu 2020-06-22 20:05:34 -04:00 committed by Jon
parent 151911db03
commit 222a7a3a7a
3 changed files with 35 additions and 2 deletions

View file

@ -16,6 +16,7 @@ let
dispatchsrht = self.callPackage ./dispatch.nix { };
gitsrht = self.callPackage ./git.nix { };
hgsrht = self.callPackage ./hg.nix { };
hubsrht = self.callPackage ./hub.nix { };
listssrht = self.callPackage ./lists.nix { };
mansrht = self.callPackage ./man.nix { };
metasrht = self.callPackage ./meta.nix { };
@ -31,6 +32,7 @@ in with python.pkgs; recurseIntoAttrs {
dispatchsrht = toPythonApplication dispatchsrht;
gitsrht = toPythonApplication gitsrht;
hgsrht = toPythonApplication hgsrht;
hubsrht = toPythonApplication hubsrht;
listssrht = toPythonApplication listssrht;
mansrht = toPythonApplication mansrht;
metasrht = toPythonApplication metasrht;

View file

@ -0,0 +1,31 @@
{ stdenv, fetchgit, buildPythonPackage
, python
, srht }:
buildPythonPackage rec {
pname = "hubsrht";
version = "0.10.6";
src = fetchgit {
url = "https://git.sr.ht/~sircmpwn/hub.sr.ht";
rev = version;
sha256 = "N54GOk9pxwoF1Wv0ZSe4kIAPBLl/zHrSu8OlKBkacVg=";
};
nativeBuildInputs = srht.nativeBuildInputs;
propagatedBuildInputs = [
srht
];
preBuild = ''
export PKGVER=${version}
'';
meta = with stdenv.lib; {
homepage = "https://git.sr.ht/~sircmpwn/hub.sr.ht";
description = "Project hub service for the sr.ht network";
license = licenses.agpl3;
maintainers = with maintainers; [ eadwu ];
};
}

View file

@ -40,8 +40,8 @@ update_version() {
git commit -m "$1: $version_old -> $version"
}
services=( "srht" "buildsrht" "dispatchsrht" "gitsrht" "hgsrht" "listssrht" "mansrht" "metasrht"
"pastesrht" "todosrht" "scmsrht" )
services=( "srht" "buildsrht" "dispatchsrht" "gitsrht" "hgsrht" "hubsrht" "listssrht" "mansrht"
"metasrht" "pastesrht" "todosrht" "scmsrht" )
# Whether or not a specific service is requested
if [ -n "$1" ]; then