Skip to content

Commit

Permalink
Merge pull request #342 from crertel/add-development-flake
Browse files Browse the repository at this point in the history
Add development flake
  • Loading branch information
crertel authored May 5, 2024
2 parents 39e4279 + f0ce43d commit 93526e0
Show file tree
Hide file tree
Showing 2 changed files with 91 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.

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

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
] ++ optional stdenv.isLinux inotify-tools
++ optional stdenv.isDarwin terminal-notifier
++ optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
CoreFoundation
CoreServices
]);
};
});
}

0 comments on commit 93526e0

Please sign in to comment.