mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 19:54:05 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ lib, mkDerivation, fetchFromGitHub, cmake, qttools, wrapQtAppsHook, qtbase, qtsvg }:
|
|
|
|
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
|
|
|
|
# fix translations not building: https://gitlab.kitware.com/cmake/cmake/-/issues/21931
|
|
substituteInPlace i18n/CMakeLists.txt --replace qt5_create_translation qt_add_translation
|
|
'';
|
|
|
|
nativeBuildInputs = [ cmake qttools wrapQtAppsHook ];
|
|
buildInputs = [ qtbase qtsvg ];
|
|
strictDeps = true;
|
|
|
|
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";
|
|
mainProgram = "tbe";
|
|
homepage = "http://the-butterfly-effect.org/";
|
|
maintainers = [ maintainers.raskin ];
|
|
platforms = platforms.linux;
|
|
license = licenses.gpl2;
|
|
};
|
|
}
|