Intercal: a quick fix to find gcc
Intercal needs gcc to build any executable, and in Nix/NixOS it needs to be explicitly set in PATH environment variable. So, now ick is conveniently wrapped.
This commit is contained in:
parent
346d777d31
commit
6a8cf7854d
@ -1,6 +1,7 @@
|
|||||||
{ stdenv, fetchurl
|
{ stdenv, fetchurl
|
||||||
, pkgconfig
|
, pkgconfig
|
||||||
, bison, flex }:
|
, bison, flex
|
||||||
|
, makeWrapper }:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -14,7 +15,12 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ pkgconfig bison flex ];
|
[ pkgconfig bison flex makeWrapper ];
|
||||||
|
|
||||||
|
# Intercal invokes gcc, so we need an explicit PATH
|
||||||
|
postInstall = ''
|
||||||
|
wrapProgram $out/bin/ick --suffix PATH ':' ${stdenv.cc}/bin
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "The original esoteric programming language";
|
description = "The original esoteric programming language";
|
||||||
@ -33,3 +39,4 @@ stdenv.mkDerivation rec {
|
|||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
# TODO: investigate if LD_LIBRARY_PATH needs to be set
|
||||||
|
Loading…
x
Reference in New Issue
Block a user