Add nix env
This commit is contained in:
parent
210506b5ec
commit
c3148f5064
33
flake.nix
Normal file
33
flake.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{
|
||||
description = "Nix-flake Elixir development environment for Eltx";
|
||||
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
inherit (pkgs.lib) optional optionals;
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
|
||||
elixir = pkgs.beam.packages.erlang.elixir;
|
||||
in
|
||||
with pkgs;
|
||||
{
|
||||
devShell = pkgs.mkShell {
|
||||
buildInputs = [
|
||||
bashInteractive
|
||||
elixir
|
||||
elixir_ls
|
||||
nodejs
|
||||
glibcLocales
|
||||
#flyctl
|
||||
] ++ optional stdenv.isLinux inotify-tools
|
||||
++ optional stdenv.isDarwin terminal-notifier
|
||||
++ optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
||||
CoreFoundation
|
||||
CoreServices
|
||||
]);
|
||||
};
|
||||
});
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user