financier-nix/shell.nix
2020-09-10 16:39:11 +02:00

15 lines
No EOL
325 B
Nix

{ pkgs ? import <nixpkgs> {} }:
let
meta = import ./meta.nix;
src = pkgs.fetchgit { inherit (meta) url rev sha256; };
in
pkgs.mkShell {
shellHook = ''
export FINANCIER_SRC="${src}"
export FINANCIER_NODE_VERSION="${meta.nodeVersion}"
'';
buildInputs = with pkgs; [
nodePackages.node2nix
nix-prefetch-scripts
];
}