summary refs log tree commit diff
path: root/pkgs/tools/graphics/cfdg/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/graphics/cfdg/default.nix')
-rw-r--r--pkgs/tools/graphics/cfdg/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/cfdg/default.nix b/pkgs/tools/graphics/cfdg/default.nix
new file mode 100644
index 000000000000..435305f1e2af
--- /dev/null
+++ b/pkgs/tools/graphics/cfdg/default.nix
@@ -0,0 +1,34 @@
+a @ {libpng, bison, flex, fullDepEntry, ...} :  
+let 
+  s = import ./src-for-default.nix;
+  buildInputs = with a; [
+    libpng bison flex
+  ];
+in
+rec {
+  src = a.fetchUrlFromSrcInfo s;
+
+  inherit (s) name;
+  inherit buildInputs;
+  configureFlags = [];
+
+  /* doConfigure should be removed if not needed */
+  phaseNames = ["doMake" "copyFiles"];
+
+  copyFiles = a.fullDepEntry ''
+    ensureDir $out/bin
+    cp cfdg $out/bin/
+
+    ensureDir $out/share/doc/${name}
+    cp *.txt $out/share/doc/${name}
+  '' ["defEnsureDir" "doMake"];
+      
+  meta = {
+    description = "Context-free design grammar - a tool for graphics generation";
+    maintainers = [
+      a.lib.maintainers.raskin
+    ];
+    platforms = with a.lib.platforms; 
+      linux;
+  };
+}