diff options
Diffstat (limited to 'shells/swift/shell.nix')
| -rw-r--r-- | shells/swift/shell.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/shells/swift/shell.nix b/shells/swift/shell.nix new file mode 100644 index 0000000..16790ab --- /dev/null +++ b/shells/swift/shell.nix @@ -0,0 +1,16 @@ +{ + pkgs ? import <nixpkgs> { }, +}: +(pkgs.mkShell.override { stdenv = pkgs.swift.stdenv; }) { + buildInputs = with pkgs; [ + pkg-config + swift + swift-format + swiftpm + sourcekit-lsp + swiftPackages.Foundation + swiftPackages.Dispatch + ]; + + shellHook = "export LD_LIBRARY_PATH='${pkgs.swiftPackages.Dispatch}/lib'"; +} |