purescript-httpurple/shell.nix

29 lines
598 B
Nix
Raw Normal View History

{ sources ? import ./sources.nix }:
2019-02-17 07:08:40 +00:00
let
niv-overlay = self: _: {
niv = self.symlinkJoin {
name = "niv";
paths = [ sources.niv ];
buildInputs = [ self.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/niv \
--add-flags "--sources-file ${toString ./sources.json}"
'';
};
};
pkgs = import sources.nixpkgs { overlays = [ niv-overlay ]; };
2019-02-17 07:08:40 +00:00
in
pkgs.mkShell {
buildInputs = [
pkgs.niv
2019-02-17 07:08:40 +00:00
pkgs.git
pkgs.nodejs
pkgs.yarn
pkgs.purescript
pkgs.psc-package
];
shellHook = "export PATH=$PATH:$PWD/node_modules/.bin";
}