Skip to content

Instantly share code, notes, and snippets.

@evertedsphere
Last active June 8, 2024 13:38
Show Gist options
  • Select an option

  • Save evertedsphere/651388dab3019a99a390d52f6c66da1a to your computer and use it in GitHub Desktop.

Select an option

Save evertedsphere/651388dab3019a99a390d52f6c66da1a to your computer and use it in GitHub Desktop.
rhine flake
# with entr and fd installed:
# fd . koans --extension=hs | entr -cnrs "cabal test $(cat rhine-koans.cabal | grep test-suite | cut -d' ' -f2 | grep 1-4)"
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-parts.url = "github:hercules-ci/flake-parts";
haskell-flake.url = "github:srid/haskell-flake";
};
outputs = inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" ];
imports = [
inputs.haskell-flake.flakeModule
];
perSystem = { self', system, lib, config, pkgs, ... }: {
haskellProjects.default = {
# basePackages = pkgs.haskellPackages;
packages = {
};
settings = {
rhine = {
broken = false;
jailbreak = true;
};
rhine-gloss = {
jailbreak = true;
};
};
devShell = {
hlsCheck.enable = false;
};
autoWire = [ "packages" "apps" "checks" ]; # Wire all but the devShell
};
devShells.default = pkgs.mkShell {
name = "my-haskell-package custom development shell";
inputsFrom = [
config.haskellProjects.default.outputs.devShell
];
nativeBuildInputs = with pkgs; [
];
};
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment