aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2020-01-06 20:55:03 +0000
committerKatharina Fey <kookie@spacekookie.de>2020-01-08 19:59:02 +0000
commit7a224bb356b2d8f5a049915a14993ccfafddfc45 (patch)
tree394483c31d24bce36233db78569311cc7a4ba84d
parent508b460098d0060bf857cfc09ce64096bf6160b5 (diff)
Adding nix build files
This is meant to make development for NIxOS users easier. Lorri is used to build an environment asynchronously. Direnv is then used to switch to the environment when entering the directory, or when it has updated since last switching.
-rw-r--r--.envrc1
-rw-r--r--shell.nix9
2 files changed, 10 insertions, 0 deletions
diff --git a/.envrc b/.envrc
new file mode 100644
index 0000000..051d09d
--- /dev/null
+++ b/.envrc
@@ -0,0 +1 @@
+eval "$(lorri direnv)"
diff --git a/shell.nix b/shell.nix
new file mode 100644
index 0000000..9306843
--- /dev/null
+++ b/shell.nix
@@ -0,0 +1,9 @@
+with import <nixpkgs> {};
+
+stdenv.mkDerivation {
+ name = "qaul";
+ buildInputs = with pkgs; [
+ rustracer rustup clangStdenv
+ openssl pkg-config
+ ];
+}