!VRULIdgoKmKPzJZzjj:nixos.org

Nix Package Manager development

873 Members
For people hacking on Nix: https://github.com/NixOS/nix Nix maintainers can be reached here.183 Servers

Load older messages


SenderMessageTime
27 Mar 2025
@mschwaig:matrix.orgMartin Schwaighofer
In reply to @fzakaria:one.ems.host
That's not bad but definitely a bit confusing; I think having to explain CA + input deriving makes it extra confusing.
I'm trying to better understand how inputDrvs (for input deriving) get replaced with some other hash recursively (hashModulo)

I'm kind of in the process of implementing that for github.com/mschwaig/laut, except that the input hashes I generate for CA derivations are not based on the ATerm format (for now), but on a canonicalized version of the JSON representation of the derivation.

That implementation is also meant to be readable/understandable.

16:48:48
@mschwaig:matrix.orgMartin Schwaighofer* I'm kind of in the process of implementing that (meaning replacing inputDrvs to get to a hash that only includes resolved dependencies) for github.com/mschwaig/laut, except that the input hashes I generate for CA derivations are not based on the ATerm format (for now), but on a canonicalized version of the JSON representation of the derivation. That implementation is also meant to be readable/understandable. 16:58:00
@Ericson2314:matrix.orgJohn Ericsonhttps://github.com/nixos/nix/commit/11d853462925d0b57fe956962e07edf5751fd4c320:07:55
@Ericson2314:matrix.orgJohn EricsonI think this commit was a mistake20:07:58
@philiptaron:matrix.orgPhilip Taron (UTC-8)2.27.1 and 2.24.13 were both tagged in the NixOS/nix repository. Is there someone on deck to open a PR against nixpkgs?21:29:38
@philiptaron:matrix.orgPhilip Taron (UTC-8)image.png
Download image.png
21:34:12
@philiptaron:matrix.orgPhilip Taron (UTC-8)I can do the 2.24.13 one, but the PR to introduce 2.26 was pretty beefy with 2_26 specific code.21:34:26
@philiptaron:matrix.orgPhilip Taron (UTC-8)If that's the pattern, 2.27 is going to be equally beefy!21:35:21
@philiptaron:matrix.orgPhilip Taron (UTC-8) cc Robert Hensing (roberth) as the author of the previous big-lift PR, https://github.com/NixOS/nixpkgs/pull/375856. 21:44:01
@emilazy:matrix.orgemilyif 2.27 is as different from 2.26 as it was from 2.25, something went horribly wrong21:48:10
@emilazy:matrix.orgemilythey're the same Meson build system21:48:15
@philiptaron:matrix.orgPhilip Taron (UTC-8) Yes -- what I mean is that all that code was checked in under pkgs/tools/package-management/nix/vendor/2_26/ -- so this is the version that figures out how to share it 21:48:51
@philiptaron:matrix.orgPhilip Taron (UTC-8)(Since I assume that adding Nix 2.27 doesn't at the same time drop 2.26, which would be madness.)21:49:32
@philiptaron:matrix.orgPhilip Taron (UTC-8) * Yes -- what I mean is that all that code was checked in under pkgs/tools/package-management/nix/vendor/2_26/ -- so this is the version that figures out how to share it or copy it/ 21:49:42
@emilazy:matrix.orgemilyI guess it should, since the Nix team only support the latest version and the version in Nixpkgs stable.21:52:48
@emilazy:matrix.orgemilybtw, there is a much more sensible packaging in https://github.com/NixOS/nixpkgs/pull/393509 but sadly I think it is not being pursued21:53:17
@ss:someonex.netSomeoneSerge (back on matrix)

What on earth does "output" without method or hash or path or anything at all mean?

    "name": > "bootstrap-stage0-binutils-wrapper-",
    "outputs": {
      "out": {}
    },

CC Martin Schwaighofer

21:56:21
@emilazy:matrix.orgemilythose are split outputs, no?22:12:07
@emilazy:matrix.orgemily the Nixpkgs outputs = … 22:12:21
@nishimara:matrix.orgnishimara joined the room.22:21:49
@Ericson2314:matrix.orgJohn Ericsondeferred input-addressed22:34:13
@Ericson2314:matrix.orgJohn Ericsoni.e. it is an input-addressed that depends on content-addressed22:34:23
@Ericson2314:matrix.orgJohn Ericsonwe're waiting to building the content-addressed before we can input-address22:34:44
@Ericson2314:matrix.orgJohn Ericson this has the effect of doing an an end-run around hashDerivationModulo 22:35:07
@Ericson2314:matrix.orgJohn Ericson the thing we will end up using for input-addressing is the resolved derivation, with no inputSrcs 22:35:22
@Ericson2314:matrix.orgJohn Ericson * the thing we will end up using for input-addressing is the resolved derivation, with no inputDrvs only inputSrcs 22:35:31
28 Mar 2025
@fzakaria:one.ems.hostfzakariaif I have an ATerm drv file; how can I add it to my store ?01:59:00
@fzakaria:one.ems.hostfzakaria(assuming "it's correct")01:59:05
@fzakaria:one.ems.hostfzakariaoh nix-store --add but the name has to end in .drv02:14:24
@mschwaig:matrix.orgMartin Schwaighofer
In reply to @Ericson2314:matrix.org
the thing we will end up using for input-addressing is the resolved derivation, with no inputDrvs only inputSrcs
Ok, I understand, thanks
13:14:30

Show newer messages


Back to Room ListRoom Version: 6