financier-nix/shell.nix

14 lines
334 B
Nix
Raw Normal View History

2020-09-10 16:39:11 +02:00
{ pkgs ? import <nixpkgs> {} }:
let
meta = import ./meta.nix;
src = (import ./helpers.nix).fetchFinancier { inherit (pkgs) fetchgit; inherit meta; };
2020-09-10 16:39:11 +02:00
in
pkgs.mkShell {
shellHook = ''
export FINANCIER_SRC="${src}"
export FINANCIER_NODE_VERSION="${meta.nodeVersion}"
'';
buildInputs = with pkgs; [
nodePackages.node2nix
];
}