about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/compilers/intercal/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/compilers/intercal/default.nix')
-rw-r--r--nixpkgs/pkgs/development/compilers/intercal/default.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/compilers/intercal/default.nix b/nixpkgs/pkgs/development/compilers/intercal/default.nix
new file mode 100644
index 000000000000..f601dc254a43
--- /dev/null
+++ b/nixpkgs/pkgs/development/compilers/intercal/default.nix
@@ -0,0 +1,42 @@
+{ stdenv, fetchurl
+, pkgconfig
+, bison, flex
+, makeWrapper }:
+
+with stdenv.lib;
+stdenv.mkDerivation rec {
+
+  name = "intercal-${version}";
+  version = "0.30";
+
+  src = fetchurl {
+    url = "http://catb.org/esr/intercal/${name}.tar.gz";
+    sha256 = "058ppvvgz9r5603ia9jkknbrciypgg4hjbczrv9v1d9w3ak652xk";
+  };
+
+  buildInputs =
+  [ pkgconfig bison flex makeWrapper ];
+
+  # Intercal invokes gcc, so we need an explicit PATH
+  postInstall = ''
+    wrapProgram $out/bin/ick --suffix PATH ':' ${stdenv.cc}/bin
+  '';
+
+  meta = {
+    description = "The original esoteric programming language";
+    longDescription = ''
+      INTERCAL, an abbreviation for "Compiler Language With No
+      Pronounceable Acronym", is a famously esoterical programming
+      language. It was created in 1972, by Donald R. Woods and James
+      M. Lyon, with the unusual goal of creating a language with no
+      similarities whatsoever to any existing programming
+      languages. The language largely succeeds in this goal, apart
+      from its use of an assignment statement.
+    '';
+    homepage = http://www.catb.org/~esr/intercal/;
+    license = licenses.gpl2Plus;
+    maintainers = [ maintainers.AndersonTorres ];
+    platforms = platforms.linux;
+  };
+}
+# TODO: investigate if LD_LIBRARY_PATH needs to be set