From c1538990c6ea7d461abae99e24927cbe42ea6d99 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Sat, 5 Apr 2025 19:11:17 +0200 Subject: [PATCH] nixVersions.nix_2_26+: Document differences w/ upstream --- pkgs/tools/package-management/nix/modular/README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/tools/package-management/nix/modular/README.md b/pkgs/tools/package-management/nix/modular/README.md index 247bfc8badc5..e6488d2b1e32 100644 --- a/pkgs/tools/package-management/nix/modular/README.md +++ b/pkgs/tools/package-management/nix/modular/README.md @@ -4,3 +4,14 @@ This directory follows a directory structure similar to that in the upstream rep to make comparisons easier. The files are maintained separately from the upstream repo, so differences are expected. + +## Comparison + +### No filesets + +Using filesets with a fetched source would require "IFD", as the fetching happens in a derivation, but the filtering must come afterwards, and be done by the evaluator. + +### `workDir` attribute + +The Nixpkgs for Nix does inherit the `workDir` attribute that determines the location of the subproject to build. +It is compared to this directory to produce the correct relative path, similar to upstream.