depot/pkgs/by-name/fn/fna3d/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

39 lines
890 B
Nix

{
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 ];
};
}