42 lines
715 B
Nix
42 lines
715 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
|
|
] ++ (lib.optional stdenv.isDarwin pkgs.darwin.Security);
|
|
|
|
HISTFILE = "${toString ./.}/.bash_hist";
|
|
passthru.phpEnv = phpEnv;
|
|
};
|
|
|
|
|
|
in rustEnv
|