2022-06-16 17:23:12 +00:00
{ stdenv , lib , callPackage , CoreFoundation , fetchFromGitHub , pkgs , wrapCDDA , attachPkgs
2020-04-24 23:36:52 +00:00
, tiles ? true , Cocoa
, debug ? false
2020-08-20 17:08:02 +00:00
, useXdgDir ? false
2021-07-14 22:03:04 +00:00
, version ? " 2 0 2 1 - 0 7 - 0 3 "
, rev ? " 9 0 1 7 8 0 8 2 5 2 e 1 e 1 4 9 4 4 6 c 8 f 8 b d 7 a 6 5 8 2 c e 0 f 9 5 2 8 5 "
, sha256 ? " 0 q r v k b y g 0 9 8 j b 9 h v 6 9 s g 5 0 9 3 b 1 v j 8 f 4 n 7 5 p 7 3 v 0 1 j n m y x l z 3 a x 2 8 "
2020-04-24 23:36:52 +00:00
} :
let
2020-08-20 17:08:02 +00:00
common = callPackage ./common.nix {
inherit CoreFoundation tiles Cocoa debug useXdgDir ;
} ;
2020-04-24 23:36:52 +00:00
2020-08-20 17:08:02 +00:00
self = common . overrideAttrs ( common : rec {
pname = common . pname + " - g i t " ;
inherit version ;
2020-04-24 23:36:52 +00:00
2020-08-20 17:08:02 +00:00
src = fetchFromGitHub {
owner = " C l e v e r R a v e n " ;
repo = " C a t a c l y s m - D D A " ;
inherit rev sha256 ;
} ;
2020-04-24 23:36:52 +00:00
2020-08-20 17:08:02 +00:00
makeFlags = common . makeFlags ++ [
" V E R S I O N = g i t - ${ version } - ${ lib . substring 0 8 src . rev } "
] ;
2020-04-24 23:36:52 +00:00
2020-08-20 17:08:02 +00:00
meta = common . meta // {
maintainers = with lib . maintainers ;
common . meta . maintainers ++ [ rardiol ] ;
2022-06-16 17:23:12 +00:00
# /nix/store/s8xaq3x7mcysvd752in2nihb1nr6svsl-SDL2-2.0.20-dev/include/SDL2/SDL_events.h:645:65: error: use of old-style cast [-Werror,-Wold-style-cast]
broken = ( stdenv . isDarwin && stdenv . isx86_64 ) ;
2020-08-20 17:08:02 +00:00
} ;
} ) ;
in
2021-04-12 18:23:04 +00:00
attachPkgs pkgs self