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]
<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)
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!
<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
<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>
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`!
<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 :)