Skip to content

Commit

Permalink
fix(nix): default app
Browse files Browse the repository at this point in the history
  • Loading branch information
ozwaldorf committed Apr 3, 2024
1 parent 4d8681f commit f2bca3b
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,16 @@

# Expose the node and services as packages
packages = rec {
default = lightning-node-full;
default = lightning-node;

# Unified package with the node and all services
lightning-node = pkgs.symlinkJoin {
name = "lightning-node";
paths = [ lightning-node-standalone lightning-services ];
};

# Core node binary
lightning-node = craneLib.buildPackage (commonArgs // {
lightning-node-standalone = craneLib.buildPackage (commonArgs // {
inherit cargoArtifacts;
pname = "lightning-node";
doCheck = false;
Expand All @@ -180,21 +186,17 @@
];
});

# Unified package with the node and all services
lightning-node-full = pkgs.symlinkJoin {
name = "lightning-node-full";
paths = [ lightning-node lightning-services ];
};

# Expose for standalone ci step
lightning-deps = cargoArtifacts;
} // lib.optionalAttrs (!pkgs.stdenv.isDarwin) {
# Expose for ci
lightning-llvm-coverage = llvmCraneLib.cargoLlvmCov
(commonArgs // { inherit cargoArtifacts; });
};

# Allow using `nix run` on the project
apps.default = flake-utils.lib.mkApp { drv = self.packages.default; };
apps.default =
flake-utils.lib.mkApp { drv = self.packages.${system}.default; };

# Allow using `nix develop on the project
devShells.default = craneLib.devShell (commonVars // {
Expand Down

0 comments on commit f2bca3b

Please sign in to comment.