Pymacs: use buildPythonPackage instead of mkDerivation
This commit is contained in:
parent
12cb1dcb18
commit
cee89ef215
1 changed files with 11 additions and 5 deletions
|
@ -7460,9 +7460,10 @@ let
|
|||
});
|
||||
|
||||
|
||||
pymacs = pkgs.stdenv.mkDerivation rec {
|
||||
pymacs = buildPythonPackage rec {
|
||||
version = "0.25";
|
||||
name = "Pymacs-${version}";
|
||||
name = "pymacs-${version}";
|
||||
disabled = isPy3k || isPyPy;
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://github.com/pinard/Pymacs/tarball/v${version}";
|
||||
|
@ -7470,12 +7471,17 @@ let
|
|||
sha256 = "1hmy76c5igm95rqbld7gvk0az24smvc8hplfwx2f5rhn6frj3p2i";
|
||||
};
|
||||
|
||||
buildInputs = with self; [ python ];
|
||||
configurePhase = "make";
|
||||
|
||||
patchPhase = ''
|
||||
sed -e "s@ install@ install --prefix=$out@g" -i Makefile
|
||||
# Doesn't work with --old-and-unmanagable
|
||||
installPhase = ''
|
||||
${python}/bin/${python.executable} setup.py install \
|
||||
--install-lib=$out/lib/${python.libPrefix}/site-packages \
|
||||
--prefix="$out"
|
||||
'';
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Emacs Lisp to Python interface";
|
||||
homepage = http://pymacs.progiciels-bpi.ca;
|
||||
|
|
Loading…
Reference in a new issue