!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

893 Members
For people hacking on the Nix package manager itself191 Servers

Load older messages


SenderMessageTime
27 Mar 2025
@Ericson2314:matrix.orgJohn Ericsonbackport to avoid conflicts on other backports? not sure05:50:27
@roberthensing:matrix.orgRobert Hensing (roberth)these new docs seem relevant https://nix.dev/manual/nix/development/store/derivation/index.html10:36:50
@roberthensing:matrix.orgRobert Hensing (roberth)also its subpages10:36:59
@emilazy:matrix.orgemily
In reply to @Ericson2314:matrix.org
https://github.com/NixOS/nix/pull/12764 OK it's done (pending CI)
seems better to just ignore /libcmd/*.hh etc. rather than having an extra step for every new header
12:17:07
@sinan:sinanmohd.comsinan changed their profile picture.13:10:48
@Ericson2314:matrix.orgJohn Ericson emily: some libraries do have private headers, however 14:59:42
@Ericson2314:matrix.orgJohn EricsonI would make more of that cleaning up the configuration headers too15:00:03
@Ericson2314:matrix.orgJohn Ericson* I would make more of them cleaning up the configuration headers too15:00:08
@emilazy:matrix.orgemily include-private/? :) 15:02:27
@emilazy:matrix.orgemily or include/nix-private, avoids setting up another flag 15:02:43
@Ericson2314:matrix.orgJohn Ericsonhmm maybe15:04:52
@Ericson2314:matrix.orgJohn Ericson it is traditional to put the private headers with the source files, but it is also traditional to put the private headers and source files in something like src/ to distinguish from include/ 15:06:47
@Ericson2314:matrix.orgJohn Ericson Another funny option is ....what happens if one .gitignores a .gitignore? :) 15:07:27
@Ericson2314:matrix.orgJohn Ericsonhttps://www.reddit.com/r/shittyprogramming/comments/auazfo/what_happens_if_you_put_gitignore_into_a/, oh dope!15:08:32
@Ericson2314:matrix.orgJohn Ericson emily: OK pushed a new version doing that 15:35:35
@niko:nrab.lolniko ⚡️IMG_6008-1743089880984.png
Download IMG_6008-1743089880984.png
15:38:03
@niko:nrab.lolniko ⚡️
In reply to @Ericson2314:matrix.org
https://www.reddit.com/r/shittyprogramming/comments/auazfo/what_happens_if_you_put_gitignore_into_a/, oh dope!
Dope indeed haha
15:38:11
@fzakaria:one.ems.hostfzakaria 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)
16:20:53
@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

Show newer messages


Back to Room ListRoom Version: 6