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
hoverbear has joined #nixos-dev
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-dev
orivej_ has joined #nixos-dev
orivej has quit [Ping timeout: 264 seconds]
hoverbear_ has joined #nixos-dev
hoverbear has quit [Quit: Connection closed]
hoverbear_ has quit [Client Quit]
hoverbear has joined #nixos-dev
hoverbear has quit [Changing host]
hoverbear has joined #nixos-dev
hoverbear has quit [Client Quit]
hoverbear has joined #nixos-dev
hoverbear has left #nixos-dev [#nixos-dev]
rajivr has joined #nixos-dev
orivej_ has quit [Ping timeout: 246 seconds]
orivej has joined #nixos-dev
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #nixos-dev
alp has quit [Ping timeout: 272 seconds]
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos-dev
drakonis has joined #nixos-dev
drakonis_ has quit [Read error: Connection reset by peer]
orivej has quit [Ping timeout: 265 seconds]
orivej_ has joined #nixos-dev
drakonis_ has joined #nixos-dev
drakonis has quit [Ping timeout: 244 seconds]
hoverbear has joined #nixos-dev
<hoverbear> How can I use `nix build` in nix 2.4 from a nix-shell shebang? I see I need to enable nix-command? Can I do like `#! nix-shell --pure -p "with (import <nixpkgs> { nix.extraOptions = ''experimental-features = nix-command flakes''; }); nixUnstable" -i bash` ?
<hoverbear> Ohhh
<hoverbear> `--experimental-features nix-command`, rock on
<gchristensen> `nix --experimental-features nix-command build` -- the options you tried look more like NixO..yep!
<hoverbear> =D!
<hoverbear> Doing my first nix-shell shebang for that digitalocean builder we talked about
orivej_ has quit [Ping timeout: 260 seconds]
orivej has joined #nixos-dev
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos-dev
orivej has quit [Ping timeout: 260 seconds]
<hoverbear> Is there a reason there's no switch/match in nix?
<hoverbear> Similarly, why no enums? :)
Jackneill has quit [Ping timeout: 260 seconds]
Jackneill has joined #nixos-dev
<JJJollyjim> what's the point of enums when there's no type system? :P
<hoverbear> I like types and I would be very much on board with a statically typed nix-ish thing...
drakonis1 has quit [Quit: WeeChat 2.8]
justanotheruser has quit [Ping timeout: 240 seconds]
octe has quit [Ping timeout: 256 seconds]
hoverbear has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
cole-h has quit [Quit: Goodbye]
alp has joined #nixos-dev
alp has quit [Ping timeout: 272 seconds]
drakonis has joined #nixos-dev
octe has joined #nixos-dev
drakonis_ has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos-dev
abbe_ has joined #nixos-dev
drakonis has quit [Ping timeout: 260 seconds]
abbe has quit [Disconnected by services]
roberth has quit [*.net *.split]
zowoq[m] has quit [*.net *.split]
Guest98635 has quit [*.net *.split]
worldofpeace has quit [*.net *.split]
rycee has quit [*.net *.split]
ky0ko has quit [*.net *.split]
zowoq[m] has joined #nixos-dev
Guest98635 has joined #nixos-dev
ky0ko has joined #nixos-dev
worldofpeace has joined #nixos-dev
rycee has joined #nixos-dev
roberth has joined #nixos-dev
__monty__ has joined #nixos-dev
ris has quit [Ping timeout: 272 seconds]
FRidh has joined #nixos-dev
urkk has joined #nixos-dev
<urkk> nix-channel fails with "linking: Operation not permitted" in BeegFS which doesn't allow hardlinks
<urkk> beegfs can be configured to create a softlink instead
<urkk> Or we could add EPERM to the if, to try copyPath next
alp has joined #nixos-dev
alp has quit [Remote host closed the connection]
alp has joined #nixos-dev
orivej has joined #nixos-dev
alp has quit [Ping timeout: 272 seconds]
<Mic92> worldofpeace: niksnut sphalerite spacekookie Don't forget about the RFC meeting today
<sphalerite> yep
<worldofpeace> yep
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #nixos-dev
alp has joined #nixos-dev
orivej has quit [Ping timeout: 260 seconds]
orivej_ has joined #nixos-dev
orivej_ has quit [Ping timeout: 256 seconds]
asymmetric has quit [Quit: Peace.]
asymmetric has joined #nixos-dev
asymmetric has quit [Changing host]
asymmetric has joined #nixos-dev
alp has quit [Ping timeout: 272 seconds]
<worldofpeace> Jan Tojnar: oops, sorry I didn't get back to you. Hopefully I can look at fontconfig today, and thanks for looking into it ✨
__monty__ has quit [Quit: leaving]
alp has joined #nixos-dev
<worldofpeace> Mic92: spacekookie has cancelled today, see email
<worldofpeace> wait, that could be misread, she's not attending
<Valodim> Glad to know the world keeps turning
<worldofpeace> 😁
<worldofpeace> she's powerful like that, so you never know for sure
ckauhaus has joined #nixos-dev
<Taneb> What are the requirements and responsibilities for shepherding an RFC?
<{^_^}> rfc-steering-committee#40 (by worldofpeace, 14 seconds ago, open): Some agenda updates
alp has quit [Remote host closed the connection]
alp has joined #nixos-dev
<Mic92> Taneb: basically you contribute to disscussions to improve the RFC i.e. make comments about its content. And you join 1-3 meetings, where the RFC is disscussed.
<Mic92> Maybe I should start an FAQ about our RFC procss :)
<gchristensen> that'd be awesome
<Mic92> I think there is an RFC text as well, but people probably prefer shorter answers.
<Taneb> The question I want to ask is "Should I nominate myself to shepherd an RFC"
Jackneill has quit [Read error: Connection reset by peer]
Jackneill has joined #nixos-dev
<Mic92> Taneb: You can propose yourself for sure. In the rfc steering comittee we assign shepherds. If people nominate themself it makes our live easier.
<Taneb> (I'm looking at number 67 in particular)
orivej has joined #nixos-dev
orivej has quit [Read error: Connection reset by peer]
orivej has joined #nixos-dev
orivej has quit [Ping timeout: 265 seconds]
orivej has joined #nixos-dev
<Valodim> I see there has been fontconfig work going on
<Valodim> apropos that, I have a PR in the pipeline that introduces a unified mkFont builder. It works pretty well, I updated 180 font packages to use it (out of 230 or so?) and most of those derivations are trivial now (pname+version+src+meta)
<Valodim> 183 files changed, 1654 insertions(+), 2629 deletions(-)
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-dev
<Valodim> more importantly, it enables policy decisions about how fonts are packaged. and one in particular: should woff/woff2/eot files be packaged?
<Valodim> there's a bunch more to think about there, but I'm confident we can significantly improve our font packaging story. hope I can finish a draft PR today :)
<worldofpeace> that sounds great
<worldofpeace> like awesome
<worldofpeace> ahhh, nix. I love it
<Valodim> I know right! my typical pitch is that nix has a really easy time being more than the sum of its parts :)
evanjs has quit [Read error: Connection reset by peer]
evanjs has joined #nixos-dev
<mdlayher> hey folks, i'd like to solicit some feedback on https://github.com/NixOS/nixpkgs/pull/91458 to vet the approach i'm using to inject a meaningful build timestamp for a given git tag. thanks!
<{^_^}> #91458 (by mdlayher, 12 hours ago, open): corerad: 0.2.6 -> 0.2.7
drakonis has joined #nixos-dev
drakonis_ has quit [Ping timeout: 256 seconds]
<gchristensen> I noticed python depends on bash for the most silly of reasons. check this out: nix-store -r /nix/store/m9g361va65ccbj2v5nil4dfr194zgarn-python3-3.8.3; nix --experimental-features nix-command why-depends -a /nix/store/m9g361va65ccbj2v5nil4dfr194zgarn-python3-3.8.3 /nix/store/hrpvwkjz04s9i4nmli843hyw9z4pwhww-bash-4.4-p23
<gchristensen> FRidh: adisbladis thinks we could probably move these specific files in to another output and eliminate bash from the dep tree. what do you think?
drakonis_ has joined #nixos-dev
drakonis1 has joined #nixos-dev
drakonis has quit [Ping timeout: 260 seconds]
ckauhaus is now known as ckauhaus[afk]
drakonis1 has quit [Quit: WeeChat 2.8]
ckauhaus[afk] has quit [Quit: WeeChat 2.7.1]
<LnL> sg
<LnL> whoops
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-dev
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-dev
orivej has quit [Ping timeout: 264 seconds]
orivej has joined #nixos-dev
mdlayher_ has joined #nixos-dev
mdlayher has quit [Killed (egan.freenode.net (Nickname regained by services))]
mdlayher_ is now known as mdlayher
Guest78586 has joined #nixos-dev
Guest78586 has left #nixos-dev [#nixos-dev]
rajivr has quit [Quit: Connection closed for inactivity]
orivej has quit [Quit: No Ping reply in 180 seconds.]
abbe_ is now known as abbe
alp has quit [Ping timeout: 272 seconds]
orivej has joined #nixos-dev
gilligan has quit [Quit: WeeChat 2.7.1]
ris has joined #nixos-dev
orivej has quit [Ping timeout: 265 seconds]
orivej has joined #nixos-dev
cole-h has joined #nixos-dev
justanotheruser has joined #nixos-dev
alp has joined #nixos-dev
bennofs_ has joined #nixos-dev
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos-dev
bennofs has quit [Ping timeout: 260 seconds]
drakonis_ has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos-dev
lopsided98 has quit [Remote host closed the connection]
lopsided98 has joined #nixos-dev
<kloenk> any mac user here? The nix-daemon und macos, does it work? does it show the peer pid of the unix connection?
hoverbear has joined #nixos-dev
drakonis_ has quit [Read error: Connection reset by peer]
drakonis has joined #nixos-dev
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-dev
<hoverbear> So I have a `import <nixpkgs> { overlays = [ import ./nix/overlay/default.nix ]; }` and that file is like `self: super: { a = 1; }`, I should have `pkgs.a` available to me and it be set to 1?
theotherjimmy[m] has joined #nixos-dev
<adisbladis> hoverbear: Yeah, apart from one tiny mistake
<adisbladis> import <nixpkgs> { overlays = [ import ./nix/overlay/default.nix ]; }
<adisbladis> ->
<adisbladis> import <nixpkgs> { overlays = [ (import ./nix/overlay/default.nix) ]; }
<samueldr> hmm... licensing question pertaining to Nixpkgs / MIT
<samueldr> the notice clause, I figure, doesn't apply to software produced using Nixpkgs, or should anything produced using Nixpkgs include the notice?
<samueldr> I'm thinking, there is no "software" produce out of Nixpkgs that is "nixpkgs" itself, only other software ends up produced
<samueldr> but not being a lawyer, I definitely can't know how that applies
<qyliss> drvs probably have to have the notice if you distribute those
<samueldr> because I can also think that "anything produced using Nixpkgs is produced that way because it's using Nixpkgs, so all software produced using Nixpkgs has a little Nixpkgs into itsekf"
<qyliss> but it would be surprising to me if a package built with Nixpkgs had to carry the MIT license
<samueldr> the notice, right?
<qyliss> yeah
<qyliss> sorry
<samueldr> no worries, it's a hard topic :)
<hoverbear> Ah ah I think I got it!
<hoverbear> `builtins.trace` is the best function ever
<qyliss> hoverbear: do you know about the whole suite of helper trace functions in lib?
<hoverbear> qyliss: ... No?
<qyliss> lib.traceVal is builtins.trace but you don't have to repeat yourself
<hoverbear> :think:
<samueldr> (and here I was always adding `let pp = x: builtins.trace x x; in`)
<hoverbear> I will try this :)
<qyliss> lib.traceValFn is like that but it applies a function to the argument before logging it
<qyliss> And there's a bunch more
<hoverbear> HOnestly what I am normally trying to do is `args@{ ... }: (buitins.trace "About to exec foo with ${args}" ....);`
<qyliss> > with lib; builtins.filter (n: hasPrefix "trace" n) (attrNames lib)
<{^_^}> [ "traceCall" "traceCall2" "traceCall3" "traceCallXml" "traceIf" "traceSeq" "traceSeqN" "traceShowVal" "traceShowValMarked" "traceVal" "traceValFn" "traceValIfNot" "traceValSeq" "traceValSeqFn" "trace...
<hoverbear> traceCall sounds like my vibe
<qyliss> Oh yeah traceValSeq is also useful, it'll force deep evaluation
<hoverbear> Ok I will investigate this more once I've conquered glibc2.17
<hoverbear> =D
<hoverbear> Thank you ALyssa
<hoverbear> So how can I make my nix packages static (except) glibc, given that `pkgsStatic` is musl?
<qyliss> You probably want to start by looking at the definition of pkgsStatic
<qyliss> Which is in pkgs/top-level/stage.nix
<infinisil> > lib.debug
<{^_^}> { addErrorContextToAttrs = <CODE>; attrNamesToStr = <CODE>; runTests = <CODE>; showVal = <CODE>; testAllTrue = <CODE>; traceCall = <CODE>; traceCall2 = <CODE>; traceCall3 = <CODE>; traceCallXml = <COD...
<infinisil> > attrNames lib.debug
<{^_^}> [ "addErrorContextToAttrs" "attrNamesToStr" "runTests" "showVal" "testAllTrue" "traceCall" "traceCall2" "traceCall3" "traceCallXml" "traceIf" "traceSeq" "traceSeqN" "traceShowVal" "traceShowValMarked"...
<qyliss> the important part is probably the crossOverlays bit
<qyliss> I would start by getting a Nixpkgs with that crossOverlays value set, and go from there
<qyliss> You might end up having to modify the overlay a bit, because it'll probably try to statically link gcc
<qyliss> But actually, it might be easier to not do that, and build just your program statically?
<qyliss> Oh, but I guess it'll have library dependencies
<qyliss> So never mind, yeah
<mdlayher> wait the bot can execute nix expressions in IRC? that's awesome
<samueldr> to be used sparingly, get your expression working in `nix repl <nixpkgs>` first if you want to show something to the crowd :)
<mdlayher> right on
orivej has quit [Ping timeout: 260 seconds]
orivej_ has joined #nixos-dev
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-dev
<hoverbear> How can I use pkgs.stdenvAdapters.makeStaticBinaries for buildRustPackage?
<qyliss> That gives you a new stdenv, so you should be able to set that for buildRustPackage in the way I suggested yesterday
<hoverbear> Right, via the `makeRustPlatformg ?
<hoverbear> Oh thank goodness there are logs
<mdlayher> it took me way too long to realize i could call machine.log() within NixOS tests
<mdlayher> it's so obvious in retrospect ha
orivej has quit [Ping timeout: 264 seconds]
orivej has joined #nixos-dev
justan0theruser has joined #nixos-dev
justanotheruser has quit [Ping timeout: 256 seconds]
alp has quit [Ping timeout: 272 seconds]
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos-dev
<hoverbear> Hmmm okay I gotta figure out the magic around pathelf now :)
orivej has quit [Ping timeout: 265 seconds]
orivej has joined #nixos-dev
b42 has quit [Ping timeout: 256 seconds]
b42 has joined #nixos-dev
<hoverbear> I'm finding a lot of docs how to patchelf stuff *onto* nix, however in this case I want to patchelf stuff *off* nix to something like ubuntu/centos. :S
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos-dev
<clever> hoverbear: set the interpreter back to /lib/ld-something and rpath to /usr/lib:/lib
<clever> and pray that the libraries are compatible!
<hoverbear> Ahh okay maybe I'm trying to set rpath when I should set the interpreter
<hoverbear> Oh yup that seems to be it
<hoverbear> clever: So can I call patchelf wrapped around like a mkderivation or something?
<samueldr> it could be a postFixup
<hoverbear> Hmmm I think I can pass that to `buildRustPackage`!
<{^_^}> #91518 (by Valodim, 6 minutes ago, open): draft: mkFont
<Valodim> I'm not quite sure who to ping as a potential reviewer for this, if anyone has a pointer that'd be much appreciated :)
<Valodim> eh, I'll just ping a bunch of random folk whose names come up in font package maintainer lists a couple times
<clever> hoverbear: building a fully static binary would likely be more portable though
alp has joined #nixos-dev
<hoverbear> clever: Yes however I can't build glibc statically so I gotta link to it. I have musl builds for more reasonable machines.
<hoverbear> clever: I needto build "a nixos build, a mostly-portable gnu build, a portable musl build, a docker container, and a tarball" for x86 aarch armv7lhf linuxes and windows and mac :)
<clever> hoverbear: nix also makes cross trivial
<hoverbear> I know =D It's epic
<hoverbear> This is replacing several thousand lines of docker container stuff and I am pumped
<infinisil> Noice
<hoverbear> I think it's pretty cool my client is game to try this
<hoverbear> TIL about $out in postFixup
<samueldr> $out is always in the environment :)
<hoverbear> samueldr: More broadly, TIL about $out
* hoverbear is a nix novice at best.
orivej has quit [Ping timeout: 265 seconds]
orivej has joined #nixos-dev
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #nixos-dev
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos-dev
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-dev
justan0theruser has quit [Ping timeout: 246 seconds]
orivej has quit [Ping timeout: 265 seconds]
orivej_ has joined #nixos-dev
justan0theruser has joined #nixos-dev