diff --git a/pkgs/development/libraries/physics/lhapdf/default.nix b/pkgs/development/libraries/physics/lhapdf/default.nix index 7f89c92772c..11a2640e97c 100644 --- a/pkgs/development/libraries/physics/lhapdf/default.nix +++ b/pkgs/development/libraries/physics/lhapdf/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, python2 }: +{ stdenv, fetchurl, python2, makeWrapper }: stdenv.mkDerivation rec { name = "lhapdf-${version}"; @@ -9,6 +9,7 @@ stdenv.mkDerivation rec { sha256 = "0bi02xcmq5as0wf0jn6i3hx0qy0hj61m02sbrbzd1gwjhpccwmvd"; }; + nativeBuildInputs = [ makeWrapper ]; buildInputs = [ python2 ]; enableParallelBuilding = true; @@ -17,6 +18,10 @@ stdenv.mkDerivation rec { pdf_sets = import ./pdf_sets.nix { inherit stdenv fetchurl; }; }; + postInstall = '' + wrapProgram $out/bin/lhapdf --prefix PYTHONPATH : "$(toPythonPath "$out")" + ''; + meta = { description = "A general purpose interpolator, used for evaluating Parton Distribution Functions from discretised data files"; license = stdenv.lib.licenses.gpl2;