forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
37 lines
914 B
Nix
37 lines
914 B
Nix
{ lib, stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, dulwich
|
|
, isPy3k
|
|
, fetchpatch
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hg-git";
|
|
version = "0.8.12";
|
|
disabled = isPy3k;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "13hbm0ki6s88r6p65ibvrbxnskinzdz0m9gsshb8s571p91ymfjn";
|
|
};
|
|
|
|
propagatedBuildInputs = [ dulwich ];
|
|
|
|
# Needs patch to work with Mercurial 4.8
|
|
# https://bitbucket.org/durin42/hg-git/issues/264/unexpected-keyword-argument-createopts-hg
|
|
patches =
|
|
fetchpatch {
|
|
url = "https://bitbucket.org/rsalmaso/hg-git/commits/a778506fd4be0bf1afa75755f6ee9260fa234a0f/raw";
|
|
sha256 = "12r4qzbc5xcqwv0kvf8g4wjji7n45421zkbf6i75vyi4nl6n4j15";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Push and pull from a Git server using Mercurial";
|
|
homepage = "http://hg-git.github.com/";
|
|
maintainers = with maintainers; [ koral ];
|
|
license = stdenv.lib.licenses.gpl2;
|
|
};
|
|
|
|
}
|