My attempts at exercism.org
1{
2 description = "Exercism PHP Track";
3
4 inputs = {
5 nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
6 };
7
8 outputs = { self, nixpkgs }:
9 let
10 systems = [
11 "x86_64-linux"
12 "aarch64-linux"
13 "aarch64-darwin"
14 ];
15
16 forAllSystems = f:
17 nixpkgs.lib.genAttrs systems (system:
18 f (import nixpkgs { inherit system; })
19 );
20 in
21 {
22 devShells = forAllSystems (pkgs: {
23 default = pkgs.mkShell {
24 packages = with pkgs; [
25 exercism
26 php85
27 phpunit
28 ];
29 };
30 });
31 };
32}