From 2d9778dc01c8ca6c5a915e1ee638251878990d10 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 13 Oct 2020 14:09:43 -0400 Subject: build nix derivation (using dub2nix helper tool) - nix-shell - nix-build - dub2nix (dub to nix helper tool) - Lionello Lunesu - MIT License - https://github.com/lionello/dub2nix --- shell.nix | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'shell.nix') diff --git a/shell.nix b/shell.nix index b226cd3..31cfcfb 100644 --- a/shell.nix +++ b/shell.nix @@ -1,17 +1,21 @@ { pkgs ? import { overlays = [ (import ./nixDevEnv/overlays/ldcVersion.nix) - (import ./nixDevEnv/overlays/dmdVersion.nix) ]; } }: - pkgs.mkShell { - buildInputs = with pkgs; [ - dub - ninja - #meson - dmd - ldc - sqlite - validatePkgConfig +let + dub2nix-src = fetchTarball { + url = "https://github.com/lionello/dub2nix/archive/master.tar.gz"; + }; + dub2nix = (import dub2nix-src) { inherit pkgs; }; +in pkgs.mkShell { + buildInputs = with pkgs; [ + nix + dub + ldc + rdmd + sqlite + dub2nix + nix-prefetch-git ]; } -- cgit v1.2.3