mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
cataclysm-dda{,-git}: fix share directory
Data should be in PREFIX/share/cataclysm-dda instead of PREFIX/share.
This commit is contained in:
parent
beb70f1370
commit
fc06a987a0
@ -23,8 +23,7 @@ stdenv.mkDerivation rec {
|
|||||||
postPatch = ''
|
postPatch = ''
|
||||||
patchShebangs .
|
patchShebangs .
|
||||||
sed -i Makefile \
|
sed -i Makefile \
|
||||||
-e 's,-Werror,,g' \
|
-e 's,-Werror,,g'
|
||||||
-e 's,\(DATA_PREFIX=$(PREFIX)/share/\)cataclysm-dda/,\1,g'
|
|
||||||
|
|
||||||
sed '1i#include <cmath>' \
|
sed '1i#include <cmath>' \
|
||||||
-i src/{crafting,skill,weather_data,melee,vehicle,overmap,iuse_actor}.cpp
|
-i src/{crafting,skill,weather_data,melee,vehicle,overmap,iuse_actor}.cpp
|
||||||
@ -44,7 +43,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/cataclysm-tiles \
|
wrapProgram $out/bin/cataclysm-tiles \
|
||||||
--add-flags "--datadir $out/share/"
|
--add-flags "--datadir $out/share/cataclysm-dda/"
|
||||||
'' + stdenv.lib.optionalString stdenv.isDarwin ''
|
'' + stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
app=$out/Applications/Cataclysm.app
|
app=$out/Applications/Cataclysm.app
|
||||||
install -D -m 444 data/osx/Info.plist -t $app/Contents
|
install -D -m 444 data/osx/Info.plist -t $app/Contents
|
||||||
|
@ -22,8 +22,7 @@ stdenv.mkDerivation rec {
|
|||||||
postPatch = ''
|
postPatch = ''
|
||||||
patchShebangs .
|
patchShebangs .
|
||||||
sed -i Makefile \
|
sed -i Makefile \
|
||||||
-e 's,-Werror,,g' \
|
-e 's,-Werror,,g'
|
||||||
-e 's,\(DATA_PREFIX=$(PREFIX)/share/\)cataclysm-dda/,\1,g'
|
|
||||||
|
|
||||||
sed '1i#include <cmath>' \
|
sed '1i#include <cmath>' \
|
||||||
-i src/{crafting,skill,weather_data,melee,vehicle,overmap,iuse_actor}.cpp
|
-i src/{crafting,skill,weather_data,melee,vehicle,overmap,iuse_actor}.cpp
|
||||||
|
Loading…
Reference in New Issue
Block a user