OwOpointTracker/flake.nix

61 lines
2.2 KiB
Nix
Raw Permalink Normal View History

{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
haskell-flake.url = "github:srid/haskell-flake";
};
outputs = inputs@{ self, nixpkgs, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
2024-10-09 08:14:47 +02:00
flake = {
2024-10-09 08:18:19 +02:00
nixosModules.OwOpointTracker = import ./module.nix self;
2024-10-09 08:14:47 +02:00
};
systems = nixpkgs.lib.systems.flakeExposed;
imports = [ inputs.haskell-flake.flakeModule ];
perSystem = { self', pkgs, ... }: {
# Typically, you just want a single project named "default". But
# multiple projects are also possible, each using different GHC version.
haskellProjects.default = {
# The base package set representing a specific GHC version.
# By default, this is pkgs.haskellPackages.
# You may also create your own. See https://community.flake.parts/haskell-flake/package-set
# basePackages = pkgs.haskellPackages;
# Extra package information. See https://community.flake.parts/haskell-flake/dependency
#
# Note that local packages are automatically included in `packages`
# (defined by `defaults.packages` option).
#
packages = {
# aeson.source = "1.5.0.0"; # Override aeson to a custom version from Hackage
# shower.source = inputs.shower; # Override shower to a custom source path
};
settings = {
# aeson = {
# check = false;
# };
# relude = {
# haddock = false;
# broken = false;
# };
};
devShell = {
# Enabled by default
2024-10-09 08:18:19 +02:00
enable = false;
# Programs you want to make available in the shell.
# Default programs can be disabled by setting to 'null'
2024-08-22 14:38:16 +02:00
tools = hp: { ghcid = null; yesod-bin = hp.yesod-bin; stack = pkgs.stack;};
hlsCheck.enable = pkgs.stdenv.isDarwin; # On darwin, sandbox is disabled, so HLS can use the network.
};
};
# haskell-flake doesn't set the default package, but you can do it here.
packages.default = self'.packages.OwOpointTracker;
};
};
}