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
36
pkgs/games/the-butterfly-effect/default.nix
Normal file
36
pkgs/games/the-butterfly-effect/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ lib, mkDerivation, fetchFromGitHub, qt5, box2d, which, cmake, gettext }:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "tbe";
|
||||
version = "0.9.3.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kaa-ching";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj";
|
||||
};
|
||||
|
||||
postPatch = "sed '1i#include <vector>' -i src/model/World.h";
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [
|
||||
qt5.qtbase qt5.qtsvg qt5.qttranslations box2d which
|
||||
gettext
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
make DESTDIR=.. install
|
||||
mkdir -p $out/bin
|
||||
cp ../usr/games/tbe $out/bin
|
||||
cp -r ../usr/share $out/
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A physics-based game vaguely similar to Incredible Machine";
|
||||
homepage = "http://the-butterfly-effect.org/";
|
||||
maintainers = [ maintainers.raskin ];
|
||||
platforms = platforms.linux;
|
||||
license = licenses.gpl2;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue