at v206 42 lines 1.3 kB view raw
1{ stdenv, fetchurl 2, pkgconfig 3, bison, flex 4, makeWrapper }: 5 6with stdenv.lib; 7stdenv.mkDerivation rec { 8 9 name = "intercal-${version}"; 10 version = "0.30"; 11 12 src = fetchurl { 13 url = "http://catb.org/esr/intercal/${name}.tar.gz"; 14 sha256 = "058ppvvgz9r5603ia9jkknbrciypgg4hjbczrv9v1d9w3ak652xk"; 15 }; 16 17 buildInputs = 18 [ pkgconfig bison flex makeWrapper ]; 19 20 # Intercal invokes gcc, so we need an explicit PATH 21 postInstall = '' 22 wrapProgram $out/bin/ick --suffix PATH ':' ${stdenv.cc}/bin 23 ''; 24 25 meta = { 26 description = "The original esoteric programming language"; 27 longDescription = '' 28 INTERCAL, an abbreviation for "Compiler Language With No 29 Pronounceable Acronym", is a famously esoterical programming 30 language. It was created in 1972, by Donald R. Woods and James 31 M. Lyon, with the unusual goal of creating a language with no 32 similarities whatsoever to any existing programming 33 languages. The language largely succeeds in this goal, apart 34 from its use of an assignment statement. 35 ''; 36 homepage = http://www.catb.org/~esr/intercal/; 37 license = licenses.gpl2Plus; 38 maintainers = [ maintainers.AndersonTorres ]; 39 platforms = platforms.linux; 40 }; 41} 42# TODO: investigate if LD_LIBRARY_PATH needs to be set