diff options
author | Edmund Wu <fangkazuto@gmail.com> | 2019-01-21 21:01:52 -0500 |
---|---|---|
committer | Edmund Wu <fangkazuto@gmail.com> | 2019-08-13 11:25:52 -0400 |
commit | a2ca6ef26f31c806652ea36b04f95ae01eb701eb (patch) | |
tree | 814756908e18131952ce4bf382522366728e13ee /pkgs/applications/version-management/sourcehut/man.nix | |
parent | f006c88d82267952b745cca94c55c94f8970c75d (diff) |
sourcehut: init
builds-sr-ht: init at 0.45.13
dispatch-sr-ht: init at 0.11.0
git-sr-ht: init at 0.32.3
hg-sr-ht: init at 0.13.0
lists-sr-ht: init at 0.36.3
man-sr-ht: init at 0.12.4
meta-sr-ht: init at 0.34.3
paste-sr-ht: init at 0.5.1
todo-sr-ht: init at 0.46.8
Diffstat (limited to 'pkgs/applications/version-management/sourcehut/man.nix')
-rw-r--r-- | pkgs/applications/version-management/sourcehut/man.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/sourcehut/man.nix b/pkgs/applications/version-management/sourcehut/man.nix new file mode 100644 index 000000000000..a0198cb52cf5 --- /dev/null +++ b/pkgs/applications/version-management/sourcehut/man.nix @@ -0,0 +1,37 @@ +{ stdenv, fetchgit, buildPythonPackage +, python +, srht, pygit2 }: + +buildPythonPackage rec { + pname = "mansrht"; + version = "0.12.4"; + + src = fetchgit { + url = "https://git.sr.ht/~sircmpwn/man.sr.ht"; + rev = version; + sha256 = "1csnw71yh5zw7l17xmmxyskwiqbls0ynbbjrg45y5k1i3622mhiy"; + }; + + patches = [ + ./use-srht-path.patch + ]; + + nativeBuildInputs = srht.nativeBuildInputs; + + propagatedBuildInputs = [ + srht + pygit2 + ]; + + preBuild = '' + export PKGVER=${version} + export SRHT_PATH=${srht}/${python.sitePackages}/srht + ''; + + meta = with stdenv.lib; { + homepage = https://git.sr.ht/~sircmpwn/man.sr.ht; + description = "Wiki service for the sr.ht network"; + license = licenses.agpl3; + maintainers = with maintainers; [ eadwu ]; + }; +} |