Skip to content

Commit

Permalink
default.nix: expose packages
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Nov 30, 2022
1 parent 078b0de commit 0d78087
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
(import
(
let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in
fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash;
}
)
{ src = ./.; }
).defaultNix.lib.${builtins.currentSystem}
let
flake = (import
(
let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in
fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash;
}
)
{ src = ./.; }
).defaultNix;
in
flake.lib.${builtins.currentSystem} // flake.packages.${builtins.currentSystem}

0 comments on commit 0d78087

Please sign in to comment.