mirror of
https://github.com/slendidev/smath.git
synced 2025-12-14 13:19:51 +02:00
15
flake.nix
15
flake.nix
@@ -36,7 +36,11 @@
|
||||
|
||||
src = ./.;
|
||||
|
||||
nativeBuildInputs = [ pkgs.copyPkgconfigItems ];
|
||||
nativeBuildInputs = with pkgs; [
|
||||
cmake
|
||||
gtest
|
||||
copyPkgconfigItems
|
||||
];
|
||||
|
||||
pkgconfigItems = [
|
||||
(pkgs.makePkgconfigItem rec {
|
||||
@@ -51,17 +55,18 @@
|
||||
})
|
||||
];
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/include
|
||||
cp include/*.hpp $out/include/
|
||||
cp ../include/smath.hpp $out/include/
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
dontBuild = false;
|
||||
doCheck = true;
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = desc;
|
||||
description = "Single-file linear algebra math library for C++23.";
|
||||
homepage = "https://github.com/slendidev/smath";
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.all;
|
||||
|
||||
Reference in New Issue
Block a user