[Nix-dev] Re: hgsubversion (and subvertpy) nix-expressions
Ludovic Courtès
ludo at gnu.org
Sun Oct 17 23:28:04 CEST 2010
Hi,
Ilya Cassina <ilya.cassina at gmail.com> writes:
> hgsubversion didn't exactly work as a python package, i've put it in
> applications/version-control/mercurial/hgsubversion.nix
What about using ‘buildPythonPackage’ for this one too?
> + subvertpy = buildPythonPackage {
> + name = "subvertpy-0.7.4";
> + src = fetchurl {
> + url = http://launchpadlibrarian.net/56729076/subvertpy-0.7.4.tar.gz;
> + sha256 = "94cfaf50edf47bfc79698a08dac10655be97e938f55ef656cea04cd174606ab4";
> + };
> +
> + meta = {
> + description = "Python bindings for subversion";
> + homepage = http://samba.org/~jelmer/subvertpy/;
> + license = "GPLv2";
Or “GPLv2+”?
> + };
> +
> + buildInputs = [pkgs.subversion pkgs.apr pkgs.aprutil];
> +
> + phases = "unpackPhase preConfigure buildPhase installPhase";
> +
> + preConfigure = ''
> + export SVN_PREFIX="${pkgs.subversion}"
> + '';
I think the ‘phases’ line isn’t needed, is it?
Thanks,
Ludo’.
More information about the nix-dev
mailing list