2017-10-29 21:10:26 +00:00
|
|
|
let
|
2017-11-30 03:31:40 +00:00
|
|
|
pkgs = import ./nix {};
|
2017-11-08 08:34:48 +00:00
|
|
|
|
2017-10-29 21:10:26 +00:00
|
|
|
|
|
|
|
inherit (pkgs) stdenv;
|
|
|
|
|
2017-11-05 14:46:42 +00:00
|
|
|
phpEnv = stdenv.mkDerivation rec {
|
|
|
|
name = "gh-event-forwarder";
|
2017-11-09 12:33:10 +00:00
|
|
|
src = null;
|
2017-11-05 14:46:42 +00:00
|
|
|
buildInputs = with pkgs; [
|
2017-11-30 03:31:40 +00:00
|
|
|
nix-prefetch-git
|
2017-11-05 14:46:42 +00:00
|
|
|
php
|
|
|
|
phpPackages.composer
|
|
|
|
nix
|
|
|
|
git
|
|
|
|
php
|
|
|
|
curl
|
|
|
|
bash
|
|
|
|
];
|
|
|
|
|
2017-11-30 03:31:40 +00:00
|
|
|
# HISTFILE = "${src}/.bash_hist";
|
2017-11-05 14:46:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
rustEnv = stdenv.mkDerivation rec {
|
|
|
|
name = "gh-event-forwarder";
|
|
|
|
buildInputs = with pkgs; [
|
2017-11-30 03:31:40 +00:00
|
|
|
nix-prefetch-git
|
2017-11-05 14:46:42 +00:00
|
|
|
rust.rustc
|
|
|
|
rust.cargo
|
2018-01-21 19:17:25 +00:00
|
|
|
rustfmt
|
2017-11-30 03:31:40 +00:00
|
|
|
carnix
|
2017-11-14 13:32:28 +00:00
|
|
|
openssl.dev
|
|
|
|
pkgconfig
|
2018-01-29 19:27:34 +00:00
|
|
|
git
|
2017-12-26 01:38:27 +00:00
|
|
|
] ++ (lib.optional stdenv.isDarwin pkgs.darwin.Security);
|
2017-11-05 14:46:42 +00:00
|
|
|
|
2017-11-09 12:33:10 +00:00
|
|
|
HISTFILE = "${toString ./.}/.bash_hist";
|
2017-12-05 01:55:44 +00:00
|
|
|
passthru.phpEnv = phpEnv;
|
2017-11-05 14:46:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2017-12-05 01:55:44 +00:00
|
|
|
in rustEnv
|