!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

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

Load older messages


SenderMessageTime
26 Mar 2025
@Ericson2314:matrix.orgJohn Ericson fs.copyfile right? 22:26:02
@emilazy:matrix.orgemily right, if you want to synthesize an include/nix in the build directory. though my actual proposal was just to move the files :) 22:31:48
@Ericson2314:matrix.orgJohn Ericson emily: yes moving the files is what i have implemented today 22:52:16
@Ericson2314:matrix.orgJohn Ericson but I sold Eelco on the compromise that you invented :) 22:52:31
27 Mar 2025
@Ericson2314:matrix.orgJohn Ericson hmm custom targets don't work with install_headers 00:20:39
@Ericson2314:matrix.orgJohn EricsonI think I therefore want to symlnk the headers in the repo00:22:25
@Ericson2314:matrix.orgJohn Ericson Eelco: is that OK with you? 00:22:31
@fzakaria:one.ems.hostfzakariais there a good link to understand how the outPath is calculated for a drv ?02:48:57
@Ericson2314:matrix.orgJohn Ericsonhttps://github.com/NixOS/nix/pull/12764 OK it's done (pending CI)05:50:17
@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

Show newer messages


Back to Room ListRoom Version: 6