1 { lib, stdenv, fetchurl, gcc
2 , libGLU, libX11, libXext, libXcursor, libpulseaudio
6 version = "2015-10-13";
9 description = "Strategy collectible card game";
10 homepage = "https://scrolls.com/";
11 # http://www.reddit.com/r/Scrolls/comments/2j3pxw/linux_client_experimental/
13 platforms = [ "x86_64-linux" ];
15 license = lib.licenses.unfree;
19 url = "https://download.scrolls.com/client/linux.tar.gz";
20 sha256 = "ead1fd14988aa07041fedfa7f845c756cd5077a5a402d85bfb749cb669ececec";
23 libPath = lib.makeLibraryPath [
33 mkdir -p "$out/opt/Scrolls"
34 cp -r ../Scrolls "$out/opt/Scrolls/"
35 cp -r ../Scrolls_Data "$out/opt/Scrolls/"
36 chmod +x "$out/opt/Scrolls/Scrolls"
38 patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
39 --set-rpath "$libPath" "$out/opt/Scrolls/Scrolls"
42 ln -s "$out/opt/Scrolls/Scrolls" "$out/bin/Scrolls"