Last active
November 21, 2023 09:18
-
-
Save drupol/8e5eb2f7cb344fe7009b72d97d1bd90f to your computer and use it in GitHub Desktop.
flake.nix
This file contains hidden or 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
{ | |
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | |
inputs.php7429.url = "github:NixOS/nixpkgs/1d8b8365a02efbf668311dc9db06cb98d49e7302"; | |
outputs = { self, nixpkgs, php7429 }: | |
let | |
pkgs = import nixpkgs { system = "x86_64-linux"; }; | |
nixpkgs_php7429 = import php7429 { system = "x86_64-linux"; }; | |
in | |
{ | |
devShells.x86_64-linux.default = pkgs.mkShellNoCC { | |
name = "php-dev"; | |
packages = | |
let | |
php74 = nixpkgs_php7429.php74.buildEnv { | |
extensions = ({ enabled, all }: enabled ++ (with all; [ | |
pdo | |
redis | |
xdebug | |
])); | |
extraConfig = '' | |
xdebug.mode=debug | |
date.timezone=Australia/Brisbane | |
''; | |
}; | |
in | |
[ | |
php74 | |
php74.packages.composer | |
]; | |
}; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment