Author: raskin
Date: Sun Dec 5 19:08:32 2010
New Revision: 24982
URL: https://svn.nixos.org/websvn/nix/?rev=24982&sc=1
Log:
Fix installation layout
Modified:
nixpkgs/trunk/pkgs/applications/science/math/singular/default.nix
Modified: nixpkgs/trunk/pkgs/applications/science/math/singular/default.nix
==============================================================================
--- nixpkgs/trunk/pkgs/applications/science/math/singular/default.nix Sun Dec
5 18:37:47 2010 (r24981)
+++ nixpkgs/trunk/pkgs/applications/science/math/singular/default.nix Sun Dec
5 19:08:32 2010 (r24982)
@@ -29,11 +29,17 @@
inherit buildInputs;
/* doConfigure should be removed if not needed */
- phaseNames = ["doFixPaths" "doConfigure" "doMakeInstall"];
+ phaseNames = ["doFixPaths" "doConfigure" "doMakeInstall" "fixInstall"];
doFixPaths = a.fullDepEntry (''
find . -exec sed -e 's@/bin/r...@${a.coreutils}&@g' -i '{}' ';'
find . -exec sed -e 's@/bin/un...@${a.coreutils}&@g' -i '{}' ';'
'') ["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 = {
description = "A CAS for polynomial computations";
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits