From 1b92af67088b5e57f9134703ae6115c3529fb352 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Tue, 16 Apr 2019 00:11:39 +0200 Subject: Add Nix shell Use `nixpkgs-unstable` by default as `dub` currently fails to compile somewhere inside its testcases. --- shell.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 shell.nix 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 { }, ... }: + +pkgs.stdenv.mkDerivation rec { + name = "env"; + env = pkgs.buildEnv { name = name; paths = buildInputs; }; + + buildInputs = with pkgs; [ + dmd + dub + ]; +} -- cgit v1.2.3