mirror of
https://github.com/slendidev/smath.git
synced 2025-12-08 03:49:52 +02:00
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
[Bb]uild*
|
||||
.cache
|
||||
result
|
||||
.direnv
|
||||
|
||||
15
flake.nix
15
flake.nix
@@ -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; {
|
||||
|
||||
Reference in New Issue
Block a user