2021-01-22 03:25:31 -08:00
|
|
|
{ lib, stdenv, fetchurl
|
2021-01-18 22:50:56 -08:00
|
|
|
, pkg-config
|
2015-09-14 19:32:52 -07:00
|
|
|
, bison, flex
|
|
|
|
, makeWrapper }:
|
2015-09-13 05:38:26 -07:00
|
|
|
|
2021-01-22 03:25:31 -08:00
|
|
|
with lib;
|
2015-09-13 05:38:26 -07:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "intercal";
|
2019-09-26 15:53:10 -07:00
|
|
|
version = "0.31";
|
2015-09-13 05:38:26 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 05:41:18 -07:00
|
|
|
url = "http://catb.org/esr/intercal/${pname}-${version}.tar.gz";
|
2019-09-26 15:53:10 -07:00
|
|
|
sha256 = "1z2gpa5rbqb7jscqlf258k0b0jc7d2zkyipb5csjpj6d3sw45n4k";
|
2015-09-13 05:38:26 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs =
|
2021-01-18 22:50:56 -08:00
|
|
|
[ pkg-config bison flex makeWrapper ];
|
2015-09-14 19:32:52 -07:00
|
|
|
|
|
|
|
# Intercal invokes gcc, so we need an explicit PATH
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/ick --suffix PATH ':' ${stdenv.cc}/bin
|
|
|
|
'';
|
2015-09-13 05:38:26 -07:00
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://www.catb.org/~esr/intercal/";
|
2015-09-13 05:38:26 -07:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|
2015-09-14 19:32:52 -07:00
|
|
|
# TODO: investigate if LD_LIBRARY_PATH needs to be set
|