76 lines
2.4 KiB
Nix
76 lines
2.4 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
haskell-flake.url = "github:srid/haskell-flake";
|
|
foreign-rust.url = "git+https://code.vergara.tech/Vergara_Tech/haskell-foreign-rust?ref=main";
|
|
};
|
|
outputs = inputs @ {
|
|
self,
|
|
nixpkgs,
|
|
flake-parts,
|
|
foreign-rust,
|
|
...
|
|
}:
|
|
flake-parts.lib.mkFlake {inherit inputs;} {
|
|
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 = {
|
|
imports = [
|
|
inputs.foreign-rust.haskellFlakeProjectModules.output
|
|
];
|
|
# 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"; # Hackage version override
|
|
# shower.source = inputs.shower;
|
|
# };
|
|
packages = {
|
|
};
|
|
|
|
settings = {
|
|
# aeson = {
|
|
# check = false;
|
|
# };
|
|
# relude = {
|
|
# haddock = false;
|
|
# broken = false;
|
|
# };
|
|
borsh = {
|
|
broken = false;
|
|
};
|
|
};
|
|
|
|
# devShell = {
|
|
# # Enabled by default
|
|
# enable = true;
|
|
#
|
|
# # Programs you want to make available in the shell.
|
|
# # Default programs can be disabled by setting to 'null'
|
|
# tools = hp: { fourmolu = hp.fourmolu; ghcid = null; };
|
|
#
|
|
# hlsCheck.enable = true;
|
|
# };
|
|
};
|
|
|
|
# haskell-flake doesn't set the default package, but you can do it here.
|
|
packages.default = self'.packages.hexstring;
|
|
};
|
|
};
|
|
}
|