mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
add ploticus, yet another graphics program
svn path=/nixpkgs/trunk/; revision=6214
This commit is contained in:
parent
ca6ae0b53d
commit
3580697f20
15
pkgs/tools/graphics/ploticus/builder.sh
Normal file
15
pkgs/tools/graphics/ploticus/builder.sh
Normal file
@ -0,0 +1,15 @@
|
||||
source $stdenv/setup
|
||||
|
||||
preBuild() {
|
||||
cd src
|
||||
}
|
||||
|
||||
preBuild=preBuild
|
||||
|
||||
preInstall() {
|
||||
ensureDir $out/bin
|
||||
}
|
||||
|
||||
preInstall=preInstall
|
||||
|
||||
genericBuild
|
15
pkgs/tools/graphics/ploticus/default.nix
Normal file
15
pkgs/tools/graphics/ploticus/default.nix
Normal file
@ -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];
|
||||
}
|
13
pkgs/tools/graphics/ploticus/ploticus-install.patch
Normal file
13
pkgs/tools/graphics/ploticus/ploticus-install.patch
Normal file
@ -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..
|
Loading…
Reference in New Issue
Block a user