2020-02-27 00:43:38 +00:00
|
|
|
{ sources ? import ./sources.nix }:
|
2019-02-17 07:08:40 +00:00
|
|
|
|
|
|
|
let
|
2020-02-27 00:43:38 +00:00
|
|
|
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}"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
2021-03-06 05:33:13 +00:00
|
|
|
pkgs-unstable = import sources.nixpkgs-unstable {};
|
|
|
|
unstable-packages-overlay = _: _: {
|
|
|
|
inherit (pkgs-unstable) purescript;
|
|
|
|
};
|
|
|
|
pkgs = import sources.nixpkgs {
|
|
|
|
overlays = [
|
|
|
|
niv-overlay
|
|
|
|
unstable-packages-overlay
|
|
|
|
];
|
|
|
|
};
|
2019-02-17 07:08:40 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
pkgs.mkShell {
|
|
|
|
buildInputs = [
|
2020-02-27 00:43:38 +00:00
|
|
|
pkgs.niv
|
2019-02-17 07:08:40 +00:00
|
|
|
pkgs.git
|
|
|
|
pkgs.nodejs
|
|
|
|
pkgs.yarn
|
|
|
|
pkgs.purescript
|
|
|
|
];
|
|
|
|
shellHook = "export PATH=$PATH:$PWD/node_modules/.bin";
|
|
|
|
}
|