From 25ea32dc112e49ad35fa9f626747c5a9cc1a482b Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Wed, 26 Mar 2008 23:42:29 +0000 Subject: Ploticus: Install prefabs and wrapper script. svn path=/nixpkgs/trunk/; revision=11295 --- pkgs/tools/graphics/ploticus/builder.sh | 25 +++++++++++++++++++++++++ pkgs/tools/graphics/ploticus/default.nix | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) (limited to 'pkgs/tools/graphics/ploticus') diff --git a/pkgs/tools/graphics/ploticus/builder.sh b/pkgs/tools/graphics/ploticus/builder.sh index c6f2d7899ba8..11ff6f5a332b 100644 --- a/pkgs/tools/graphics/ploticus/builder.sh +++ b/pkgs/tools/graphics/ploticus/builder.sh @@ -12,4 +12,29 @@ preInstall() { preInstall=preInstall +postInstall() { + # Install the "prefabs". + ensureDir $out/share/ploticus/prefabs && \ + cd .. && \ + cp -rv prefabs/* $out/share/ploticus/prefabs + + # Create a wrapper that knows where to find them. Debian's package + # does something similar by patching directly the C file that looks + # for `$PLOTICUS_PREFABS'. + cat > $out/bin/ploticus <