@ -1,37 +1,68 @@
{ fetchFromGitHub , lib , stdenv , cmake , pkg-config , curl , libsigcxx , SDL2
, SDL2_image , freetype , libvorbis , libpng , assimp , libGLU , libGL
, glew
{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, assimp
, curl
, freetype
#, glew
, libGL
, libGLU
, libpng
, libsigcxx
, libvorbis
, lua5_2
, mesa
, SDL2
, SDL2_image
} :
stdenv . mkDerivation rec {
pname = " p i o n e e r " ;
version = " 2 0 2 1 0 7 2 3 " ;
version = " 2 0 2 2 0 2 0 3 " ;
src = fetchFromGitHub {
owner = " p i o n e e r s p a c e s i m " ;
repo = " p i o n e e r " ;
rev = version ;
sha256 = " s h a 2 5 6 - w + E C V v 9 6 M o S 6 9 8 1 5 + X 0 P q g u D i G D h H o T n A n n Y t L p M S c I = " ;
hash = " s h a 2 5 6 - H N V g 8 L q 6 k 6 g Q D m g O d p n B w J 5 7 W S E n n 5 X w t q z m k D U 1 W G I = " ;
} ;
postPatch = ''
substituteInPlace CMakeLists . txt \
- - replace ' string ( TIMESTAMP PROJECT_VERSION " % Y % m % d " ) ' ' set ( PROJECT_VERSION $ { version } ) '
'' ;
nativeBuildInputs = [ cmake pkg-config ] ;
buildInputs = [
curl libsigcxx SDL2 SDL2_image freetype libvorbis libpng
assimp libGLU libGL glew
assimp
curl
freetype
libGL
libGLU
libpng
libsigcxx
libvorbis
lua5_2
mesa
SDL2
SDL2_image
] ;
preConfigure = ''
export PIONEER_DATA_DIR = " $ o u t / s h a r e / p i o n e e r / d a t a " ;
'' ;
cmakeFlags = [
" - D P I O N E E R _ D A T A _ D I R : P A T H = ${ placeholder " o u t " } / s h a r e / p i o n e e r / d a t a "
" - D U S E _ S Y S T E M _ L I B L U A : B O O L = Y E S "
] ;
makeFlags = [ " b u i l d - d a t a " ] ;
makeFlags = [ " a l l " " bu i l d - d a t a " ] ;
meta = with lib ; {
description = " A s p a c e a d v e n t u r e g a m e s e t i n t h e M i l k y W a y g a l a x y a t t h e t u r n o f t h e 3 1 s t c e n t u r y " ;
homepage = " h t t p s : / / p i o n e e r s p a c e s i m . n e t " ;
license = with licenses ; [
gpl3 cc-by-sa-30
gpl3Only cc-by-sa-30
] ;
platforms = [ " x 8 6 _ 6 4 - l i n u x " " i 6 8 6 - l i n u x " ] ;
} ;