2022-10-28 21:29:26 +03:00
|
|
|
{
|
|
|
|
inputs =
|
|
|
|
{
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
2022-09-14 01:49:40 +03:00
|
|
|
ps-tools.follows = "purs-nix/ps-tools";
|
|
|
|
purs-nix.url = "github:purs-nix/purs-nix/ps-0.15";
|
2022-10-28 22:16:02 +03:00
|
|
|
utils.url = "github:ursi/flake-utils";
|
2022-09-14 01:49:40 +03:00
|
|
|
};
|
|
|
|
|
2022-10-28 22:16:02 +03:00
|
|
|
outputs = { utils, ... }@inputs:
|
|
|
|
utils.apply-systems { inherit inputs; } ({ pkgs, system, ... }:
|
|
|
|
let
|
|
|
|
ps-tools = inputs.ps-tools.legacyPackages.${system};
|
|
|
|
purs-nix = inputs.purs-nix { inherit system; };
|
|
|
|
ps =
|
|
|
|
purs-nix.purs
|
|
|
|
{
|
|
|
|
dependencies =
|
|
|
|
with purs-nix.ps-pkgs;
|
|
|
|
[
|
|
|
|
effect
|
|
|
|
prelude
|
|
|
|
node-process
|
|
|
|
];
|
2022-09-14 01:49:40 +03:00
|
|
|
|
2022-10-28 22:16:02 +03:00
|
|
|
dir = ./.;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
apps.default = {
|
|
|
|
type = "app";
|
|
|
|
program = "${packages.default}/bin/purs-eval";
|
|
|
|
};
|
2022-09-14 01:49:40 +03:00
|
|
|
|
2022-10-28 22:16:02 +03:00
|
|
|
packages = with ps.modules.Main; {
|
|
|
|
default = app { name = "purs-eval"; };
|
|
|
|
bundle = bundle { };
|
|
|
|
output = output { };
|
|
|
|
};
|
2022-09-14 01:49:40 +03:00
|
|
|
|
2022-10-28 22:16:02 +03:00
|
|
|
devShells.default = pkgs.mkShell {
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
nodejs
|
|
|
|
(ps.command { })
|
|
|
|
ps-tools.for-0_15.purescript-language-server
|
|
|
|
purs-nix.esbuild
|
|
|
|
purs-nix.purescript
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
2022-09-14 01:49:40 +03:00
|
|
|
}
|