lol
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #138531 from Stunkymonkey/games-github

pkgs/games: switch to fetchFromGitHub

authored by

davidak and committed by
GitHub
3bf3a0ce e4e5deaa

+50 -23
+41 -16
pkgs/games/stuntrally/default.nix
··· 1 - { lib, fetchurl, stdenv, cmake, boost, ogre, mygui, ois, SDL2, libvorbis, pkg-config 2 - , makeWrapper, enet, libXcursor, bullet, openal }: 1 + { lib 2 + , fetchFromGitHub 3 + , stdenv 4 + , cmake 5 + , boost 6 + , ogre 7 + , mygui 8 + , ois 9 + , SDL2 10 + , libvorbis 11 + , pkg-config 12 + , makeWrapper 13 + , enet 14 + , libXcursor 15 + , bullet 16 + , openal 17 + }: 3 18 4 19 stdenv.mkDerivation rec { 5 20 pname = "stunt-rally"; 6 21 version = "2.6.1"; 7 22 8 - src = fetchurl { 9 - url = "https://github.com/stuntrally/stuntrally/archive/${version}.tar.gz"; 10 - sha256 = "1zxq3x2g9pzafa2awx9jzqd33z6gnqj231cs07paxzrm89y51w4v"; 23 + src = fetchFromGitHub { 24 + owner = "stuntrally"; 25 + repo = "stuntrally"; 26 + rev = version; 27 + hash = "sha256-1+Cc9I6TTa3b++/7Z2V+vAXcmFb2+wX7TnXEH6CRDWU="; 11 28 }; 12 - 13 - tracks = fetchurl { 14 - url = "https://github.com/stuntrally/tracks/archive/${version}.tar.gz"; 15 - sha256 = "0x6lgpa4c2grl0vrhqrcs7jcysa3mmvpdl1v5xa0dsf6vkvfr0zs"; 29 + tracks = fetchFromGitHub { 30 + owner = "stuntrally"; 31 + repo = "tracks"; 32 + rev = version; 33 + hash = "sha256-FbZc87j/9cp4LxNaEO2wNTvwk1Aq/IWcKD3rTGkzqj0="; 16 34 }; 17 35 18 36 # include/OGRE/OgreException.h:265:126: error: invalid conversion from 19 37 # 'int' to 'Ogre::Exception::ExceptionCodes' [-fpermissive] 20 - NIX_CFLAGS_COMPILE="-fpermissive"; 38 + NIX_CFLAGS_COMPILE = "-fpermissive"; 21 39 22 40 preConfigure = '' 23 - pushd data 24 - tar xf ${tracks} 25 - mv tracks-${version} tracks 26 - popd 41 + ln -s ${tracks} data/tracks 27 42 ''; 28 43 29 44 nativeBuildInputs = [ cmake pkg-config ]; 30 - buildInputs = [ boost ogre mygui ois SDL2 libvorbis 31 - makeWrapper enet libXcursor bullet openal 45 + buildInputs = [ 46 + boost 47 + ogre 48 + mygui 49 + ois 50 + SDL2 51 + libvorbis 52 + makeWrapper 53 + enet 54 + libXcursor 55 + bullet 56 + openal 32 57 ]; 33 58 34 59 meta = with lib; {
+7 -5
pkgs/games/uqm/3dovideo.nix
··· 1 - { stdenv, lib, requireFile, writeText, fetchurl, haskellPackages }: 1 + { stdenv, lib, requireFile, writeText, fetchFromGitHub, haskellPackages }: 2 2 3 3 let 4 4 makeSpin = num: let ··· 13 13 slides.intro = 3DOVID:addons/3dovideo/intro/intro.duk 14 14 '' + lib.concatMapStrings makeSpin (lib.range 0 24)); 15 15 16 - helper = with haskellPackages; mkDerivation { 16 + helper = with haskellPackages; mkDerivation rec { 17 17 pname = "uqm3donix"; 18 18 version = "0.1.0.0"; 19 19 20 - src = fetchurl { 21 - url = "https://github.com/aszlig/uqm3donix/archive/v0.1.0.0.tar.gz"; 22 - sha256 = "0d40gpc3bqkw68varjxwgbdzxw0dvwqksijmvij5ixmlcspbjgvb"; 20 + src = fetchFromGitHub { 21 + owner = "aszlig"; 22 + repo = "uqm3donix"; 23 + rev = "v${version}"; 24 + hash = "sha256-rK30u2PBysiSGSA9829F1Nom/wtoVN6rGTBneRKeWEw="; 23 25 }; 24 26 25 27 isLibrary = false;
+2 -2
pkgs/games/uqm/default.nix
··· 1 - { stdenv, lib, fetchurl, pkg-config, libGLU, libGL 1 + { stdenv, lib, fetchurl, fetchFromGitHub, pkg-config, libGLU, libGL 2 2 , SDL, SDL_image, libpng, libvorbis, libogg, libmikmod 3 3 4 4 , use3DOVideos ? false, requireFile ? null, writeText ? null ··· 12 12 13 13 let 14 14 videos = import ./3dovideo.nix { 15 - inherit stdenv lib requireFile writeText fetchurl haskellPackages; 15 + inherit stdenv lib requireFile writeText fetchFromGitHub haskellPackages; 16 16 }; 17 17 18 18 remixPacks = lib.imap1 (num: sha256: fetchurl rec {