Skip to content

Commit

Permalink
fna3d: init at 24.11 (#266200)
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrumplex authored Nov 3, 2024
2 parents e913839 + 412bca2 commit 4275af2
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions pkgs/by-name/fn/fna3d/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
SDL2,
}:
stdenv.mkDerivation rec {
pname = "fna3d";
version = "24.11";

src = fetchFromGitHub {
owner = "FNA-XNA";
repo = "FNA3D";
rev = version;
fetchSubmodules = true;
hash = "sha256-NTVaPY39acSRibGQjLuh5ZBGC1Zep/rybVcOU0WrNIw=";
};

buildInputs = [ SDL2 ];
nativeBuildInputs = [ cmake ];

installPhase = ''
runHook preInstall
install -Dm755 libFNA3D.so $out/lib/libFNA3D.so
ln -s libFNA3D.so $out/lib/libFNA3D.so.0
ln -s libFNA3D.so $out/lib/libFNA3D.so.0.${version}
runHook postInstall
'';

meta = {
description = "Accuracy-focused XNA4 reimplementation for open platforms";
homepage = "https://fna-xna.github.io/";
license = lib.licenses.mspl;
platforms = lib.platforms.linux;
mainProgram = pname;
maintainers = with lib.maintainers; [ mrtnvgr ];
};
}

0 comments on commit 4275af2

Please sign in to comment.