Skip to content

Commit

Permalink
Avoid nixpkgs import when it is unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Nov 1, 2023
1 parent 8609b93 commit fe4a4fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compat.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Compatibility with non-flakes systems
rec {
system = builtins.currentSystem;

flake =
(import
(
Expand All @@ -11,5 +13,5 @@ rec {
)
{ src = ./.; }).defaultNix;

pkgs = import flake.inputs.nixpkgs { };
pkgs = flake.inputs.nixpkgs.legacyPackages.${system};
}

0 comments on commit fe4a4fc

Please sign in to comment.