uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
45
pkgs/games/scrolls/default.nix
Normal file
45
pkgs/games/scrolls/default.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{ lib, stdenv, fetchurl, gcc
|
||||
, libGLU, libX11, libXext, libXcursor, libpulseaudio
|
||||
}:
|
||||
stdenv.mkDerivation {
|
||||
pname = "scrolls";
|
||||
version = "2015-10-13";
|
||||
|
||||
meta = {
|
||||
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" ];
|
||||
|
||||
license = lib.licenses.unfree;
|
||||
};
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://download.scrolls.com/client/linux.tar.gz";
|
||||
sha256 = "ead1fd14988aa07041fedfa7f845c756cd5077a5a402d85bfb749cb669ececec";
|
||||
};
|
||||
|
||||
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"
|
||||
ln -s "$out/opt/Scrolls/Scrolls" "$out/bin/Scrolls"
|
||||
'';
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue