Skip to content

Commit

Permalink
Add flake for development.
Browse files Browse the repository at this point in the history
  • Loading branch information
crertel committed May 5, 2024
1 parent 39e4279 commit 5708ded
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 0 deletions.
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
description = "Flake for building scenic driver local.";

inputs = {
nixpkgs = { url = "github:NixOS/nixpkgs/nixos-23.05"; };
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 = [
elixir
elixir_ls
# glibcLocales
# glew glfw pkg-config
# xorg.libX11 xorg.libXau xorg.libXdmcp
] ++ optional stdenv.isLinux inotify-tools
++ optional stdenv.isDarwin terminal-notifier
++ optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
CoreFoundation
CoreServices
]);
};
});
}

0 comments on commit 5708ded

Please sign in to comment.