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