Coccinelle: Make sure Python modules are looked up in the right place.
svn path=/nixpkgs/trunk/; revision=33763
This commit is contained in:
parent
205dbbd991
commit
eb7575138a
@ -1,4 +1,4 @@
|
|||||||
{ fetchurl, stdenv, python, ncurses, ocamlPackages }:
|
{ fetchurl, stdenv, python, ncurses, ocamlPackages, makeWrapper }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
@ -16,11 +16,21 @@ in stdenv.mkDerivation {
|
|||||||
buildInputs = with ocamlPackages; [
|
buildInputs = with ocamlPackages; [
|
||||||
ocaml findlib menhir
|
ocaml findlib menhir
|
||||||
ocaml_pcre ocaml_sexplib pycaml
|
ocaml_pcre ocaml_sexplib pycaml
|
||||||
python ncurses
|
python ncurses makeWrapper
|
||||||
];
|
];
|
||||||
|
|
||||||
configureFlagsArray = [ "--enable-release" ];
|
configureFlagsArray = [ "--enable-release" ];
|
||||||
|
|
||||||
|
postInstall =
|
||||||
|
# On non-NixOS systems, Coccinelle would end up looking up Python modules
|
||||||
|
# in the wrong directory.
|
||||||
|
'' for p in "$out/bin/"*
|
||||||
|
do
|
||||||
|
wrapProgram "$p" \
|
||||||
|
--prefix "PYTHONPATH" ":" "${python}/lib/python${python.majorVersion}"
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Coccinelle, a program to apply C code semantic patches";
|
description = "Coccinelle, a program to apply C code semantic patches";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user