bazaarTools: use python2 and refactor expression

This commit is contained in:
Frederik Rietdijk 2016-10-17 13:48:43 +02:00
parent 2c4fbe30fe
commit 9ab90824d3

View File

@ -1,6 +1,6 @@
{ stdenv, fetchurl, makeWrapper, python2, bazaar }:
{ stdenv, fetchurl, makeWrapper, python2Packages, bazaar }:
stdenv.mkDerivation rec {
python2Packages.buildPythonApplication rec {
name = "bzr-tools-${version}";
version = "2.6.0";
@ -9,12 +9,8 @@ stdenv.mkDerivation rec {
sha256 = "0n3zzc6jf5866kfhmrnya1vdr2ja137a45qrzsz8vz6sc6xgn5wb";
};
buildInputs = [ makeWrapper python2 ];
doCheck = false;
installPhase = ''
${python2}/bin/python ./setup.py install --prefix=$out
'';
meta = {
description = "Bazaar plugins";
homepage = http://wiki.bazaar.canonical.com/BzrTools;