uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
24
pkgs/games/flare/default.nix
Normal file
24
pkgs/games/flare/default.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ 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;
|
||||
};
|
||||
}
|
||||
15
pkgs/games/flare/desktop.patch
Normal file
15
pkgs/games/flare/desktop.patch
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
diff --git a/distribution/flare.desktop.in b/distribution/flare.desktop.in
|
||||
index c740e2a6..eef91a89 100644
|
||||
--- a/distribution/flare.desktop.in
|
||||
+++ b/distribution/flare.desktop.in
|
||||
@@ -14,8 +14,8 @@ Comment[fr]=Un jeu de rôle d'action monojoueur en 2D isométrique
|
||||
Comment[gl]=Xogo individual de acción e rol cunha vista isométrica en dúas dimensións.
|
||||
Comment[ru]=Изометрический ролевой боевик для одного игрока
|
||||
Comment[uk]=Ізометричний рольовий екшн (Action/RPG) для одного гравця
|
||||
-TryExec=@FLARE_EXECUTABLE_PATH@
|
||||
-Exec=@FLARE_EXECUTABLE_PATH@
|
||||
+TryExec=flare
|
||||
+Exec=flare
|
||||
Categories=Game;RolePlaying;
|
||||
Icon=flare
|
||||
Terminal=false
|
||||
27
pkgs/games/flare/engine.nix
Normal file
27
pkgs/games/flare/engine.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, Cocoa }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "flare-engine";
|
||||
version = "1.13.04";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "flareteam";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-GPHPYcW0kBDGpZti2kFggNB4RVK/3eQ53M9mJvJuKXM=";
|
||||
};
|
||||
|
||||
patches = [ ./desktop.patch ];
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ SDL2 SDL2_image SDL2_mixer SDL2_ttf ]
|
||||
++ lib.optional stdenv.isDarwin Cocoa;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Free/Libre Action Roleplaying Engine";
|
||||
homepage = "https://github.com/flareteam/flare-engine";
|
||||
maintainers = with maintainers; [ aanderse McSinyx ];
|
||||
license = [ licenses.gpl3 ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
23
pkgs/games/flare/game.nix
Normal file
23
pkgs/games/flare/game.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "flare-game";
|
||||
version = "1.13.04";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "flareteam";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-7dEIagioM6OZXG+eNaYls8skHXSqGFXZuNhT0zhTFdY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Fantasy action RPG using the FLARE engine";
|
||||
homepage = "https://github.com/flareteam/flare-game";
|
||||
maintainers = with maintainers; [ aanderse McSinyx ];
|
||||
license = [ licenses.cc-by-sa-30 ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue