ofborg/shell.nix

39 lines
611 B
Nix
Raw Normal View History

2017-10-29 21:10:26 +00:00
let
pkgs = import <nixpkgs> {};
inherit (pkgs) stdenv;
2017-11-05 14:46:42 +00:00
phpEnv = stdenv.mkDerivation rec {
name = "gh-event-forwarder";
src = ./.;
buildInputs = with pkgs; [
php
phpPackages.composer
nix
git
php
curl
bash
];
HISTFILE = "${src}/.bash_hist";
passthru.rustEnv = rustEnv;
};
rustEnv = stdenv.mkDerivation rec {
name = "gh-event-forwarder";
src = ./.;
buildInputs = with pkgs; [
php
phpPackages.composer
rust.rustc
rust.cargo
openssl
];
HISTFILE = "${src}/.bash_hist";
};
in phpEnv