nixpkgs/pkgs/games/scrolls/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
1.1 KiB
Nix
Raw Normal View History

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