Fix installation layout
svn path=/nixpkgs/trunk/; revision=24982
This commit is contained in:
parent
5cb3f8b659
commit
7768fa0178
@ -29,11 +29,17 @@ rec {
|
|||||||
inherit buildInputs;
|
inherit buildInputs;
|
||||||
|
|
||||||
/* doConfigure should be removed if not needed */
|
/* doConfigure should be removed if not needed */
|
||||||
phaseNames = ["doFixPaths" "doConfigure" "doMakeInstall"];
|
phaseNames = ["doFixPaths" "doConfigure" "doMakeInstall" "fixInstall"];
|
||||||
doFixPaths = a.fullDepEntry (''
|
doFixPaths = a.fullDepEntry (''
|
||||||
find . -exec sed -e 's@/bin/rm@${a.coreutils}&@g' -i '{}' ';'
|
find . -exec sed -e 's@/bin/rm@${a.coreutils}&@g' -i '{}' ';'
|
||||||
find . -exec sed -e 's@/bin/uname@${a.coreutils}&@g' -i '{}' ';'
|
find . -exec sed -e 's@/bin/uname@${a.coreutils}&@g' -i '{}' ';'
|
||||||
'') ["minInit" "doUnpack"];
|
'') ["minInit" "doUnpack"];
|
||||||
|
fixInstall = a.fullDepEntry (''
|
||||||
|
rm -rf "$out/LIB"
|
||||||
|
cp -r Singular/LIB "$out"
|
||||||
|
ensureDir "$out/bin"
|
||||||
|
ln -s "$out"/*/Singular "$out/bin"
|
||||||
|
'') ["minInit" "defEnsureDir"];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A CAS for polynomial computations";
|
description = "A CAS for polynomial computations";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user