Skip to content

Commit 886cf59

Browse files
committed
Support nix shell environment.
1 parent cdd2177 commit 886cf59

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed

src/.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

src/flake.lock

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/flake.nix

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
description = "A Nix-flake-based EventStoreDB development environment";
3+
4+
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
5+
6+
outputs = { self, nixpkgs }:
7+
let
8+
supportedSystems =
9+
[ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
10+
forEachSupportedSystem = f:
11+
nixpkgs.lib.genAttrs supportedSystems
12+
(system: f { pkgs = import nixpkgs { inherit system; }; });
13+
in {
14+
devShells = forEachSupportedSystem ({ pkgs }: {
15+
default = pkgs.mkShell rec {
16+
packages = with pkgs; [
17+
dotnetCorePackages.sdk_8_0
18+
dotnetCorePackages.aspnetcore_8_0
19+
glibcLocales
20+
bintools
21+
mono
22+
];
23+
24+
DOTNET_ROOT = "${pkgs.dotnetCorePackages.sdk_8_0}";
25+
};
26+
});
27+
};
28+
}

0 commit comments

Comments
 (0)