aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2021-02-24 17:14:16 +0100
committerKatharina Fey <kookie@spacekookie.de>2021-02-24 17:14:40 +0100
commitf67b7166c621378e87ddc79e1a94e4dfabe412ac (patch)
treed480f75b198a00ec8427e3af2355d3b95cf49bea
parenteffbdeed66e8de8e769b8ac069926ad1a9110e62 (diff)
nix: init default builder directorymain
-rw-r--r--.envrc1
-rw-r--r--nix/README.md19
-rw-r--r--nix/default.nix10
-rw-r--r--nix/rust.nix11
4 files changed, 41 insertions, 0 deletions
diff --git a/.envrc b/.envrc
new file mode 100644
index 000000000000..ebd1485bb86c
--- /dev/null
+++ b/.envrc
@@ -0,0 +1 @@
+NIX_PATH=$NIX_PATH:nom=$(pwd)/nix
diff --git a/nix/README.md b/nix/README.md
new file mode 100644
index 000000000000..82ef1dd55ea2
--- /dev/null
+++ b/nix/README.md
@@ -0,0 +1,19 @@
+# nix builders
+
+The kookienomicon is a collection of projects, each with their own
+dependencies, and build setups. Nix and Lorri are used extentsively
+to facilitate switching between build tools and dependency scopes.
+
+The root of the repository adds a new key to the `NIX_PATH`
+environment variable, which can then be used to look-up development
+builders.
+
+
+## How to use
+
+There are default builders for common programming language setups
+(such as Rust).
+
+```nix
+
+```
diff --git a/nix/default.nix b/nix/default.nix
new file mode 100644
index 000000000000..475af25ecbf1
--- /dev/null
+++ b/nix/default.nix
@@ -0,0 +1,10 @@
+/**
+ * Kookienomicon overlay definition
+ *
+ *
+ *
+ */
+
+self: super: {
+
+}
diff --git a/nix/rust.nix b/nix/rust.nix
new file mode 100644
index 000000000000..5b1dca78f5dc
--- /dev/null
+++ b/nix/rust.nix
@@ -0,0 +1,11 @@
+with import <nixpkgs> {};
+
+stdenv.mkDerivation {
+ name = "rust-devel";
+ buildInputs = with pkgs; [
+ rust-analyzer rustc
+ cargo-watch
+ clangStdenv
+ hello
+ ];
+}