Skip to content

Commit

Permalink
Use toplevel packages-config.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
vlinkz committed Mar 4, 2024
1 parent 4a6f1a3 commit 77d4093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ddb/nix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub async fn get_store(rev: &str) -> HashMap<String, Store> {
// .env("NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM", "0")
.arg("--eval")
.arg("-E")
.arg(format!("with import {} {{}}; (import {} {{ inherit lib; }}).genRegistry \"x86_64-linux\" pkgs", nixpath, REGISTRY))
.arg(format!("with import {nixpath} {{ config = import {nixpath}/pkgs/top-level/packages-config.nix; }}; (import {REGISTRY} {{ inherit lib; }}).genRegistry \"x86_64-linux\" pkgs"))
.arg("-I")
.arg(format!("nixpkgs={}", nixpath))
.arg("--json")
Expand Down

0 comments on commit 77d4093

Please sign in to comment.