Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ jobs:
extra-substituters = https://cache.iog.io https://purescript-lua.cachix.org
extra-trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= purescript-lua.cachix.org-1:yLs4ei2HtnuPtzLekOrW3xdfm95+Etw15gwgyIGTayA=

- name: Build
run: nix develop -c ./scripts/build

- name: Test
run: nix develop -c ./scripts/test
run: if [ -f scripts/test ]; then nix develop -c ./scripts/test; fi

- name: Luacheck
run: nix develop -c luacheck --quiet --std min src/
67 changes: 44 additions & 23 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 32 additions & 20 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,45 @@
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "nixpkgs/nixos-unstable";
easyps = {
url = "github:justinwoo/easy-purescript-nix";
flake = false;
purescript-overlay = {
url = "github:thomashoneyman/purescript-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
pslua.url = "github:Unisay/purescript-lua";
};

outputs = { self, nixpkgs, flake-utils, easyps, pslua }:
outputs = { self, nixpkgs, flake-utils, purescript-overlay, pslua }:
flake-utils.lib.eachDefaultSystem (system:
let
p = nixpkgs.legacyPackages.${system};
e = import easyps { pkgs = p; };
l = p.lua51Packages;
pkgs = import nixpkgs {
inherit system;
overlays = [ purescript-overlay.overlays.default ];
};
in {
devShell = p.mkShell {
buildInputs = [
p.dhall
l.lua
l.luacheck
p.luaformatter
p.nixfmt
pslua.packages.${system}.default
e.purs-0_15_15
e.spago
p.treefmt
];
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
dhall
lua51Packages.lua
lua51Packages.luacheck
luaformatter
nixfmt-rfc-style
pslua.packages.${system}.default
purs-bin.purs-0_15_16
spago-bin.spago-0_21_0
treefmt
];
};
});
}

# --- Flake Local Nix Configuration ----------------------------
nixConfig = {
extra-substituters = [
"https://cache.iog.io"
"https://purescript-lua.cachix.org"
];
extra-trusted-public-keys = [
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
"purescript-lua.cachix.org-1:yLs4ei2HtnuPtzLekOrW3xdfm95+Etw15gwgyIGTayA="
];
};
}
1 change: 1 addition & 0 deletions scripts/build
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail

echo "Building..."

Expand Down
Loading