-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add flake.nix development environment configuration.
- Loading branch information
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
description = "Themosis Error Package - Nix Development Environment"; | ||
|
||
# Flake inputs | ||
inputs = { | ||
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.2405.*.tar.gz"; | ||
}; | ||
|
||
# Flake outputs | ||
outputs = { self, nixpkgs }: | ||
let | ||
# Systems supported | ||
allSystems = [ | ||
"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 | ||
forAllSystems = f: nixpkgs.lib.genAttrs allSystems (system: f { | ||
pkgs = import nixpkgs { inherit system; }; | ||
}); | ||
in | ||
{ | ||
# Development environment output | ||
devShells = forAllSystems ({ pkgs }: { | ||
default = pkgs.mkShell { | ||
# The Nix packages provided in the environment | ||
packages = with pkgs; [ | ||
php83 | ||
php83Packages.composer | ||
]; | ||
}; | ||
}); | ||
}; | ||
} |