worldofpeace_ changed the topic of #nixos-dev to: #nixos-dev NixOS Development (#nixos for questions) | NixOS stable: 20.03 ✨ https://discourse.nixos.org/t/nixos-20-03-release/6785 | https://hydra.nixos.org/jobset/nixos/trunk-combined https://channels.nix.gsc.io/graph.html | https://r13y.com | 19.09 RMs: disasm, sphalerite; 20.03: worldofpeace, disasm | https://logs.nix.samueldr.com/nixos-dev
<emily> 22:05 <clever> i'm also interested in how nativeBuildsInputs magically rewrites
<clever> emily: not recently, it was linked from an issue explaining things, but the __splice the issue mentioned doesnt exist
<clever> emily: enless, is callPackage adding __splice as it calls things, so you can never see it from `nix repl` ??
<clever> > pkgsCross.raspberryPi.callPackage ({ hello }: hello.__spliced.buildBuild) {}
<{^_^}> "<derivation /nix/store/sg3sw1zdddfkl3hk639asml56xsxw8pf-hello-2.10.drv>"
<clever> > pkgsCross.raspberryPi.hello.__spliced
<{^_^}> attribute '__spliced' missing, at (string):309:1
<clever> aha!
<clever> > (pkgsCross.raspberryPi.callPackage ({ hello }: hello.__spliced.buildBuild) {}).override { hello = glibc; }
<{^_^}> attribute '__spliced' missing, at (string):309:48
<clever> emily: and everything still falls apart, the instant you .override, so you cant actually allow what i wanted
<clever> { buildPackages }: stops you from changing it with .override
<clever> infinisil: cc ^
drakonis has quit [Quit: WeeChat 2.8]
drakonis has joined #nixos-dev
Scriptkiddi has quit [Quit: killed]
ajs124 has quit [Quit: killed]
das_j has quit [Quit: killed]
das_j has joined #nixos-dev
Scriptkiddi has joined #nixos-dev
ajs124 has joined #nixos-dev
andi- has quit [Remote host closed the connection]
andi- has joined #nixos-dev
kraem has quit [Ping timeout: 256 seconds]
kraem has joined #nixos-dev
<catern> emily: hey, I'm trying to get a pypy36 working for a package (trio) and encountering various broken packages in its deps. I know that trio works on pypy outside Nix; do you have any guidance on how to get packages working with pypy? right now I'm on lazy-object-proxy which is failing with a "is not a supported wheel on this platform."
<catern> (asking you because you've touched pypy last :))
alp has joined #nixos-dev
cole-h has quit [Quit: Goodbye]
drakonis has quit [Quit: WeeChat 2.8]
orivej has quit [Ping timeout: 264 seconds]
phreedom has quit [Ping timeout: 240 seconds]
phreedom has joined #nixos-dev
Mic92 has quit [Quit: WeeChat 2.7.1]
Mic92 has joined #nixos-dev
masaeedu[m] has quit [*.net *.split]
mkg20001 has quit [*.net *.split]
Dandellion has quit [*.net *.split]
Ox4A6F has quit [*.net *.split]
chrisaw has quit [*.net *.split]
cbarrett has quit [*.net *.split]
Shados has quit [*.net *.split]
cbarrett has joined #nixos-dev
chrisaw has joined #nixos-dev
mkg20001 has joined #nixos-dev
Ox4A6F has joined #nixos-dev
Shados has joined #nixos-dev
Dandellion has joined #nixos-dev
masaeedu[m] has joined #nixos-dev
teehemkay has quit [Ping timeout: 256 seconds]
teehemkay has joined #nixos-dev
__monty__ has joined #nixos-dev
alp has quit [Remote host closed the connection]
alp has joined #nixos-dev
<arianvp> is it just me or is buildRustPackage broken?
<arianvp> cargoSha256 hash changes every time I rebuild from scratch
<arianvp> seems cargo-vendor is not reproducible
<Profpatsch> arianvp: It has the capability of building a real tree of dependencies, if you convert the lock file to nix expressions
<arianvp> how do I do that?
orivej has joined #nixos-dev
<Profpatsch> arianvp: you would have to write the converter from the Cargo.toml to a nix expression and pass every package to `buildRustPackage` with dependencies in the `dependencies` field
<Profpatsch> buildRustPackage knows how to include rust library dependencies
<Profpatsch> Maybe somebody has written a converter.
<Profpatsch> Ah, crate2nix does it https://github.com/kolloch/crate2nix
michaelpj has quit [Quit: killed]
Irenes[m] has quit [Quit: killed]
jamiemagee has quit [Quit: killed]
aanderse has quit [Quit: killed]
jtojnar has quit [Quit: killed]
Ericson2314 has quit [Quit: killed]
arcnmx has quit [Quit: killed]
danielrf[m] has quit [Quit: killed]
tokudan[m] has quit [Quit: killed]
dtz has quit [Quit: killed]
doronbehar has quit [Quit: killed]
Dandellion has quit [Quit: killed]
Ox4A6F has quit [Quit: killed]
mkg20001 has quit [Quit: killed]
DamienCassou has quit [Quit: killed]
nocent has quit [Quit: killed]
rycee has quit [Quit: killed]
alexarice[m] has quit [Quit: killed]
domenkozar[m] has quit [Quit: killed]
emily has quit [Quit: killed]
bennofs[m] has quit [Quit: killed]
ma27[m] has quit [Quit: killed]
colemickens has quit [Quit: killed]
yegortimoshenko has quit [Quit: killed]
jonge[m] has quit [Quit: killed]
worldofpeace has quit [Quit: killed]
freeman42x[m] has quit [Quit: killed]
abbradar[m] has quit [Quit: killed]
pkolloch[m] has quit [Quit: killed]
PkmX[m] has quit [Quit: killed]
timokau[m] has quit [Quit: killed]
vaibhavsagar has quit [Quit: killed]
matthewbauer has quit [Quit: killed]
regnat[m] has quit [Quit: killed]
layus[m] has quit [Quit: killed]
masaeedu[m] has quit [Quit: killed]
alienpirate5 has quit [Quit: killed]
thefloweringash has quit [Quit: killed]
rnhmjoj has quit [Quit: killed]
bachp has quit [Quit: killed]
roberth has quit [Quit: killed]
Nyanloutre[m] has quit [Quit: killed]
<infinisil> clever: Ah I see
<LnL> there's also carnix for rust
<adisbladis> https://hydra.nixos.org/job/nixos/trunk-combined/tested hm, why didn't 118349771 bump the nixos-unstable channel
alexarice[m] has joined #nixos-dev
<Profpatsch> LnL: afaik the recommendation is to use crate2nix (also by the carnix author(s))
<LnL> ah didn't know that, carnix definitively didn't seem very active anymore
emily has joined #nixos-dev
abbradar[m] has joined #nixos-dev
jtojnar has joined #nixos-dev
Ox4A6F has joined #nixos-dev
ma27[m] has joined #nixos-dev
vaibhavsagar has joined #nixos-dev
doronbehar has joined #nixos-dev
matthewbauer has joined #nixos-dev
colemickens has joined #nixos-dev
yegortimoshenko has joined #nixos-dev
Irenes[m] has joined #nixos-dev
tokudan[m] has joined #nixos-dev
arcnmx has joined #nixos-dev
mkg20001 has joined #nixos-dev
bennofs[m] has joined #nixos-dev
freeman42x[m] has joined #nixos-dev
DamienCassou has joined #nixos-dev
jamiemagee has joined #nixos-dev
jonge[m] has joined #nixos-dev
Dandellion has joined #nixos-dev
aanderse has joined #nixos-dev
masaeedu[m] has joined #nixos-dev
domenkozar[m] has joined #nixos-dev
danielrf[m] has joined #nixos-dev
rycee has joined #nixos-dev
timokau[m] has joined #nixos-dev
thefloweringash has joined #nixos-dev
Ericson2314 has joined #nixos-dev
nocent has joined #nixos-dev
michaelpj has joined #nixos-dev
dtz has joined #nixos-dev
alienpirate5 has joined #nixos-dev
bachp has joined #nixos-dev
worldofpeace has joined #nixos-dev
PkmX[m] has joined #nixos-dev
roberth has joined #nixos-dev
rnhmjoj has joined #nixos-dev
Nyanloutre[m] has joined #nixos-dev
layus[m] has joined #nixos-dev
regnat[m] has joined #nixos-dev
pkolloch[m] has joined #nixos-dev
<infinisil> How does crate2nix compare to https://github.com/nmattia/naersk ?
<Profpatsch> infinisil: crate2nix uses buildRustCrate from nixpkgs
<Profpatsch> I don’t know about naersk, but iirc it is an attempt at replacing cargo with nix
<Profpatsch> But you can of course inspect it yourself :)
justanotheruser has quit [Ping timeout: 244 seconds]
orivej has quit [Ping timeout: 246 seconds]
<bennofs[m]> May I draw someone's attention to https://github.com/NixOS/nixpkgs/pull/86062? It's a quite simple PR IMO but would be good to get at least one other person to sanity check/review it
<{^_^}> #86062 (by bennofs, 1 week ago, open): ghostscript: fix parallel building
<manveru> also https://github.com/NixOS/nixpkgs/pull/85445 has been dormant for a while and crystal on darwin is still broken with out it :(
<{^_^}> #85445 (by manveru, 2 weeks ago, open): crystal: use llvm 10 exclusively
fpletz has quit [Changing host]
fpletz has joined #nixos-dev
<emily> catern: hm, i guess wheels imply it's looking for binary versions of the packages?
<ehmry> can someone get me into the nixos freenode group?
<qyliss> I think you need to ask gchristensen about that
<LnL> group?
<qyliss> NixOS/user/*, I assume
<infinisil> ,capes
<ehmry> yea
<infinisil> ,cloaks
<{^_^}> infinisil: Did you mean cloak?
<{^_^}> Ping ${"gchris" + "tensen"} if you'd like to get a nixos/user cloak. Read https://nixos.wiki/wiki/IRC:Cloaks for instructions.
<LnL> ah the cloak
<LnL> infinisil: I would love a nixos cape tho :D
<infinisil> NO CAPES!
<LnL> aww :/
<infinisil> (I hope you got the reference lol)
xfix has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
xfix has joined #nixos-dev
alp has quit [Quit: Leaving]
alp has joined #nixos-dev
Jackneill has quit [Ping timeout: 240 seconds]
Jackneill has joined #nixos-dev
cole-h has joined #nixos-dev
<gchristensen> so sphinx + this python lib has live-reloading docs support and it is pretty neeat
dtz has quit [Quit: Idle for 30+ days]
alp has quit [Ping timeout: 240 seconds]
alp has joined #nixos-dev
bachp has left #nixos-dev ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
alienpirate5 has left #nixos-dev ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
kraem has quit [Quit: outta here]
kraem has joined #nixos-dev
drakonis has joined #nixos-dev
Nyanloutre[m] has left #nixos-dev ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
layus[m] has left #nixos-dev ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
pkolloch[m] has left #nixos-dev ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
abathur has quit [Quit: abathur]
abathur has joined #nixos-dev
ixxie has joined #nixos-dev
orivej has joined #nixos-dev
justanotheruser has joined #nixos-dev
alp has quit [Ping timeout: 240 seconds]
alp has joined #nixos-dev
ajs124 has quit [Quit: authenticating]
ajs124 has joined #nixos-dev
<arianvp> is anybody working on the NGI-Zero nix+android packaging project already?
<arianvp> work sounds superrr useful
<arianvp> would love to make android builds at my job reproducible with nix
ajs124 has quit [Client Quit]
ajs124 has joined #nixos-dev
nschoe has quit [Ping timeout: 272 seconds]
<Ericson2314> arianvp: I don't know about this specific grant project, but there is stuff already existing both in nixpkgs and outside it for making android buidls with nix
xfix has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
xfix has joined #nixos-dev
ixxie has quit [Quit: Lost terminal]
evanjs has quit [Quit: ZNC 1.7.5 - https://znc.in]
evanjs has joined #nixos-dev
brotherdust has joined #nixos-dev
<brotherdust> Hello everyone! Was hoping someone could help me with some problems I'm having creating a Nix package and NixOS module for FRR, a derivative of Quagga. I've been able to successfully compile the package, even install the package. The problem comes with testing the module. As I'm using NixOS on a Hyper-V guest, I'm not sure running the VM-build
<brotherdust> option would work. Without that, I'm not sure how to go about actually testing the module unless I put in a PR to nixpkgs. Any suggestions out there? Much appreciation in advance.
rajivr___ has quit []
<yorick> my libpcap.so contains references to /nix/store/a3p3s6paawfi0kyhg48gdxnyjq7k1wfh-armv7l-unknown-linux-gnueabihf-stage-final-gcc-debug-9.2.0/armv7l-unknown-linux-gnueabihf/sys-include/bits
<yorick> how are they removed when not cross-compiling?
rajivr has joined #nixos-dev
rajivr has quit [Client Quit]
rajivr has joined #nixos-dev
<yorick> oh, libpcap is normally stripped
<yorick> Ericson2314: what's the reason for the dontStrip? https://github.com/NixOS/nixpkgs/commit/48300199566229bd1409eb8f1f2cf8b8871d6b67
<Ericson2314> yorick: just reproducing what was there
<Ericson2314> it could well not be needed anymore
<Ericson2314> now that cross isn't screwed up like it was theren
<yorick> ah
<yorick> > Stripping hurts in static libraries
<{^_^}> error: syntax error, unexpected IN, expecting ')', at (string):309:17
<Ericson2314> yorick: just try it, i would not be surprised if it works now
<yorick> I don't use static libraries, but stripping seems to work fine for cross-compiling
<yorick> and it saves 800MB of closure
<yorick> got my closure from 2.4G to 900M, good enough for today
<Ericson2314> great!
<Ericson2314> ship it!
<yorick> I'm putting my overrides in a file, will PR them all soon
asbachb has joined #nixos-dev
__monty__ has quit [Quit: leaving]
<brotherdust> haha. Nevermind. I figured it out. 'nixos-rebuild -I nixpkgs=/path/to/nixpkgs'
evanjs has quit [Ping timeout: 272 seconds]
evanjs has joined #nixos-dev
drakonis has quit [Read error: Connection reset by peer]
<cole-h> ma27[m]: Seeing as you just posted to that PR again, I'd be interested to hear what you think about https://github.com/NixOS/nixpkgs/pull/82342#discussion_r419186115 (sorry if you're actually drafting a reply as we speak :P)
brotherdust has quit [Remote host closed the connection]
<ma27[m]> cole-h: oh, apparently I missed that one, sorry! I need some sleep now though and will respond tomorrow :)
<cole-h> Roger. Sleep well :)
drakonis has joined #nixos-dev
alp has quit [Ping timeout: 244 seconds]
phreedom has quit [Ping timeout: 240 seconds]
<clever> Ericson2314: you available?
<Ericson2314> clever: sure for a it before dinner
<clever> Ericson2314: i'm having trouble getting rustc to compile for cross
<clever> implement.h:45:10: fatal error: windows.h: No such file or directory
<clever> builder for '/nix/store/pkwh6y88qk8xxmwcw7rzcnypcviw5gfg-pthreads-w32-2.9.1.drv' failed with exit code 2
<clever> it insists on building windows.pthreads for linux
<Ericson2314> weird!
<Ericson2314> do you know why?
<clever> no clue
<Ericson2314> I thought i replaced it with the mfcthread things
<clever> attr name?
<clever> i had to add pthreads, because it failed to link due to missing pthreads
<arianvp> err can somebody explain me the relationship between nixpkgs-unstable and master?
<Ericson2314> clever: look at
<Ericson2314> threadsCross
<clever> 137 ++ optional stdenv.targetPlatform.isWindows libpthreadstubs;
<arianvp> I have a commit that is in master (merged through staging-next) but it doesn't show up in nixpkgs-unstable
<Ericson2314> maybe with mingw is tries to use pthreads rather than native windows stufff
<clever> Ericson2314: this seems to be building
<arianvp> and I dont understand how ?
<clever> arianvp: nixpkgs-unstable only updates when master passes a set of tests
<Ericson2314> you could go make on option to choose between mcfgthredas and pthreads
<arianvp> but it was updates 2 days ago
<samueldr> oh, nix_pkgs_ unstable
<Ericson2314> do a git log -G threadsCross to see when I added it what I did
<arianvp> nixpkgs-unstable has commits from 2 days ago; and my commit is from 9 days ago
<samueldr> (I was going to say "I see 8 days")
<arianvp> it is on master; but not on nixpkgs-unstable which is very fishy
<clever> arianvp: but when was your commit merged?
<samueldr> or, rather, staging merged into master
<arianvp> 9 days ago
<arianvp> whilst other files on nixpkgs-unstable are 2 days old; how .-.
<arianvp> oh wait is this Github mixing up commit message time vs merge time again etc?
<arianvp> but if it's in master; it means staging must've been merged to master right? so why is this commit not in nixpkgs-unstable eventhough it last built 1 day ago?
justanotheruser has quit [Ping timeout: 246 seconds]
<samueldr> when staging-next was last merged into master is probably after that commit
<samueldr> well, I say probably, but it **must** be
<samueldr> and I'm not sure how to see the merge event in this case on github
<arianvp> it was part of this staging-next merge; and the commit is on master too. so nixpkgs-unstable _should_ pick it up; but it isnt
<abathur> is there a person/team that roughly "owns" the UX of the installer process?
<abathur> sorry, the *nix* installer process
<arianvp> and this was 2 days ago; and nixpkgs-unstable is 1 day old
<samueldr> be wary of those relative dats
<samueldr> 1 day and 1 minute could be "1 day ago" or "2 days ago" depending on the implementation
<samueldr> and the channel upgrade counts from when the hydra build has finished
<samueldr> not from when it was started
<samueldr> it was queued at (my timezone since github shows only that) 00:48 on the 6th, https://hydra.nixos.org/build/118317575#tabs-details merge was 2:22 on th 6th
<samueldr> it missed that eval by ~2 hours
<arianvp> aha
<arianvp> thanks for the digging. Would be nice if these things were 'easier' to trace
justanotheruser has joined #nixos-dev
freeman42x[m] has quit [Quit: authenticating]
freeman42x[m]1 has joined #nixos-dev