2023-02-08 16:20:24 +01:00
|
|
|
{ inputs =
|
|
|
|
{ nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
|
|
ps-tools.follows = "purs-nix/ps-tools";
|
|
|
|
purs-nix.url = "github:purs-nix/purs-nix/ps-0.15";
|
|
|
|
utils.url = "github:numtide/flake-utils";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { nixpkgs, utils, ... }@inputs:
|
|
|
|
utils.lib.eachSystem [ "x86_64-linux" "x86_64-darwin" ]
|
|
|
|
(system:
|
|
|
|
let
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
ps-tools = inputs.ps-tools.legacyPackages.${system};
|
|
|
|
purs-nix = inputs.purs-nix { inherit system; };
|
|
|
|
|
|
|
|
ps =
|
|
|
|
purs-nix.purs
|
|
|
|
{ dependencies =
|
|
|
|
with purs-nix.ps-pkgs;
|
|
|
|
[ console
|
|
|
|
effect
|
|
|
|
prelude
|
2023-02-08 19:32:08 +01:00
|
|
|
exists
|
|
|
|
tuples
|
|
|
|
indexed-monad
|
|
|
|
aff
|
2023-02-08 16:20:24 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
dir = ./.;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{ packages.default = ps.bundle {};
|
|
|
|
|
|
|
|
devShells.default =
|
|
|
|
pkgs.mkShell
|
|
|
|
{ packages =
|
|
|
|
with pkgs;
|
|
|
|
[ entr
|
|
|
|
nodejs
|
|
|
|
(ps.command {})
|
|
|
|
ps-tools.for-0_15.purescript-language-server
|
|
|
|
purs-nix.esbuild
|
|
|
|
purs-nix.purescript
|
|
|
|
];
|
|
|
|
|
|
|
|
shellHook =
|
|
|
|
''
|
|
|
|
alias watch="find src | entr -s 'echo bundling; purs-nix bundle'"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|