aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-04-16 00:11:39 +0200
committerAdrian Kummerlaender2019-04-16 00:11:39 +0200
commit1b92af67088b5e57f9134703ae6115c3529fb352 (patch)
tree0792074fbb23ca2a2414442f261df437cdd0101a
parent68e508e305e8b9b244608493bc70f7b258bc60c8 (diff)
downloadslang-1b92af67088b5e57f9134703ae6115c3529fb352.tar
slang-1b92af67088b5e57f9134703ae6115c3529fb352.tar.gz
slang-1b92af67088b5e57f9134703ae6115c3529fb352.tar.bz2
slang-1b92af67088b5e57f9134703ae6115c3529fb352.tar.xz
slang-1b92af67088b5e57f9134703ae6115c3529fb352.zip
Add Nix shell
Use `nixpkgs-unstable` by default as `dub` currently fails to compile somewhere inside its testcases.
-rw-r--r--shell.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/shell.nix b/shell.nix
new file mode 100644
index 0000000..da08318
--- /dev/null
+++ b/shell.nix
@@ -0,0 +1,11 @@
+{ pkgs ? import <nixpkgs-unstable> { }, ... }:
+
+pkgs.stdenv.mkDerivation rec {
+ name = "env";
+ env = pkgs.buildEnv { name = name; paths = buildInputs; };
+
+ buildInputs = with pkgs; [
+ dmd
+ dub
+ ];
+}