nixpkgs/pkgs/games/principia/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

70 lines
1.2 KiB
Nix
Raw Normal View History

2023-03-17 10:19:00 -04:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
2023-03-17 10:19:00 -04:00
, pkg-config
, wrapGAppsHook3
2023-03-17 10:19:00 -04:00
, curl
, freetype
, glew
, gtk3
2023-03-17 10:19:00 -04:00
, libGL
, libjpeg
, libpng
, SDL2
, SDL2_gfx
, SDL2_image
, SDL2_mixer
, SDL2_ttf
}:
stdenv.mkDerivation (finalAttrs: {
2023-03-17 10:19:00 -04:00
pname = "principia";
2024-07-13 04:11:52 -04:00
version = "2024.07.12";
2023-03-17 10:19:00 -04:00
src = fetchFromGitHub {
owner = "Bithack";
repo = "principia";
rev = finalAttrs.version;
2024-07-13 04:11:52 -04:00
hash = "sha256-JZXarRXScn7/0uve3Ul9dxMz0TE3N8E1VR1nasl051Q=";
2023-03-17 10:19:00 -04:00
};
nativeBuildInputs = [
cmake
2023-03-17 10:19:00 -04:00
pkg-config
wrapGAppsHook3
2023-03-17 10:19:00 -04:00
];
buildInputs = [
curl
freetype
glew
gtk3
2023-03-17 10:19:00 -04:00
libGL
libjpeg
libpng
SDL2
SDL2_gfx
SDL2_image
SDL2_mixer
SDL2_ttf
];
cmakeFlags = [
# Remove when https://github.com/NixOS/nixpkgs/issues/144170 is fixed
(lib.cmakeFeature "CMAKE_INSTALL_BINDIR" "bin")
];
2023-03-17 10:19:00 -04:00
meta = with lib; {
changelog = "https://principia-web.se/wiki/Changelog#${lib.replaceStrings ["."] ["-"] finalAttrs.version}";
2023-03-17 10:19:00 -04:00
description = "Physics-based sandbox game";
mainProgram = "principia";
2023-03-17 10:19:00 -04:00
homepage = "https://principia-web.se/";
downloadPage = "https://principia-web.se/download";
license = licenses.bsd3;
maintainers = [ maintainers.fgaz ];
platforms = platforms.linux;
};
})