diff --git a/pkgs/tools/graphics/ploticus/builder.sh b/pkgs/tools/graphics/ploticus/builder.sh new file mode 100644 index 00000000000..c6f2d7899ba --- /dev/null +++ b/pkgs/tools/graphics/ploticus/builder.sh @@ -0,0 +1,15 @@ +source $stdenv/setup + +preBuild() { + cd src +} + +preBuild=preBuild + +preInstall() { + ensureDir $out/bin +} + +preInstall=preInstall + +genericBuild diff --git a/pkgs/tools/graphics/ploticus/default.nix b/pkgs/tools/graphics/ploticus/default.nix new file mode 100644 index 00000000000..5907f1a1ca3 --- /dev/null +++ b/pkgs/tools/graphics/ploticus/default.nix @@ -0,0 +1,15 @@ +{stdenv, fetchurl, zlib, libX11, libpng}: + +stdenv.mkDerivation { + name = "ploticus-2.33"; + + builder = ./builder.sh; + src = fetchurl { + url = http://surfnet.dl.sourceforge.net/sourceforge/ploticus/pl233src.tar.gz; + md5 = "1e242200e7e52f7a24041c95f58f2fc1"; + }; + + buildInputs = [zlib libX11 libpng]; + + patches = [./ploticus-install.patch]; +} diff --git a/pkgs/tools/graphics/ploticus/ploticus-install.patch b/pkgs/tools/graphics/ploticus/ploticus-install.patch new file mode 100644 index 00000000000..5bf32bcf76d --- /dev/null +++ b/pkgs/tools/graphics/ploticus/ploticus-install.patch @@ -0,0 +1,13 @@ +diff -ruN pl233src/src/Makefile pl233src.new/src/Makefile +--- pl233src/src/Makefile 2006-06-02 17:31:46.000000000 +0200 ++++ pl233src.new/src/Makefile 2006-08-23 18:05:50.000000000 +0200 +@@ -190,7 +190,8 @@ + + + #### If you plan to do a "make install", where do you want the executable(s) to be moved to? +-BIN = /usr/local/bin ++#BIN = /usr/local/bin ++BIN = $(out)/bin + + + #### To set a hard-coded directory for prefabs files, uncomment & edit the following..