<avn>
Peaker: btw, yesterday I tried build your wip branch, and it works. (but I replace your pinned version with master)
<Peaker>
avn, pinned version of which package?
<avn>
Peaker: of nixpkgs
<Peaker>
avn, ah. Did you run it? Open a GL window/etc?
<avn>
yes
<Peaker>
out of the box?
<Peaker>
No tinkering?
<avn>
But I failed to switch it to using system glfw
<Peaker>
avn, yeah cause GLFW-b embeds its own copy, in some version of glfw
<Peaker>
(rather bindings-glfw does that)
<avn>
looks like it have patched version
<Peaker>
transparency related patch? I think that one is no longer needed
<Peaker>
(was an OS X bug workaround)
maximiliantagher has joined #nixos
<infinisil>
Peaker: sourceByRegex still has some problems though..
<infinisil>
E.g. if you want to include everything in `./src/*` you need to have an entry for `src` and one for `src/*`
<infinisil>
Because Nix won't even recurse if you don't have the first one
<infinisil>
Which is really bad UX imo
<infinisil>
And I spent like half an hour debugging an error because of this
<avn>
probably, it complained on something transparency related
<cyounkins>
So I just installed NixOS in Virtualbox, then did `nix-env -i w3m`. `w3m google.com` brings up a mix of the webpage /and/ the tail end of `dmesg` which starts with "BUG: unable to handle kernel paging request at...". Tried with PAE/NX set and unset in virtualbox. Nested paging VT-x is enabled. The only thing that's maybe odd is I'm using virtualized EFI. Any thoughts?
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Peaker>
yay, I just managed to get it work here too! a nix build!
<Peaker>
avn, so your patch to use libGL in the right place -- is not the one I need, I think, cause GLFW loads /nix/store/<hash>-mesa-noglu-18.2.2-drivers/lib/libGLX_mesa.so (not libGL.so)
peacememories has joined #nixos
Rusty1 has joined #nixos
<avn>
Peaker: I feel is a good idea to refer some env variable for libGLX_xxx.so searching, but regular LD_LIBRARY_PATH should works as well
<Peaker>
avn, yeah, I managed to make it work with LD_LIBRARY_PATH but I'm going to try the patch approach for it to be as seamless as possible (modulo the /run/opengl-driver thing)
<avn>
Peaker: I am on nixos, and /run/opengl-drivers link is in LD_LIBRARY_PATH and points to $mesa.drivers
<avn>
in theory, libGLX_... can be provided by other packages as well.
<Peaker>
why does nixGL require me to tell it which hardware I have? Can't it use lspci?
<{^_^}>
[nixpkgs] @Mic92 opened pull request #50534 → ###### Motivation for this change → https://git.io/fpcYT
<catern>
hey #nixos, I have a library which depends on some executables, so it hardcodes the path to those executables in the output build artifacts, which is all good
<catern>
now I have some other executables that I want only at test-running-time
<catern>
should I just look them up on the PATH? that seems a bit awkward and different from how I treat other executables
<catern>
(this is a Python library, not that that really matters)
<Peaker>
can I provide some git info ("git status", the git hash, etc) as inputs to the build? how do nix projects do the embedded version info thing?
<Peaker>
(I guess I could filter out only some of the .git, but that's awkward)
kai_w has quit [Quit: Konversation terminated!]
das_j has quit [Remote host closed the connection]
das_j has joined #nixos
das_j has quit [Remote host closed the connection]
<Peaker>
is there any way to get incremental builds of my not-yet-working nix build? I tried "nix-shell default.nix -A lamdu" and in the shell using "nix-build -K -A lamdu" -- but it rebuilds everything every time anyway :(
<Peaker>
nixGL has default.nix with exprs defining various packages. how can I 'nix-env -i' one of those (by its internal name) so it's available in my $PATH ?
<Peaker>
nix-build -A nixGLIntel works, but "nix-env -iA nixGLIntel" says "attribute 'nixGLIntel' in selection path 'nixGLIntel' not found"
maximiliantagher has quit [Ping timeout: 246 seconds]
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
braydenjw has joined #nixos
<braydenjw>
Is there a way with nix-shell to use a '.nix' file, but specifiy additional packages to include? My use-case is I have a default.nix file which builds a C++ project, but I'd like to open it with nix-shell and modify files with CLion or QTCreator.
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
drakonis has joined #nixos
drakonis_ has quit [Ping timeout: 268 seconds]
Diagon has quit [Quit: Leaving]
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
<aswanson>
I've been trying to get wireguard working for a while and feel like I'm missing something crucial with how NAT works on nixos. The nixos wiki says it should be enough to just enable NAT and specify the external interface and internal wireguard interface but I don't see any sort of NAT chains in iptables after running nixos-rebuild
ninjin has quit [Remote host closed the connection]
<drakonis_>
why not nftables?
ninjin has joined #nixos
<aswanson>
I assumed nftables was less used on nixos since it isn't enabled by default
<{^_^}>
[nixpkgs] @oxij opened pull request #50556 → curl: move option defaults from `all-packages.nix` to the derivation itself → https://git.io/fpcCE
<{^_^}>
[nixpkgs] @oxij opened pull request #50562 → treewide: support i386-pc-elf target, make errors prettier → https://git.io/fpcCX
<Lisanna_>
both seem to work... somewhat... if you use it like an option, then stuff seems to get merged correctly. but if you use it like a module (function taking { pkgs, ...}: ), it still applies stuff, but won't merge conflicts.
<Lisanna_>
runInLinuxImage is so cool... using it with stdenv.mkDerivation is a really awesome way to easily compile a package against a different distro like rhel
jperras has joined #nixos
maximiliantagher has joined #nixos
hyper_ch has quit [Read error: Connection reset by peer]
hyper_ch has joined #nixos
Czen has quit [Remote host closed the connection]
jperras has quit [Ping timeout: 244 seconds]
Czen has joined #nixos
maximiliantagher has quit [Ping timeout: 268 seconds]
nschoe has joined #nixos
<nschoe>
Hi everyone, I cann't start ghci because I get `<command line>: can't load .so/.DLL for: libz.so (libz.so: cannot open shared object file: No such file or directory)`
<nschoe>
It happens also when I try `cabal new-repl` inside a nix-shell session for which I have `zlib` in the `buidInputs`
<nschoe>
I've looked into this, but msot of the issues I can find relate to `stack`, which I don't use.
<timokau[m]>
How does nix decide when to copy a file (`variable = /path/to/file`) to the nix store?
jtojnar has joined #nixos
<jasongrossman>
Lisanna_: Where is runInLinuxImage documented please?
<steveeJ>
hyper_ch: we have an OS module for it and I'm wondering how to integrate ACME (which I haven't used before either) with the vault module for certificate generation
<steveeJ>
it would've been nice to to see an example
<exarkun22>
v0|d: nope. after you asked about cross compile, I re-tried that to remind myself how it failed ... and it doesn't seem to be failing this time (or maybe the build is going in a different order or something ... or maybe my nix store is full of corrupt packages that make it look like it can skip those builds ... I don't know)
<exarkun22>
v0|d: oh, awesome, matrix hates your nick.
EffSquared has joined #nixos
<v0|d>
:))
maximiliantagher has joined #nixos
<v0|d>
exarkun22: I was able to start a full bo xocmpilation w/o qemu.
<v0|d>
got stuck at cyrus-sasl atm.
<exarkun22>
(separate project: deploy znc with nix and switch back to that ... also having problems)
<avn>
znc?
<v0|d>
vnc prob.
<exarkun22>
https://wiki.znc.in/Installation (sorry, left off the context, matrix as an irc client is terrible and I'm trying to switch back to irssi + an irc bouncer)
<EffSquared>
Good day. Has anybody managed booting a 64bit NixOS on a 64bit machine with a 32bit UEFI, like an old Mac Pro or some Intel Atom netbooks?
<v0|d>
exarkun22: I did nix-build -E 'import <nixpkgs/nixos> { configuration = (import ./rpi.nix).rpi; }' and added nixpkgs.crossSystem = lib.systems.examples.raspberryPi // { system = "armv6l-linux"; }; to rpi.nix
<v0|d>
<v0|d>
this initiates a full box w/ a cross compiler.
maximiliantagher has quit [Ping timeout: 252 seconds]
<exarkun22>
v0|d: oh. you're compiling my junk?
* exarkun22
looks up lib.systems.examples.raspberryPi
erictapen has joined #nixos
<v0|d>
exarkun22: yep.
<bennofs[m]>
quick question: how to write attrset // (optionalAttrs condition { some.nested.attr = true; }) correctly?
<bennofs[m]>
(problem with that is that merging is not correct because it is a nested attr)
<avn>
v0|d: don't tell me about vnc and rdp. I start screaming from it
<exarkun22>
this raspberryPi example system has me worrying now, looks like there's a lot more being configured here than I configured. but also this looks like it's for raspberryPi 2 and I have a 3b+
<exarkun22>
(linux 2.6 also does not look super exciting)
<v0|d>
bennofs[m]: there is something called recursiveUpdate
<exarkun22>
or .. I dunno, possibly I don't understand what I'm reading here.
<v0|d>
exarkun22: I know if this works we can make v7 work.
<exarkun22>
cross compile still running here, though, too. gcc now.
<bennofs[m]>
propagated means it automatically becomes a (native)BuildInput of anything that depends on it
<exarkun22>
AIUI propagated means that if something else declares libskba as a build dependency, it will automatically get libgpgerror as a build dependency as well
<v0|d>
bennofs[m]++
<{^_^}>
bennofs[m]'s karma got increased to 1
<exarkun22>
how much should I worry about the hundreds of reports of "wrong ELF type" during this build? :)
<v0|d>
exarkun22++
<{^_^}>
exarkun22's karma got increased to 2
mayhewluke has joined #nixos
<v0|d>
interesting, so I though this propagation is done automatically via ldd or something.
<v0|d>
thought*
<v0|d>
what makes it explicit?
<bennofs[m]>
wrong elf type sounds dangerous. but if it doesn't fail maybe not too bad? I'd say it's likely caused by trying to run elfs for the wrong architecture?
<bennofs[m]>
v0|d: most cases don't require propagation. some package might use another only as internal dependency then you don't need propagation.
<v0|d>
internal dependency? like dlopen?
<bennofs[m]>
no just usual dependency where it isn't exposed to the users of the package directly (and even those cases don't require propagation if pkg-config files are set up correctly)
maximiliantagher has quit [Ping timeout: 260 seconds]
<v0|d>
see.
* exarkun22
can say the words but doesn't really understand
<bennofs[m]>
note that (propagated)(native)buildInputs are only talkin about build-time dependencies (such as needed tools, headers etc). runtime is inferred by nix
<v0|d>
exarkun22: put nix.buildCores = 8; or more in /etc/nixos/configuration.nix
<avn>
exarkun22: usually pkg-config stuff correctly catch full paths, and don't require propagation
<avn>
exarkun22: nix track dependencies by full paths mentions
mkoenig has quit [Quit: Lost terminal]
maximiliantagher has joined #nixos
<nschoe>
Hi everyone, is there something special about `libz.so`? I'm in a `nix-shell` session with `zlib` as `buildInput`, yet when I try to build some Haskell dependencies I have `<command line>: can't load .so/.DLL for: libz.so (libz.so: cannot open shared object file: No such file or directory)`
<avn>
v0|d: I prefer to set 4 cores of 6, otherwise is not very comfortable to sit on host where browsers builds
<exarkun22>
v0|d: something somewhere seems to have figured out how many cores I have
<nschoe>
Is there smth else I need to include for `libz.so` to be found?
<exarkun22>
avn: maybe this could be nativeBuildInputs then. libgpgerror pkg-config seems to give the correct prefix.
<avn>
nschoe: do you use stack?
alex`` has joined #nixos
<alp>
nschoe, you need both zlib & zlib.dev I think
<nschoe>
avn, no I don't
<bennofs[m]>
maybe also try adding `pkgconfig`
<nschoe>
alp, oh? let me try. How can I know there's even a `zlib.dev`? I search `nix search zlib` and there was none :/
<avn>
Well, better to use stack or cabal2nix. (stack with stack-shell.nix with listed native dependencies)
<alp>
nschoe, yeah it's tricky to figure out on your own, IIRC there's a github issue that goes through this...
<bennofs[m]>
is there a command to list the currently installed locales? getting a glibc assertion failure for loadlocale
<nschoe>
avn, I used ot use `cabal2nix` indeed. Just wanted to take it slow and use `nix-shell` to get into a nice environement, and then use `cabal new-*` commands.
maximiliantagher has quit [Ping timeout: 272 seconds]
<fendor>
I try to use steam, but when I start csgo, nothing happens, when I use the terminal, the following error occurs: https://hastebin.com/epolurijuk.rb
maximiliantagher has quit [Ping timeout: 252 seconds]
<ottidmes>
Any reason why ati_unfree does not work with the latest kernel, while same driver on Arch Linux does? If not, then I am going to try and port the Arch Linux package to NixOS
<exarkun22>
hmm failed to repro libksba cross-compile failure in isolation :/
<bennofs[m]>
argh nix-env is the worst. just spent lots of time debugging weird locale crashes until I noticed that I installed vim via nix-env as root linked against ancient glibc..
<{^_^}>
[nixpkgs] @c0bw3b pushed commit from @swdunlop to master « mage: init at 1.7.1 »: https://git.io/fpcwe
<selfsymmetric-mu>
So I'm trying to use Python's `beancount` module. I run `pypi2nix -V 3 -e beancount -E libxml2 -E libxslt`. Then I run `nix-shell requirements.nix -A interpreter` and I get `error: infinite recursion encountered, at /nix/store/...-nix-2.0.4/share/nix/corepkgs/derivation.nix:18:9`.
<aszlig>
avn: an "agent" on your machine that runs dd with /dev/zero on your disks would also work
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
<aszlig>
selfsymmetric-mu: but you could use your own overrides with the --overrides flag
<lunik1>
How do I set package options? I'm trying to insall beets with the alternatives plugin, but putting "nixpkgs.config.beets.enableAlternatives = true;" in my configuration.nix does not seem to work.
<selfsymmetric-mu>
Oh yes. The README on the repo appears to be cut off.
<lunik1>
aszlig: perfect, thank you
<aszlig>
selfsymmetric-mu: although i think you don't need the boilerplate at the top, but I'm not sure, would need to look into that (has been a while since i last used pypi2nix)
<aszlig>
bbl
maximiliantagher has quit [Remote host closed the connection]
evilmonads has quit [Quit: "arrivederci"]
<selfsymmetric-mu>
"Stage1: Downloading wheels and creating wheelhouse" sure takes a long time.
<selfsymmetric-mu>
Maybe it's not find my cache or something.
<hdeshev>
Noob question here... It seems nixpkgs contains an expression for ruby 2.5.3 only. I was able to build a derivation for ruby 2.5.1 by copying the ruby directory (https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/interpreters/ruby) and adding a ruby_2_5_1 similar to what ruby_2_5 does for ruby 2.5.3. I'm wondering if that's the right way to go about pinning to ruby 2.5.1 though.
doyougnu has quit [Ping timeout: 244 seconds]
<hdeshev>
I'm about to do the same for postgresql 10.4 (nixpkgs has 10.5) and I wonder if I'm heading down a potential rabbit hole if I need to do this for many other dependencies.
maximiliantagher has joined #nixos
jperras has joined #nixos
maximiliantagher has quit [Ping timeout: 272 seconds]
<aszlig>
hdeshev: you could pin a version nixpkgs which has those specific versions
<hdeshev>
aszlig: thanks! I wanted to get the best of both worlds - both having latest nixpkgs with some "special" overrides. If guess, if it gets really bad, I'll just pin the whole thing.
<selfsymmetric-mu>
aszlig: I've gotten farther after adding an override for `lmxl` that requires the `beautifulsoup4` dependency.
<exarkun22>
So I'm here now: /nix/store/6rhi4s9wdi588kzdpwk9hqac4ngd2abc-libgpg-error-1.28/lib/libgpg-error.so: error adding symbols: File in wrong format
<exarkun22>
I guess since libgpg-error is a nativeBuildInput I need the version that's not cross compiled...?
<exarkun22>
or maybe the reverse
<exarkun22>
that libgpg-error.so is for x86_64
<exarkun22>
but it's being linked in with the armv7l gcc
[Leary] has joined #nixos
<selfsymmetric-mu>
I'm trying to install a specific python environment with nix-shell. This is the file I'm passing.
<selfsymmetric-mu>
It doesn't parse though. I think I'm not using let statements correctly?
cyounkins_ has joined #nixos
cyounkins has quit [Ping timeout: 256 seconds]
<exarkun22>
Why's it x86_64 then? Because it's a nativeBuildInput which is "A list of dependencies whose host platform is the new derivation's build platform, and target platform is the new derivation's host platform." I guess I have a libgpg-error whose host and target is x86_64 ... but I need one whose host is x86_64 and target is armv7l?
<exarkun22>
Or I need to put libgpg-error in a different list
<hdeshev>
selfsymmetric-mu: I'm betting it's the final semicolon in that let expression. Gets me every time too :)
<hdeshev>
just delete the ;
fendor has quit [Ping timeout: 246 seconds]
<hdeshev>
er, I mean just the last ;
<exarkun22>
oh, "target" is kind of a trick I should stop caring about ...
<avn>
exarkun22: with some probability source itself need to be a fixed
<exarkun22>
that's fine but I still don't really understand wtf is going on here. from what I can tell, libksba wants to compile a program and then run it as part of its build process (to generate some more stuff for the build)
<avn>
ber-dump listed on top of file as noinst_BINARY, probably it not used at all (not checked stuff outside src/ subdir)
* exarkun22
blinks
drakonis has quit [Ping timeout: 240 seconds]
<avn>
But I can mistake, is a just impression from first glance
<selfsymmetric-mu>
hdeshev: I thought so too but when I add one I get ";" not expected.
<avn>
I not tried to build it myself, only looked briefly on GH
<selfsymmetric-mu>
So it's weird. When I do one thing `nix-shell` tells me to do the opposite.
<selfsymmetric-mu>
`syntax error, unexpected $end, expecting ';',`, then when I add `;`, it says `syntax error, unexpected $end`.
<selfsymmetric-mu>
So that's a pretty unhelpful error.
<selfsymmetric-mu>
There's gotta be an example somewhere of how to install a customized package in `nix-shell`...I just can't find it.
<hdeshev>
selfsymmetric-mu: the 'with' at the beginning is a problem too. I was able to build your expression, when I got rid of it. Note I had to change the nixpkgs thing to make it work on my nixpkgs installation too: https://pastebin.com/UnsNEVmJ
<hdeshev>
I also changed stdenv to unstablePkgs.stdenv
<mpickering>
Why does `writeScript` when added as a buildInput to `mkShell` run the script when nix-shell is run?
<selfsymmetric-mu>
hdeshev: That works!! I was missing unstablePkgs.stdenv.
<mpickering>
I thought `writeScript` would write the second argument to `bin/foo` and then `foo` would be available when I typed `nix-shell`
cyounkins_ has quit [Ping timeout: 256 seconds]
drakonis has joined #nixos
c0ffee152 has quit [Quit: Lost terminal]
maximiliantagher has joined #nixos
<ryantm>
mpickering: writeScriptBin is what writes to "bin/"
<mpickering>
thanks, works perfectly
<exarkun22>
avn: I spent too much time with python. I can write a basic makefile but most of this is greek to me. :)
<mpickering>
what does symlinkJoin do if a derivation has multiple outputs? (I hope it merges them as well?)
Lears has joined #nixos
<avn>
exarkun22: I spent a year rewrtiting few very comlicated buildsystems to autocrap. Despite it was 10 years ago, I still remember something
<exarkun22>
handy, if unpleasant :)
<ryantm>
mpickering: It looks like it doesn't have any special facilities for multiple outputs.
<{^_^}>
[nixpkgs] @c0bw3b opened pull request #50614 → Cleanup of dead packages after Gna.org closure → https://git.io/fpcKa
<MisterOutofTime>
infinisil: how would i do that in the service?
oida has joined #nixos
<MisterOutofTime>
doesnt nix seperate the pkgs from system and the used in the service?
<MisterOutofTime>
also winewow is default
<MisterOutofTime>
which should supportz 64bit
<infinisil>
AH hmm
<infinisil>
Well the packageOverrides should in theory work
<infinisil>
MisterOutofTime: Try the `.override` directly where you use wine maybe
<infinisil>
MisterOutofTime: Also, can you use https://gist.github.com/ or https://hastebin.com/ (or similar) for sharing snippets? Pastebin is very disliked (ads, javascript and bloat)
<{^_^}>
[nixpkgs] @utdemir opened pull request #50617 → kakoune: Prefix version with 'v' → https://git.io/fpciO
Growpotkin has joined #nixos
<selfsymmetric-mu>
Where are steam scripts for games installed? steamapps?
<selfsymmetric-mu>
I see references to scripts in documentation, but I don't see any in the filesystem.
<selfsymmetric-mu>
No `.sh` files in my steamapps anyway.
<Growpotkin>
Not really nix related, but what are good terminal IRC clients? I've been using finch but the keybinds are terrible; overall I feel like extending it is a pain.
<tilpner>
growpotkin - weechat and irssi are popular
<{^_^}>
[nixpkgs] @utdemir closed pull request #50617 → kakoune: Prefix version with 'v' → https://git.io/fpciO
<Growpotkin>
ty :)
<infinisil>
growpotkin: Can recommend weechat as well
<{^_^}>
[nixpkgs] @c0bw3b pushed 3 commits to release-18.09: https://git.io/fpcir
<exarkun22>
Why does "nix why-depends /nix/store/adsgyx63jg6gw76wk7gcdbl521nxrq6r-nixops-machines.drv nixpkgs.libksba" try to build nixpkgs.libksba (and fail and so not tell me anything useful)?
<mpickering>
How do I get the path to an output from the derivation?
<mpickering>
perhaps d.output is enough..
<Growpotkin>
mpickering: depends how you built it. Did you use nix-build or nix-env?
<Growpotkin>
they both end up in the store but for nix-build you can also get the "result" folder
Growpotkin has left #nixos [#nixos]
<mpickering>
ok I found a solution, it is simple. foo.output
<exarkun22>
I guess the build error kind of answers the question? machines -> system -> user-units -> udev-rules -> system-units -> system-path -> hwdb -> dbus -> udisks -> libblockdev -> volume_key -> gpgme -> gnupg -> libksba
<{^_^}>
[nixpkgs] @dongcarl opened pull request #50618 → nixos/bitocind: add bitcoind service → https://git.io/fpciF
Growpotkin has joined #nixos
<exarkun22>
although I'm not completely sure that's the correct order
<{^_^}>
[nixpkgs] @utdemir reopened pull request #50617 → kakoune: Prefix version with 'v' → https://git.io/fpciO
<infinisil>
exarkun22: I think why-depends only works with derivation outputs
<infinisil>
not derivations themselves
<infinisil>
And in order for it to know what derivations depend on each other (the outputs) it needs to build them
<exarkun22>
is there an equivalent that works on derivations themselves? it sure would be nice to see dependency relationships without having to do a build ... (esp when the build can only fail)
<exarkun22>
I know there's a delicious nugget of "arbitrary user-supplied code" right in the middle (well, more like 800 of them) so you can't really know what the dependencies in the outputs will be from the input... but you could at least guess at the superset, right?
<infinisil>
exarkun22: Try nix-store -q --tree
cyounkins has quit [Quit: Page closed]
<infinisil>
Then grep for the derivation you want to find
<exarkun22>
okay that vaguely resembles the tree implied by the nix build failure (all of the "failed to build ... because dependency couldn't be built" junk at the end)
doyougnu has joined #nixos
<exarkun22>
and, indeed, dependency chain goes through things like dbus ... probably will not be very easy to rip this junk out
<nschoe>
Hi everyone, when I'm trying `nixos-rebuild build` or `nix build` on some other derivation, I get a lot of `warning: unable to download 'https://cache.nixos.org/nar/1y8az0y...nar.xz: HTTP error 200 (curl error: Failure when receiving data from the peer);`
<nschoe>
Then `error 9 while decompressing xz file` (which I guess is related)
crmlt has quit [Ping timeout: 246 seconds]
<nschoe>
I find this "HTTP error 200" weird. 200 is supposed to be OK
<nschoe>
And when I access the URL manually from the browser, it *does* offer to download the file, so I guess this should work
<{^_^}>
[nixpkgs] @orivej-nixos pushed commit from @orivej to master « eigen3_3: fix EIGEN3_INCLUDE_DIR location (#50628) »: https://git.io/fpcM7
<steveeJ>
andi-: dang, that systemd.network module is extremely thorough on the option checks
romanofskiWork has joined #nixos
<steveeJ>
probably saving me from getting the VPS disconnected :D
vk3wtf has quit [Ping timeout: 252 seconds]
<c0bw3b_>
nix-repl> lib.platforms.x86[ { ... } ]
<c0bw3b_>
ugh
<boogiewoogie>
hey, nix language question: consider `f = x: a: if a ? x then true else false` -- `f "a" {a=1;}` evaluates to false, `{a=1;} ? "a"` doesn't though. to me, they seem the same, where's the catch?
<LnL>
boogiewoogie: f = x: a: a ? "${x}"
<boogiewoogie>
yeah, I tried that and am surprised this works.. what's going on there?
<LnL>
a ? x checks if a has an attribute x, not whatever x's value is
<boogiewoogie>
okay, I looked for pathattr :p thanks!
<Twey>
That's my fault, sorry :)
<Twey>
It's interesting that x.y.z is not an iterated application of a binary operator . in Nix
<Twey>
Instead it's a single application of . to the expression x and the attrpath y.z
<Twey>
I'm not quite sure why that is
<Twey>
Maybe to enable ?
<Twey>
Since (x?y).z doesn't make sense
<Twey>
Even though (x.y).z does
<Twey>
I'm halfway through writing a Nix parser for reasons, and there are some quite surprising things in there that make you think
<gchristensen>
oh what reasons? in what lang?
aleph- has joined #nixos
<{^_^}>
[nixpkgs] @jtojnar pushed 157 commits to gnome-3.30: https://git.io/fpcyf
<nschoe>
Hi everyone, I have cross compiled `hello` for raspberryPi, and when I try to `nix-copy-close ./result` to the raspberry, it ends up failing with "error: cannot add path '/nix/store/zz58ixsgzc8b5nbdcz49j6rh6v7mbh00-hello-2.10-armv6l-unknown-linux-gnueabihf' because it lacks a valid signature
<nschoe>
error: unexpected end-of-file". Am I doing something wrong?
* exarkun22
stares at nspr and tries to figure out how to make it cross compile
c0bw3b_ has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @c0bw3b pushed commit from @r-ryantm to master « xosview2: 2.2.2 -> 2.3.0 »: https://git.io/fpcQG
<steveeJ>
andi-: after fiddling with it for a while I've managed to satisfy the checks for the networkd config, and `/etc/systemd/network/eth0.network` looks OK, though the static address configured there isn't coming up
foldingcookie has quit [Ping timeout: 244 seconds]
<imalsogr1g>
I picked up an xps 15 at a great price open-box. I can't get any display manager working right with the graphics card. But the installer ISO runs KDE perfectly. It seems a safe bet that my hardware is good and I'll eventually find and fix my misconfiguration. Or could I be overlooking something?
<imalsogr1g>
Seems like, worst case, I could copy the nixos config of the live cd itself.
<{^_^}>
[nixpkgs] @oxij opened pull request #50643 → pkgs: introduce `package-list.nix` and `trivialPackages` stage → https://git.io/fpcQl
<exarkun22>
thanks, didn't know about that. but still uncertain what string I should be aiming for. if a file literally contains $(FOO) then do I want `--replace $(FOO) ...` or `--replace '$(FOO)'` or `--replace \$\(FOO\)` or ...
<exarkun22>
what is interpreting these strings? sh? some nix code? guess I could read the source for substituteInPlace maybe
<ottidmes>
exarkun22: if you use it in e.g. the installPhase, then it will be run by bash
<infinisil>
$(FOO) will not, because that will try to run the command FOO and use the output of it
<ottidmes>
exarkun22: within ''...'' strings you generally only need to escape having '' in it, which can be done by using triple single quotes ''' (which is the quoted version of ''), and will be interpreted by nix rather than bash, s if you want that to be done by bash you do ''${var}
lunik1 has quit [Read error: Connection reset by peer]
<exarkun22>
infinisil: TIL that while '$(FOO)' provokes no special bash processing, "'$(FOO)'" does
<exarkun22>
which makes sense but I never had to think about it before.
<infinisil>
Hehe yeah
<exarkun22>
The path I'm going down here doesn't seem to be yielding results, though. I successfully patched nspr configure to use coreutils install instead of the nspr-built nsinstall but turns out the two are not actually compatible as I assumed.
<exarkun22>
So now I'm wondering if, to support cross-compiling nspr, I should make nspr a buildInput (or one of the other flavors, I'm still pretty green on cross compiling) of nspr so that there is a build=host version of nsinstall that I can patch the nspr to use when build!=host...
<exarkun22>
I have no idea how to deal with the base case of that recursion though, or if this is insane, or if there is some other standard way to deal with this.
<exarkun22>
(Also, seeeriously wishing nspr did not exist.)