Skip to content

Commit

Permalink
flake: init structure (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
miampf authored Nov 30, 2024
1 parent c2934f5 commit eb616d3
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 0 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
*.ez
/build
erl_crash.dump
/.direnv
result
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.

22 changes: 22 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
description = "Flake utils demo";

inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {inherit system;};
in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
gleam
];
};
}
);
}

0 comments on commit eb616d3

Please sign in to comment.