From f67b7166c621378e87ddc79e1a94e4dfabe412ac Mon Sep 17 00:00:00 2001 From: Katharina Fey Date: Wed, 24 Feb 2021 17:14:16 +0100 Subject: nix: init default builder directory --- .envrc | 1 + nix/README.md | 19 +++++++++++++++++++ nix/default.nix | 10 ++++++++++ nix/rust.nix | 11 +++++++++++ 4 files changed, 41 insertions(+) create mode 100644 .envrc create mode 100644 nix/README.md create mode 100644 nix/default.nix create mode 100644 nix/rust.nix 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 {}; + +stdenv.mkDerivation { + name = "rust-devel"; + buildInputs = with pkgs; [ + rust-analyzer rustc + cargo-watch + clangStdenv + hello + ]; +} -- cgit v1.2.3