add shell.nix argument for nix version
This commit is contained in:
parent
04d0c2f540
commit
38d2fe8672
13
shell.nix
13
shell.nix
|
@ -1,7 +1,6 @@
|
||||||
|
{ pkgs ? import ./nix {}, useNix1 ? true }:
|
||||||
|
|
||||||
let
|
let
|
||||||
pkgs = import ./nix {};
|
|
||||||
|
|
||||||
|
|
||||||
inherit (pkgs) stdenv;
|
inherit (pkgs) stdenv;
|
||||||
|
|
||||||
phpEnv = stdenv.mkDerivation rec {
|
phpEnv = stdenv.mkDerivation rec {
|
||||||
|
@ -11,12 +10,12 @@ let
|
||||||
nix-prefetch-git
|
nix-prefetch-git
|
||||||
php
|
php
|
||||||
phpPackages.composer
|
phpPackages.composer
|
||||||
nix
|
|
||||||
git
|
git
|
||||||
php
|
php
|
||||||
curl
|
curl
|
||||||
bash
|
bash
|
||||||
];
|
]
|
||||||
|
++ stdenv.lib.optional useNix1 nix;
|
||||||
|
|
||||||
# HISTFILE = "${src}/.bash_hist";
|
# HISTFILE = "${src}/.bash_hist";
|
||||||
};
|
};
|
||||||
|
@ -32,7 +31,9 @@ let
|
||||||
openssl.dev
|
openssl.dev
|
||||||
pkgconfig
|
pkgconfig
|
||||||
git
|
git
|
||||||
] ++ (lib.optional stdenv.isDarwin pkgs.darwin.Security);
|
]
|
||||||
|
++ stdenv.lib.optional useNix1 nix
|
||||||
|
++ stdenv.lib.optional stdenv.isDarwin pkgs.darwin.Security;
|
||||||
|
|
||||||
HISTFILE = "${toString ./.}/.bash_hist";
|
HISTFILE = "${toString ./.}/.bash_hist";
|
||||||
passthru.phpEnv = phpEnv;
|
passthru.phpEnv = phpEnv;
|
||||||
|
|
Loading…
Reference in a new issue