forked from IntersectMBO/cardano-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
23 lines (23 loc) · 810 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
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
, customConfig ? {
inherit withHoogle;
localCluster = {
inherit profileName workbenchDevMode;
};
}
, system ? builtins.currentSystem
}:
with (import ./nix/flake-compat.nix customConfig);
defaultNix // defaultNix.packages.${system} // {
private.project = defaultNix.legacyPackages.${system};
}