mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00: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 = ''
|
||||
patchShebangs .
|
||||
sed -i Makefile \
|
||||
-e 's,-Werror,,g' \
|
||||
-e 's,\(DATA_PREFIX=$(PREFIX)/share/\)cataclysm-dda/,\1,g'
|
||||
-e 's,-Werror,,g'
|
||||
|
||||
sed '1i#include <cmath>' \
|
||||
-i src/{crafting,skill,weather_data,melee,vehicle,overmap,iuse_actor}.cpp
|
||||
@ -44,7 +43,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/cataclysm-tiles \
|
||||
--add-flags "--datadir $out/share/"
|
||||
--add-flags "--datadir $out/share/cataclysm-dda/"
|
||||
'' + stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
app=$out/Applications/Cataclysm.app
|
||||
install -D -m 444 data/osx/Info.plist -t $app/Contents
|
||||
|
@ -22,8 +22,7 @@ stdenv.mkDerivation rec {
|
||||
postPatch = ''
|
||||
patchShebangs .
|
||||
sed -i Makefile \
|
||||
-e 's,-Werror,,g' \
|
||||
-e 's,\(DATA_PREFIX=$(PREFIX)/share/\)cataclysm-dda/,\1,g'
|
||||
-e 's,-Werror,,g'
|
||||
|
||||
sed '1i#include <cmath>' \
|
||||
-i src/{crafting,skill,weather_data,melee,vehicle,overmap,iuse_actor}.cpp
|
||||
|
Loading…
Reference in New Issue
Block a user