forked from mirrors/nixpkgs
added hg2git
svn path=/nixpkgs/trunk/; revision=13096
This commit is contained in:
parent
a4cc4210b5
commit
ea22df581b
|
@ -7,6 +7,8 @@ stdenv.mkDerivation {
|
|||
sha256 = "0fj2aakband855684q76h7zl328iq8i6l81c2k64hy5m0if9hvgr";
|
||||
};
|
||||
|
||||
inherit python; # pass it so that the same version can be used in hg2git
|
||||
|
||||
buildInputs = [ python makeWrapper ];
|
||||
makeFlags = "PREFIX=$(out)";
|
||||
postInstall = (if args.guiSupport then
|
||||
|
|
|
@ -37,6 +37,8 @@ args:
|
|||
|
||||
plugins = { type = "darcs"; url="http://code.haskell.org/~dons/code/hs-plugins/"; groups="haskell"; };
|
||||
|
||||
hg2git = { type = "git"; url="git://repo.or.cz/hg2git.git"; };
|
||||
|
||||
# darcs repositories haskell
|
||||
http = { type= "darcs"; url="http://darcs.haskell.org/http/"; groups="happs"; };
|
||||
syb_with_class = { type="darcs"; url="http://happs.org/HAppS/syb-with-class"; groups="happs"; };
|
||||
|
|
|
@ -219,4 +219,8 @@
|
|||
url = "http://mawercer.de/~nix/repos/cinelerra-9f9adf2ad5472886d5bc43a05c6aa8077cabd967.tar.gz";
|
||||
sha256 = "1e84ff59dcd7a3c80343eb9be302f822e510c95398fd1a6c8f2e4b163fd51e45";
|
||||
};
|
||||
hg2git = args: with args; fetchurl { # Sat Oct 18 21:02:44 UTC 2008
|
||||
url = "http://mawercer.de/~nix/repos/hg2git-4c77e121b739d2aac8a23352503763343823f870.tar.gz";
|
||||
sha256 = "22354d36937bf9e5d3e3dfc1a3ef9e3f2bc183b8e114a23958a2b10f83abc97e";
|
||||
};
|
||||
}
|
||||
|
|
26
pkgs/tools/misc/hg2git/default.nix
Normal file
26
pkgs/tools/misc/hg2git/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
args: with args;
|
||||
stdenv.mkDerivation {
|
||||
name = "hg2git";
|
||||
|
||||
src = sourceByName "hg2git";
|
||||
|
||||
buildInputs =([mercurial.python mercurial makeWrapper]);
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/bin;
|
||||
cp hg2git.sh hg2git.py $out/bin
|
||||
cat >> $out/bin/hg2git-doc << EOF
|
||||
#!${coreutils}/bin/cat
|
||||
$(cat hg2git.txt)
|
||||
EOF
|
||||
chmod +x $out/bin/hg2git-doc
|
||||
wrapProgram $out/bin/hg2git.sh \
|
||||
--set PYTHONPATH "$(echo ${mercurial}/lib/python*/site-packages)"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "mercurial to git one way conversion";
|
||||
homepage = "http://git.grml.org/?p=hg-to-git.git;a=summary";
|
||||
license = "?"; # the .py file is GPLv2
|
||||
};
|
||||
}
|
|
@ -833,6 +833,11 @@ let
|
|||
inherit fetchurl stdenv ocaml;
|
||||
};
|
||||
|
||||
hg2git = import ../tools/misc/hg2git {
|
||||
inherit fetchurl stdenv mercurial coreutils git makeWrapper;
|
||||
inherit (bleedingEdgeRepos) sourceByName;
|
||||
};
|
||||
|
||||
highlight = builderDefsPackage (selectVersion ../tools/text/highlight "2.6.10") {
|
||||
inherit getopt;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue