Skip to content

backport src definition from 2.16#10390

Merged
thufschmitt merged 1 commit intoNixOS:2.15-maintenancefrom
fricklerhandwerk:src-test
Apr 3, 2024
Merged

backport src definition from 2.16#10390
thufschmitt merged 1 commit intoNixOS:2.15-maintenancefrom
fricklerhandwerk:src-test

Conversation

@fricklerhandwerk
Copy link
Contributor

@fricklerhandwerk fricklerhandwerk commented Apr 3, 2024

Motivation

I just want to finish hosting versioned manuals and updating them automatically, without having to re-build multiple versions of Nix: NixOS/nix.dev#863

Context

This fixes a weirdness when consuming default.nix from the 2.15 release branch archive, where the Nix derivation's src store path gets wrapped for some reason:

"src": "/nix/store/mfa0j89j4f42nrxwxfwqrz0b6m32ih99-fcyq2x0wld440n9jc756vnh93kvjz9ac-source",

This is the only difference to instantiating the Nix derivation from the repository itself, and prevents a build cache hit.

It doesn't happen on 2.14 (adds flake-compat) and 2.16 (uses cleanSource). I suppose this is somehow caused by flake-compat doing something funky,

Priorities

Add 👍 to pull requests you find important.

@fricklerhandwerk fricklerhandwerk added the build-problem Nix fails to compile or test; also improvements to build process label Apr 3, 2024
This fixes a weirdness when consuming `default.nix` from the 2.15 release branch archive,
where the Nix derivation's `src` store path gets wrapped for some reason:

    "src": "/nix/store/mfa0j89j4f42nrxwxfwqrz0b6m32ih99-fcyq2x0wld440n9jc756vnh93kvjz9ac-source",

This is the only difference to instantiating the Nix derivation from the
repository itself, and prevents a build cache hit.

It doesn't happen on 2.14 (adds `flake-compat`) and 2.16 (uses `cleanSource`).
I suppose this is somehow caused by `flake-compat` doing something funky,
@thufschmitt thufschmitt merged commit b59275b into NixOS:2.15-maintenance Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build-problem Nix fails to compile or test; also improvements to build process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants