ofborg/shell.nix

45 lines
825 B
Nix
Raw Normal View History

2017-10-29 21:10:26 +00:00
let
2017-11-08 08:34:48 +00:00
p = import <nixpkgs> {};
pkgs = import (p.fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs-channels";
rev = "cfafd6f5a819472911eaf2650b50a62f0c143e3e";
sha256 = "10xgiyh4hbwwiy8qg70ma1f27nd717aflksk9fx3ci8bmxmqbkkn";
}) {};
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";
src = null;
2017-11-05 14:46:42 +00:00
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";
buildInputs = with pkgs; [
php
phpPackages.composer
rust.rustc
rust.cargo
openssl
];
HISTFILE = "${toString ./.}/.bash_hist";
2017-11-05 14:46:42 +00:00
};
in phpEnv