Skip to content

Commit

Permalink
shell.nix - Pin php version
Browse files Browse the repository at this point in the history
  • Loading branch information
totten committed Oct 9, 2022
1 parent fecb764 commit 9dacb0c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,16 @@
*
* Ex: `nix-shell --run ./build.sh`
*/
{ pkgs ? import <nixpkgs> {} }:
# { pkgs ? import <nixpkgs> {} }:
let
pkgSrc = fetchTarball {
url = "https://github.com/nixos/nixpkgs/archive/ce6aa13369b667ac2542593170993504932eb836.tar.gz";
sha256 = "0d643wp3l77hv2pmg2fi7vyxn4rwy0iyr8djcw1h5x72315ck9ik";
};
pkgs = import pkgSrc {};

in

pkgs.mkShell {
# nativeBuildInputs is usually what you want -- tools you need to run
nativeBuildInputs = [ pkgs.php74 pkgs.php74Packages.composer ];
Expand Down

0 comments on commit 9dacb0c

Please sign in to comment.