TestPhoenixLiveView/flake.nix

35 lines
925 B
Nix
Raw Normal View History

2024-03-08 18:56:07 +01:00
{
description = "Test Phoenix Live View";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
2024-03-08 20:26:40 +01:00
flake-utils.lib.eachSystem flake-utils.lib.allSystems (system:
2024-03-08 18:56:07 +01:00
let
pkgs = import nixpkgs { inherit system; };
customElixir = pkgs.elixir_1_16.override {
erlang = pkgs.erlang_26;
};
2024-03-08 20:00:46 +01:00
basePackages = [
customElixir
pkgs.git
];
buildInputs = basePackages
++ pkgs.lib.optionals pkgs.stdenv.isLinux [ pkgs.inotify-tools ]
++ pkgs.lib.optionals pkgs.stdenv.isDarwin (with pkgs.darwin.apple_sdk.frameworks; [ pkgs.CoreFoundation pkgs.CoreServices ]);
2024-03-08 18:56:07 +01:00
in
{
devShells = rec {
default = pkgs.mkShell {
2024-03-08 20:00:46 +01:00
buildInputs = buildInputs;
2024-03-08 18:56:07 +01:00
};
};
});
}