2021-01-15 05:31:39 +01:00
|
|
|
{ lib, stdenv, fetchurl, gcc
|
2018-02-24 13:59:47 +01:00
|
|
|
, libGLU, libX11, libXext, libXcursor, libpulseaudio
|
2015-03-08 15:36:42 +01:00
|
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
2021-06-22 23:44:58 +02:00
|
|
|
pname = "scrolls";
|
|
|
|
version = "2015-10-13";
|
2015-03-08 15:36:42 +01:00
|
|
|
|
|
|
|
meta = {
|
2015-04-28 10:54:58 +02:00
|
|
|
description = "A strategy collectible card game";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://scrolls.com/";
|
2015-03-08 15:36:42 +01:00
|
|
|
# http://www.reddit.com/r/Scrolls/comments/2j3pxw/linux_client_experimental/
|
|
|
|
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
|
2021-01-15 05:31:39 +01:00
|
|
|
license = lib.licenses.unfree;
|
2015-03-08 15:36:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 20:43:35 +02:00
|
|
|
url = "https://download.scrolls.com/client/linux.tar.gz";
|
2015-10-13 20:39:13 +02:00
|
|
|
sha256 = "ead1fd14988aa07041fedfa7f845c756cd5077a5a402d85bfb749cb669ececec";
|
2015-03-08 15:36:42 +01:00
|
|
|
};
|
|
|
|
|
2021-01-15 05:31:39 +01:00
|
|
|
libPath = lib.makeLibraryPath [
|
2015-03-08 15:36:42 +01:00
|
|
|
gcc
|
2018-02-24 13:59:47 +01:00
|
|
|
libGLU
|
2015-03-08 15:36:42 +01:00
|
|
|
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"
|
2015-10-13 20:39:13 +02:00
|
|
|
ln -s "$out/opt/Scrolls/Scrolls" "$out/bin/Scrolls"
|
2015-03-08 15:36:42 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
}
|