Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {stdenv, fetchurl, patchelf, boehmgc, gnused}:
- stdenv.mkDerivation {
- name = "opendylan-2013.2";
- src = fetchurl {
- url = http://opendylan.org/downloads/opendylan/2013.2/opendylan-2013.2-x86_64-linux.tar.bz2;
- sha256 = "035brbw3hm7zrs593q4zc42yglj1gmmkw3b1r7zzlw3ks4i2lg7h";
- };
- buildInputs = [ patchelf boehmgc gnused ];
- buildCommand = ''
- mkdir -p "$out"
- tar --strip-components=1 -xjf "$src" -C "$out"
- interpreter="$(cat "$NIX_GCC"/nix-support/dynamic-linker)"
- for a in "$out"/bin/*; do
- patchelf --set-interpreter "$interpreter" "$a"
- patchelf --set-rpath "$out/lib:${boehmgc}/lib" "$a"
- done
- for a in "$out"/lib/*.so; do
- patchelf --set-rpath "$out/lib:${boehmgc}/lib" "$a"
- done
- sed -i -e "s|\-lgc|\-L${boehmgc}\/lib -lgc|" $out/lib/config.jam
- '';
- meta = {
- homepage = http://opendylan.org;
- description = "Dylan is a multi-paradigm functional and object-oriented programming language.";
- license = "MIT";
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement