nixpkgs/pkgs/games/julius/default.nix

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

61 lines
1.2 KiB
Nix
Raw Normal View History

2022-06-10 04:09:34 +02:00
{ lib
, stdenv
, fetchFromGitHub
, SDL2
, SDL2_mixer
, cmake
, libpng
2024-06-07 17:55:15 +02:00
, darwin
, libicns
, imagemagick
2022-06-10 04:09:34 +02:00
}:
2020-06-08 19:08:57 +02:00
stdenv.mkDerivation rec {
pname = "julius";
2021-10-16 13:02:17 +02:00
version = "1.7.0";
2020-06-08 19:08:57 +02:00
src = fetchFromGitHub {
owner = "bvschaik";
repo = "julius";
rev = "v${version}";
2022-06-10 04:09:34 +02:00
hash = "sha256-I5GTaVWzz0ryGLDSS3rzxp+XFVXZa9hZmgwon/6r83A=";
2020-06-08 19:08:57 +02:00
};
2024-06-07 17:55:15 +02:00
patches = [
# This fixes the darwin bundle generation, sets min. deployment version
# and patches SDL2_mixer include
./darwin-fixes.patch
];
nativeBuildInputs = [
cmake
] ++ lib.optionals stdenv.isDarwin [
darwin.sigtool
libicns
imagemagick
];
buildInputs = [
SDL2
SDL2_mixer
libpng
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Cocoa
];
installPhase = lib.optionalString stdenv.isDarwin ''
runHook preInstall
mkdir -p $out/Applications
cp -r julius.app $out/Applications/
runHook postInstall
'';
2020-06-08 19:08:57 +02:00
meta = with lib; {
2020-06-08 19:08:57 +02:00
homepage = "https://github.com/bvschaik/julius";
2022-06-10 04:09:34 +02:00
description = "Open source re-implementation of Caesar III";
mainProgram = "julius";
2024-03-19 13:26:06 +01:00
license = licenses.agpl3Only;
2024-06-07 17:55:15 +02:00
maintainers = with maintainers; [ Thra11 matteopacini ];
2020-06-08 19:08:57 +02:00
platforms = platforms.all;
};
}