nixpkgs/pkgs/games/flare/default.nix
Naïm Favier 9160044f5f
treewide/makeWrapper: replace --run cd with --chdir
Lay the groundwork for switching to binary wrappers by reducing uses
of `--run` (which is not supported by `makeBinaryWrapper`).
2022-03-19 09:46:31 +01:00

24 lines
632 B
Nix

{ lib, buildEnv, callPackage, makeWrapper, Cocoa }:
buildEnv {
name = "flare-1.13.04";
paths = [
(callPackage ./engine.nix { inherit Cocoa; })
(callPackage ./game.nix {})
];
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
mkdir -p $out/bin
makeWrapper $out/games/flare $out/bin/flare --chdir "$out/share/games/flare"
'';
meta = with lib; {
description = "Fantasy action RPG using the FLARE engine";
homepage = "https://flarerpg.org/";
maintainers = with maintainers; [ aanderse McSinyx ];
license = [ licenses.gpl3 licenses.cc-by-sa-30 ];
platforms = platforms.unix;
};
}