mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
linalg: init at 2.2
This commit is contained in:
parent
b2c889f60a
commit
6c98eb583a
1 changed files with 35 additions and 0 deletions
35
pkgs/by-name/li/linalg/package.nix
Normal file
35
pkgs/by-name/li/linalg/package.nix
Normal 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;
|
||||
};
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue