2015-03-08 15:36:42 +01:00
|
|
|
{ stdenv, fetchurl, gcc
|
2015-05-27 21:42:15 +02:00
|
|
|
, mesa_glu, libX11, libXext, libXcursor, libpulseaudio
|
2015-03-08 15:36:42 +01:00
|
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "scrolls-2014-03-08";
|
|
|
|
|
|
|
|
meta = {
|
2015-04-28 10:54:58 +02:00
|
|
|
description = "A strategy collectible card game";
|
2015-03-08 15:36:42 +01:00
|
|
|
homepage = "https://scrolls.com/";
|
|
|
|
# http://www.reddit.com/r/Scrolls/comments/2j3pxw/linux_client_experimental/
|
|
|
|
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
|
2015-05-30 15:14:10 +02:00
|
|
|
license = stdenv.lib.licenses.unfree;
|
2015-03-08 15:36:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.scrolls.com/client/linux.tar.gz";
|
2015-06-16 21:02:48 +02:00
|
|
|
sha256 = "164d13ce5b81b215a58bae5a0d024b4cf6e32c986ca57a2c9d4e80326edb5004";
|
2015-03-08 15:36:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
libPath = stdenv.lib.makeLibraryPath [
|
|
|
|
gcc
|
|
|
|
mesa_glu
|
|
|
|
libX11
|
|
|
|
libXext
|
|
|
|
libXcursor
|
2015-05-27 21:42:15 +02:00
|
|
|
libpulseaudio
|
2015-03-08 15:36:42 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/opt/Scrolls"
|
|
|
|
cp -r ../Scrolls "$out/opt/Scrolls/"
|
|
|
|
cp -r ../Scrolls_Data "$out/opt/Scrolls/"
|
|
|
|
chmod +x "$out/opt/Scrolls/Scrolls"
|
|
|
|
|
|
|
|
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
|
|
|
--set-rpath "$libPath" "$out/opt/Scrolls/Scrolls"
|
|
|
|
|
|
|
|
mkdir "$out/bin"
|
|
|
|
ln -s "$out/opt/Scrolls/Scrolls" "$out/bin/Scrolls"
|
|
|
|
'';
|
|
|
|
|
|
|
|
}
|