linalg: init at 2.2

This commit is contained in:
eymeric 2025-04-16 08:40:55 +02:00
parent b2c889f60a
commit 6c98eb583a
No known key found for this signature in database

View file

@ -0,0 +1,35 @@
{
lib,
stdenv,
fetchFromGitHub,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "lialg";
version = "2.2";
src = fetchFromGitHub {
owner = "sgorsten";
repo = "linalg";
tag = "v${finalAttrs.version}";
hash = "sha256-2I+sJca0tf/CcuoqaldfwPVRrzNriTXO60oHxsFQSnE=";
};
installPhase = ''
runHook preInstall
install -Dm644 linalg.h -t $out/include
runHook postInstall
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Single-header, public domain, short vector math library for C++";
homepage = "https://github.com/sgorsten/linalg";
license = lib.licenses.publicDomain;
maintainers = [ lib.maintainers.eymeric ];
platforms = lib.platforms.all;
};
})