Ihar Hrachyshka dd0f03a56c treewide: remove usage of deprecated apple_sdk framework stubs
They are not doing anything right now. This is in preparation for their
complete removal from the tree.

Note: several changes that affect the derivation inputs (e.g. removal of
references to stub paths in build instructions) were left out. They will
be cleaned up the next iteration and will require special care.

Note: this PR is a result of a mix of ugly regex (not AST) based
automation and some manual labor. For reference, the regex automation
part was hacked in: https://github.com/booxter/nix-clean-apple_sdk

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-04-19 20:28:20 -04:00

79 lines
1.3 KiB
Nix

{
bzip2,
copyDesktopItems,
curl,
fetchFromGitHub,
fftwFloat,
jsoncpp,
lib,
libpng,
libX11,
lua,
luajit,
meson,
ninja,
pkg-config,
python3,
SDL2,
stdenv,
zlib,
}:
stdenv.mkDerivation rec {
pname = "the-powder-toy";
version = "99.3.384";
src = fetchFromGitHub {
owner = "The-Powder-Toy";
repo = "The-Powder-Toy";
tag = "v${version}";
hash = "sha256-vlswHNkjyxM9sZT+mwiCMfNbdAbhYyx06w+ZLfaPaEQ=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
python3
] ++ lib.optional stdenv.hostPlatform.isLinux copyDesktopItems;
buildInputs = [
bzip2
curl
fftwFloat
jsoncpp
libpng
libX11
lua
luajit
SDL2
zlib
];
mesonFlags = [ "-Dworkaround_elusive_bzip2=false" ];
installPhase = ''
runHook preInstall
install -Dm 755 powder $out/bin/powder
mkdir -p $out/share
mv ../resources $out/share
runHook postInstall
'';
desktopItems = [ "resources/powder.desktop" ];
meta = with lib; {
description = "Free 2D physics sandbox game";
homepage = "https://powdertoy.co.uk/";
platforms = platforms.unix;
license = licenses.gpl3Plus;
maintainers = with maintainers; [
abbradar
siraben
];
mainProgram = "powder";
};
}