summary refs log tree commit diff
path: root/pkgs/development/compilers/intercal
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@gmail.com>2015-09-14 23:32:52 -0300
committerAndersonTorres <torres.anderson.85@gmail.com>2015-09-14 23:40:46 -0300
commit6a8cf7854deeb950a57f54864e3b14038f97bb4c (patch)
tree5d83e4e8d302f3716325183f730a6d2ff9c98b2f /pkgs/development/compilers/intercal
parent346d777d319201218813ed7c7f7b5d2c32ac89df (diff)
downloadnixpkgs-6a8cf7854deeb950a57f54864e3b14038f97bb4c.tar
nixpkgs-6a8cf7854deeb950a57f54864e3b14038f97bb4c.tar.gz
nixpkgs-6a8cf7854deeb950a57f54864e3b14038f97bb4c.tar.bz2
nixpkgs-6a8cf7854deeb950a57f54864e3b14038f97bb4c.tar.lz
nixpkgs-6a8cf7854deeb950a57f54864e3b14038f97bb4c.tar.xz
nixpkgs-6a8cf7854deeb950a57f54864e3b14038f97bb4c.tar.zst
nixpkgs-6a8cf7854deeb950a57f54864e3b14038f97bb4c.zip
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.
Diffstat (limited to 'pkgs/development/compilers/intercal')
-rw-r--r--pkgs/development/compilers/intercal/default.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/development/compilers/intercal/default.nix b/pkgs/development/compilers/intercal/default.nix
index d3ecdab9ee3..f601dc254a4 100644
--- a/pkgs/development/compilers/intercal/default.nix
+++ b/pkgs/development/compilers/intercal/default.nix
@@ -1,6 +1,7 @@
 { stdenv, fetchurl
 , pkgconfig
-, bison, flex }:
+, bison, flex
+, makeWrapper }:
 
 with stdenv.lib;
 stdenv.mkDerivation rec {
@@ -14,7 +15,12 @@ stdenv.mkDerivation rec {
   };
 
   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 = {
     description = "The original esoteric programming language";
@@ -33,3 +39,4 @@ stdenv.mkDerivation rec {
     platforms = platforms.linux;
   };
 }
+# TODO: investigate if LD_LIBRARY_PATH needs to be set