1 { lib, stdenv, fetchurl, patchelf, zlib, libmad, libpng12, libcaca, libGLU, libGL, alsa-lib, libpulseaudio
6 inherit (xorg) libXext libX11;
8 lpath = "${stdenv.cc.cc.lib}/lib64:" + lib.makeLibraryPath [
9 zlib libmad libpng12 libcaca libXext libX11 libGLU libGL alsa-lib libpulseaudio];
12 stdenv.mkDerivation rec {
13 name = "adom-${version}-noteye";
14 version = "1.2.0_pre23";
17 url = "http://ancardia.uk.to/download/adom_noteye_linux_ubuntu_64_${version}.tar.gz";
18 sha256 = "0sbn0csaqb9cqi0z5fdwvnymkf84g64csg0s9mm6fzh0sm2mi0hz";
30 for l in $out/lib/*so* ; do
32 ${patchelf}/bin/patchelf \
33 --set-rpath "$out/lib:${lpath}" \
37 ${patchelf}/bin/patchelf \
38 --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
39 --set-rpath "$out/lib:${lpath}" \
43 cat >$out/bin/adom <<EOF
45 (cd $out; exec $out/adom ; )
47 chmod +x $out/bin/adom
51 description = "A rogue-like game with nice graphical interface";
52 homepage = "http://adom.de/";
53 license = licenses.unfreeRedistributable;
54 maintainers = [maintainers.smironov];
56 # Please, notify me (smironov) if you need the x86 version
57 platforms = ["x86_64-linux"];
58 broken = true; # at 2022-09-30, failed download.