Advertisement
Guest User

Untitled

a guest
May 26th, 2014
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement