Skip to content

Commit

Permalink
Allow specifing a specific version of PHP on NixOS
Browse files Browse the repository at this point in the history
To use, run `nix-shell --arg php '(import <nixpkgs> {}).php56'`
  • Loading branch information
jbboehr committed Feb 7, 2018
1 parent bfdd415 commit 5660653
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# note: when using nix-shell, run "configurePhase" otherwise you'll have missing headers
# when using nix-shell, run "configurePhase" otherwise you'll have missing headers
# to use a specific version of php, run `nix-shell --arg php '(import <nixpkgs> {}).php56'`

with import <nixpkgs> { };
{ php ? (import <nixpkgs> {}).php, pkgs ? import <nixpkgs> {} }:

let
buildPecl = import <nixpkgs/pkgs/build-support/build-pecl.nix> {
inherit php;
inherit stdenv autoreconfHook fetchurl;
inherit (pkgs) stdenv autoreconfHook fetchurl;
};
in

Expand Down

0 comments on commit 5660653

Please sign in to comment.