1 { lib, stdenv, fetchurl, fetchpatch
6 stdenv.mkDerivation rec {
12 url = "http://catb.org/esr/intercal/${pname}-${version}.tar.gz";
13 sha256 = "1z2gpa5rbqb7jscqlf258k0b0jc7d2zkyipb5csjpj6d3sw45n4k";
17 # Pull patch pending upstream inclusion for -fno-common toolchains:
18 # https://gitlab.com/esr/intercal/-/issues/4
20 name = "fno-common.patch";
21 url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-lang/c-intercal/files/c-intercal-31.0-no-common.patch?id=a110a98b4de6f280d770ba3cc92a4612326205a3";
22 sha256 = "03523fc40042r2ryq5val27prlim8pld4950qqpawpism4w3y1p2";
26 nativeBuildInputs = [ pkg-config bison flex makeWrapper ];
28 # Intercal invokes gcc, so we need an explicit PATH
30 wrapProgram $out/bin/ick --suffix PATH ':' ${stdenv.cc}/bin
34 description = "Original esoteric programming language";
36 INTERCAL, an abbreviation for "Compiler Language With No
37 Pronounceable Acronym", is a famously esoterical programming
38 language. It was created in 1972, by Donald R. Woods and James
39 M. Lyon, with the unusual goal of creating a language with no
40 similarities whatsoever to any existing programming
41 languages. The language largely succeeds in this goal, apart
42 from its use of an assignment statement.
44 homepage = "http://www.catb.org/~esr/intercal/";
45 license = licenses.gpl2Plus;
46 maintainers = [ maintainers.AndersonTorres ];
47 platforms = platforms.linux;
50 # TODO: investigate if LD_LIBRARY_PATH needs to be set