diff options
author | Will Dietz <w@wdtz.org> | 2019-10-31 16:46:24 -0500 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2020-01-01 01:44:03 -0600 |
commit | a133f8e6438c40a6d540168d409f0c6119239de2 (patch) | |
tree | 2b40e853cd0841fb699190d029ba7cc0dd1e68e0 /pkgs/games/devilutionx | |
parent | 7e5334d6f2bf03888ffe88af015a39096293277b (diff) |
devilutionx: install required font file
Diffstat (limited to 'pkgs/games/devilutionx')
-rw-r--r-- | pkgs/games/devilutionx/default.nix | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/games/devilutionx/default.nix b/pkgs/games/devilutionx/default.nix index 3241e6dd387f..58b77a16fb45 100644 --- a/pkgs/games/devilutionx/default.nix +++ b/pkgs/games/devilutionx/default.nix @@ -10,7 +10,10 @@ stdenv.mkDerivation rec { sha256 = "010hxj129zmsynvizk89vm2y29dcxsfi585czh3f03wfr38rxa6b"; }; - NIX_CFLAGS_COMPILE = "-I${SDL2_ttf}/include/SDL2"; + NIX_CFLAGS_COMPILE = [ + "-I${SDL2_ttf}/include/SDL2" + ''-DTTF_FONT_PATH="${placeholder "out"}/share/fonts/truetype/CharisSILB.ttf"'' + ]; nativeBuildInputs = [ pkg-config cmake ]; buildInputs = [ libsodium SDL2 SDL2_mixer SDL2_ttf ]; @@ -22,8 +25,10 @@ stdenv.mkDerivation rec { mkdir -p $out/Applications mv devilutionx.app $out/Applications '' else '' - mkdir -p $out/bin - cp devilutionx $out/bin + install -Dm755 -t $out/bin devilutionx + install -Dt $out/share/fonts/truetype ../Packaging/resources/CharisSILB.ttf + + # TODO: icons and .desktop (see Packages/{debian,fedora}/*) '') + '' runHook postInstall |