summary refs log tree commit diff
path: root/pkgs/tools/graphics
diff options
context:
space:
mode:
authorAllan Espinosa <allan.espinosa@outlook.com>2016-02-21 20:56:51 -0600
committerAllan Espinosa <allan.espinosa@outlook.com>2016-02-22 07:42:53 -0600
commit2dd51275eb6794e0a588165fc9f9f041c385c9e5 (patch)
treeb4b261f1abecf70a1d7c388a9265cb2c0a358304 /pkgs/tools/graphics
parent7fcecec58b4d386e74f20e30008dd86f4a39045f (diff)
downloadnixlib-2dd51275eb6794e0a588165fc9f9f041c385c9e5.tar
nixlib-2dd51275eb6794e0a588165fc9f9f041c385c9e5.tar.gz
nixlib-2dd51275eb6794e0a588165fc9f9f041c385c9e5.tar.bz2
nixlib-2dd51275eb6794e0a588165fc9f9f041c385c9e5.tar.lz
nixlib-2dd51275eb6794e0a588165fc9f9f041c385c9e5.tar.xz
nixlib-2dd51275eb6794e0a588165fc9f9f041c385c9e5.tar.zst
nixlib-2dd51275eb6794e0a588165fc9f9f041c385c9e5.zip
dpic: init at 2016.01.12
Diffstat (limited to 'pkgs/tools/graphics')
-rw-r--r--pkgs/tools/graphics/dpic/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/dpic/default.nix b/pkgs/tools/graphics/dpic/default.nix
new file mode 100644
index 000000000000..ea73a0e95b9d
--- /dev/null
+++ b/pkgs/tools/graphics/dpic/default.nix
@@ -0,0 +1,29 @@
+{ stdenv, fetchurl }:
+
+stdenv.mkDerivation rec {
+  name = "dpic-${version}";
+  version = "2016.01.12";
+
+  src = fetchurl {
+    url = "https://ece.uwaterloo.ca/~aplevich/dpic/${name}.tar.gz";
+    sha256 = "0iwwf8shgm8n4drz8mndvk7jga93yy8plnyby3lgk8376g5ps6cz";
+  };
+
+  phases = [ "unpackPhase" "buildPhase" "installPhase" ];
+
+  makeFlags = "CC=${stdenv.cc.outPath}/bin/cc";
+
+  installPhase = ''
+    mkdir -p $out/bin
+    cp -fv dpic $out/bin
+  '';
+
+  meta = {
+    homepage = "https://ece.uwaterloo.ca/~aplevich/dpic/";
+    description = "An implementation of the pic little language for creating drawings";
+    license = stdenv.lib.licenses.bsd2;
+    maintainers = [ stdenv.lib.maintainers.aespinosa ];
+    platforms = stdenv.lib.platforms.all;
+  };
+}
+