tbe: migrate to pkgs/by-name and modernize derivation (#460821)

This commit is contained in:
7c6f434c
2025-11-12 06:25:34 +00:00
committed by GitHub
2 changed files with 15 additions and 17 deletions

View File

@@ -1,23 +1,20 @@
{
lib,
mkDerivation,
stdenv,
fetchFromGitHub,
cmake,
qttools,
wrapQtAppsHook,
qtbase,
qtsvg,
libsForQt5,
}:
mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "tbe";
version = "0.9.3.1";
src = fetchFromGitHub {
owner = "kaa-ching";
repo = "tbe";
tag = "v${version}";
sha256 = "1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj";
tag = "v${finalAttrs.version}";
hash = "sha256-UnvFr/ofk6CgtBv6ua8XjZAWScFGfeNx+is5Q8Zl4qk=";
};
postPatch = ''
@@ -34,10 +31,13 @@ mkDerivation rec {
nativeBuildInputs = [
cmake
]
++ (with libsForQt5; [
qttools
wrapQtAppsHook
];
buildInputs = [
]);
buildInputs = with libsForQt5; [
qtbase
qtsvg
];
@@ -50,12 +50,12 @@ mkDerivation rec {
cp -r ../usr/share $out/
'';
meta = with lib; {
meta = {
description = "Physics-based game vaguely similar to Incredible Machine";
mainProgram = "tbe";
homepage = "http://the-butterfly-effect.org/";
maintainers = [ maintainers.raskin ];
platforms = platforms.linux;
license = licenses.gpl2Only;
maintainers = with lib.maintainers; [ raskin ];
platforms = lib.platforms.linux;
license = lib.licenses.gpl2Only;
};
}
})

View File

@@ -13195,8 +13195,6 @@ with pkgs;
lua = lua5_2;
};
tbe = libsForQt5.callPackage ../games/the-butterfly-effect { };
teeworlds-server = teeworlds.override { buildClient = false; };
tengine = callPackage ../servers/http/tengine {