-
Notifications
You must be signed in to change notification settings - Fork 720
/
default.nix
24 lines (24 loc) · 903 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
let defaultCustomConfig = import ./nix/custom-config.nix defaultCustomConfig;
# This file is used by nix-shell.
# It just takes the shell attribute from default.nix.
in
{
# override scripts with custom configuration
withHoogle ? defaultCustomConfig.withHoogle
, profileData ? null
, profileName ? if profileData != null then profileData.profileName
else defaultCustomConfig.localCluster.profileName
, workbenchDevMode ? defaultCustomConfig.localCluster.workbenchDevMode
, workbenchStartArgs ? defaultCustomConfig.localCluster.workbenchStartArgs
, customConfig ? {
inherit withHoogle;
localCluster = {
inherit profileName workbenchDevMode workbenchStartArgs;
};
}
, system ? builtins.currentSystem
}:
with (import ./nix/flake-compat.nix customConfig);
defaultNix // defaultNix.packages.${system} // {
private.project = defaultNix.legacyPackages.${system};
}