financier-nix/shell.nix

15 lines
325 B
Nix
Raw Normal View History

2020-09-10 16:39:11 +02:00
{ 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
];
}