From 750a0961f51a25de417d86fa9fbbacf24b2a0314 Mon Sep 17 00:00:00 2001 From: Petar Kirov Date: Wed, 19 Apr 2023 18:06:27 +0300 Subject: [PATCH] refactor(shell.nix): Include `dmd` package only if the `hostPlatform` is x86 --- shell.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/shell.nix b/shell.nix index d45fc4a7..9e6f26a6 100644 --- a/shell.nix +++ b/shell.nix @@ -1,13 +1,16 @@ {pkgs ? import {}}: with pkgs; mkShell { - buildInputs = [ - figlet - nix-prefetch-git - dmd - ldc - dub - ]; + packages = + [ + figlet + nix-prefetch-git + ldc + dub + ] + ++ lib.optionals stdenv.hostPlatform.isx86 [ + dmd + ]; shellHook = '' figlet "Welcome to Dlang Nix"