3 nixpkgs.url = github:NixOS/nixpkgs/nixpkgs-unstable;
4 utils.url = github:ursi/flake-utils;
5 hooks.url = github:cachix/git-hooks.nix;
6 purs-nix.url = github:purs-nix/purs-nix;
7 ps-tools.follows = "purs-nix/ps-tools";
9 url = "github:jmatsushita/purescript-option/8d0984";
14 outputs = { self, utils, ... }@inputs:
17 ({ pkgs, system, ... }@ctx:
20 inherit (pkgs) nodejs;
21 purs-nix = inputs.purs-nix { inherit system; };
22 inherit (ctx.ps-tools.for-0_15) purescript purs-tidy purescript-language-server;
23 # TODO use option from official index
24 option = purs-nix.build {
26 src.path = inputs.option;
27 info.dependencies = [ "aff" "argonaut-codecs" "argonaut-core" "codec" "codec-argonaut" "datetime" "effect" "either" "enums" "foldable-traversable" "foreign" "foreign-object" "functors" "identity" "lists" "maybe" "prelude" "record" "simple-json" "spec" "transformers" "tuples" "unsafe-coerce"];
30 with purs-nix.ps-pkgs;
35 typeapp = purs-nix.build {
38 info = { inherit dependencies; };
45 inherit purescript nodejs;
48 hooks = inputs.hooks.lib.${system}.run {
60 packages.default = typeapp;
62 devShells.default = pkgs.mkShell {
63 packages = with pkgs; [
64 # TODO remove compiled output from the repo
66 purescript-language-server
70 shopt -s expand_aliases
71 alias log_='printf "\033[1;32m%s\033[0m\n" "$@"'
72 alias info_='printf "\033[1;34m[INFO] %s\033[0m\n" "$@"'
73 alias warn_='printf "\033[1;33m[WARN] %s\033[0m\n" "$@"'
75 log_ "Welcome to TypeApp shell."
76 info_ "Available commands: purs-nix"
81 accept-flake-config = true;
82 extra-experimental-features = "nix-command flakes";
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list