diff options
-rw-r--r-- | .envrc | 1 | ||||
-rw-r--r-- | nix/README.md | 19 | ||||
-rw-r--r-- | nix/default.nix | 10 | ||||
-rw-r--r-- | nix/rust.nix | 11 |
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 + ]; +} |