-
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
Add empty template and make various updates
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
on: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
check: | ||
runs-on: "ubuntu-22.04" | ||
steps: | ||
- uses: "actions/checkout@v4" | ||
- uses: "DeterminateSystems/nix-installer-action@main" | ||
- uses: "DeterminateSystems/magic-nix-cache-action@main" | ||
- name: Flake check | ||
run: nix develop --command check |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
description = "An empty flake template that you can adapt to your own environment"; | ||
|
||
# Flake inputs | ||
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz"; | ||
|
||
# Flake outputs | ||
outputs = { self, nixpkgs }: | ||
let | ||
# The systems supported for this flake | ||
supportedSystems = [ | ||
"x86_64-linux" # 64-bit Intel/AMD Linux | ||
"aarch64-linux" # 64-bit ARM Linux | ||
"x86_64-darwin" # 64-bit Intel macOS | ||
"aarch64-darwin" # 64-bit ARM macOS | ||
]; | ||
|
||
# Helper to provide system-specific attributes | ||
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f { | ||
pkgs = import nixpkgs { inherit system; }; | ||
}); | ||
in | ||
{ | ||
devShells = forEachSupportedSystem ({ pkgs }: { | ||
default = pkgs.mkShell { | ||
# The Nix packages provided in the environment | ||
# Add any you need here | ||
packages = with pkgs; [ ]; | ||
|
||
# Set any environment variables for your dev shell | ||
env = { }; | ||
|
||
# Add any shell logic you want executed any time the environment is activated | ||
shellHook = '' | ||
''; | ||
}; | ||
}); | ||
}; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.