Skip to content

Commit a4e7c03

Browse files
committed
default.nix: alias packages to top-level
1 parent 3b4f45e commit a4e7c03

File tree

1 file changed

+11
-18
lines changed

1 file changed

+11
-18
lines changed

default.nix

+11-18
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
1-
{system ? builtins.currentSystem}:
2-
(
3-
import
4-
(
5-
let
6-
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
7-
in
8-
fetchTarball {
9-
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
10-
sha256 = lock.nodes.flake-compat.locked.narHash;
11-
}
12-
)
13-
{
14-
src = ./.;
15-
inherit system;
16-
}
17-
)
18-
.defaultNix
1+
{...}: let
2+
flake-lock = builtins.fromJSON (builtins.readFile ./flake.lock);
3+
flake-compat = fetchTarball {
4+
url = "https://github.com/edolstra/flake-compat/archive/${flake-lock.nodes.flake-compat.locked.rev}.tar.gz";
5+
sha256 = flake-lock.nodes.flake-compat.locked.narHash;
6+
};
7+
self = import flake-compat {src = ./.;};
8+
packages = self.defaultNix.outputs.packages.${builtins.currentSystem};
9+
in
10+
packages
11+
// self.defaultNix

0 commit comments

Comments
 (0)