mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
40 lines
838 B
Nix
40 lines
838 B
Nix
{ stdenv, fetchhg, buildPythonPackage
|
|
, python
|
|
, srht, hglib, scmsrht, unidiff }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hgsrht";
|
|
version = "0.26.0";
|
|
|
|
src = fetchhg {
|
|
url = "https://hg.sr.ht/~sircmpwn/hg.sr.ht";
|
|
rev = version;
|
|
sha256 = "06sgd7pzjabwv66i4v5abqdnx955lqgjmbxxqkhhyq9k45jhlzci";
|
|
};
|
|
|
|
patches = [
|
|
./use-srht-path.patch
|
|
];
|
|
|
|
nativeBuildInputs = srht.nativeBuildInputs;
|
|
|
|
propagatedBuildInputs = [
|
|
srht
|
|
hglib
|
|
scmsrht
|
|
unidiff
|
|
];
|
|
|
|
preBuild = ''
|
|
export PKGVER=${version}
|
|
export SRHT_PATH=${srht}/${python.sitePackages}/srht
|
|
'';
|
|
|
|
meta = with stdenv.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 ];
|
|
};
|
|
}
|