nixpkgs/pkgs/development/compilers/intercal/default.nix
Jonathan Ringer 9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00

43 lines
1.3 KiB
Nix

{ stdenv, fetchurl
, pkg-config
, bison, flex
, makeWrapper }:
with stdenv.lib;
stdenv.mkDerivation rec {
pname = "intercal";
version = "0.31";
src = fetchurl {
url = "http://catb.org/esr/intercal/${pname}-${version}.tar.gz";
sha256 = "1z2gpa5rbqb7jscqlf258k0b0jc7d2zkyipb5csjpj6d3sw45n4k";
};
buildInputs =
[ pkg-config 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