mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 12:53:59 +03:00
wxmaxima: ensure that wxMaxima will find Maxima even if it's not in $PATH
svn path=/nixpkgs/trunk/; revision=27745
This commit is contained in:
parent
bcaaba6ea7
commit
7c8871512d
@ -1,8 +1,4 @@
|
|||||||
{ stdenv, fetchurl, maxima, wxGTK }:
|
{ stdenv, fetchurl, maxima, wxGTK, makeWrapper }:
|
||||||
|
|
||||||
# TODO: Build the correct ${maxima}/bin/maxima store path into wxMaxima so that
|
|
||||||
# it can run that binary without relying on $PATH, /etc/wxMaxima.conf, or
|
|
||||||
# ~/.wxMaxima.
|
|
||||||
|
|
||||||
let
|
let
|
||||||
name = "wxmaxima";
|
name = "wxmaxima";
|
||||||
@ -16,7 +12,18 @@ stdenv.mkDerivation {
|
|||||||
sha256 = "1dfwh5ka125wr6wxzyiwz16lk8kaf09rb6lldzryjwh8zi7yw8dm";
|
sha256 = "1dfwh5ka125wr6wxzyiwz16lk8kaf09rb6lldzryjwh8zi7yw8dm";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [maxima wxGTK];
|
buildInputs = [wxGTK maxima makeWrapper];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
# Make sure that wxmaxima can find its runtime dependencies.
|
||||||
|
for prog in "$out/bin/"*; do
|
||||||
|
wrapProgram "$prog" --prefix PATH ":" "${maxima}/bin"
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Cross platform GUI for the computer algebra system Maxima.";
|
description = "Cross platform GUI for the computer algebra system Maxima.";
|
||||||
|
Loading…
Reference in New Issue
Block a user