about summary refs log tree commit diff
path: root/pkgs/development/compilers/colm
diff options
context:
space:
mode:
authorPascal Wittmann <mail@pascal-wittmann.de>2015-05-18 16:06:33 +0200
committerPascal Wittmann <mail@pascal-wittmann.de>2015-05-18 16:07:12 +0200
commit132570bacee4cbefbbae8ede0ca8a7f684b4d2a8 (patch)
tree705139391020865663c9879d0cd2d6f77dfb755a /pkgs/development/compilers/colm
parent04622fe3baceba49042a0b5e2c89d309e93d8928 (diff)
Add colm, a language for program analysis and transformation
Diffstat (limited to 'pkgs/development/compilers/colm')
-rw-r--r--pkgs/development/compilers/colm/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/compilers/colm/default.nix b/pkgs/development/compilers/colm/default.nix
new file mode 100644
index 0000000000000..ebfee6c4188ef
--- /dev/null
+++ b/pkgs/development/compilers/colm/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, fetchurl, makeWrapper, gcc }:
+
+stdenv.mkDerivation rec {
+  name = "colm-${version}";
+  version = "0.12.0";
+
+  src = fetchurl {
+    url = "http://www.colm.net/files/colm/${name}.tar.gz";
+    sha256 = "0kbfipxv3nvggd1a2nahk3jg22iifp2l7lkm55i5r7qkpms5sm3v";
+  };
+
+  buildInputs = [ makeWrapper ];
+
+  doCheck = true;
+  checkPhase = ''sh ./test/runtests.sh'';
+
+  postInstall = ''
+    wrapProgram $out/bin/colm \
+      --prefix PATH ":" ${gcc}/bin
+  '';
+
+  meta = with stdenv.lib; {
+    description = "A programming language for the analysis and transformation of computer languages";
+    homepage = http://www.colm.net/open-source/colm;
+    license = licenses.gpl2;
+    maintainers = with maintainers; [ pSub ];
+  };
+}