summaryrefslogtreecommitdiffstats
path: root/pkgs/games/azimuth
diff options
context:
space:
mode:
authormarius851000 <mariusdavid@laposte.net>2019-06-04 08:37:16 +0200
committermarius851000 <mariusdavid@laposte.net>2019-06-04 08:37:16 +0200
commit62dc74aae2adf9d32ccb2b6df3bb767220841983 (patch)
treea07d815e4b6ee290714a1c6fc9dcfdbf63a542e0 /pkgs/games/azimuth
parent999b31a6dd01417a1715c69cc55ee6223cf03d1b (diff)
azimuth: use the builtins install target
Diffstat (limited to 'pkgs/games/azimuth')
-rw-r--r--pkgs/games/azimuth/default.nix32
1 files changed, 9 insertions, 23 deletions
diff --git a/pkgs/games/azimuth/default.nix b/pkgs/games/azimuth/default.nix
index 3370f339fa2a..8cb583e07d2b 100644
--- a/pkgs/games/azimuth/default.nix
+++ b/pkgs/games/azimuth/default.nix
@@ -1,17 +1,21 @@
-{ stdenv, fetchFromGitHub, SDL }:
+{ stdenv, fetchFromGitHub, SDL, which, installTool ? false }:
stdenv.mkDerivation rec {
pname = "azimuth";
- version = "1.0.2";
+ version = "1.0.3";
src = fetchFromGitHub {
owner = "mdsteele";
repo = "azimuth";
rev = "v${version}";
- sha256 = "0yh52i3vfmj5zd7fs1r2xpjy2mknycr5xz6kyixj2qncb25xsm7z";
+ sha256 = "1znfvpmqiixd977jv748glk5zc4cmhw5813zp81waj07r9b0828r";
};
+ nativeBuildInputs = [ which ];
+ buildInputs = [ SDL ];
+
preConfigure = ''
+ cat Makefile
substituteInPlace data/azimuth.desktop \
--replace Exec=azimuth "Exec=$out/bin/azimuth" \
--replace "Version=%AZ_VERSION_NUMBER" "Version=${version}"
@@ -19,30 +23,12 @@ stdenv.mkDerivation rec {
makeFlags = [
"BUILDTYPE=release"
- ];
+ "INSTALLDIR=$(out)"
+ ] ++ (if installTool then ["INSTALLTOOL=true"] else ["INSTALLTOOL=false"]);
- buildInputs = [ SDL ];
enableParallelBuilding = true;
- # the game doesn't have an installation procedure
- installPhase = ''
- mkdir -p $out/bin
- cp out/release/host/bin/azimuth $out/bin/azimuth
- cp out/release/host/bin/editor $out/bin/azimuth-editor
- cp out/release/host/bin/muse $out/bin/azimuth-muse
- cp out/release/host/bin/zfxr $out/bin/azimuth-zfxr
- mkdir -p $out/share/doc/azimuth
- cp doc/* README.md LICENSE $out/share/doc/azimuth
- mkdir -p $out/share/icons/hicolor/128x128/apps $out/share/icons/hicolor/64x64/apps $out/share/icons/hicolor/48x48/apps $out/share/icons/hicolor/32x32/apps
- cp data/icons/icon_128x128.png $out/share/icons/hicolor/128x128/apps/azimuth.png
- cp data/icons/icon_64x64.png $out/share/icons/hicolor/64x64/apps/azimuth.png
- cp data/icons/icon_48x48.png $out/share/icons/hicolor/48x48/apps/azimuth.png
- cp data/icons/icon_32x32.png $out/share/icons/hicolor/32x32/apps/azimuth.png
- mkdir -p $out/share/applications
- cp data/azimuth.desktop $out/share/applications
- '';
-
meta = {
description = "A metroidvania game using only vectorial graphic";
longDescription = ''