7c9c491e73
My very old (10.10.x) builder tried to run a job, but failed with `error: unknown option `reference-if-able'` as it appears to have been using the system git which is also ancient. I'm still pending another job but i think this fixes it.
43 lines
725 B
Nix
43 lines
725 B
Nix
let
|
|
pkgs = import ./nix {};
|
|
|
|
|
|
inherit (pkgs) stdenv;
|
|
|
|
phpEnv = stdenv.mkDerivation rec {
|
|
name = "gh-event-forwarder";
|
|
src = null;
|
|
buildInputs = with pkgs; [
|
|
nix-prefetch-git
|
|
php
|
|
phpPackages.composer
|
|
nix
|
|
git
|
|
php
|
|
curl
|
|
bash
|
|
];
|
|
|
|
# HISTFILE = "${src}/.bash_hist";
|
|
};
|
|
|
|
rustEnv = stdenv.mkDerivation rec {
|
|
name = "gh-event-forwarder";
|
|
buildInputs = with pkgs; [
|
|
nix-prefetch-git
|
|
rust.rustc
|
|
rust.cargo
|
|
rustfmt
|
|
carnix
|
|
openssl.dev
|
|
pkgconfig
|
|
git
|
|
] ++ (lib.optional stdenv.isDarwin pkgs.darwin.Security);
|
|
|
|
HISTFILE = "${toString ./.}/.bash_hist";
|
|
passthru.phpEnv = phpEnv;
|
|
};
|
|
|
|
|
|
in rustEnv
|