Merge pull request #140265 from McSinyx/blackshades-2.4.0
This commit is contained in:
commit
fd180ee549
@ -1,29 +1,27 @@
|
|||||||
{ lib, stdenv, fetchFromSourcehut
|
{ lib, stdenv, fetchFromSourcehut
|
||||||
, SDL, stb, libGLU, libGL, openal, libvorbis, freealut }:
|
, zig, glfw, libGLU, libGL, openal, libsndfile }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "blackshades";
|
pname = "blackshades";
|
||||||
version = "1.3.1";
|
version = "2.4.7";
|
||||||
|
|
||||||
src = fetchFromSourcehut {
|
src = fetchFromSourcehut {
|
||||||
owner = "~cnx";
|
owner = "~cnx";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0yzp74ynkcp6hh5m4zmvrgx5gwm186hq7p3m7qkww54qdyijb3rv";
|
fetchSubmodules = true;
|
||||||
|
sha256 = "sha256-hvJwWUUmGeb7MQgKe79cPS2ckPZ9z0Yc5S9IiwuXPD8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ SDL stb libGLU libGL openal libvorbis freealut ];
|
nativeBuildInputs = [ zig ];
|
||||||
|
buildInputs = [ glfw libGLU libGL openal libsndfile ];
|
||||||
|
|
||||||
postPatch = ''
|
preBuild = ''
|
||||||
sed -i -e s,Data/,$out/share/$pname/,g \
|
export HOME=$TMPDIR
|
||||||
-e s,Data:,$out/share/$pname/,g \
|
|
||||||
src/*.cpp
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin $out/share
|
zig build -Drelease-fast -Dcpu=baseline --prefix $out install
|
||||||
cp build/blackshades $out/bin
|
|
||||||
cp -R Data $out/share/$pname
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
Reference in New Issue
Block a user