Skip to content

Commit

Permalink
refactor(shell.nix): Include dmd package only if the hostPlatform
Browse files Browse the repository at this point in the history
… is x86
  • Loading branch information
PetarKirov committed May 7, 2023
1 parent 79fb1e7 commit 750a096
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
{pkgs ? import <nixpkgs> {}}:
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"
Expand Down

0 comments on commit 750a096

Please sign in to comment.