From df49368e9acd84a7b57a30d8961045af31c5982e Mon Sep 17 00:00:00 2001 From: Slendi Date: Fri, 14 Nov 2025 15:21:17 +0200 Subject: [PATCH] direnv Signed-off-by: Slendi --- .envrc | 1 + .gitignore | 1 + flake.nix | 15 ++++++--------- 3 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 .envrc diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/.gitignore b/.gitignore index 7f5f27c..546a2a9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ [Bb]uild* .cache result +.direnv diff --git a/flake.nix b/flake.nix index 1515176..ce4b778 100644 --- a/flake.nix +++ b/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; {