nixpkgs/pkgs/applications/version-management/sourcehut/hg.nix

42 lines
779 B
Nix
Raw Normal View History

2021-04-18 03:15:43 +00:00
{ lib
, fetchhg
, buildPythonPackage
, srht
, hglib
, scmsrht
, unidiff
, python
}:
buildPythonPackage rec {
pname = "hgsrht";
2021-09-18 17:34:41 +00:00
version = "0.27.6";
src = fetchhg {
url = "https://hg.sr.ht/~sircmpwn/hg.sr.ht";
rev = version;
2021-09-18 17:34:41 +00:00
sha256 = "ibijvKjS4CiWTYrO6Qdh3RkD0EUE7BY8wjdPwrD6vkA=";
};
nativeBuildInputs = srht.nativeBuildInputs;
propagatedBuildInputs = [
srht
hglib
scmsrht
unidiff
];
preBuild = ''
export PKGVER=${version}
2021-04-18 03:15:43 +00:00
export SRHT_PATH=${srht}/${python.sitePackages}/srht
'';
meta = with lib; {
homepage = "https://git.sr.ht/~sircmpwn/hg.sr.ht";
description = "Mercurial repository hosting service for the sr.ht network";
license = licenses.agpl3;
maintainers = with maintainers; [ eadwu ];
};
}