Skip to content

Too many nixpkgs nodes in flake.lock file. #1594

@jaredponn

Description

@jaredponn

Is there a reason why

db-sync.url = "github:input-output-hk/cardano-db-sync/13.1.0.0";
is not following CTL's haskell-nix? I.e., would it break everything if we had

diff --git a/flake.nix b/flake.nix
index a38d4555d..43e39dcdb 100644
--- a/flake.nix
+++ b/flake.nix
@@ -73,7 +73,10 @@
     };
 
     blockfrost.url = "github:blockfrost/blockfrost-backend-ryo/v1.7.0";
-    db-sync.url = "github:input-output-hk/cardano-db-sync/13.1.0.0";
+    db-sync = {
+        inputs.haskellNix.follows = "haskell-nix";
+        url = "github:input-output-hk/cardano-db-sync/13.1.1.3";
+    };
 
     # Plutip server related inputs
     plutip = {

instead?

Currently, CTL has about 120 nodes for nixpkgs in it's flake.lock file,

$ cat flake.lock | jq '.nodes | keys' | awk -e 'BEGIN { i = 0 } /nixpkgs/ { i++ } END {print i }'
123

but this suggestion reduces it to

$ nix flake lock 
<blah blah blah>
$ cat flake.lock | jq '.nodes | keys' | awk -e 'BEGIN { i = 0 } /nixpkgs/ { i++ } END {print i }'
36

For context, in lambda-buffers doing anything with nix (nix develop, nix build, etc.) takes >10s because the flake.lock is so large, and I'm pretty sure that CTL's db-sync is the last major contributing factor to this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions