From 22f5aba88f839d0307b4dee76d6414f62b0b69cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Bon=C3=A9?= Date: Wed, 4 Feb 2026 12:11:12 +0100 Subject: [PATCH] Add flake with templates --- flake.nix | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 flake.nix diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..0f4ac3f --- /dev/null +++ b/flake.nix @@ -0,0 +1,32 @@ +{ + description = "A collection of flake templates for jungle"; + + outputs = + { self }: + { + templates = { + ompss2 = { + path = ./ompss2; + description = "LLVM compiler to build OmpSs-2 with nodes and nOS-V"; + welcomeText = '' + # Getting started + - Run `nix develop` + - Run `make` + + Open README.md for more + ''; + }; + cuda = { + path = ./cuda; + description = "CUDA development in nix"; + welcomeText = '' + Run `nix develop` to load the environment and `make` to build the + example CUDA program. Run it with `./cudainfo` from the fox machine to + test it. + ''; + }; + }; + + defaultTemplate = self.templates.ompss2; + }; +}