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 18:00:47 +0100
commit5d61126be107ce5b4e3e1ae684a1cb5a625aa048 (patch)
treeaf8ff2549ce312d7e75f6d98453ae6e6e1f9fcf1
parenta17611983559c784be45efcfc0b01a01fcb52042 (diff)
nix: init default builder directory
-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
+ ];
+}