<jtojnar>
thoygh there was a move to get rid of it
<nerosnm>
I'm having trouble with nixos-rebuild - I'm trying to switch over to storing my configuration.nix under my home directory, but when I move it there and run nixos-rebuild switch with an explicit -I argument pointing to configuration.nix, I still get "file 'nixos-config' was not found in the Nix search path". Am I doing something wrong?
<nerosnm>
I was concerned the ~ in the path was causing issues, so also tried moving configuration.nix to ~ and running `sudo nixos-rebuild switch -I /home/soren/configuration.nix`, and got the same result
rogue_koder has quit [Ping timeout: 256 seconds]
asbachb has quit [Remote host closed the connection]
<clever>
nerosnm: that tells it to search for things inside the DIRECTORY /home/soren/configuration.nix
<clever>
nerosnm: you probably want nixos-config=/home/soren/configuration.nix
slack1256 has quit [Remote host closed the connection]
zeta_0 has joined #nixos
rogue_koder has quit [Remote host closed the connection]
ris has quit [Ping timeout: 256 seconds]
zeta_0 has quit [Client Quit]
ddellacosta has quit [Read error: Connection reset by peer]
bhipple has joined #nixos
ddellacosta has joined #nixos
<gchristensen>
clever: ping? wondering about `zfs allow mount`
<ornxka>
is nixexprs.tar.xz literally just a tarball of the entire nixpkgs git repo (sans git metadata obviously)
<clever>
gchristensen: ive yet to mess with the zfs permissions
<gchristensen>
clever: you haven't experimented with allowing users to mount datasets?
<clever>
ornxka: plus some extra files in the root, to say what git rev it came from
<ornxka>
ah i see
<clever>
gchristensen: correct
<gchristensen>
dang :P
<gchristensen>
(okay, thanks)
<clever>
gchristensen: i just leave a `sudo -i` open at all times
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
<gchristensen>
yeah, this is a buildkite job :/
bgamari has joined #nixos
ddellacosta has quit [Ping timeout: 258 seconds]
jkachmar has joined #nixos
detran has quit [Ping timeout: 256 seconds]
johnnyfive has quit [Quit: I quit now.]
johnnyfive has joined #nixos
zeta_0 has joined #nixos
<zeta_0>
the only way i'm able to get ghcide to recognize imports when using lorri is to add the env var: export EDITOR="$(emacs)" , but to get that to work i need to run nix-shell in a terminal, which then opens an emacs where ghcide is able to recognize imported modules, but is there a way to fix this so that ghcide works when i cd into the project inside of emacs?
<{^_^}>
[mobile-nixos] @samueldr pushed 3 commits to master: https://git.io/JfIGg
arianvp[m] has joined #nixos
Null_A[m] has joined #nixos
virus_dave has joined #nixos
Smith[m] has joined #nixos
<virus_dave>
qq folks: I have a derivation which is basically one large `runCommand` script (.../xcbuild/wrapper.nix). I want to make a new custom derivation for use in a tiny limited context which is identical to this original, except that the command being used is slightly patched.
<virus_dave>
how does one do this? It looks like it would be pretty messy currently, either (1) fully copy the derivation and modify the copy, or... what would another option be?
<clever>
virus_dave: make it into a function that takes a cmd name
<virus_dave>
hmm, i'm not entirely sure i understand what you mean @clever. so i can always change the original, and ultimately i will send this change upstream (https://github.com/NixOS/nixpkgs/commit/1d2d6e12cd6af67ed64e2f93ec7043908bc1b18f) but this is a pretty core thing so is causing lots and lots of local rebuilds for the time being, so what i REALLY want to do is be able to test, in the local context needed, that this change will do what i intend, but ideal
<virus_dave>
WITHOUT modifying the original (else the whole world rebuilds)
CRTified has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @NickHu opened pull request #85841 → reason-language-server: init at 1.7.8 → https://git.io/JfIGN
slack1256 has quit [Remote host closed the connection]
fragamus has quit [Ping timeout: 256 seconds]
slack1256 has joined #nixos
slack1256 has quit [Remote host closed the connection]
slack1256 has joined #nixos
oida has joined #nixos
slack1256 has quit [Remote host closed the connection]
slack1256 has joined #nixos
<rardiol>
After some suffering I found out saned uses more ports than just 6566 and the nixos module does not automatically open them. Is it more appropiate for the module to add the strongly suggested helper to networking.firewall.connectionTrackingModules or to AllowedTCPPortsRange?
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
chagra_ has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @iblech opened pull request #85842 → whitebophir: init at 1.1.0 (package and service) [RFC] → https://git.io/JfIZK
slack1256 has quit [Remote host closed the connection]
<colemickens>
from what I've seen there's not a clear answer to that question. these days, I expect modules to /not/ open firewall on its own
<colemickens>
I actually kind of liked, one module the other day had an option for it "openFirewallPorts" or something and then it would open the appropriate ports for you. Seems ideal
bhipple has quit [Remote host closed the connection]
<virus_dave>
@clever ok, so you inspired an temporary approach, not sure if it's what you intended or not: I modified the derivation to accept an additional "script modify function", which defaults to identity, and to which the script being passed to runCommand is first threaded through. Thus, the derivation has the same hash & output, but can be overridden in the tiny context i wanted to do so.
<virus_dave>
if that WAS what you intended (or even if it wasn't), thanks for the help :)
ixxie has quit [Ping timeout: 264 seconds]
ixxie has joined #nixos
xO1 has joined #nixos
<{^_^}>
[nixpkgs] @virusdave opened pull request #85844 → xcbuild: add support for exporting sdk info → https://git.io/JfInX
<{^_^}>
[mobile-nixos] @samueldr opened pull request #133 → [WIP] actions: Add automatic labeling of WIP PRs → https://git.io/JfIny
<samueldr>
I have coupled my vim configuration with my system configuration repo, so on any system I simply need to pull my configuration, and I have my vim configuration exactly as I like it
<butterthebuddha>
I'm not even fully sure what all the possibilities are
<samueldr>
I figure the same would apply for emacs, no need to fiddle with it on each system
<energizer>
butterthebuddha: i'm undecided as to whether it's useful for nix to write your init file for you. but installing packages using `emacsWithPackages` is *great*
<butterthebuddha>
energizer: for the same reasons that samueldr mentioned?
<energizer>
butterthebuddha: yes. the alternative is using straight.el, which is fine and some people do that
<energizer>
well, the next best alternative
<cole-h>
There's also a straight.el-Nix thing
develCuy has quit [Quit: No Ping reply in 180 seconds.]
<butterthebuddha>
Can nix fetch scripts, from say, EmacsWiki for me?
develCuy has joined #nixos
<butterthebuddha>
I imagine that's outside the scope of what nix promises
<cole-h>
If there's a centralize link for it, yes. Else, I would bet no.
<energizer>
i dont think so butterthebuddha
<cole-h>
e.g. if you can go to EmacsWiki/script/1234.el, you can write something that will fetch that for you (using fetchurl, probably)
<energizer>
i cant tell what nix-straight.el does
develCuy has quit [Quit: No Ping reply in 180 seconds.]
develCuy has joined #nixos
vidbina_ has joined #nixos
cfricke has joined #nixos
<cole-h>
samueldr: I'm off to bed. If I didn't happen to fix evals and you know how, feel free to push to my branch. Else, just leave a note and I'll get to it sometime tomorrow (if nobody beats me to it)
cole-h has quit [Quit: Goodbye]
slack1256 has joined #nixos
slack1256 has quit [Remote host closed the connection]
palo1 has joined #nixos
develCuy has quit [Quit: No Ping reply in 180 seconds.]
<{^_^}>
[nixpkgs] @FRidh pushed commit from @zowoq to master « podman: add passthru.tests »: https://git.io/JfICW
orivej has joined #nixos
opthomasprime has joined #nixos
queiw has joined #nixos
develCuy has quit [Quit: No Ping reply in 180 seconds.]
develCuy has joined #nixos
rauno has joined #nixos
<{^_^}>
[nixpkgs] @Mic92 merged pull request #85674 → treewide: add bool type to enable options, or make use of mkEnableOption [20.03 backport] → https://git.io/JfTbl
<{^_^}>
[nixpkgs] @Mic92 pushed 2 commits to release-20.03: https://git.io/JfIC2
<Ashy>
is there a way to add a specific minor version of python to a nix-shell?
linarcx has joined #nixos
<energizer>
nix-shell -p nixpkgs.python35
<Ashy>
minor version, like 357, 356 etc
<hyper_ch>
infinisil: you're familiar with samba?
fendor has joined #nixos
<energizer>
the terminology i'm familiar with is major.minor.patch
cyphase has quit [Ping timeout: 256 seconds]
<hyper_ch>
infinisil: how can I find out if samba-vfs-modules are included in the packaged version here?
sigmundv_ has joined #nixos
<hyper_ch>
I'm trying to get shadow_copy2 to run with the zfs snapshots but no previous versions appear while on a ubuntu test installation with samba it works fine
choward has quit [Ping timeout: 258 seconds]
<energizer>
Ashy: i guess you'd have to pull it from an old version of nixpkgs
<{^_^}>
[nixos-hardware] @wmertens pushed to master « wiki syntax »: https://git.io/JfIEZ
kenran has joined #nixos
tom39291 has quit [Quit: WeeChat 2.7.1]
<infinisil>
hyper_ch: Nope, no idea
<hyper_ch>
infinisil: you were latest commiter :(
<infinisil>
Huh?
<kenran>
I've started using lorri to improve my dev experience with Emacs in a Haskell project I'm working on. Now I'm stumbling over excessive reloads (like in https://github.com/target/lorri/issues/6). I think the reason is that my `shell.nix` references the Haskell environment that I get from calling `cabal2nix` on my project, which in turn adds a `src = ./.` line to the created `default.nix`.
<{^_^}>
target/lorri#6 (by danbst, 1 year ago, open): A way to exclude directory from watch?
<kenran>
I don't know how to try and filter my sources to exclude `.git` or the build directory since the `default.nix` is created "automatically" by `cabal2nix`. Do you have any hints?
<infinisil>
hyper_ch: Read what the commit message says
<{^_^}>
[nixpkgs] @rycee pushed commit from @peterhoeg to master « msmtp: fix for broken queueing »: https://git.io/JfIEh
<{^_^}>
[nixpkgs] @rycee closed pull request #85846 → msmtp: hotfix for broken queueing in 1.8.8 → https://git.io/JfICq
stree has quit [Read error: Connection reset by peer]
stree has joined #nixos
nschoe has joined #nixos
<kenran>
energizer: yeah, I would like to use that. In my "workflow" I call `cabal2nix . > default.nix` which automatically create the nix expression that contains the culprit `src = ./.` line. I'd love to know how exactly I can leverage some source filter (like `gitignore.nix`).
<kenran>
That is, is my workflow bad or wrong and how could I change it? I just had the idea to import the default.nix and change the `src` attribute retroactively using a filter, maybe this could work?
zupo has joined #nixos
xelxebar_ has joined #nixos
CMCDragonkai1 has joined #nixos
xelxebar has quit [Remote host closed the connection]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ramses_>
the only weird thing is that the images all have the same creation time, which seems to be the moment at which the build container was launched. Not sure yet what's causing this
* Profpatsch
gets into a bad headspace when he starts thinking about cabal2nix
knupfer has joined #nixos
<hyper_ch>
hmmm, I want to patch some nix expression in nixos. I created a diff file and I moved that diff file to the same location as the default.nix. How do I include it now? patches = [ xxx.diff ]; ?
toriso has joined #nixos
<{^_^}>
[nixpkgs] @robertodr opened pull request #85852 → kibi: init at 0.1.2 → https://git.io/JfIz2
<srk>
hyper_ch: patches are patching sources (src of the derivation)
<srk>
s/are/are for
<hyper_ch>
srk: I know
civodul has joined #nixos
<srk>
good
<hyper_ch>
but how do I reference them?
<srk>
./xxx.diff
<srk>
hyper_ch: you were on the right track just add relative path
<hyper_ch>
patches = [ ./timeout.diff ]; ?
<srk>
yep
<hyper_ch>
it complained about timeout.diff and "timeout.diff"
<{^_^}>
[nixpkgs] @aanderse pushed 2 commits to release-20.03: https://git.io/JfIge
erictapen has quit [Ping timeout: 260 seconds]
Desetude has joined #nixos
<CRTified[m]>
Hi, is there a way to store webcam settings in the system configuration? I want to keep autofocus disabled and the power line frequency compensation at 50Hz, but these settings are reverted when reconnecting the camera. Is an udev rule with some script the way to go?
<Desetude>
I have added nixos (20.03), nixos-unstable and home-manager (20.03) to root's nix-channels and they work fine referencing them from my nixos config and they show in /nix/var/nix/profiles/per-user/root/channels. However, only nixos shows when I do `sudo nix-channel --list`, why?
<kenran>
Profpatsch: then I'm doubly sorry for asking a follow-up question :D would you be able to share the full `default.nix` you mentioned in that issue? So far I'm returning the `generatedNix`, but then I have to change my `hself.callPackage ./default.nix` to `let default-nix = import ./default.nix {}; in hself.callPackage default-nix {}`.
infinee has quit [Quit: WeeChat 2.7]
<kenran>
Is there a way to do it without having to change my `callPackage` call? That is, can my `default.nix` return something other than `generatedNix` so that I can get rid of the extra `import` step?
zebrag has joined #nixos
inkbottle has quit [Ping timeout: 240 seconds]
<asheshambasta>
I'm having some trouble understanding nix's build model. Say I have package's A, B and C. B depends on A, C, depends non A and B. For each of these projects, I'm writing the nix derivation by adding the given package to nixpkg's haskellPackages using the config model. Both B and C get A using 'fetchGit' at a certain commit. Changing the hash of A in C should have no effect on the derivation of B right?
Havvy has quit [Ping timeout: 252 seconds]
exfalso has joined #nixos
<asheshambasta>
in my observation, changing the version of A in C also breaks the build of B (I get shared object not found related errors)
<exfalso>
Hi, I'd like to test all shell.nix files in a repo by building them. Preferably I'd like to do this in a single nix-* invocation, as invoking nix-shell one by one is slow. nix-build <shell.nixs> doesn't work and nix-instantiate <shell.nixs> doesn't build them. Any ideas?
phreedom has quit [Ping timeout: 240 seconds]
erasmas has joined #nixos
<exfalso>
i was thinking the shells' buildPhase could be overwritten somehow to be a noop instead of an error?
<exfalso>
could create a top-level nixexpr that overrides and imports all of them
<Profpatsch>
kenran: sounds reasonable
<Profpatsch>
I don’t think I even have the code anymore.
<srk>
exfalso: you can specify which phases are run e.g. phases = [ "buildPhase" "installPhase" ];
erasmas has quit [Ping timeout: 258 seconds]
<srk>
exfalso: my shells complain about src and unpackPhase when trying to build em
<exfalso>
srk: makes sense, i'll tinker around a bit
<srk>
CRTified[m]: sounds about right (udev and command, v4l-utils?)
<srk>
exfalso: the trouble might be that it still needs to depend on the required stuff somehow, lemme know how it goes :)
__monty__ has joined #nixos
chagra has joined #nixos
<CRTified[m]>
srk: Thanks, I'm using that solution now. v4l-ctl --help just did not show most options directly, so I nearly thought that I can't use it to setup resolution+framerate, but I was just blind 🙂 Works fine now
stree has quit [Read error: Connection reset by peer]
stree has joined #nixos
<srk>
CRTified[m]: cool, can you post a gist? some people might find that useful I think :)
stree has quit [Read error: Connection reset by peer]
stree has joined #nixos
<srk>
asheshambasta: it is a bit hard to decipher the ABC thingie :) maybe paste code as well
zupo has joined #nixos
cfricke has quit [Quit: WeeChat 2.8]
<asheshambasta>
srk: pasting the nix expressions then, but its more a bit like: A -> B, (A, B) -> C, (where -> means imported by as a dependency): and in the C's derivation, I'd like to swap out the version of A, which seems to break the build of B.
CMCDragonkai1 has quit [Quit: CMCDragonkai1]
relaxmax has quit [Ping timeout: 265 seconds]
<Desetude>
Why does `sudo nix-channel --list` only show one of the channels I've added (even though the others work)?
<srk>
asheshambasta: better, I think that's to be expected
alexherbo22 has joined #nixos
<srk>
Desetude: I don't have much experience with channels, someone sure knows or you can take a loot at code or strace it :)
<CRTified[m]>
srk: Will do :-)
alexherbo2 has quit [Ping timeout: 265 seconds]
alexherbo22 is now known as alexherbo2
<Desetude>
Oh, I think I've realised why, I think it's because the nix-channel list is read from $HOME/.nix-channels, so in this case /root/.nix-channels I guess, and I have adopted grahamc's setup where /root (as well as /etc, /var, etc) is not persisted on restarts
<exfalso>
i started with a separate nix expr wrapping the whole thing IFD style, but realized that would require the creation of a source set, and i want to use the shell.nix-s directly from the repo
<srk>
exfalso: nice!
<srk>
armin: wow! btw there's also #nixos-chat ;)
<armin>
srk: oh i wasn't aware, will join and of course try to keep the offtopic amount low in here then, thank you for the pointer.
<Raito_Bezarius>
Is there a way to change the keymap at boot-time during the LUKS passphrase phase?
phreedom has joined #nixos
<Raito_Bezarius>
(with GRUB)
<bdju>
really glad to see the deluge package was updated! thanks to everyone who worked on that
<Raito_Bezarius>
I tried to pass vconsole.keymap in the linux commandline, but unsure if it works
lassulus has quit [Ping timeout: 264 seconds]
<philipp[m]>
I rtfs androidenv a little and didn't see a single mention of gradle. Can I get that app to build somehow anyway?
lassulus has joined #nixos
knupfer has quit [Quit: knupfer]
<kenran>
Profpatsch: ok, thanks anyway :) are you not using cabal2nix anymore then (if you're still using Haskell and nix, I'd be interested in the alternative in that case)
knupfer has joined #nixos
chloekek has quit [Quit: WeeChat 2.7]
<{^_^}>
[nixpkgs] @flokli merged pull request #85735 → journald service docs: Add helpful comments about the journal getting full → https://git.io/Jfk8C
<srk>
knupfer: there's also callCabal2nix which calls cabal2nix for you so you don't have to do it manually
dooygoy has joined #nixos
<{^_^}>
[nixpkgs] @flokli pushed commit from @nh2 to release-20.03 « journald service: Add helpful comments about the journal getting full »: https://git.io/JfIaz
<{^_^}>
[nixpkgs] @Izorkin opened pull request #85856 → nginx: update to 1.18.0 → https://git.io/JfIaV
<Profpatsch>
and then use haskellPackages.callCabalToNix "api-types" api-types {}
<Profpatsch>
This filters the source directory according to its .gitignore, copies it to the nix store and runs cabal2nix on that filtered version
o1lo01ol1o has joined #nixos
<Profpatsch>
Which means ./. is right, because it is the filtered store in the nix store.
AmitLevy[m] has joined #nixos
<Profpatsch>
(self is pkgs)
<Profpatsch>
s/filtered store/filtered source/
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<{^_^}>
[nixpkgs] @primeos pushed to master « inxi: Add a flag to install all recommended tools »: https://git.io/JfIVq
cr4y1_ has joined #nixos
cr4y1 has quit [Read error: Connection reset by peer]
<kenran>
Profpatsch: oh, that looks way nicer even. good to know, thanks!
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
jakobrs has joined #nixos
<asheshambasta>
also speaking of overlays, given that overlays compose from left to right, is it correct to expect a package, that was marked as broken at nixpkgs, and then marked as not broken in a previous overlay, to appear as non-broken in super from within an overlay?
<jakobrs>
Is it possible to `override` the result of fetchfromgithub?
fengdaolong has quit [Ping timeout: 264 seconds]
<jakobrs>
So you'd do something like `src = src.override { rev = "master"; hash = "..."; }`
<jakobrs>
But there is no src function
fengdaolong has joined #nixos
johnjay has quit [Ping timeout: 256 seconds]
knupfer has quit [Ping timeout: 246 seconds]
<jakobrs>
Also, why do many fetchers support `sha256` but not `hash`?
relaxmax has joined #nixos
ixxie has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<b42>
while evaluating the attribute 'hardened."5.4.35"' at /.../nixpkgs/pkgs/os-specific/linux/kernel/patches.nix:41:3: attribute '5.4.35' missing, at /.../nixpkgs/pkgs/top-level/all-packages.nix:17050:7
<asheshambasta>
on further investigation, it seems that, amazonka gets marked as unbroken, so does amazonka-core. But when evaluating amazonka, it still complains that amazonka-core is marked broken. Which leads me to suspect that amazonka is getting a "broken" version of amazonka-core from somewhere.
<armin>
even though this *tells* me how to change boot.initrd.luks.devices in configuration.nix, i'm unable to figure out how it should look... https://unix.porn/nix-error.txt - any help?
<jakobrs>
You're just supposed to use the name as the attribute key
<srk>
amf: name is obsolete and is now part of the attr ^
<srk>
amf sorry, armin
<hyper_ch>
zfs <3
<srk>
amf: you could script that with nix :)
<armin>
srk: could you post a corrected version of it?
<armin>
srk: oh wait i got it
<armin>
srk: thanks to your description
proofofkeags has joined #nixos
morgrimm has joined #nixos
infandum has joined #nixos
<infandum>
I'm trying to make a default.nix for a package executable. It compiles successfully. However, when I run it, I get the error: "Error: package or namespace load failed for 'stats' in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/usr/lib/R/library/stats/libs/stats.so': liblapack.so.3: cannot open shared object file: No such file or directory". I have pkgs.liblapack in my buildInputs.
<infandum>
szicari has quit [Remote host closed the connection]
<immae>
infandum: are you building without sandbox? This suggests that your build script used some references to R outside of the nix store no?
knupfer has quit [Ping timeout: 240 seconds]
<immae>
(maybe because it couldn’t find it in the buildInputs)
<infandum>
immae: My command is "nix-env -f default.nix -i executable" with all of the default configs except allowBroken = true and allowUnfree = true.
<infandum>
<infandum>
I am using "buildInputs = attrs.buildInputs ++ buildInputs;" and "nativeBuildInputs = attrs.nativeBuildInputs ++ buildInputs;", where buildInputs is all of my build and runtime dependencies. I was too lazy to figure out which is needed for which so I just used the dependencies in both locations, but that shouldn't be a problem, right?
<infandum>
<immae>
ok, and what version of nix do you have? (nix --version)
<infandum>
2.3.3
<infandum>
on Arch linux, but I want the default.nix to work on most OSes including macOS
<infandum>
but first I need to make it work here
<infandum>
everything works except for the functions of the executable that use R
<infandum>
ldd executable shows that everything is found, but there is no entry for liblapack.so.3
proofofkeags has quit [Remote host closed the connection]
<infandum>
like, not even a slot for it
<immae>
and ldd /usr/lib/R/library/stats/libs/stats.so ?
<infandum>
immae: Where do I find that? R is only listed in my buildInputs
<immae>
In the error message
<infandum>
oooooooooooooh
<immae>
That’s why I was blaming R and not liblapack :)
<infandum>
so it's literally looking at my arch linux R, not the nix R?
<infandum>
ooooooooooooooh
<immae>
Yes
<infandum>
how can I have a different R just for this program using nix?
<infandum>
I'm thinking like a docker thing
<infandum>
I want it separate from my system packages
<immae>
is R in the buildInputs list? If not it may be hardcoded by the program compilation process
<infandum>
uuuugh this makes so much sense. I don't know how to progress though
<immae>
I think maybe patchelf would solve that but I don’t know how to use it
<infandum>
immae: You said that the HaskellR shell is fine as it's using the /nix/store -- but I'm not using that. And I assume the default.nix knows nothing of the shell.nix file, so should I have something like that in my default.nix?
chloekek has joined #nixos
<immae>
how do you use haskellR then?
<infandum>
immae: My haskell package depends on it
<immae>
ok
<immae>
so that may be the point where you’re going out of the store
<infandum>
So essentially I guess nix just automates downloading the library from hackage (no shell.nix) and builds it.
<immae>
Although I’m a bit lost in your dependencies tree there
<infandum>
immae: How so?
<immae>
What calls what and when and how
<infandum>
For building or running?
<immae>
both
<immae>
for building you’re probably safe anyway, which doesn’t prevent it from saying "at runtime execute /usr/bin/R" or "load /usr/lib/thislib.so" in which case you jump out of the store at runtime
<infandum>
Building: inline-r is a dependency of the package which provides a way to use R functions in haskell. Running: The executable uses an R process for the necessary features.
<infandum>
So should I set LD_LIBRARY_PATH = ["${R}/lib/R/"]; ?
<infandum>
Where do I do that?
<infandum>
I'm using developPackage
<immae>
does it start the R process itself, or does it use a socket to contact a running R ? (sorry if it’s dumb question I’m not used to R)
<immae>
infandum: during that time, you may want to run `ldd /usr/lib/R/library/stats/libs/stats.so` and see if it resolved the lapack.so library correctly
<gaborr>
hi all - quick question about nixOS installation: are there mirrors that can be used during installation? I am in China, using the LiveCD to install, stuck at "extra-utils" being downloaded, 0.3/6.8 MiB in about 10 minutes, fantastic speeds, huh?
<exarkun>
if I want to set nixpkgs to an https url in NIX_PATH is there a way to also supply a hash so it can be read from the store instead of always redownloaded?
<gerschtli>
hey everyone, does anyone know how to debug the typical "infinite recursion encountered" error? the stack trace ends just somewhere..
<exarkun>
or, maybe it isn't always redownloaded, but something happens on the network, maybe it checks a last modified or something, I dunno, but can I make it completely network independent?
<infandum>
immae: Yes, my system R (the stats.so) has liblapack.so.3
<immae>
exarkun: someone might know better but I think the only way is to have a local path or to set the corresponding variable in nix config to refresh it less often
<ixxie>
exarkun: lol :P yeah I guess its obvious... is there away to pass those flags to nixos-rebuild?
<{^_^}>
[nixpkgs] @Mic92 opened pull request #85868 → Update go tools/linters/language servers → https://git.io/JfIie
jakobrs has joined #nixos
<Jaxon>
whenever i try to start the networkmanager service (systemctl start networkmanager) i get this: unit networkmanager.service not found
<jakobrs>
Is it just me, or is Alt-F2 and Alt-space broken? on plasma
jgeerds_ has joined #nixos
<exarkun>
ixxie: not obviously, I guess. And I've never tried passing args like that to nixos-rebuild. For a whole-system configuration it seems like the modules/configuration/options system is probably the preferred approach. I don't know how that will interact with your Docker environment, though.
<gerschtli>
Jaxon: what does `sudo systemctl status NetworkManager.service` print and what does the applet print to stdout/err?
<gerschtli>
Jaxon: ah didnt read your last message, do you run this command as root? you need to match the casing: NetworkManager
adyatlov has joined #nixos
<Jaxon>
gerschtli, i ran sudo systemctl status NetworkManager.service and i got Unit: NetworkManager.service could not be found
<Jaxon>
gerschtli, does the chosen environment have anything to do with this? i've configured xfce with i3, a kde installation can be different or its just related to networking specifically ?
<numkem>
jakobrs: totally agree with you
<numkem>
jakobrs: alt-f2 is working for me tho
<jakobrs>
At least krunner launches when launched via the application launcher
<jakobrs>
So it's not krunner that's broken
<gerschtli>
Jaxon: maybe.. just to make sure, what does `nixos-option networking.networkmanager.enable` print?
<Jaxon>
gerschtli, so the value is true and it's supposed to be working
<ottidmes>
If I want to package a node.js project, is it OK to use a prebuilt .rpm package? It will just build web files (JS/CSS/etc), no binaries. Otherwise I would have to try and get it to work with node2nix or yarn2nix
<jakobrs>
Although I don't believe the version of plasma has been changed in 20.03
<gerschtli>
Jaxon: yes.. how about `nixos-option systemd.services.NetworkManager.enable`?
<jakobrs>
But the dates on the issue are moderately recent, and it's not closed
<gerschtli>
Jaxon: maybe something is disabling the service manually
dermetfan has quit [Ping timeout: 272 seconds]
ddellacosta has joined #nixos
<jakobrs>
Oh wait the plasma version has been incremented
<Jaxon>
gerschtli, value: true, default: true
codygman has quit [Ping timeout: 265 seconds]
<Jaxon>
gerschtli, something like what ? how can i check ?
<gerschtli>
Jaxon: maybe there is a `systemctl daemon-reload` missing, run it and check network manager status again
<gerschtli>
Jaxon: obviously nothing is disabling it as shown by nixos-option
cole-h has joined #nixos
<Jaxon>
gerschtli, i did systemctl daemon-reload and nothing changed unfortunately
<gerschtli>
Jaxon: sorry to ask, but you did run nixos-rebuild? :D otherwise i'm out of any ideas..
<gerschtli>
hey everyone, does anyone know how to debug the typical "infinite recursion encountered" error? the stack trace ends just somewhere..
<aanderse>
does nixos have any magic options to help me setup root on tmpfs?
<Jaxon>
gerschtli, did the rebuild , generates lots of warnings and ends with an error build of /nix/store/...nixos-system-nixos-20.03 failed
codygman has joined #nixos
<gerschtli>
Jaxon: maybe you need to fix this first or rollback to an generation that works
<Jaxon>
gerschtli, isn't this error caused by the laptop not being connected to the internet ?
jakobrs has quit [Quit: WeeChat 2.8]
<gerschtli>
aanderse: you could add a tmpfs for /root and let mount it.. should work i think?
<Mic92>
gerschtli: I use some sort of expression bisect, where I comment out most of the expressions.
<gerschtli>
Jaxon: i dont know, i cant see the errors :D but you could use a lan cable or just use wpa_supplicant, see the nixos manual install section
<aanderse>
gerschtli: never done root on tmpfs before, so not sure what i need to do to copy my base os image onto that tmpfs etc...
<gerschtli>
Mic92: unfortunatly the stack trace is somewhere in home-manager/nixpkgs.. i tried this approach with my code already
<immae>
aanderse: ah you want / on tmpfs or /root?
<aanderse>
immae: root... /
rardiol has quit [Ping timeout: 258 seconds]
<immae>
I think your question was misunderstood then :)
<gerschtli>
aanderse: ah seems that i misunderstood you. / may be a bit more complicated.
<aanderse>
my bad
<immae>
Didn’t gchristensen write a blog post about it like a few days ago?
<immae>
Not exactly / on tmpfs but he talks about blank system at every boot, maybe there are things usable there?
<aanderse>
immae: yeah, thats what i'm looking to do. except root on tmpfs instead of zfs rollback
<lordcirth>
I think / on tmpfs is easier than that
<gaborr>
nixos-install crashed after 'setting up /etc...' with 'File system "/dev/block/8:1" has wrong type for an EFI System Partition (ESP).' Any ideas on how to fix that?
proofofkeags has joined #nixos
exfalso has left #nixos [#nixos]
linarcx has quit [Ping timeout: 256 seconds]
cosimone has quit [Remote host closed the connection]
<gaborr>
oh, I naively assumed my Fat32 grub partition from arch will do, it seems not
asbachb has quit [Remote host closed the connection]
cosimone has joined #nixos
<NickHu>
Has anyone fixed erors like: `error: executing SQLite statement 'delete from ValidPaths where path = ?;': constraint failed (in '/nix/var/nix/db/db.sqlite')` when doing `nix-collect-garbage`?
<NickHu>
I think my db file got a bit messed up when I tried to `nixos-rebuild switch --upgrade` and it ran out of disk space midway through
waleee-cl has joined #nixos
Jaxon has quit [Quit: Leaving]
erasmas has joined #nixos
<gaborr>
ah, changed the part type to EFI and grub finished installing, looking good
<immae>
aanderse: do you have a sandbox machine to test? If so you may be able to play with NIXOS_LUSTRATE to make it bootstrap the root filesystem at each start maybe?
<aanderse>
immae: was going to do this on a fresh box
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
erasmas has quit [Ping timeout: 256 seconds]
<immae>
I’m reading the stage-*-init.sh, and it might be much simpler without NIXOS_LUSTRATE actually, since the boot process is creating everything it needs
<ottidmes>
,ping
<{^_^}>
pong
aveltras has joined #nixos
relaxmax has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @orivej-nixos pushed commit from @orivej to master « postgresql: remove version from passthru »: https://git.io/JfIPz
<infandum>
immae: I did `ldd lib/R/library/stats/libs/stats.so` and some are pointing to /nix/store but most are pointing to /usr/lib, so it has to be an issue with the R installation in nix, right?
sarcasticadmin has quit [Ping timeout: 256 seconds]
<immae>
infandum: what is the full path?
justanotheruser has quit [Ping timeout: 272 seconds]
<immae>
Then it should have them all point to objects in /nix/store
erasmas has joined #nixos
<immae>
unless you have some LD_LIBRARY_PATH or LD_PRELOAD in your env? (but even there it should still be hardcoded in the library)
<infandum>
oh wait, that wouldn't matter anyway because the error was pointing to the /usr/lib, not the /nix/store, so it's not using the correct stats.so anyway
<infandum>
uuuuuggggghhh
<immae>
yes, in my question earlier I was asking about /usr/lib/R/library/stats/libs/stats.so (so the one from your arch installation)
<infandum>
immae: When I remove R, I get readCreateProcess: runInteractiveProcess: exec: does not exist (No such file or directory), so it's using the system R. It doesn't see R in nix at all
<infandum>
dooygoy has joined #nixos
<infandum>
I thought buildInputs did runtime dependencies?
<asheshambasta>
I'm having some trouble wrapping my head around how derivations work, and how the dependencies are evaluated while evaluating a derivation.
<infandum>
asheshambasta: You and me both :(
virus_dave has quit [Ping timeout: 256 seconds]
virus_dave_ is now known as virus_dave
leotaku has joined #nixos
<immae>
infandum: not exactly, but you just pointed something: it checks the content of the resulting files to know what will be runtime dependencies. However in your case the process "R" is called via the PATH so maybe that’s why it finds the system one (which is in your path) rather than the one in the nix store (which doesn’t exist as far as your program can see)
<asheshambasta>
yeah, in this case, I'm marking some packages as not broken within and overlay, and one of these packages depends on another one being marked as not-broken in the same overlay. However, it isn't working as I'd expect.
<infandum>
immae: That helps, now it's looking for missing libraries, but I think rwrapper may help that
<infandum>
immae: I assume there's no way to avoid this issue? I just need to tell people to avoid the system R they need to point to the /nix/store?
<immae>
ah
<immae>
There is
<immae>
when you say missing libraries, you mean R libraries ?
ikervagyok has quit [Remote host closed the connection]
<infandum>
yeah
<infandum>
I'm trying with rWrapper instead of pkgs.rPackages in the buildInputs
<immae>
it’s actually good news
<infandum>
Basically, the new error was "R Runtime Error: Error: package or namespace load failed for 'reshape2' in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/home/gw/R/x86_64-pc-linux-gnu-library/3.6/stringi/libs/stringi.so': libicui18n.so.65: cannot open shared object file: No such file or directory"
<infandum>
<infandum>
I was like oh duh, gotta remove those libraries from the system (user) still
rogue_koder_ has quit [Ping timeout: 256 seconds]
<immae>
So basically, you now have to: create an R environment with all its libraries (I don’t know how, for python I would do python.withPackages, you need to find an equivalent to that), and then wrap your program to prefix the path with that environment
<infandum>
so I deleted the ~/R folder, ran again, then got R Runtime Error: Error in library(ggplot2) : there is no package called 'ggplot2', so I assume buildInputs with rPackages.ggplot2 wasn't being found, so I'll use the rWrapper
<infandum>
immae: So is there a way for me to not have people prefix the path manually?
<immae>
YEs
rogue_koder_ has joined #nixos
<immae>
But first you have to build your R+neededRpackages environment
<infandum>
okay, I'll test when it finishes building
<immae>
Also, you won’t need to put them in buildInputs
<immae>
since it’s runtime dependencies
<immae>
(but they’re harmless here for now)
<infandum>
immae: Some packages, like clustering and differential require it when building
<infandum>
R that is
<immae>
ah ok
<infandum>
I also have fontconfig errors and LC_ warnings, but those aren't important
<infandum>
the fontconfig may be because I'm using the nixos snapshot with a newer arch
<immae>
ok
<immae>
(I have the same yes)
<infandum>
Well that didn't work
<infandum>
still no package called ggplot2 even with the rWrapper
<infandum>
Oh, wrong R in path, hold on
scheming_around has joined #nixos
<scheming_around>
Hello, the expressoin (x: x x) (x: x x) causes a SIGSEGV in nix repl on my system
<scheming_around>
I assume this is not the intended behavior?
<infandum>
immae: No, didn't work
reis-r has quit [Remote host closed the connection]
<cole-h>
scheming_around: on `nixUnstable` I get a "stack overflow (possible infinite recursion)" error. So, it might have been fixed since the latest release
<immae>
(the first one with rEnv = ... )
<immae>
You need to have that working for R before being able to continue
<infandum>
immae: So I need it separate from my default.nix?
<immae>
for now make it work outside of default.nix yes
<immae>
then we’ll integrate it
rogue_koder_ has quit [Ping timeout: 240 seconds]
adyatlov has quit [Ping timeout: 240 seconds]
<infandum>
Did the config.nix change? It's not finding rEnv
<infandum>
I followed the instructions exactly
<infandum>
Same location, right?
<{^_^}>
[nixpkgs] @matthuszagh opened pull request #85871 → pyclipper: init at 1.1.0.post3 → https://git.io/JfI1h
<peelz>
is there somehow a way to get the path of the module that is importing another?
<immae>
infandum: so it works for me, you might have missed something in your test
<immae>
Can you re-share your default.nix?
<infandum>
immae: No, it works for me, but the executable for the default.nix isn't working
<immae>
ah
<immae>
Did you put the correct path in your test?
<immae>
should look like "R-3.6.3-wrapper" (notice the -wrapper at the end)
<infandum>
So to sum it up: R from command line works. However, the executable still gives the no ggplot2 error, because it points to the libR.so that was built with it (I assume this is the reason)
<immae>
ok that makes sense
<infandum>
So basically, I need to point the executable to the new Renv we just built
<immae>
so your program both "calls" R and uses the libR library
<infandum>
I assume
<infandum>
yes
<immae>
ok
<infandum>
I guess
<infandum>
this is a heck of a first try with nix, I'll tell you that
reallymemorable has quit [Quit: reallymemorable]
drakonis has joined #nixos
<immae>
You didn’t chose the easy way for sure :p
<infandum>
I've used nix before, never built anything with a default.nix though
<immae>
So, you’ll need to define your rEnv = rWrapper.override {... } at the top of the default.nix file, and use rEnv as buildInputs
reallymemorable has joined #nixos
<immae>
This should (hopefully, if rWrapper works well) solve the libR issue
<infandum>
Should I remove the R installed with the Renv in the config.nix?
<immae>
You should just uncomment line 21 and rename it Renv instead of R (and use Renv everywhere rather than pkgs.Renv)
<immae>
But for now it will do
<immae>
(or should, as far as I see yet)
<infandum>
immae: Did not work
<immae>
still complaining about the missing R library?
<infandum>
yeah
<immae>
which PATH are you using when calling it?
<infandum>
probably because it's still looking at the R in ~/.nix-profile/bin
<infandum>
Wait, it's not, I used the bin that it's using for the libR.so
<infandum>
so it should be ok
<infandum>
i.e. PATH=/nix/store/shj6d1hn391pzsm7gwz6whmdiq08jaqf-R-3.6.2/bin:$PATH too-many-cells
<infandum>
<immae>
Definitely not ok since it doesn’t contain the "-wrapper" keyword :)
<immae>
But let’s handle it in the derivation
<infandum>
oh
<infandum>
I did ldd ~/.nix-profile/bin/too-many-cells
vidbina_ has joined #nixos
<infandum>
it points to that path (without the bin and instead the libR.so, you get the point)
<infandum>
I built with the default.nix that I sent you, so I don't know why it would do that, all references piont to the pkgs.Renv which is an rWrapper
<immae>
you’ll need to add a postInstall at the bottom with postInstall = attrs.postInstall + "wrapProgram $out/bin/too-many-cells --prefix PATH : ${Renv}/bin";
<immae>
This will prepend the Renv to the PATH in the derivation
<immae>
(Renv or pkgs.Renv, the thing you defined at the top)
<infandum>
attribute postInstall missing
<immae>
just remove the "attrs.postInstall +" part then
<infandum>
yeah
<infandum>
go tit
phreedom has joined #nixos
<infandum>
immae: But it's still pointing to the wrong libR.so, right?
<immae>
I’m not sure I understood your description so I don’t know :)
<infandum>
err, so ldd ~/.nix-profile/bin/too-many-cells gives libR.so => /nix/store/shj6d1hn391pzsm7gwz6whmdiq08jaqf-R-3.6.2/lib/R/lib/libR.so, which isn't an r-wrapper
<infandum>
<immae>
hmm
<immae>
ldd should not work anymore after the wrapProgram
FRidh has quit [Quit: Konversation terminated!]
<immae>
(since too-many-cells will become a shell script)
<infandum>
immae: Oh, this is before
<infandum>
also, error for adding the postInstall: Warning: The directory
<infandum>
/nix/store/ikshyr28hahknm87vn4mcwgxq6hhj7f2-too-many-cells-0.2.2.1/bin is not
<immae>
ah
<infandum>
in the system search path.
<infandum>
/nix/store/vilh5ays3ymz3xkwk0fri2a70lha7pfc-stdenv-linux/setup: line 81: wrapProgram: command not found
<infandum>
<immae>
Ah you need pkgs.makeWrapper in buildInputs
<{^_^}>
[nixpkgs] @jonringer opened pull request #85874 → Revert "linux_*_hardened: use linux-hardened patch set" → https://git.io/JfIDT
<infandum>
Ok, should the postInstall be just a string?
<immae>
it’s a script yes
jakobrs has joined #nixos
<infandum>
ok
<infandum>
I am concerned that the lib and the bin will be two different paths
<immae>
yes me too
<jakobrs>
Apparently there are rumors that Apple are going to start making MacBooks in 2021 maybe using their own ARM chips
<immae>
you might need to add a similar wrapProgram with --prefix LD_LIBRARY_PATH
<infandum>
Yeah, still didn't work
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jakobrs>
How much would that affect Nix on Darwin?
<negaduck>
ok, I found out I have to use python37.withPackages. How to make it use tensorflow 2 instead of 1?
<infandum>
I wonder why ldd points to the wrong path..
<immae>
you might need the LD_LIBRARY_PATH at runtime
<immae>
in any case now too-many-cells should be a shell script so ldd on it will produce an error
<gchristensen>
amanjeev: reading through, cool! one thing: the period here is easy to accidentally copy: nix-channel --add https://nixos.org/channels/nixos-20.03 nixos. really nice notes on your upgrade process!
<infandum>
immae: When I cat the R from the /nix/store/*wrapper*/bin/R, it shows ggplot2 there
<infandum>
It's baffling
<immae>
yes that’s where I landed just now :)
<immae>
It sets a environment variable and runs R
<infandum>
yeah
<immae>
I guess you have to do the same when runninng your program
<evelyn>
hmm curious, how long does it usually take to review a given pull request?
<infandum>
immae: I set that variable to what is in the R file in front of the executable call but it still doesn't work
<immae>
(pray that it will, otherwise I have no clue)
<immae>
oh
<virus_dave>
Can someone with merge ability look at #85844? Thanks in advance. Also, if i wanted to get this back ported into 20.03, what do i need to do to make that happen?
<immae>
infandum: did you double check? if it doesn’t work I think we reached a dead end
<immae>
that means that libR doesn use that variable to find its libraries
<infandum>
immae: AH IT WORKED
chloekek has joined #nixos
<infandum>
when I collapsed the lines, it left spaces, sorry about that
<infandum>
so when I export that in front it works
<immae>
😌
<immae>
phew
<infandum>
so...that means that it's not using the Rwrapper for the binary?
<immae>
yes
<infandum>
or...
<infandum>
it needs to set that even before the binary?
<infandum>
So libR needs to see that variable without running the binary
<immae>
You need to wrapProgram --prefix R_LIBS_SITE
<immae>
yes
<infandum>
but... what will be in that R_LIBS_SITE?
<immae>
The same as what is in the wrapper script
<infandum>
I would want that to be auto generated...
<infandum>
by the default.nix
<immae>
I’m looking if there is an easy way to get it yes
rogue_koder_ has joined #nixos
zupo has joined #nixos
<{^_^}>
[nixops] @adisbladis opened pull request #1318 → Add plugin hooks required for the encrypted links plugin → https://git.io/JfIDH
<thoughtpolice>
fun switcharoo of the day: attempting a complete one-shot migration from nvidiaBeta to amdgpu with a single 'nixos-rebuild boot'. Fingers crossed.
<jakobrs>
Is it possible to use a remote builder while cross-compiling?
<Yaniel>
thoughtpolice: worked without a hitch for me
<jakobrs>
I mean, say you've got a x86_64-linux machine and an aarch64-linux remote server
<{^_^}>
tweag/HaskellR#344 (by idontgetoutmuch, 37 weeks ago, closed): R Packages Not Available via Nix?
<infandum>
But it doesn't
<thoughtpolice>
Yaniel: I suspect so. Not even sure how I'd pull this off on other distros! (And in theory the reverse, amdgpu to nvidia, should work too, and would even be more difficult elsewhere)
<jakobrs>
Could you then use the aarch64-linux remote server as a remote builder for building aarch64?
<thoughtpolice>
Used NixOS for too long at this point
Emiller88 has joined #nixos
<Yaniel>
in other distros you'd probably be left with some cruft somewhere
<Yaniel>
unless you do a full reinstall
<thoughtpolice>
jakobrs: Yes, when you specify a remote machine, you can specify the architecture it builds on. I used to regularly do darwin and aarch64 builds this way
<immae>
infandum: your case seems a bit different
<thoughtpolice>
from x86_64-linux
<jakobrs>
but can a remote aarch64 machine build x86_64 builds?
<gchristensen>
if the build is a cross-build at evaluation time
<gchristensen>
Nix won't let you dynamically cross-build sometimes and regular-build other times based on what builders you have available
<jakobrs>
Also, is it possible to forward some, but not all build?
<thoughtpolice>
jakobrs: You mean, you're on x86_64, and you want to do a remote build (i.e. Nix will SSH into an aarch64 machine), and then *that* aarch64 builder does another x86_64 build?
<thoughtpolice>
In other words, two remote hops?
<jakobrs>
the aarch64 machine would cross-compile to x86_64
<immae>
(as a direct dependency at the bottom this time, maybe the Renv wasn’t needed after all)
<infandum>
Looks like a similar issue, their solution was the postInstall
<immae>
yes
<immae>
xitian’s suggestion may work (but you have to write them all)
<immae>
(two posts below)
<jakobrs>
Also, this is a different question, but how much would need to be changed to allow _interactive_ remote build?
<infandum>
yeah, but I have to write them all haha
<thoughtpolice>
jakobrs: Oh, okay. Yeah, that should work fine. You can either use the cross build infrastructure natively to do a "normal" cross compile build like you would normally. You could also use nix remote building to build directly on an x86_64 machine if you have one to spare.
<jakobrs>
where you can decrypt the keys at build time
<thoughtpolice>
But both of those should work
<immae>
In any case, you just need to find a way to properly set this environment variable
<jakobrs>
I'll try to get the rpi running
<negaduck>
where can I add allowUnfree in shell.nix?
<immae>
maybe my suggestion would work, or the one from the discourse post
<infandum>
ok
<infandum>
immae: Thank you so much for all of your help!!!!
<immae>
You’re welcome
<immae>
Note that we added many things that may not be needed anymore
<immae>
but once it works it’s easy to test what can be removed :)
<thoughtpolice>
jakobrs: You mean your passphrase for decrypting SSH keys? Uhhh, I don't know, but frankly if you want to do stuff like that, you're probably better off in the long run either just A) not doing it and using a specific burner key, and live with the security or B) start looking into things like certificates for signing keys.
sarcasticadmin has joined #nixos
<infandum>
immae: What about the LD_LIBRARY_PATH stuff for macOS?
<thoughtpolice>
I've run into this myself and ultimately just decided for only a single person it wasn't worth trying to hack in. Personally, anyway! Maybe interactive support isn't so hard.
<infandum>
I don't have that OS
<immae>
It becomes DYLIB_SOMETHING
<infandum>
so I do need it I assume
<jakobrs>
I'd imagine the main problem is that nix builds are "supposed" to be non-interactive
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to staging: https://git.io/JfIyC
<arianvp>
gchristensen: ping
<gchristensen>
arianvp: heya
<thoughtpolice>
jakobrs: Yeah, they're super cool! I only learned about them recently. And if you use something like https://vaultproject.io it can do like an entire CA for you, with rotation, an API etc for grabbing short-lived keys for auth, etc.
<arianvp>
what kind of evil do you want to do today
<gchristensen>
arianvp: lol let's go to -ofborg where we're discussing somerelated stuff?
<arianvp>
ok!
<jakobrs>
I'm going to read about them shortly
<jakobrs>
I'll just probably want to get the machine up and running first
<arianvp>
which channel is that?
<gchristensen>
arianvp: oops, just -borg
<thoughtpolice>
*nod*
<arianvp>
ah
<gchristensen>
#nixos-borg
<jakobrs>
Is it normal if I run a nixos test and nothing is outputted?
kazimazi has quit [Quit: Leaving]
<cole-h>
Which test?
<jakobrs>
tests.installer
<jakobrs>
Mic92 commented @grahamcofborg test installer a week ago on one of my prs and ofborg didn't respond so I figured I should probably run the test myself
<cole-h>
ofborg hasn't done comments in quite a while; if you look at the successful checks, you'll notice it say "tests.installer on x86_64-linux — Success"
<numkem>
lovesegfault: what kind of board/computer do you have for aarch64?
<jakobrs>
thoughtpolice: Mind if I ask you how you use vaultproject.io for certificate related stuff?
reallymemorable has quit [Quit: reallymemorable]
<lovesegfault>
numkem: rpi4, also an rpi3
<lovesegfault>
I have an Nvidia AGX Xavier too, but I haven't figured out how to get NixOS on it
<numkem>
lovesegfault: thanks, did you put /nix on an external SSD?
<cole-h>
Or HDD, but that's probably for the best considering how fast SD cards wear
<numkem>
that's what I'd be worried about, with the usage it could be within a few months
endformationage has joined #nixos
<{^_^}>
[nixpkgs] @emilazy opened pull request #85880 → linux_*_hardened: index patches by major kernel version → https://git.io/JfISX
<lovesegfault>
numkem: nope, sd card and I live dangerously
<cole-h>
Wow
<cole-h>
lovesegfault: I guess I was wrong about you....
<cole-h>
:P
virus_dave2 has joined #nixos
seku has joined #nixos
<numkem>
he does love segfaults... that's quite dangerous
<jakobrs>
How do I fix "command not found: nix-store" when trying to do nix ping-store?
<jakobrs>
The manual says that I need to ensure that nix-store is available on the remote machine,
<jakobrs>
in non-interactive sessions, but it doesn't specify how
mallox has joined #nixos
rendeko[m] has left #nixos ["User left"]
<symphorien>
jakobrs: depends on the shell
rogue_koder_ has quit [Ping timeout: 256 seconds]
<symphorien>
With zsh, set PATH correctly with /etc/zsh/zshenv
<symphorien>
With bash I don't know if it is even possibme
<{^_^}>
[nixpkgs] @sternenseemann opened pull request #85881 → apostrophe: add alias from uberwriter → https://git.io/JfISh
rogue_koder_ has joined #nixos
reallymemorable has joined #nixos
<ixxie>
hmm what was the command to open a nix shell, as in a nix-lang shell
<cole-h>
`nix repl`?
<cole-h>
`nix repl '<nixpkgs>'` if you want access to nixpkgs stuff
dermetfan has quit [Ping timeout: 240 seconds]
reallymemorable has quit [Client Quit]
virus_dave2 has quit [Remote host closed the connection]
reallymemorable has joined #nixos
<jakobrs>
Was nix repl ever called nix-repl?
<jakobrs>
because I've seen it referred to as that by documentation stuff
<cole-h>
I don't think so? At least, not in the past 3 months I've been here :P
<cransom>
there was one called nix-repl, prior to nix 2 at least
<gchristensen>
yeah, back before nix-repl was part of Nix itself
<cole-h>
I stand corrected
<jared-w>
I'm still sad there's no v2 shell. Like, it doesn't really matter, but it feels weird to have `nix <space> command` for everything but my most used nix related command.
<jakobrs>
I kind of wish there was a command that's a hybrid of nix-shell and nix run
<cole-h>
IIRC, `nix run` is the replacement for `nix-shell`, and it might soon be renamed to `nix shell` to support that
<jakobrs>
Think allowing _both_ nix-shell for getting dependencies, etc *and* nix run / nix-shell -p for adding extra programs
<ixxie>
thanks folks
<jakobrs>
But it's not too important since you can just launch recursive nix-shells.
<jared-w>
cole-h: nix run doesn't do everything or even really most of the stuff that nix-shell did. It also has different behavior for certain things and the differences can get ugly if you or tooling you use start relying on some of those obscure features/behaviors
<ixxie>
hmm how do you exit the nix repl :D
<jakobrs>
Do I need to specially craft nix derivations in order for it to be possible to cross-compile?
<jakobrs>
ixxie: :q
<cole-h>
ixxie: Alternatively, C-d (Ctrl+D)
<{^_^}>
[nixpkgs] @matthuszagh opened pull request #85882 → wxformbuilder: init at 3.9.0 → https://git.io/JfI9K
<{^_^}>
[nixpkgs] @romildo opened pull request #85883 → deepin.deepin-anything: fix building with linux kernel 5.6 → https://git.io/JfI9X
<leo60228>
the entire rest of my boot process is like 1s
<ixxie>
hmm but nix repl can't access environment variables I guess
<leo60228>
and this takes 30 seconds
<cole-h>
ixxie: `builtins.getEnv` maybe?
<leo60228>
/dev/sdb, /dev/sdc, and /dev/sdd are from my card reader
<cole-h>
Yeah, `builtins.getEnv` works for me
<ixxie>
cole-h: right... forgot to export the variable
<cole-h>
x)
<ornxka>
has anyone here ever gotten indentation working right in nix-mode
<gchristensen>
heh
dingenskirchen has quit [Quit: dingenskirchen]
dingenskirchen has joined #nixos
<ornxka>
(nix-indent-function #'nix-indent-line) i use this but still it does thing like match delimiters in comments to ones outside of comments
<thoughtpolice>
jakobrs: I use Vault but only for some basic stuff -- SSH certificates have been on my "look at" for a little while tho, haven't made the jump for any automation yet
<{^_^}>
[nixpkgs] @Mic92 merged pull request #85506 → mednafen: Add alsaLib to get ALSA audio output → https://git.io/JfUvv
<infandum>
immae: If you're interested, I think I made it work automatically with --prefix-contents 'R_LIBS_SITE' ':' "${pkgs.Renv}/bin/R". I assume it plops everything in that file as a string, so it just works as the export stuff and binary stuff is ignored in the R_LIBS_SITE
scheming_around has quit [Ping timeout: 256 seconds]
proofofkeags has joined #nixos
elibrokeit has quit [Quit: A random quit message]
elibrokeit has joined #nixos
kazimazi has joined #nixos
luna has quit [Ping timeout: 240 seconds]
vidbina_ has quit [Ping timeout: 272 seconds]
dermetfan has joined #nixos
drakonis has joined #nixos
chagra has quit [Read error: Connection reset by peer]
relaxmax has joined #nixos
kazimazi has quit [Quit: Leaving]
reis-r has joined #nixos
knupfer has quit [Ping timeout: 258 seconds]
kenran has quit [Ping timeout: 265 seconds]
<armin>
hm, so as can be seen on https://i.imgur.com/SDgJZXu.png it's possible to use things like ${system.nixos.version} in motd - is it possible to customize issue and issue.net that way, too?
<dsal>
Can someone denoob me on cabal2nix + nix-build? What's the shortest path from 'stack test' to 'nix-something test' ?
<dsal>
cabal2nix spits out a derivation, but I don't know what to do with that.
chagra has joined #nixos
knupfer has joined #nixos
<dingo>
is there a way to see why a python-module was marked as broken before the 20.03 release? it was updated on the master after release-20.03 branched off
Desetude has quit [Quit: WeeChat 2.7.1]
<lordcirth>
dingo, git blame on and look for the commit that marked it broken
<dingo>
lordcirth: i did "treewide: mark broken packages for 20.03"
<lordcirth>
Ah, that's not helpful
<dingo>
yep
<cole-h>
If it failed to build in hydra, it was marked as broken for 20.03
<dingo>
cole-h: but then a bot would have marked it broken, not samueldr right?
iqubic has quit [Remote host closed the connection]
<cole-h>
Not necessarily. We don't have a "mark-broken" bot yet.
<dingo>
cole-h: means the way to trace this would be to go through the hydra builds and check if it failed there?
<cole-h>
Yeah, that's because dis*sm is one of the release managers for 20.03. All packages that failed to build on hydra were marked as broken the day before the release
<cole-h>
(Or the day of, I can't remember)
<cole-h>
dingo: You can also try to build it yourself, setting `NIXPKGS_ALLOW_BROKEN=1`
<dingo>
(was marked at 2020-04-15)
<{^_^}>
[nixpkgs] @mehlon opened pull request #85887 → github: add title 'Package request' to issue template → https://git.io/JfI7o
<cole-h>
Maybe the commit happened then, but it wasn't merged until ~the day of/before the release
<cole-h>
JK
<cole-h>
It happened then
<dingo>
cole-h: means i can assume it was about being able to build it, rather than some kind of security issue / broken feature
andreas303 has quit [Remote host closed the connection]
xfix has joined #nixos
shreyansh_k has quit [Ping timeout: 250 seconds]
<arianvp>
webgl stopped working for me on 20.03
<arianvp>
on firefox. anybody experiencing this?
<emily>
armin: yep
andreas303 has joined #nixos
<emily>
armin: it's all just strings
<manveru>
arianvp: works for me with nvidia
<emily>
armin: you can template arbitrary files in /etc, or even generate them based on basically arbitrary computations, external dependencies, etc. (at system build time)
codygman has quit [Read error: Connection reset by peer]
<emily>
they're pretty daunting to read through, but good to look things up in
Darkmatter66_ has joined #nixos
<dingo>
cole-h: thanks, still building
<armin>
emily: ty
Darkmatter66 has quit [Ping timeout: 260 seconds]
<emily>
e.g. in this case, the option you'd use to write to /etc/issue or random files in /etc that don't have a specific nixos option would be environment.etc, and https://nixos.org/nixos/options.html#environment.etc are the docs for that
proofofkeags has quit [Remote host closed the connection]
<dsal>
i.e., the thing I'm changing is unrelated to the build error.
<dingo>
arianvp: with 75 (from 20.03) and 72 i get a different error (although in both cases it's the same)
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
turion has quit [Ping timeout: 246 seconds]
<dingo>
arianvp: in this case it's an ffmpeg error
Th4tGuy has joined #nixos
vidbina_ has joined #nixos
<Th4tGuy>
hey all quick question, would this be the appropriate way to set keepDebugInfo in stdenv so that all packages inherit the setting, eg: let mystdenv = stdenv.override { keepDebugInfo = true; }
sauyon has joined #nixos
<dsal>
This seems to be broken on this host. Can I delete the things being referenced? Something seems to have gone wrong.
<Th4tGuy>
hmm that failed to build :(
<Th4tGuy>
ah got it, let mystdenv = pkgs.keepDebugInfo stdenv
<sphalerite>
ornxka: well, what about w3m or something?
<kraem>
is there a way to query `/run/current-system/sw` which attribute installed depends on another attribute without providing the exact derivation path? my workflow of `nix-store --query --tree $(readlink -f /run/current-system)` and then searching for the attribute isn't very optimised. (i'm trying to do this to see what attribute is triggering rebuild of a big package, eg ghc, on rebuilds)
knupfer has joined #nixos
<energizer>
am i supposed to do `checkInputs = propagatedBuildInputs`? that seems like it shouldn't be necessary
<lovesegfault>
How do circular deps work with Nix? If I change binutils I need to rebuild GCC, but that would mean I have to rebuild binutils again, etc
<lovesegfault>
How does this all work?
<sphalerite>
ornxka: is a browser like chromium even usable on i686 hardware nowadays?
klntsky has quit [Remote host closed the connection]
jb55 has quit [Read error: Connection reset by peer]
est31 has quit [Remote host closed the connection]
cantstanya has quit [Remote host closed the connection]
KeiraT has quit [Write error: Broken pipe]
corpix has quit [Remote host closed the connection]
nschoe has joined #nixos
est31 has joined #nixos
glittershark has joined #nixos
klntsky has joined #nixos
jb55 has joined #nixos
cantstanya has joined #nixos
KeiraT has joined #nixos
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bqv>
lovesegfault: nix bootstraps gcc
<lucus16>
in nixos tests, how can I access root on the vm started with result/bin/nixos-run-vms?
fendor has quit [Read error: Connection reset by peer]
<matthewbauer>
lovesegfault: We have "bootstrap tools" which are prebuilt binaries that we start with, but it then goes through a few stages of build packages until no traces of the prebuilt binaries are left. Bootstrap tools are made from previous bootstrap tools, using "make-bootstrap-tools.nix". As for the very first bootstrap-tools, I think they were hacked up by eelco or someone else in the very early days.
<dmj`>
when trying to install nix in a docker container I receive the following error message
<dmj`>
"error: while setting up the build environment: mounting /proc: Operation not permitted"
<dmj`>
has anyone else encountered thisi?
<dmj`>
this*
fendor has joined #nixos
tchab has joined #nixos
<tchab>
hi
mrCyborg has joined #nixos
<tchab>
is there any Kodi user here ? I can't figure out how to use kodi tv addons. I've added kodiPlain and kodiPlugins.pvr-hts to my environment.systemPackages but kodi keep telling me it doesn't found any tv addon
iqubic` has joined #nixos
<lovesegfault>
matthewbauer: I see, interesting
<lovesegfault>
Did we bootstrap rustc?
CptCaptain has joined #nixos
iqubic has quit [Ping timeout: 240 seconds]
zeta_0 has joined #nixos
<lucus16>
I heard some people were working on bootstrapping that from a rust compiler in C that targets rust 1.29 or something
<lovesegfault>
That's mrustc
<lucus16>
followed by 14 consecutive rustc builds
<lovesegfault>
But you can bootstrap Rust by using the original rustc that was written in OCaml
<lovesegfault>
and then making your way to now
<lovesegfault>
but it's time consuming because you need to go through _many_ generations
<lucus16>
yes
<cole-h>
lovesegfault: I know for a fact that we currently bootstrap new rustc's with the previous rustc
inkbottle has joined #nixos
<cole-h>
1.42 is built with 1.41
<lovesegfault>
cole-h: Sure, that I know too
<cole-h>
x)
<lovesegfault>
I wonder how the first one was done
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__monty__ has quit [Quit: leaving]
Darkmatter66 has joined #nixos
Darkmatter66_ has quit [Ping timeout: 260 seconds]
rogue_koder_ has joined #nixos
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
smatting has quit [Ping timeout: 240 seconds]
freeman42x has quit [Read error: Connection reset by peer]
morgrimm has quit [Ping timeout: 256 seconds]
rogue_koder has joined #nixos
tchab has quit [Remote host closed the connection]
rogue_koder_ has quit [Ping timeout: 264 seconds]
dingenskirchen has joined #nixos
CptCaptain has quit [Quit: WeeChat 2.8]
rogue_koder_ has joined #nixos
rogue_koder has quit [Remote host closed the connection]
smatting has joined #nixos
<Th4tGuy>
anyone know how nix handles packages the define flags that should be inherited for consumers. For example if i build libarary foo and foo is configured with -DMY_CUSTOM_FLAG=ON, how do packages that consume foo inherit that custom flag?
<bqv>
ahaha, i was looking for a nix derivation for pleroma, and i found one in a repo owned by a guy i know irl!
<bqv>
small world.
<gchristensen>
nice
iqubic` has quit [Quit: ERC (IRC client for Emacs 28.0.50)]
<dsal>
Can anyone give me some guidance on fixing my build? On this one machine, I get this: Expected: name == gpmf, version == 0.1.0.0, tree == 0a579c41ad42239182fbff6d3141e19c6203b6ddab364a244549421673c90ec9,815, cabal file == db389a78246dcca119beddda4999ff0e5578daa27be96096222e10c733d12a53,2274
iqubic has joined #nixos
<dsal>
I'm building via stack and gpmf is a github repo that's coming in. It didn't change, but an unrelated change has caused this to stop working.
rogue_koder_ has quit [Remote host closed the connection]
rogue_koder_ has joined #nixos
<bryanhonof>
Hello! I was wondering if anyone could help me getting Vulkan to work. I am able to build Vulkan programs but unable to run them. The programs complain about not finding a loader altho I have vulkan-loader installed together with amdgpu.
o1lo01ol1o has quit [Remote host closed the connection]
marsh has joined #nixos
o1lo01ol1o has joined #nixos
johnjay has quit [Ping timeout: 258 seconds]
mrCyborg has joined #nixos
aveltras has quit [Quit: Connection closed for inactivity]
Izorkin_ has joined #nixos
betawaffle has quit [Ping timeout: 264 seconds]
Izorkin has quit [Ping timeout: 258 seconds]
Izorkin_ is now known as Izorkin
cosimone has quit [Read error: Connection reset by peer]
erasmas has quit [Quit: leaving]
earldouglas has left #nixos [#nixos]
<bqv>
i just typed :wq at the end of my git commit shell line
<bqv>
i have actually gone too deep
<bqv>
jeez
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<Ashy>
bqv: vim fugitive is love
<bqv>
barking up the wrong tree my dude
<bqv>
i hate vim plugins
mrCyborg has quit [Ping timeout: 272 seconds]
<energizer>
i'm writing a series of data-transforming scripts. i want nix to notice when the first script gets changed, and re-run all of the scripts that follow it. i don't want to write a mkDerivation for each script manually because that would be too much work. what do i do?
<bqv>
you're not looking for nix
<{^_^}>
[nixpkgs] @veprbl pushed 4 commits to release-20.03: https://git.io/JfIpX
<bqv>
you're looking for something more like bazel or meson
iqubic has quit [Ping timeout: 265 seconds]
<energizer>
why am i not looking for nix?
<simpson>
energizer: lorri can do some of this, I think.
<energizer>
simpson: that is my thinking as well
<simpson>
bqv: Okay, I'll bite; how would you do this with Bazel or Meson?
WhatisRT has quit [Ping timeout: 258 seconds]
<bqv>
because at the end of the day it's just an incremental build, which is something that those two excel at but is naturally a pain in the ass in nix
lorimer has quit [Read error: Connection reset by peer]
<infinisil>
energizer: Nix is a programming language, so if you can abstract the mkDerivation thing, it won't be tedious
johnjay has joined #nixos
o1lo01ol1o has quit [Ping timeout: 256 seconds]
philr_ has joined #nixos
<simpson>
bqv: I don't see that in my experience. I built an incremental build harness for my programming language, to compile each module separately, and while it took some 50loc of Nix, it wasn't too terribly hard.
<bqv>
e.g. where are the scripts coming from? if they're all in the same src repo, you're gonna have to have nix rebuild them all anyway unless you build them impurely
<energizer>
bqv: not just build, i want to *run* the scripts
<energizer>
but i dont want to re-run the first one when the third one was changed
<simpson>
ala Make, presumably.
<energizer>
yes
<bqv>
simpson: that's what i mean by impurely, try making that work when you're not using data from the filesystem, and having it not rebuild everything when most of it is the same
<bqv>
cause that's a problem i still haven't solved
<energizer>
infinisil: i believe you're right, i just havent got my head around what it looks like yet
<energizer>
is there prior art here?
<infinisil>
energizer: Have something like `transforms = [ "cat" "sort" "tac" ]` which then gets turned into `let step1 = runCommand "cat" {} "input > cat > $out"; step2 = runCommand "sort" {} "cat ${step1} | sort > $out"; in ...
<{^_^}>
[nixpkgs] @paumr opened pull request #85896 → marked stem as not-broken → https://git.io/JfIp5
<infandum>
Why would libblas.so.3 point to /nix/store for one computer but /usr/lib for another with the same default.nix?
<infinisil>
Every step would take the previous derivation as an input, transforming it, writing it to $out, which then becomes the input to the next one
<simpson>
bqv: See my link for hints. One has to take the entire directory tree of source objects, and make a build action for each source object, then take all of the resulting artifacts and put them into a brand-new link farm.
<infinisil>
Then every step along the way is being cached
anrddh has joined #nixos
anrddh is now known as butterthebuddha
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
johnjay has quit [Ping timeout: 240 seconds]
<infinisil>
Like a `derivationPipe :: Binary -> [ Binary ]` would be a good general function
<bqv>
simpson: ..that's impressive, but also kinda crazy, and to say that this is not a PITA in nix when you compare that to doing similar with a normal build tool after seeing that, heh
<evanjs>
anybody know how I might patch package.json using node2nix?
<evanjs>
unsure if that's supposed to be done in preRebuild or etc
johnjay has joined #nixos
justanotheruser has quit [Ping timeout: 250 seconds]
<infinisil>
infandum: That question has way too little information to give any helpful answer
<bqv>
simpson: that's why i suggested actual modern tools like bazel/meson, not make :p
<bqv>
don't get me wrong, i'd love if nix was popular as a build tool and not just a package manager, but i don't think it lends itself to the purpose
<hackerfoo>
One nice thing about Nix is that it tries to enforce purity, unlike make. It would be cool to compile some subset of Nix to make or ninja, so that you can test that the build describes all dependencies, but then use and distribute make/ninja, which should be faster since they don't enforce most of the properties that Nix does.
<energizer>
bqv: what do you think are the missing pieces in nix for this purpose?
<infandum>
infinisil: What additional information should I give?
<bqv>
hackerfoo: bazel does exactly that. it's nix, but on the build chain level (again, why i suggested that)
<infandum>
On my computer I used nix-env -f default.nix -i executable
thc202 has quit [Ping timeout: 246 seconds]
<infandum>
on another (the previous was Arch linux, this one is ubuntu) I used the same, but this time ldd executable gave some libraries as being in /usr/lib or /lib rather than before where they were in /nix/store
<bqv>
energizer: mostly just hasn't even been considered for that purpose, so it's not tuned for that purpose. building a package with dependencies in nix can be done in a few characters (not lines). building a highly interconnected project in any ecosystem requires a massive hack like simpson's, then a load more instrumentation
<infinisil>
infandum: Ah so you're using ldd on a nix-built executable
<hackerfoo>
bqv: Is there something that will convert Nix expressions to BUILD files?
<infandum>
infinisil: yeah
<infinisil>
infandum: Are you sure you're using the nix-built one in both cases? Make sure using `realpath $(which <binary>)`, should point to a /nix/store path
<bqv>
hackerfoo: not looked. perhaps
<hackerfoo>
Also, Bazel is a heavy dependency.
<bqv>
agreed, which is why i suggested meson as well
<infandum>
infinisil: The issue is that I'm getting a "error while loading shared libraries: libblas.so.3: cannot open shared object file: No such file or directory" even though I don't on the other computer with the same nix version and same default.nix
<infandum>
infinisil: I'm using the /nix/store path for both
<infandum>
for ldd
<simpson>
bqv: I guess we'll have to agree to disagree; I've used Bazel enough to know that it's not especially better at this, since every time Nix would allow ad-hoc builders in Nix expression language, Bazel would correspondingly need a new extension.
<infinisil>
infandum: I think it might be that ldd resolves library versions based on the ldd version itself
<infandum>
infinisil: It built successfully on both, just one is using the wrong shared libraries
bryanhonof has quit [Remote host closed the connection]
<infandum>
infinisil: !?!?
<infandum>
Well in that case, on ubuntu it's 2.30
<infandum>
Arch it's 2.31
<infandum>
would that really result in using the system libraries over the nix ones with the same default.nix?
<{^_^}>
#84043 (by neilmayhew, 3 weeks ago, open): glibc-2.30 libraries link to glibc-2.27
<{^_^}>
[nixpkgs] @NickHu opened pull request #85897 → remarkable-toolchain: init at 1.8-23.9.2019 → https://git.io/JfIhg
<hackerfoo>
Bazel seems very rigid in my experience as well.
cr4y1_ has quit [Ping timeout: 258 seconds]
<infandum>
infinisil: But in that case they are still both pointing to /nix/store
wfranzini has quit [Remote host closed the connection]
reallymemorable has quit [Quit: reallymemorable]
<infinisil>
infandum: where somebody looked at the ldd output of a nixpkgs binary built for glibc 2.30, but it showed that it's linked to glibc 2.27, which is certainly wrong
<infandum>
Different ldd results on different computers
<{^_^}>
[nixpkgs] @NickHu opened pull request #85898 → rmapi: init at 0.0.10 → https://git.io/JfIhP
<hackerfoo>
In contrast, with Nix I can parse a bunch of config files in a derivation into a Nix expression and import that, allowing me to convert anything to Nix during eval time.
<infandum>
Even blas
justanotheruser has joined #nixos
<infinisil>
infandum: Try running `strace -e trace=file -f <binary>` to see where it checks for the libblas.so.3 file
<infinisil>
Can also add `-o out` before the binary to make strace redirect its output to a file named out
mbrgm has quit [Ping timeout: 260 seconds]
mbrgm_ is now known as mbrgm
<infinisil>
It might be that it depends on that library, but no dependency was declared on it, so it somehow uses one it can find from your impure environment
<infinisil>
Though I guess that shouldn't happen with dynamic libraries?
<{^_^}>
[nixpkgs] @NickHu opened pull request #85899 → remarkable-mouse: init at 5.1 pythonPackages.libevdev: init at 0.7 pythonPackages.setuptools-lint: init at 0.6.0 pythonP… → https://git.io/JfIhx
iqubic has joined #nixos
<infandum>
infinisil: It does not look for libblas.so.3 in /nix/store/sjbzgq27izx37p4xlyrvdvj7yx28had4-blas-3.8.0/ (which was built from the default.nix buildInputs I assume)
<infandum>
In fact, the first place it looks is in /usr/lib/R/lib/ which also is wrong, it should be using the /nix/store R like it does on the other computer
<infinisil>
Maybe that's an impurity in the source code somewhere
<infandum>
In the default.nix?
<infinisil>
Might very well be, nothing in nix can forbid the source code from looking for libraries there I guess
<infinisil>
The code that loads the library
<infinisil>
Oh wait, I don't even know how that works
<infinisil>
Is that dlopen?
<dsal>
I worked around my nix problem by changing dependency. :( This feels like a failure.
<infinisil>
Yeah I think it's dlopen
<infandum>
infinisil: Did you see the default.nix? Is there anything there that might be wrong?
<infinisil>
infandum: I mean the haskell/C source code
<infinisil>
Whatever is loading the library
<infandum>
infinisil: But why would it be different? I don't know if I did something wrong or not :/
<infandum>
I assumed the same default.nix would be the same on every computer
<infinisil>
The binary will be the same
<infinisil>
Whether it does the same when executed very much depends on the environment it runs it
virus_dave has quit [Quit: virus_dave]
<infinisil>
You *can* run the binary in a derivation to eliminate that impurity
<infandum>
Oh? How?
<infandum>
Do I need to write a shell.nix?
<infinisil>
E.g. pkgs.runCommand "test" {} "${build-derivation}/bin/<binary>"
jgeerds_ has quit [Ping timeout: 258 seconds]
<infandum>
Do I run that from the command line?
<infinisil>
It's a nix expression so no
<infinisil>
Put it in a file or so and nix-build it
<{^_^}>
[nixpkgs] @rnhmjoj opened pull request #85900 → nixos/dnscrypt-wrapper: use dnscrypt-proxy1 → https://git.io/JfIjI
butterthebuddha has quit [Remote host closed the connection]
shibboleth has joined #nixos
iqubic` has joined #nixos
iqubic` has quit [Remote host closed the connection]
iqubic has quit [Read error: Connection reset by peer]
<cole-h>
Sounds like an issue should be filed... ;)
mrCyborg has joined #nixos
<bqv>
cole-h: that's the problem, is it an issue, or am i doing something stupid?
<bqv>
cause that commit says it fixes things, not breaks them
<bqv>
and i'm obviously doing a hecktonne of unsupported stuff
<cole-h>
Issues are still the best place for that, IMO. If you're doing something stupid, they'll tell you and close it. If it's an actual issue, they'll help troubleshoot.
<infandum>
infinisil: When it builds, the configureFlags points to the correct blas but for some reason that's not in the end result
<bqv>
bleh. fine
morgrimm has joined #nixos
<cole-h>
(and it also doesn't require Eelco to be plugged into this channel 24/7)