edolstra / nix-serve

A standalone Nix binary cache server
GNU Lesser General Public License v2.1
163 stars 37 forks source link

use nix-store --dump, not nix dump-path #58

Open flokli opened 1 month ago

flokli commented 1 month ago

nix dump-path regressed, and now requires nix-command to be enabled, breaking nix-serve on systems without that being enabled.

However, nix-store --dump works fine across the board, so use that.

Nix issue: https://github.com/NixOS/nix/issues/11225 Workaround in nixpkgs: https://github.com/NixOS/nixpkgs/pull/331230

flokli commented 1 month ago

https://github.com/edolstra/nix-serve/commit/4adb63d5a0fca56fe954ca9b1871ec38caafd008 suggests the change was intentional. If that's the case, https://github.com/NixOS/nix/issues/11225 would need to be fixed and backported.

Mic92 commented 1 month ago

Similar fix but also fixing CI: https://github.com/edolstra/nix-serve/pull/59