mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-13 05:47:29 +00:00
antsimulator: fix texture path
This commit is contained in:
parent
07ebaed974
commit
58156d95e9
@ -14,8 +14,19 @@ stdenv.mkDerivation rec {
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ sfml ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/main.cpp \
|
||||
--replace "res/" "$out/opt/antsimulator/"
|
||||
|
||||
substituteInPlace include/simulation/config.hpp \
|
||||
--replace "res/" "$out/opt/antsimulator/"
|
||||
|
||||
substituteInPlace include/render/colony_renderer.hpp \
|
||||
--replace "res/" "$out/opt/antsimulator/"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
install -Dm644 -t $out/opt/antsimulator res/*
|
||||
install -Dm755 ./AntSimulator $out/bin/antsimulator
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user