SHARE
TWEET

Untitled

a guest May 26th, 2014 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {stdenv, fetchurl, patchelf, boehmgc, gnused}:
  2.  
  3. stdenv.mkDerivation {
  4.   name = "opendylan-2013.2";
  5.  
  6.   src = fetchurl {
  7.     url = http://opendylan.org/downloads/opendylan/2013.2/opendylan-2013.2-x86_64-linux.tar.bz2;
  8.     sha256 = "035brbw3hm7zrs593q4zc42yglj1gmmkw3b1r7zzlw3ks4i2lg7h";
  9.   };
  10.  
  11.   buildInputs = [ patchelf boehmgc gnused ];
  12.  
  13.   buildCommand = ''
  14.     mkdir -p "$out"
  15.     tar --strip-components=1 -xjf "$src" -C "$out"
  16.  
  17.     interpreter="$(cat "$NIX_GCC"/nix-support/dynamic-linker)"
  18.     for a in "$out"/bin/*; do
  19.       patchelf --set-interpreter "$interpreter" "$a"
  20.       patchelf --set-rpath "$out/lib:${boehmgc}/lib" "$a"
  21.     done
  22.     for a in "$out"/lib/*.so; do
  23.       patchelf --set-rpath "$out/lib:${boehmgc}/lib" "$a"
  24.     done
  25.     sed -i -e "s|\-lgc|\-L${boehmgc}\/lib -lgc|" $out/lib/config.jam
  26.   '';
  27.  
  28.   meta = {
  29.     homepage = http://opendylan.org;
  30.     description = "Dylan is a multi-paradigm functional and object-oriented programming language.";
  31.     license = "MIT";
  32.   };
  33. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top