From 5d61126be107ce5b4e3e1ae684a1cb5a625aa048 Mon Sep 17 00:00:00 2001 From: Katharina Fey Date: Wed, 24 Feb 2021 17:14:16 +0100 Subject: [PATCH] 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 00000000000..ebd1485bb86 --- /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 00000000000..82ef1dd55ea --- /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 00000000000..475af25ecbf --- /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 00000000000..5b1dca78f5d --- /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 + ]; +}