-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(nix): Add Nix-based dev environment configuration
- Loading branch information
1 parent
a26f40a
commit 006ce4d
Showing
6 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# shellcheck shell=bash | ||
|
||
if ! has nix_direnv_version || ! nix_direnv_version 1.6.1; then | ||
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/1.6.1/direnvrc" "sha256-aFwy76WtzXD7SVXWetpg+welXMZI/VcEUPQ2WUMXYSY=" | ||
fi | ||
|
||
dotenv_if_exists | ||
nix_direnv_watch_file shell.nix | ||
use flake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
description = "Dlang Tour"; | ||
|
||
inputs = { | ||
nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable; | ||
flake-utils.url = github:numtide/flake-utils; | ||
}; | ||
|
||
outputs = { self, nixpkgs, flake-utils }: | ||
flake-utils.lib.simpleFlake { | ||
inherit self nixpkgs; | ||
name = "dlang-tour"; | ||
shell = ./shell.nix; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ pkgs ? import <nixpkgs> { } }: with pkgs; | ||
mkShell { | ||
buildInputs = [ | ||
figlet | ||
glibc.static | ||
zlib.static | ||
(openssl.override { static = true; }).dev | ||
dmd | ||
dtools | ||
dub | ||
ldc | ||
]; | ||
|
||
shellHook = '' | ||
figlet "Welcome to Dlang Tour" | ||
''; | ||
} |