Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-11-14 15:21:17 +02:00
parent 9f70b6c72b
commit df49368e9a
3 changed files with 8 additions and 9 deletions

1
.envrc Normal file
View File

@@ -0,0 +1 @@
use flake

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
[Bb]uild* [Bb]uild*
.cache .cache
result result
.direnv

View File

@@ -1,8 +1,5 @@
let
desc = "Single-file linear algebra math library for C++23.";
in
{ {
description = desc; description = "Single-file linear algebra math library for C++23.";
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
@@ -50,17 +47,17 @@ in
prefix = "${placeholder "out"}"; prefix = "${placeholder "out"}";
includedir = "${prefix}/include"; includedir = "${prefix}/include";
}; };
description = desc; description = "Single-file linear algebra math library for C++23.";
}) })
]; ];
dontBuild = true; dontBuild = true;
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
mkdir -p $out/include mkdir -p $out/include
cp include/*.hpp $out/include/ cp include/*.hpp $out/include/
runHook postInstall runHook postInstall
''; '';
meta = with pkgs.lib; { meta = with pkgs.lib; {