From 2e34620551b30c099cacc386ba9127f0bd04f77c Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sat, 28 Nov 2020 15:15:03 -0500 Subject: directory nixEnv (renamed from nixDevEnv) --- nixEnv/shells/packages-ldc.nix | 14 ++++++++++++++ nixEnv/shells/shell-dmd-verNix.nix | 12 ++++++++++++ nixEnv/shells/shell-dmd-verUser.nix | 14 ++++++++++++++ nixEnv/shells/shell-ldc-verNix.nix | 5 +++++ nixEnv/shells/shell-ldc-verUser.nix | 7 +++++++ 5 files changed, 52 insertions(+) create mode 100644 nixEnv/shells/packages-ldc.nix create mode 100644 nixEnv/shells/shell-dmd-verNix.nix create mode 100644 nixEnv/shells/shell-dmd-verUser.nix create mode 100644 nixEnv/shells/shell-ldc-verNix.nix create mode 100644 nixEnv/shells/shell-ldc-verUser.nix (limited to 'nixEnv/shells') diff --git a/nixEnv/shells/packages-ldc.nix b/nixEnv/shells/packages-ldc.nix new file mode 100644 index 0000000..bcef059 --- /dev/null +++ b/nixEnv/shells/packages-ldc.nix @@ -0,0 +1,14 @@ +{ pkgs ? import {} }: +let + dub2nix-src = fetchTarball { + url = "https://github.com/lionello/dub2nix/archive/master.tar.gz"; + }; + dub2nix = (import dub2nix-src) { inherit pkgs; }; +in +with pkgs; [ + nix + ldc + sqlite + nix-prefetch-git + validatePkgConfig +] diff --git a/nixEnv/shells/shell-dmd-verNix.nix b/nixEnv/shells/shell-dmd-verNix.nix new file mode 100644 index 0000000..7f16efe --- /dev/null +++ b/nixEnv/shells/shell-dmd-verNix.nix @@ -0,0 +1,12 @@ +{ pkgs ? import {} }: +pkgs.mkShell { + buildInputs = with pkgs; [ + nix + dub + dmd + rdmd + sqlite + dub2nix + nix-prefetch-git + ]; +} diff --git a/nixEnv/shells/shell-dmd-verUser.nix b/nixEnv/shells/shell-dmd-verUser.nix new file mode 100644 index 0000000..334aece --- /dev/null +++ b/nixEnv/shells/shell-dmd-verUser.nix @@ -0,0 +1,14 @@ +{ pkgs ? import + { overlays = [ ]; } +}: +pkgs.mkShell { + buildInputs = with pkgs; [ + nix + dub + dmd + rdmd + sqlite + dub2nix + nix-prefetch-git + ]; +} diff --git a/nixEnv/shells/shell-ldc-verNix.nix b/nixEnv/shells/shell-ldc-verNix.nix new file mode 100644 index 0000000..0a6aa9a --- /dev/null +++ b/nixEnv/shells/shell-ldc-verNix.nix @@ -0,0 +1,5 @@ +{ pkgs ? import {} }: +pkgs.mkShell { + buildInputs = with pkgs; + [ (import ./packages-ldc.nix { inherit pkgs; }) ]; +} diff --git a/nixEnv/shells/shell-ldc-verUser.nix b/nixEnv/shells/shell-ldc-verUser.nix new file mode 100644 index 0000000..1c9c092 --- /dev/null +++ b/nixEnv/shells/shell-ldc-verUser.nix @@ -0,0 +1,7 @@ +{ pkgs ? import { + overlays = [ (import ../overlays/ldcVersion.nix) ]; +} }: +pkgs.mkShell { + buildInputs = with pkgs; + [ (import ./packages-ldc.nix { inherit pkgs; }) ]; +} -- cgit v1.2.3