<leo_>
19.09 channel and it shouldn't be necessary right?
<leo_>
And thank you!
<leo_>
Maybe I'll put it anyway just to be safe. .-.
<infinisil>
Yup
<leo_>
Thanks man. :| This chat saved me a bunch.
<leo_>
infinisil++
ebzzry has quit [Ping timeout: 265 seconds]
<{^_^}>
infinisil's karma got increased to 147
<infinisil>
leo_: You can check with `nix-instantiate '<nixpkgs/nixos>' -A config.nix.binaryCaches --strict` to see what it ends up as
<infinisil>
:)
<infinisil>
Add --eval
toppler has joined #nixos
<leo_>
Hehe
br_ has joined #nixos
alex``` has quit [Ping timeout: 276 seconds]
toppler has quit [Ping timeout: 268 seconds]
<inkbottle>
I've put some sh script in environment.interactiveShellInit and it works well; however I don't know in which file the code really is. I don't have a ~/.bashrc file
br_ has quit [Ping timeout: 268 seconds]
toppler has joined #nixos
<infinisil>
inkbottle: /etc/bashrc probably
<inkbottle>
infinisil: it's there, thanks; Do you know why the code is not loaded when I'm root? The code should apply to everybody, right?
toppler has quit [Ping timeout: 276 seconds]
<inkbottle>
well it's loaded, my bad
<{^_^}>
[nixos-weekly] @matthewbauer pushed to master « Add "Improved performance in Nixpkgs" »: https://git.io/Je8OT
<jackdk>
Ashy: I recommend asking your protobuf question directly, for the reasons outlined at https://sol.gfxile.net/dontask.html . Someone might know a bit but he or she might not be keen to put up a hand as an expert.
<jackdk>
Ashy: thanks. knowing nothing about protobuf, I wonder: a) could you symlink an existing protobuf library as libprotobuf.so.15? b) partially revert that nixpkgs commit since protobuf3_5 will have a user after you're done?
toppler has joined #nixos
mexisme has joined #nixos
Fare has quit [Quit: Leaving]
<Ashy>
yeah i've reverted that commit locally and am testing now
br_ has joined #nixos
<Ashy>
i had tried to symlink a newer libprotobuf.so to libprotobuf.so.15 but ldd was still showing it as not found so i may have put that in the wrong place
<jackdk>
I'm not sure how you'd test whether you've set that up correctly
<danderson>
debugging nix's pppd continues... Current mystery: when the remote PPP server sends it an LCP Configure request indicating that CHAP auth is required, nixos's pppd NAKs the "CHAP required" part
<danderson>
to which the remote pppd says "no CHAP, no service" and hangs up...
<danderson>
in contrast, debian's pppd acks the LCP config request, and proceeds to do CHAP auth
boxscape has quit [Ping timeout: 265 seconds]
nexgen has joined #nixos
br_ has joined #nixos
toppler has quit [Ping timeout: 268 seconds]
nexgen has quit [Remote host closed the connection]
nexgen has joined #nixos
toppler has joined #nixos
br_ has quit [Ping timeout: 240 seconds]
<danderson>
ah! Turns out if you typo your PPP username, auth doesn't work. Who knew :D
<switchy>
is there some way to build gcc from a git snapshot?
ddellacosta has quit [Ping timeout: 240 seconds]
toppler has joined #nixos
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<slack1256>
If it is a recent version, should just change the version/source be enough?
toppler has quit [Ping timeout: 276 seconds]
br_ has joined #nixos
toppler has joined #nixos
toppler has quit [Ping timeout: 276 seconds]
br_ has quit [Ping timeout: 268 seconds]
toppler has joined #nixos
<wtv_nick>
is there a way to run login into a certain environment depending on which user i log into
<wtv_nick>
like instead of having my derivation in configuration.nix, I want to have one at the root of the users home directory that can be run when logged into
<wtv_nick>
i looked into that but it seems weird to me to have that solution when it feel like its something nix should do natively
<wtv_nick>
like is everyone who uses nixos supposed to download home-manager?
pbb has quit [Client Quit]
pbb has joined #nixos
toppler has quit [Ping timeout: 250 seconds]
<slack1256>
Well I don't use home-manager and I think you can declare packages environments at user creation time.
<simpson>
wtv_nick: Not at all. I've been using NixOS for years (wow, time flies!) and not yet used home-manager.
<slack1256>
But what home-manager does give you is a way to declare configurations at /home/user level for the programs you declare. Think .xinit, xmonad.hs, xmodmap, offlineimap, taffybar, tex-packages, .emacs.d . All that lives on a per-user instance which shouldn't be globally managed.
toppler has joined #nixos
<slack1256>
Even if nixos did that by default, it would look a lot like home-manager modulo the name.
wedens has joined #nixos
hiratara has joined #nixos
<slack1256>
The alternative can be a git-repo with your dot files.
br_ has joined #nixos
Rusty1 has quit [Quit: Konversation terminated!]
toppler has quit [Ping timeout: 276 seconds]
br_ has quit [Ping timeout: 240 seconds]
wfranzini has quit [Remote host closed the connection]
toppler has joined #nixos
Havvy has quit [Ping timeout: 265 seconds]
<wtv_nick>
ok so best thing to do if i dont want to use home manager is configure my user with dotfiles and have the /etc/nixos/configuration contain all the packages i need?
<slack1256>
You can use nix-env and be fine.
<slack1256>
I don't even care that much for dotfiles. If I delete them, I usually have a copy somewhere on another PC.
mexisme has joined #nixos
Havvy has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
toppler has quit [Ping timeout: 276 seconds]
toppler has joined #nixos
slack1256 has quit [Ping timeout: 240 seconds]
slack1256 has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
dansho has joined #nixos
wtv_nick has quit [Quit: Lost terminal]
toppler has joined #nixos
br_ has joined #nixos
toppler has quit [Ping timeout: 250 seconds]
toppler has joined #nixos
br_ has quit [Ping timeout: 265 seconds]
Wizek has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
slack1256 has quit [Remote host closed the connection]
<mabel>
pbb: I got passthrough working! it was excruciating!
toppler has quit [Ping timeout: 268 seconds]
<mabel>
issues encountered: 1. if you have two cards of the same SKU, you have to add vfio-pci to boot.initrd.kernelModules, *and* write a boot.initrd.preDeviceCommands which sets driver_override, then sets bind
<mabel>
2. BIOS settings need to be configured. I set ACS, IOMMU, PCI Bus Probing, and a few others
toppler has joined #nixos
<mabel>
3. there was a terrible bug in old Threadripper BIOS firmwares that caused the parent PCI bus controller to crash if it receives a reset. so I had to flash a new BIOS, and then reconfigure settings that got lost
<mabel>
4. NVidia drivers refuse to load if you don't hide KVM and spoof your firmware ID, so I had to tweak that.
<mabel>
but once I got all that resolved, it was easy :p
br_ has joined #nixos
<mabel>
I should probably write a wiki page on it while it's fresh in my mind
<Squarism>
So nix provides me with binaries built for the OS im running or how should one express it?
<Squarism>
Or does it run stuff in some specified container of sorts?
graf_blutwurst has joined #nixos
<{^_^}>
[nixpkgs] @vbgl opened pull request #71104 → ocamlPackages.duff: init at 0.2 → https://git.io/Je8Gn
br_ has quit [Ping timeout: 240 seconds]
<Ariakenom>
ivan: so using yarn instead of nix to install things
toppler has quit [Ping timeout: 276 seconds]
<jophish>
Infinisil, sadly I can't use cachix at work. I'll see if I can run updaye
<jophish>
Update *
<domenkozar[m]>
@jophish: thanks :)
<{^_^}>
[nixpkgs] @FRidh pushed commit from @singron to staging « pythonPackages.setuptools: Remove windows files and make reproducible »: https://git.io/Je8GC
toppler has joined #nixos
mexisme has joined #nixos
<{^_^}>
[nixpkgs] @FRidh closed pull request #71101 → pythonPackages.setuptools: Remove windows files and make reproducible → https://git.io/Je8Oh
toppler has quit [Ping timeout: 265 seconds]
toppler has joined #nixos
m0rphism has joined #nixos
dansho has quit [Quit: Leaving]
<mabel>
Squarism: you can build node packages with Nix, there are a few different tools for that; however, I recommend just installing yarn and using yarn install while you're doing dev stuff.
<mabel>
I usually just make a dev workspace nix file and then nix-shell into that.
<mabel>
that way I have VSCode and plugins and all my build tools and stuff set up for me
Ariakenom has quit [Remote host closed the connection]
Ariakenom has joined #nixos
Ariakenom has quit [Remote host closed the connection]
Ariakenom has joined #nixos
<Squarism>
mabel, node? As in node.js? Im not too keen on using that.
wfranzini has joined #nixos
br_ has joined #nixos
jdahm has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
<mabel>
I mean node as shorthand for the whole NPM ecosystem. I don't use node myself but make heavy use of webpack and vue and such
tmaekawa has quit [Ping timeout: 250 seconds]
<jdahm>
I have a very simple mkShell expression, but it's not installing all the clang libs along with clang https://hastebin.com/pezijiyami.txt any idea what causes this?
Heirlung has quit [Quit: ZNC 1.6.5+deb1+deb9u2 - http://znc.in]
zupo has joined #nixos
toppler has joined #nixos
br_ has quit [Ping timeout: 240 seconds]
nexgen has quit [Remote host closed the connection]
orivej has joined #nixos
jdahm has quit [Quit: leaving]
toppler has quit [Ping timeout: 268 seconds]
globin has quit [Remote host closed the connection]
globin has joined #nixos
ris has quit [Ping timeout: 268 seconds]
toppler has joined #nixos
Ashy has quit [Quit: WeeChat 1.9.1]
logzet has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
Jackneill has joined #nixos
schjetne has joined #nixos
Ariakenom has quit [Remote host closed the connection]
<danderson>
hmm. Should systemd service confinement work in 19.09?
ericsagnes has quit [Quit: WeeChat 2.6]
<danderson>
I turned it on for this module I'm writing, and afaict the configuration generated by confinement just doesn't work, mount namespacing fails during startup.
ericsagnes has joined #nixos
ericsagnes has quit [Client Quit]
toppler has quit [Ping timeout: 265 seconds]
gila has joined #nixos
knupfer has quit [Ping timeout: 250 seconds]
toppler has joined #nixos
veske has joined #nixos
philr has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
toppler has joined #nixos
br_ has joined #nixos
markus1189 has quit [Ping timeout: 240 seconds]
toppler has quit [Ping timeout: 268 seconds]
page has joined #nixos
markus1189 has joined #nixos
br_ has quit [Ping timeout: 268 seconds]
Ariakenom has quit [Remote host closed the connection]
<ConsumeristProvo>
hi, I'm trying to compile a program that uses SDL2_ttf using nix-shell and I get the following error
bahamas has joined #nixos
<ConsumeristProvo>
/nix/store/az6kzml7li3d3k0w182kkd366cb68bkh-SDL2_ttf-2.0.14/include/SDL2/SDL_ttf.h:34:10: fatal error: SDL.h: No such file or directory
<ConsumeristProvo>
the command I used is "nix-shell -p SDL2 SDL2_ttf"
jgeerds has joined #nixos
toppler has quit [Ping timeout: 268 seconds]
is_null has joined #nixos
<Yaniel>
did you add both the SDL2 and SDL2_ttf store paths to the include search path?
Lears has joined #nixos
Tucky has joined #nixos
<Ariakenom>
it worked after i interrupted it. and there was an actual network error happening. but getting stuck was probably a nix error
[Leary] has quit [Ping timeout: 265 seconds]
toppler has joined #nixos
<{^_^}>
[nixpkgs] @Mic92 pushed to master « python3.pkgs.tables: fix build against hdf5 »: https://git.io/Je8Gj
<adamt>
Hi there. Happy 19.09. Is there a new meta package that replaces the old pkgs.gnome3.corePackages? nixos-rebuild suggests me to enable services.gnome3.core-shell.enable, which I'm not interested in, since I used the old package to just get a bunch of useful things in one go for my i3 setup :-)
Ashy has joined #nixos
br_ has joined #nixos
lord| has quit [Ping timeout: 276 seconds]
<infinisil>
jophish: Where are you stuck at?
toppler has joined #nixos
<ConsumeristProvo>
Yaniel, you mean in the Makefile?
<ConsumeristProvo>
if yes, how would I go about doing that? pkg-config?
<Yaniel>
in whatever build system it uses
<Yaniel>
pkg-config is one way but you need to add that to your shell too
<Yaniel>
in the end the paths have to make it to the compiler's -I flags
<Yaniel>
the makefile likely has some INCLUDEPATH variable or somesuch if it's manually written
<Yaniel>
if it uses a generator then you'll have to look up the docs for that
<Yaniel>
OTOH a generator likely does the right thing if pkg-config is present
toppler has joined #nixos
Zer0xp has joined #nixos
hmpffff has joined #nixos
thinkingeye has joined #nixos
__Sander__ has joined #nixos
adamt has quit [Quit: WeeChat 2.4]
toppler has quit [Ping timeout: 276 seconds]
FRidh has joined #nixos
toppler has joined #nixos
<ConsumeristProvo>
thanks, Yaniel
bahamas has quit [Ping timeout: 268 seconds]
pie__ has joined #nixos
<danderson>
If I have a new nixos module PR, who should I cc on the review? The PR template has a "notify maintainers" section, but by definition there's no maintainers for a new module...
bahamas has joined #nixos
thc202 has joined #nixos
<alexarice[m]>
danderson: Don't cc anyone then
<alexarice[m]>
it's only for if there are maintainers and there aren't any for new packages/modules
<alexarice[m]>
If the module relates to a package which has a maintainer you could ping them
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @ariutta to master « doc/python: clarify python nix tooling efforts »: https://git.io/Je8nJ
ConsumeristProvo has quit [Ping timeout: 276 seconds]
<NinjaTrappeur>
I have an issue with tor-browser-bundle-bin on 19.09 and unstable. I don't see the startup "splashscreen" anymore and end up not having any response on the Socks socket. The tor process doesn't appear in the active process list; nothing valuable ends up on stderr/out. Anybody's having the same issue here or is this a problem with my system?
<mg->
adisbladis: $ tmux -vvvv htop
<mg->
no server running on /tmp/tmux-1000/default
<mg->
Runinng tmux start-server first changes nothing
toppler has quit [Ping timeout: 240 seconds]
<ivan>
NinjaTrappeur: if 19.09 doesn't have ab5877bd2636c8a5e712a8532b4781e815545d5e yet that's why
<ivan>
'Revert "Backport Rust 1.38 to 19.09 (#70735)"'
<NinjaTrappeur>
The browser just seems to be fine.
sigmundv has joined #nixos
toppler has joined #nixos
<alexarice[m]>
danderson: I think most of what I've put is nitpicky so don't worry too much
<mg->
adisbladis: ah, running with no config works. So something in the config is fucking it up
kleisli has joined #nixos
<bo0tzz>
o/ Hi! I'm having some issues with pipenv on nixos installing the wrong dependency and I hope someone here can help. I specify version 19.2.0 of the 'attrs' package but end up with 18.2.0. I have a hunch that it's using the package from nixpkgs rather than the one from pypi, but I cannot figure out why it's doing this. I can link pastes of the
<bo0tzz>
Pipfile and nix-shell file I'm using if needed.
<NinjaTrappeur>
The problem seems to be the "loading screen" in charge to setup the underlying tor link not even appearing on startup.
ConsumeristProvo has joined #nixos
bo0tzz has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @vcunat pushed 13 commits to release-19.03: https://git.io/Je8ck
<{^_^}>
[nixpkgs] @fpletz pushed 2 commits to release-19.09: https://git.io/Je8ct
toppler has joined #nixos
br_ has quit [Ping timeout: 276 seconds]
Jackneill has quit [Read error: Connection reset by peer]
Jackneill has joined #nixos
Synthetica has joined #nixos
tom39291 has joined #nixos
cfricke has joined #nixos
<NinjaTrappeur>
For the record: rm -rf .local/share/tor-browser fixed the tor-browser issue. Seems like there's a problem with the 7.5 -> 8.0 config migration path.
toppler has quit [Ping timeout: 240 seconds]
thinkingeye has quit [Quit: thinkingeye]
kuznero has joined #nixos
<kuznero>
Hi All! How do I see if certain package (copyq) is ready to be pulled through let's say nixos-unstable channel?
<jophish>
I'm a 'trusted user' at work because during machine installation a root shell was left open lol
<infinisil>
jophish: Fwiw, you could do `nix-store --export /nix/store/hji603fygfz3a5kkkkzwrf3cfgjpj9d6-haskell-ide-engine-eb3d32e > exported` at home, then move the exported file to your work, then `nix-store --import exported` there
<infinisil>
Hehe
<roberth>
jophish: let us know if you can only whitelist a single domain :)
<jophish>
Yeah, it's a pain to transfer large files into work. Have to host somewhere on the whitelist :)
feep has quit [Ping timeout: 250 seconds]
feep has joined #nixos
<bo0tzz>
FRidh: sorry, I can't quite figure out how I'm supposed to be using this. What do you mean?
<jophish>
Luckily the whole of EC2 is whitelisted!
toppler has quit [Ping timeout: 240 seconds]
<jophish>
Roberth, it takes literally months between opening a ticket for the whitelist and it being put into action!
<adisbladis>
wedens: Great, thanks :)
Zer0xp is now known as Guest86993
toppler has joined #nixos
<FRidh>
bo0tzz: obtain a shell with pipenv e.g. by using `nix-env -iA nixpkgs.pipenv` or `nix run nixpkgs.pipenv`. Then, use the tool like you would do normally.
veske has joined #nixos
<FRidh>
bo0tzz: ah, I see the issue. PYTHONPATH is passed through by pipenv
toppler has quit [Ping timeout: 240 seconds]
iyzsong has joined #nixos
Zer0xp has joined #nixos
<adisbladis>
pipenv + nix-shell is not a good combo..
<adisbladis>
pipenv completely breaks under nix-shell
<FRidh>
yes
<FRidh>
because of Python's setup hook
Wizek has quit [Quit: Connection closed for inactivity]
<FRidh>
we should really get rid of nix-shell examples because often they're not correct
ottidmes has joined #nixos
toppler has joined #nixos
<adisbladis>
FRidh: I've been thinking a lot lately about how to erradicate that footgun
br_ has joined #nixos
<adisbladis>
Imho we should get rid of PYTHONPATH within nixpkgs and find another way to propagate dependencies
<FRidh>
adisbladis: regarding nix-shell. We should use `nix run` where appliceable, and add support for `nix run` shebang like we have with `nix-shell`.
<FRidh>
adisbladis: that's slowly happening with withPackages and NIX_PYTHONPATH. I tried changing the setup hook to use NIX_PYTHONPATH as well but the Python2 build broke and I did not figure out why
<FRidh>
when that is done, we could get rid of it entirely
<{^_^}>
[nixpkgs] @liff opened pull request #71112 → pythonPackages.ansible: add dependency to hcloud → https://git.io/Je8C1
br_ has joined #nixos
<{^_^}>
[nixpkgs] @hedning opened pull request #71113 → wpa_supplicant: install d-bus conf correctly to share/dbus/system.d → https://git.io/Je8Cy
<{^_^}>
[nixpkgs] @primeos pushed to master « python37Packages.goobook: Add the missing setuptools dependency »: https://git.io/Je8CS
tmaekawa has joined #nixos
toppler has joined #nixos
<kaliumxyz>
is there any way to link or unlink packages without rebuilding at the systems level?
<kaliumxyz>
not at the nix environment level
<kaliumxyz>
Or reconfiger services at the systems level without doing a full rebuild?
<adisbladis>
kaliumxyz: Nope
<kaliumxyz>
:c
hyper_ch2 has joined #nixos
<kaliumxyz>
why not?
<kaliumxyz>
time to get hacking and figure things out c:
br_ has quit [Ping timeout: 250 seconds]
niso has quit [Quit: leaving]
cfricke has quit [Quit: WeeChat 2.6]
<adisbladis>
kaliumxyz: It's simply not the nix model
cfricke has joined #nixos
mexisme has joined #nixos
<kaliumxyz>
That makes no sense to me, why can't I specify to only change one package in a generation instead of having to compile virtual box every other rebuild for no apperant reason?
toppler has quit [Ping timeout: 240 seconds]
<kaliumxyz>
just because some minor patch came trough or whatever hoodoo causes that :d
<bo0tzz>
FRidh: Using nix run nixpkgs.pipenv does indeed let me install the correct version of the package, thanks!
<kaliumxyz>
To me that doesn't seem to conflict with the model, even worse rebuilding packages I did not expect to be rebuild seems like the opposite of the model
<infinisil>
kaliumxyz: depending on what you need some things are possible
<infinisil>
kaliumxyz: What do you need in this case?
<kaliumxyz>
I'd like to be able to enable and disable services without rebuilding while keeping this persisten trough rebuilds.
<kaliumxyz>
Things like printing capabilities and other services that spawn webservers.
mexisme has quit [Ping timeout: 250 seconds]
<kaliumxyz>
I don't like running webservers I am not using, or services that are on for months without being used.
<kaliumxyz>
yet a rebuild can take a few minutes.
<kaliumxyz>
Another issue is that testing configurations can be annoying when the build takes too long while I only want one package to be build and not a whole rebuild.
toppler has joined #nixos
<{^_^}>
[nixpkgs] @hedning opened pull request #71115 → nixos/plymouth: do not order `plymouth-quit` after `display-manager` → https://git.io/Je8Wf
niso has joined #nixos
niso has quit [Client Quit]
niso has joined #nixos
<ajs124>
kaliumxyz: A rebuild where you only enable/disable a service and don't update any channels should never take several minutes.
Okinan has quit [Quit: Konversation terminated!]
jonge has joined #nixos
fiddlerwoaroof has quit [Read error: Connection reset by peer]
drgbr has quit [Ping timeout: 265 seconds]
drgbr has joined #nixos
le_jonge has quit [Ping timeout: 265 seconds]
<{^_^}>
[nixpkgs] @Mic92 pushed to master « testdisk: enable ntfs/extfs on non-darwin platforms »: https://git.io/Je8Wt
<ptotter[m]>
I'm having trouble upgrading to 19.09: level=error ts=2019-10-14T11:21:04.222Z caller=main.go:216 msg="Error loading config" err="error reading config file: open /nix/store/wvny1dxlchpr7fcnay382mm6zgwxb3w3-checked-blackbox-exporter.conf: no such file or directory"
br_ has joined #nixos
<infinisil>
kaliumxyz: Two ways I can see this being possible: One is to add something like `ConditionPathExists=!/etc/systemd-overrides/<unitname>` to the systemd unit you want to disable dynamically
<infinisil>
Then doing `touch /etc/systemd-overrides/<unitname>` should disable it persistently, `rm ..` enabling it again
<infinisil>
And I guess a restart is needed for it to detect this
<infinisil>
Could even add a `systemd.path` unit to detect this automatically and stop/start the corresponding unit
klntsky has quit [Ping timeout: 260 seconds]
klntsky has joined #nixos
br_ has quit [Ping timeout: 246 seconds]
toppler has quit [Ping timeout: 276 seconds]
<infinisil>
So the general idea is to statically encode that it should be influenced by something dynamic
<infinisil>
The second way is to just run a dynamically changeable script at startup which adjusts services, e.g. `systemctl stop`ing them. Above idea is much nicer though
Okinan has quit [Quit: Konversation terminated!]
toppler has joined #nixos
toppler has quit [Ping timeout: 268 seconds]
<wedens>
does iohk/haskell.nix have a cache?
Ariakenom_ has joined #nixos
<bo0tzz>
I think I'm still missing something getting this working. My old workflow is to use nix-shell to start a shell with the tools I need for my development (pipenv, yarn, etc). This is the context where I was having the issue with the attrs dependency. Using nix run like FRidh mentioned does fix the attrs issue, but I can't figure out how to reproduce
<bo0tzz>
my earlier workflow - now pipenv complains about 'no module named virtualenv', even when I add it explicitly to the nix run.
<FRidh>
bo0tzz: the virtualenv you've added with nix run won't be visible to pipenv, that's is expected behavior
<bo0tzz>
Yeah I figured as much
<bo0tzz>
As you can probably tell I'm not super well versed in all this so it's mostly trial and error for me. Any suggestion how I would recreate the workflow like I had with nix-shell?
musteresel has joined #nixos
<FRidh>
bo0tzz: it's not particularly trivial either :) What do you mean with "recreate"? If you ensure you are in a new shell, then what you did before should break in the same way again. Just make sure there is no state kept (like a pipfile/virtualenv)
toppler has joined #nixos
br_ has joined #nixos
<musteresel>
Hi ... is there a way to get a stdenv which has more than one compiler available? Specifically I'm looking for a way to get multiple crosscompilers into a single stdenv ... so that there's e.g. arm-none-eabi-g++ and i686-elf-g++ (and possibly more) available?
tmaekawa has quit [Quit: tmaekawa]
<bo0tzz>
Here's the shell.nix I was using earlier, it might clarify things. The way I used this is with nix-shell, to drop me into a shell where I have access to all these dependencies to let me do my development. (https://gitlab.com/snippets/1903836)
<bo0tzz>
So AFAIK I need state to be kept, because I want a virtualenv for my python shenanigans
toppler has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @flokli pushed commit from @risicle to release-19.09 « imagemagick: 6.9.9-34 -> 6.9.10-68 (security) »: https://git.io/Je8W9
lunik1 has joined #nixos
<{^_^}>
[nixpkgs] @FRidh opened pull request #71118 → WIP Python: use NIX_PYTHONPATH everywhere instead of PYTHONPATH → https://git.io/Je8WQ
br_ has quit [Ping timeout: 268 seconds]
toppler has joined #nixos
<lunik1>
is there a way to declaratively perform a "nix-store --add-root"?
hyper_ch2 has quit [Remote host closed the connection]
hyper_ch2 has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
<FRidh>
bo0tzz: pipenv propagates the python interpreter, which has a setup hook that sets PYTHONPATH. There is no way around it really when using nix-shell as it is now. Essentially, it's a bug that we propagate Python.
<infinisil>
wedens: Yeah https://hydra.iohk.io/ and public key hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= , haven't tried it myself though
iqubic has quit [Ping timeout: 276 seconds]
<bo0tzz>
Damn, too bad. I believe #71118 that you just opened is the fix for that?
<musteresel>
infinisil: Cool, yeah that would be usefull
toppler has quit [Ping timeout: 240 seconds]
<musteresel>
for the record, regarding my above query for multiple crosscompilers in a stdenv: using pkgsCross.arm-embedded.stdenv.cc and pkgsCross.i686-embedded.stdenv.cc as nativeBuildInputs seems to work fine
<jonge[m]>
hi there. i have a hydra channel here on some jobset that lists a set of packages as available on the channel page. the channel should have many more packages, but somehow the channel doesn't list them. in `$hydra/src/lib/Hydra/Base/Controller/NixChannel.pn` you can see how it filters those packages, but i don't understand what the perl code does. what is the criterion for a package to be selected for the channel package
<jonge[m]>
list?
<lunik1>
tilpner : but I am trying to add a file needed by one of those dependencies, when you install input-fonts it asks you to fetch the zip and manually add it to the nix store
<tilpner>
lunik1: That's probably for legal reasons
<tilpner>
lunik1: You can .overrideAttrs it to use any src you want
<tilpner>
Oh, you just need to pay for it
<tilpner>
Or agree to the custom license
Izorkin has joined #nixos
<tilpner>
So you could do that manually, then store the download in your config
<tilpner>
And do .overrideAttrs (old: { src = ./thing-you-downloaded; })
<{^_^}>
[nixpkgs] @thoughtpolice pushed commit from @dywedir to master « hyperfine: 1.6.0 -> 1.8.0 »: https://git.io/Je8lQ
orivej has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
musteresel has quit [Ping timeout: 245 seconds]
cosimone has joined #nixos
toppler has joined #nixos
romildo has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
<pbb>
mabel: congrats on PCIe passthrough
vgnalizliz has joined #nixos
<vgnalizliz>
all: how does nix-env knows which package is latest?
<vgnalizliz>
like where in the code does it evaluate which version of the evaluation is the latest
<vgnalizliz>
I cannot find it anyehere
<pbb>
My gitlab backups are failing since one of the recent changes, any idea why? https://termbin.com/ugqb (talyz maybe?)
br_ has joined #nixos
<pbb>
vgnalizliz: depends on how you install something. "nix-env -iA" just follows the path you specify on the nixpkgs attribute set, so it will not even always choose the latest one
<{^_^}>
[nixpkgs] @teto pushed to master « luaPackages.luacov: init at 0.13.0-1 »: https://git.io/Je8lp
toppler has joined #nixos
<romildo>
In NixOS configuration.nix what is a good way of setting a link to ${kde-cli-tools}/libexec/kf5/kdesu in a directory listed in $PATH (/run/current-system/sw/bin, for instance)?
<pbb>
romildo: for all users or only for your user?
<vgnalizliz>
pbb: but how does it know the latst one?
<pbb>
vgnalizliz: take a look at pkgs/top-level/all-packages.nix
<vgnalizliz>
so that is the latest channel has only one?
<pbb>
no, but there is one attribute called "ruby" for example
<pbb>
there's ruby_2_4, ruby_2_5, ruby_2_6 and ruby. ruby points to ruby_2_6 right now, but it doesn't always have to be the latest version of the software
<inkbottle>
adisbladis: it worked. But why did "nix search node2nix" failed to return any result?
toppler has quit [Ping timeout: 240 seconds]
ddellacosta has joined #nixos
<andi->
,locate bin ar
<{^_^}>
Found in packages: swift, binutils-unwrapped
<waleee-cl>
inkbottle: I think you get similar results for all packages that is included in a package set (ie. nodePackages, haskellPackages ocamlPackages ...)
<adisbladis>
inkbottle: Because `nix search` doesn't recurse into nodePackages
<ar>
currently at work
<adisbladis>
:D
<ar>
(in southern part of Warsaw, poland)
<adisbladis>
andi-: There you go ^
asymptotically has quit [Quit: Leaving]
<romildo>
pbb, it worked and kdesu now can be found in path. Would it be a good idea to have kde-cli-tools as a dependency to "foo"?
<romildo>
pbb, shouldn't it be listed explicitly as a dependency?
<pbb>
romildo: there is no such concept in nix, the derivation output is scanned for references to other store paths, and because the symlink contains the store path of kde-cli-tools, it is a dependency
philr has quit [Ping timeout: 276 seconds]
<adisbladis>
inkbottle: We could change it and we do for some package sets (like plasma/gnome etc)
toppler has joined #nixos
<inkbottle>
adisbladis: exactly what I was thinking about
<romildo>
pbb, ok. Thank you for helping me.
<pbb>
you're welcome
<adisbladis>
inkbottle: Iirc the only reasons we don't recurse is performance
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
romildo has quit [Ping timeout: 265 seconds]
toppler has quit [Ping timeout: 264 seconds]
Heirlung has joined #nixos
<talyz>
pbb: Huh, that's strange - they're working fine on my end.. I'll have to take a closer look at your log.
toppler has joined #nixos
<pbb>
talyz: maybe it's ee vs ce?
<inkbottle>
Considering I've already installed 'node2nix', how can I simplify the following command? nix run nixpkgs.nodePackages.node2nix -c node2nix --nodejs-10 -i node-packages.json # https://discourse.nixos.org/t/bs-platform-install/1520/5
<inkbottle>
It has to start with "nix run"...
<pbb>
why?
<inkbottle>
But I don't know what to put next
<pbb>
I would do 'node2nix --nodejs-10 -i node-packages.json'
Ariakenom_ has joined #nixos
<inkbottle>
pbb: but then it wouldn't be in a "nix-shell" like environment?
<inkbottle>
maybe I'm mistaken
toppler has quit [Ping timeout: 268 seconds]
<pbb>
inkbottle: does it have to be?
mog has joined #nixos
<pbb>
if you've already got node2nix installed why would you use nix run or nix-shell?
orivej has quit [Ping timeout: 265 seconds]
<inkbottle>
pbb: because it's good practice to have things installed locally? Or not installed at all, though temporarily available in the current environment?
br_ has joined #nixos
<inkbottle>
I'm new to nixos and a bit confused; but that "environment" thing seems very sound
toppler has joined #nixos
Ariakenom_ has quit [Quit: Leaving]
<pbb>
inkbottle: if you want to run your command in an environment where only the specified things are installed, you don't have to keep them installed
Ariakenom has joined #nixos
<pbb>
you can do both, but it doesn't really make sense to use nix run or nix-shell when having the package installed in your environment
<pbb>
so either keep it installed and don't use nix run, or uninstall it and do use nix run like you did before
<{^_^}>
[nixpkgs] @Synthetica9 opened pull request #71125 → idris2: init at unstable-2019-10-13 → https://git.io/Je84m
<inkbottle>
pbb: you mean uninstall "node2nix"?
<pbb>
yes
<inkbottle>
ok
<pbb>
I personally use nix-shell for things like node2nix
<pbb>
but there is not a wrong way
br_ has quit [Ping timeout: 265 seconds]
<mog>
does anyone know if gnome 3.34 will be backported to 19.09? i saw that it has made it into unstable
<adisbladis>
mog: Unlikely
<inkbottle>
pbb: I'll try like that for the present (nix run...); thanks
<adisbladis>
(I would even dare to say "No")
toppler has quit [Ping timeout: 245 seconds]
<mog>
im having issue with 19.09 where it crashes after unlocking my desktop randomly so wanted to try lastest code first before trying to get a bug fixed in gnome that might already be fixed
<pbb>
talyz: I tried to reproduce the gitlab backup issue in a VM and got a segmentation fault :O
<sevanspowell>
I have this package which has some test suites that rely on the library (of course). If I run “cabal new-test” I get an error, failing to load “:set -package xxx” in a doc test. Now, if I run “cabal new-build ; cabal
<sevanspowell>
*”cabal new-build; cabal new-test” it works.
<exarkun>
Does setting up `security.acme` just magically make everything work? I don't have to write an apache configuration file or install some nginx modules or anything?
<sevanspowell>
How do I make those resources produced by the initial cabal new-build available to the tests in a mix derivation?
toppler has joined #nixos
veske has quit [Quit: This computer has gone to sleep]
<infinisil>
exarkun: There needs to be something to verify you have control over the server, so you need a web server (there's also a dns version, but that's not implemented afaik)
toppler has quit [Ping timeout: 265 seconds]
<exarkun>
infinisil: Oh. So I *do* need nginx or apache or something like that.
<infinisil>
enableACME from nginx does all of it automatically
<duairc>
Is there any way to expand a glob expression to a list of paths from within nix?
<duairc>
I mean, without doing it the hard way...
br_ has quit [Ping timeout: 268 seconds]
toppler has joined #nixos
toppler has quit [Ping timeout: 250 seconds]
orivej has joined #nixos
rauno has quit [Ping timeout: 245 seconds]
ixxie has joined #nixos
<{^_^}>
[nixpkgs] @flokli opened pull request #71127 → virtualbox: discover extension packs at runtime → https://git.io/Je8B3
toppler has joined #nixos
br_ has joined #nixos
toppler has quit [Ping timeout: 265 seconds]
br_ has quit [Ping timeout: 245 seconds]
toppler has joined #nixos
Ariakenom_ has joined #nixos
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]
toppler has quit [Ping timeout: 268 seconds]
troydm has joined #nixos
Ariakenom has quit [Ping timeout: 240 seconds]
troydm has quit [Client Quit]
toppler has joined #nixos
troydm has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
endformationage has joined #nixos
Guest86993 has quit [Ping timeout: 250 seconds]
Zer0xp has quit [Ping timeout: 250 seconds]
hyper_ch2 has quit [Remote host closed the connection]
toppler has joined #nixos
<tetdim>
sudo nix-channel --update
<tetdim>
while setting up the build environment: executing '/usr/bin/bash': No such file or directory
<tetdim>
unpacking channels...
<tetdim>
:L
<tetdim>
it do tho wthg
br_ has joined #nixos
mexisme has joined #nixos
veske has quit [Quit: This computer has gone to sleep]
toppler has quit [Ping timeout: 265 seconds]
adamt has quit [Ping timeout: 240 seconds]
<avn>
Folks, in nixos modules, option type 'lines' is ok, if I want merge _section_ of ini style configs?
veske has joined #nixos
domogled has joined #nixos
mexisme has quit [Ping timeout: 276 seconds]
logzet has quit [Quit: No Ping reply in 180 seconds.]
toppler has joined #nixos
br_ has quit [Ping timeout: 276 seconds]
<Twey>
How do people figure out which things are taking all the space in their Nix store? Something like ncdu but with the dependency graph instead of directory tree?
logzet has joined #nixos
<{^_^}>
[nixpkgs] @stigtsp opened pull request #71128 → perlPackages.CryptScryptKDF: init at 0.010 → https://git.io/Je8Ra
<red[m]>
I have glusterfs completely removed from my configuration.nix, and I verified that I can't see any of the binaries etc from any of my sessions
toppler has quit [Ping timeout: 240 seconds]
<red[m]>
but when I execute a nix-shell '<nixpkg>' -A bareos
NickHu_ is now known as NickHu
<red[m]>
it seems to get incorperated into it
<red[m]>
I guess bevause it's listed in the buildInputs section of the expression for bareos
<red[m]>
(makes sense so far)
<red[m]>
However... in the configureFlags section - there is a section for glusterfs which says:
Heirlung has quit [Quit: ZNC 1.6.5+deb1+deb9u2 - http://znc.in]
<devalot>
In hackage-packages.nix, why do some package releases get their own attributes (e.g., lens_4_18 vs. lens)? When testing my packages with new dependencies I have to dig through this file to figure out what attributes to use. Is there a better way or am I doing something wrong?
is_null has quit [Ping timeout: 250 seconds]
<fresheye1>
devalot: does callCabal2nix not work for you?
boxscape has joined #nixos
pop_ has joined #nixos
pop_ has quit [Client Quit]
Heirlung has joined #nixos
<red[m]>
wedens: where would I put that?
<infinisil>
devalot: Sometimes additional versions are needed, not only the defaults. This gets manually specified in nixpkgs configuration-hackage2nix.yaml file, which is then used to generate hackage-packages.nix
<devalot>
fresheye1: Good question. Maybe I'm doing this backwards, updating my nix file first, then cabal. If I edit my cabal file first maybe cabal2nix will do the right thing.
boxscape has quit [Remote host closed the connection]
<fresheye1>
devalot: I don't recommend using that tool
<fresheye1>
it generates fresh .nix file every time
doublex has quit [Ping timeout: 245 seconds]
<fresheye1>
if you use callCabal2nix the nix function
toppler has quit [Ping timeout: 240 seconds]
<fresheye1>
then you should just be able to update the .cabal file and that's it
<fresheye1>
it will stay in sync because it parses at build time
<wedens>
red[m]: in an overlay. for example, `nixpkgs.overlays = [ (self: super: { bareos = super.bareos.override { glusterfs = null; } }) ];`. note that it'll result in bareos compilation
<devalot>
Well darn, I didn't even know about that!
noudle has joined #nixos
NickHu is now known as NickHu__
<devalot>
I had my own build-time wrapper around cabal2nix
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @thoughtpolice pushed 2 commits to master: https://git.io/Je800
NickHu__ is now known as NickHu
<{^_^}>
[nixpkgs] @Flakebi opened pull request #71130 → Add vim plugins vimfiler-vim, lexima-vim and vim-manpager → https://git.io/Je802
toppler has joined #nixos
br_ has joined #nixos
<fresheye1>
is docker down this morning?
freeman42xx has joined #nixos
wfranzini has quit [Remote host closed the connection]
<fresheye1>
clever: so in regards to the broken pipe issue
<fresheye1>
doing a nix-store --gc on both boxes resolved it
popfizz has quit [Quit: popfizz]
popfizz has joined #nixos
<fresheye1>
that leads me to believe that something got corrupt in nix-stores knowledge of what it has and what others have
<clever>
fresheye1: nix-store --verify --check-contents, would have told you what was corrupt
popfizz has quit [Client Quit]
<fresheye1>
clever: that was my next question
<fresheye1>
ok
popfizz has joined #nixos
<fresheye1>
clever: is there a way to do that proactively?
<fresheye1>
is there a command to repair the store when that happens?
toppler has quit [Ping timeout: 268 seconds]
<Ericson2314>
@tetdim I'll be at a desk in < hour
<clever>
fresheye1: nix-store --repair-path
<clever>
fresheye1: or just nix-store --delete the path that is corrupt, dont force it
<fresheye1>
clever: is there abig hammer version of this?
<fresheye1>
I would like to run this at midnight for example to prevent issues
<clever>
fresheye1: nix-store --verify --check-contents --repair, i think
popfizz has quit [Client Quit]
br_ has quit [Ping timeout: 250 seconds]
popfizz has joined #nixos
<devalot>
fresheye1: So, callCabal2nix runs cabal2nix, which sees I have a dependency on lens, and the file it generates uses the `lens' attribute when what I really want is `lens_4_18'. That's the problem that I'm having.
<clever>
devalot: usually when it causes major breaking changes, and some people refuse to update their code
<{^_^}>
[nixpkgs] @7c6f434c pushed to release-19.09 « Merge pull request #69366 from erosennin/gajim-setuptools »: https://git.io/Je80j
<pikajude>
locale
<pikajude>
whoops, sorry
<devalot>
clever: So it's a manual process? i.e. someone manually decides we need the separate attribute?
<clever>
devalot: yeah
<devalot>
I'm curious because it adds a small amount of overhead when doing package maintenance.
<clever>
devalot: only when the package isnt updating to the "latest" version of libraries
<duairc>
I'm also doing Haskell nix things right now, and a shell.nix I copied from somewhere ends with drv.env, where drv is ultimately the derivation that callCabal2nix makes. My question is, what is env? Can I look inside it? And is it recursive? Is there an env.env (not literally but something like that)?
toppler has quit [Ping timeout: 240 seconds]
<devalot>
duairc: env is for dropping into a nix-shell with all the deps present.
<fresheye1>
but you can also just switch your shell to an env
<devalot>
fresheye1: ?
<fresheye1>
devalot: so nix-shell puts you into an env
<fresheye1>
but if you are on nixos you are always in an env of some kind
<devalot>
Right.
<fresheye1>
your user space config is an env
<duairc>
What I'm asking is, can I look at the envs of those dependencies in turn? Basically, I have a Haskell project that depends on a bunch of libraries that live in the same repo. With cabal this is managed with cabal.project. I want to drop into a nix-shell which has the dependencies of all of those dependencies built and ready, but not those dependencies themselves.
<fresheye1>
some people make a python env and switch to it globally for example
<devalot>
I use direnv so each shell is in the correct env.
<fresheye1>
I don't think that actually works the way it needs to
<clever>
devalot: create a default.nix, that overlays haskellPackages, and uses callCabal2nix to initialize every library
<fresheye1>
env may also run a shellHook
<clever>
devalot: then make a shell.nix in each subdir, that basically does (import ../).foo.env
<fresheye1>
direnv does not fully replicate an env
<clever>
direnv just automates changing things when you cd, to obey each shell.nix
<fresheye1>
only in terms of env vars though
<fresheye1>
no shellhook
lunik1 has quit [Remote host closed the connection]
<devalot>
fresheye1: You could make it eval the shellHook after `use nix' if you needed to.
asymptotically has joined #nixos
br_ has joined #nixos
<fresheye1>
AAAAGGGH
<fresheye1>
BROKEN PIPE IS BACK
<clever>
fresheye1 verify all the things!
toppler has quit [Ping timeout: 240 seconds]
<duairc>
clever: I'm not sure that quite does what I'm saying. I already have something similar to that. I want to have a single shell.nix for all the projects that gives me the combined "env" of all of the libraries, minus the libraries themselves
<clever>
duairc: ah, you cant easily combine the .env's together, because each one has its own ghc
<fresheye1>
question
<fresheye1>
where is the hash of the contents stored?
<fresheye1>
I know the path is a hash of the input not the output
<clever>
fresheye1: in the sqlite db
<fresheye1>
ok
<duairc>
clever: Okay. It doesn't have to be literally the combination of the envs, but if I could make a derivation such that the env of it would give me what I wanted, that would work too. I guess I just don't really know enough about what a derivation actually "is" if it's possible to introspect them in the way that I need
<clever>
fresheye1: what about the nix-store -r command i gave yesteray?
popfizz has joined #nixos
knupfer has joined #nixos
cinimod` has joined #nixos
<cinimod`>
NickServ identify cinimod b1n1m3lk
<clever>
cinimod`: time to change your passowrd again, may i sudjest hunter2?
<cinimod`>
hunter2?
<devalot>
duairc: What I would do is use haskellPackages.override to build a final package set that includes all of your packages, then use that to pluck out an environment containing the packages you want.
<AmandaC>
Any ideas on why `nix-collect-garbage` seems to just hang on my VM? It gets to "deleting '/nix/store/trash'" then never does anything else
<red[m]>
so, if something has been marked as broken and has no maintainer - I guess that means someone can just pick it up?
<srhb>
AmandaC: Are you sure it's not progressing? If you see resources being used by the daemon, I'd wager it's just expensive.
<red[m]>
This is why I ask.
<red[m]>
The problems are specific to a specific use flag
<red[m]>
so if I remove that flag is will compile
jdahm has joined #nixos
<red[m]>
so if I remove that option from the package, and unmark it as broken, and add myself as a maintainer - what's the likelyhood of it being accepted?
<cinimod`>
clever: very amusing
<AmandaC>
srhb: not sure how to check? Worth noting, I'm running `nix-collect-garbage` as root, so I don't think it's talking to nix-daemon -- could that be what's causing problems?
br_ has joined #nixos
<srhb>
red[m]: I'd say yes, PRs definitely welcome. You can always see if some previous committer to the package in question has an opinion :)
<srhb>
AmandaC: If the daemon is running it should still be the one doing the collecting. And I'd just check cpu usage via top or something like that. :)
<red[m]>
The package changed from configure to using cmake
<red[m]>
so the whole thing needs to be re-written for the next time the package is bumped
toppler has joined #nixos
<cinimod`>
clever: fortunately I only used that crappy password here
<red[m]>
but that's going to take a whole while longer in comparison
<fresheye1>
permission denied
<red[m]>
so I'm going to aim for both
<srhb>
red[m]: Sounds like a plan. :)
freeman42xx has joined #nixos
<red[m]>
so - since I wouldn't be changing the application version but the version of the expression - does the version change?
<AmandaC>
Hrm. It's doing stuff, it seems, just not outputting any progress. on my laptop and macbook it's pretty much instant once it finishes that part
<red[m]>
ie: 17.2.2 yp 17.2.2-1
<red[m]>
or something of that ilk?
<AmandaC>
oh. That might be it: [root@lilac:~]# ls /nix/store/trash/ | wc -l: 565
<red[m]>
or do we not expose version changes in expressions?
<fresheye1>
connection refused
<symphorien>
I have never seen a version bump just because the expression changed, red[m]
feep_ is now known as feep
<clever>
AmandaC: is the size of trash going down?
<red[m]>
Thanks - that helps a ton
<AmandaC>
Yup
<red[m]>
I'll submit a PR and see what happens...
<fresheye1>
running ssh nix-ssh@192.168.1.10 nix-store -r /nix/store/pkrha18v6swrnw91an556217k9ir8wrp-SHA-1.6.4.4-doc as root
<srhb>
red
<srhb>
Woops.
<AmandaC>
I guess running hydra generates more trash, which makes sense, thinking on it
<clever>
fresheye1: what does that output?
cinimod` has left #nixos ["ERC (IRC client for Emacs 26.1)"]
cinimod` has joined #nixos
justanotheruser has quit [Ping timeout: 265 seconds]
<fresheye1>
apparently I just can ssh in one direction now
<fresheye1>
not sure why
br_ has quit [Ping timeout: 265 seconds]
byrn has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
dbmikus has joined #nixos
Synthetica has quit [Quit: Connection closed for inactivity]
toppler has joined #nixos
<cinimod`>
I have an overlay which uses callCabal2nix - this generates a function with parameters (is this the correct nix terminology) sundials_arkode and sundials_cvode - I'd like to replace these somehow like `foo { sundials_arkode = sundials; sundials_cvode = sundials }`
<clever>
cinimod`: the {} at the end, functions just like the {} in callPackage
<clever>
cinimod`: and you can use it to override any param
<fresheye1>
where the client expeirenced broken pipe
toppler has quit [Ping timeout: 240 seconds]
<clever>
everything is normal there
<fresheye1>
I know
<clever>
fresheye1: try again, with strace on the copy-closure
<clever>
and repeat until the error happens
ajs124 has joined #nixos
wildtrees has joined #nixos
wildtrees has quit [Remote host closed the connection]
wildtrees has joined #nixos
toppler has joined #nixos
<jdahm>
I'm trying to make a nix-shell environment that has a specific version of clang and libraries (6), I have this https://hastebin.com/tomixuloli.txt but it doesn't install the clang libraries, just the compiler. Does anyone know how to edit that to get all the libs?
<o1lo01ol1o>
I'm trying to build stackage2nix locally on darwin and keep getting `unable to access 'https://github.com/commercialhaskell/all-cabal-hashes.git/': SSL certificate problem: unable to get local issuer certificate` from nix-env -i, how can I get nix to find whatever it needs from cacert?
<fresheye1>
ok so failing again
<fresheye1>
when I run nix-copy-closure I /nix/store/hicisb7fxz6nnwksdna8piri7maznbag-conduit-extra-1.3.0-doc is not a valid path
ambro718 has joined #nixos
toppler has joined #nixos
br_ has joined #nixos
<{^_^}>
[nixpkgs] @serhiip closed pull request #71094 → universum 1.6.0 is no longer broken → https://git.io/Je8up
<fresheye1>
clever: ok I got a bunch of logfiles
br_ has quit [Ping timeout: 240 seconds]
<fresheye1>
from a broken pipe
<fresheye1>
arping has been stable
<fresheye1>
and I have the sshd from the server showing all is well
<clever>
fresheye1: can you pastebin the strace and sshd logs from the same time?
byrn has joined #nixos
<fresheye1>
clever: there are a ton of log files like 12 or so
toppler has quit [Ping timeout: 268 seconds]
Okinan has quit [Quit: Konversation terminated!]
<clever>
fresheye1: check the last-mod timestamps on them, and look for ECONNREFUSED
<gchristensen>
every package which has tests should use checkPhase to run them (like `make test`) it isn't required, and is sometimes disabled, but it is a good idea to have one
<Athas>
Doesn't it just make installation take a lot longer?
<pikajude>
if there's a testsuite, yes
toppler has joined #nixos
<gchristensen>
it makes build time take longer, but usually, with the binary cache, build time is not the same as installation time
<aswanson>
it makes build take longer, but if the binary is cached it won't matter for the rest of us
<gchristensen>
^
<gchristensen>
but what is the point of installing a package if it doesn't work
<Athas>
A package that refuses to install will never be less usable than a package that installs.
<Athas>
I'm just a bit frustrated after fighting flakiness in the ispc checkPhase (doubly so because this is not a package anybody except me is likely to care about).
<gchristensen>
if the test suite is bad, it can be disabled
<gchristensen>
or better, individual flaky tests can be disabled through patching the test suite
<simpson>
Athas: Totally understandable. `doCheck = false;` is not a sin. Checks merely improve the reliability of software, in general; if they don't help for a specific package, don't do them.
<fresheye1>
clever: the string "broken pipe" appears in logfiles.19720
<clever>
fresheye1: on which line#?
sigmundv has quit [Ping timeout: 245 seconds]
<pikajude>
one thing i do occasionally do is disable testsuite for haskell packages because the version constraints on their dependencies are wrong
<fresheye1>
22291
<Athas>
I can understand the purpose of checkPhase for packages that have been modified in subtle ways for Nix, or interact with the overall system in complex ways, but for simple leaf binaries I'm doubtful...
<clever>
ah, i was doing a case sensitive search for broken, but its Broken!
br_ has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
xwvvvvwx has quit [Ping timeout: 240 seconds]
byrn has quit [Quit: WeeChat 2.6]
<clever>
fresheye1: the logs are useless, you didnt run it as root, so nix-daemon did all the work
<clever>
fresheye1: delete the logs and start over as root
<AmandaC>
clever: what's the IP that your qemu build slave script comes up under, again?
<clever>
AmandaC: it uses port 2200 of 127.0.0.1
drakonis_ has quit [Ping timeout: 245 seconds]
br_ has joined #nixos
<AmandaC>
ah
idf has quit [Ping timeout: 240 seconds]
<clever>
AmandaC: you also have to `systemctl start sshd` inside the qemu window, i need to flip that back to auto
xwvvvvwx has quit [Read error: Connection reset by peer]
<AmandaC>
Huh. That's odd: `error: a 'i686-linux' with features {} is required to build '/nix/store/hr725l9chsrpf5b3sh3g0ln8iba41qy0-glib-2.62.0.drv', but I am a 'x86_64-darwin' with features {benchmark, big-parallel, nixos-test}`
toppler has joined #nixos
<clever>
AmandaC: you need to add an i686-linux build slave to /etc/nix/machines
<clever>
AmandaC: aimed at 127.0.0.1:2200
feep has quit [Ping timeout: 250 seconds]
<clever>
and the file format doesnt allow a :, so you must use a name, and then use ~/.ssh/config to override the port/host on that name
feep has joined #nixos
drakonis_ has joined #nixos
xwvvvvwx has joined #nixos
<AmandaC>
I'm not sure where the i686-linux is coming from, your `system` bit sets it to x86_64-linux
xwvvvvwx has quit [Read error: Connection reset by peer]
<waleee-cl>
wasn't the issue with git using the X ask-password-dialog resolved ages ago?
<selfsymmetric-pa>
I'm doing a `buildStackProject`. One of the dependencies requires `autoreconf`. I have `autoconf` in my `buildInputs`, which `nix-locate` claims to provide `autoreconf`, but the Nix build still outputs `./autogen.sh: line 3: autoreconf: command not found`.
<selfsymmetric-pa>
Where am I going wrong?
br_ has joined #nixos
doublex has quit [Read error: Connection reset by peer]
<lunik1>
how do you all include external programs that provide functionality to a text editor e.g. language servers in your config?
<talyz>
pbb: well, it looks like you're on ee, which is what I'm running too.. I guess it could be something in the state directory leftover from an old release causing this..
<selfsymmetric-pa>
Now, not everybody on the project uses Nix. I'm on NixOS. Is it reasonable to maintain nix as an opt-in workflow? Or does setting `nix:` in the stack file commit everyone to using Nix?
<clever>
stack only obeys that if you use `stack --nix`
<selfsymmetric-pa>
Great. I'll give that a shot, thank you.
<clever>
selfsymmetric-pa: ~/.stack/config.yaml can make nix the default
<selfsymmetric-pa>
For the user. That's great.
MinceR has quit [Ping timeout: 240 seconds]
<selfsymmetric-pa>
Here goes...
br_ has quit [Ping timeout: 240 seconds]
wedens has quit [Quit: Connection closed for inactivity]
o1lo01ol1o has joined #nixos
dbmikus_ has joined #nixos
MinceR_ is now known as MinceR
benny has joined #nixos
benny is now known as Guest43477
dbmikus has quit [Ping timeout: 250 seconds]
toppler has joined #nixos
wfranzini has quit [Remote host closed the connection]
Guest43477 is now known as benny
wfranzini has joined #nixos
o1lo01ol1o has quit [Ping timeout: 265 seconds]
mthst has joined #nixos
fendor has joined #nixos
<selfsymmetric-pa>
clever: Okay, neat this time it failed on `zlib`.
toppler has quit [Ping timeout: 265 seconds]
fendor has quit [Remote host closed the connection]
<selfsymmetric-pa>
Oh, typo. I have `clib` in my `builtInputs`. XD
<LouisDK>
I have to combine these two call packages in all-packages.nix:mythtv = libsForQt5.callPackage ../applications/video/mythtv { };mythtv = callPackage ../applications/video/mythtv { libXNVCtrl = linuxPackages.nvidia_x11.settings.libXNVCtrl; };
ng0 has quit [Quit: Alexa, when is the end of world?]
dbmikus_ has quit [Ping timeout: 268 seconds]
br_ has quit [Ping timeout: 250 seconds]
toppler has joined #nixos
<Moredread[m]>
I meant the derivations for them. I have the suspicion that creating them while downloading packages could safe some time. Currently it looks like Downloading/building packages -> Creating file derivations is done sequentially
<selfsymmetric-pa>
clever: It works! `automake` and `autoreconfHook` together did the trick.
<selfsymmetric-pa>
clever++
<{^_^}>
clever's karma got increased to 216
drakonis has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos
drakonis has joined #nixos
<infinisil>
Moredread[m]: Nix needs to build all dependencies first before it can build a derivation
justanotheruser has quit [Ping timeout: 250 seconds]
<infinisil>
And it does this is a pretty good way already. If there was an easy way to just shuffle some things around this would've been done already probably
toppler has quit [Ping timeout: 240 seconds]
<sondr3>
I'll just ask again: question, where does `nix search` get its content from?
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
<eri>
I'd like to use otr in my weechat on my nixos desktop but even after installing the required dependencys with nix-env -i nix-env -iA nixos.python27Packages.potr (and 37) I cannot load that script
<eri>
since it cannot find the module
<eri>
what should I do?
<Moredread[m]>
infinisil: I'm not sure I fully understand why e.g. the systemd unit files can't be created in parallel with building the packages. Does nix enforce that all dependencies for a derivation are built first, even if "only" the path of the dependency is needed?
<infinisil>
Moredread[m]: Yeah it does, because there's no way to figure out when it's needed, maybe at build time, maybe at runtime
<infinisil>
Maybe both
toppler has joined #nixos
<infinisil>
Moredread[m]: Although, this touches upon an idea that's been going around a couple times. Namely for Nix to intersect syscalls to read /nix/store files, and only at that time build them
<infinisil>
With this, derivations could be built lazily on-demand
eri is now known as eri451
<Moredread[m]>
infinisil: ok that makes sense...
doublex has quit [Ping timeout: 240 seconds]
<eri451>
I'd like to use otr in my weechat on my nixos desktop but even after installing the required dependencys with nix-env -i nix-env -iA nixos.python27Packages.potr (and 37) I cannot load that script since it cannot find any python modules what should i try next?
fendor has quit [Remote host closed the connection]
LouisDK has quit [Remote host closed the connection]
fendor has joined #nixos
<eri451>
hm... so plugins of user programs have to be build in?
<infinisil>
At least the dependencies yes
<eri451>
claws-mail is working just fine
<eri451>
whats differend there?
<gchristensen>
anyone running NixOS on a QNAP TS-451+?
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/Je8av
Lears has joined #nixos
<infinisil>
eri451: No idea how that's related, I don't know what claws is
<infinisil>
Oh a weechat plugin?
<eri451>
kind of
<eri451>
it's a mail client
<eri451>
where stuff like gpg is a plugin
<infinisil>
Well presumable all dependencies are already included by default
<eri451>
i was able to load that just as usual
<infinisil>
s/presumable/presumably
<eri451>
aha
<eri451>
well but how do i use the python package then?
toppler has joined #nixos
<infinisil>
eri451: Did you look through the wiki page?
freeman42xx has joined #nixos
<eri451>
import potr in a python shell results in the same error
shibboleth has quit [Quit: shibboleth]
freeman42x has quit [Ping timeout: 250 seconds]
noudle has quit []
br_ has quit [Ping timeout: 265 seconds]
<eri451>
well repackageing the plugins and weechat into a package ... does nixos have to be that hard?
doublex has joined #nixos
<__red__>
ping shlevy - you about?
<infinisil>
eri451: Whether this needs to be done? No but yes. If installing packages with nix-env would allow you to change dependencies of packages we arrive at what every other distro does, ending up with problems when you need to install multiple versions and such
toppler has quit [Ping timeout: 268 seconds]
<infinisil>
eri451: But whether this needs to be this hard? No, the interface could be simpler
raduom has quit [Ping timeout: 240 seconds]
<eri451>
I just imagine a system with more users then just me
<eri451>
like a login system
<eri451>
were some users use a lets say irc client
<__red__>
yeah - I saw that CVE - it's a doozy ;-)
toppler has joined #nixos
<__red__>
sudo -u\#-1 <command runs as root>
<__red__>
;-)
<__red__>
but there are specific conditions that have to me met for it to work
<__red__>
but it's still quite special
<clever>
for me, it asks for the normal pw before running the thing as root
<inkbottle>
When you do "nix run" you end up in a nested development environment, right? However it does not show on the prompt as it does with "nix-shell".
<clever>
__red__: ahhh, its for when you allow somebody to run x as anybody-but-root
<clever>
that just seems like a dumb way to set it up
<clever>
a lot of users are near-root power, and a blacklist is just a plain bad idea
<clever>
and a whitelist shouldnt allow -1, so no issue there
<{^_^}>
[nixpkgs] @worldofpeace opened pull request #71147 → More Gnome 3.34.1 → https://git.io/Je8VG
kp__ has joined #nixos
<inkbottle>
"nix-shell now sets the shell prompt (PS1) to ensure that Nix shells are distinguishable from your regular shells." But that doesn't apply to "nix run"? Why is that so? It gets me confused.
<kleisli>
and do you know of a better alternative for getting an external display working through the USBC port?
<kleisli>
a USBC port *
vesper11- has joined #nixos
vesper11 has quit [Ping timeout: 240 seconds]
toppler has joined #nixos
drakonis has joined #nixos
<gchristensen>
kleisli: thunderbolt with any security turned on is annoying (have to authorize it on plug-in), and also my display was quite big and I had a bad dual-link-dvi-to-mini-displayport adapter by Apple, and so it didn't register correctly most of the time and sometimes the colors were all wrong
br_ has joined #nixos
selfsymmetric-pa has left #nixos ["gone to the land of dead hiccups and extinguished light bulbs"]
strobelight has quit [Ping timeout: 268 seconds]
<red[m]>
So, I have someting I built with nix-build -I nixpkgs=. -A <pkgname>
<red[m]>
and I have a result in /nix/stotr
<red[m]>
err, store
<red[m]>
I thought I could just get it installed by doing a nix-env -i result
<red[m]>
am I wrong?
drakonis_ has quit [Ping timeout: 245 seconds]
toppler has quit [Ping timeout: 240 seconds]
<clever>
inkbottle: both nix-shell and nix run increment $SHLVL, so you could use an alternate PS1 that reveals $SHLVL
br_ has quit [Ping timeout: 240 seconds]
<clever>
inkbottle: that will also expose nesting sudo, sh, and bash
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
toppler has joined #nixos
jgeerds has quit [Ping timeout: 240 seconds]
<inkbottle>
clever: thanks
toppler has quit [Ping timeout: 268 seconds]
<inkbottle>
(I have to use Reasonml+React, which I never used before, preferably on that NixOS box, and I feel like light years away from having it working)
<inkbottle>
(presently reading Nix Pills, to see if that is helping)
sigmundv has joined #nixos
toppler has joined #nixos
doublex has joined #nixos
br_ has joined #nixos
freeman42xx has joined #nixos
toppler has quit [Ping timeout: 268 seconds]
br_ has quit [Ping timeout: 240 seconds]
anderslundstedt has quit [Ping timeout: 264 seconds]
<NoctisLabs>
Why doesn't NixOS use Bash 5 by default?
br_ has quit [Ping timeout: 240 seconds]
<simpson>
Probably will take a bit of an effort to test and ensure that everything works with it. Are there any compelling reasons to upgrade soon? It's sounded to me like, well, a major revision.
Soo_Slow has quit [Remote host closed the connection]
<bluefox83>
972 normal users? are we sure none of those are bots? O.o
mwelt has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
<jackdk>
Everyone here is a bot except for you.
drakonis has joined #nixos
<bluefox83>
lol
<mwelt>
hi. Some newby question: I installed nix on mac os and now I try to compile mu4e, which quits with missing glib2, gobject and gio.
<bluefox83>
that would be my luck, I finally figure out where this channel is and everyone turns out to be a bot..
<evelyn>
jackdk: NO BOTS HERE | PLEASE DO NOT EXCERCISE RIGHT OF REPLY
selfsymmetric-mu has quit [Remote host closed the connection]
<bluefox83>
O.o
<mwelt>
is there any basic build package I need to install?
<bluefox83>
mwelt: so you should probably install all of those...
<simpson>
mwelt: You probably want to write a Nix expression.
<simpson>
I checked nixpkgs, but I'm not sure what mu4e is, and it doesn't appear to already be packaged.
<mwelt>
bluefox83: I came up with this idea ca 1hr ago :) only glib2 package (not recognized by pkg-config after install) and no gobject and no gio package anyways
<bluefox83>
is there a build-essentials?
<mwelt>
simpson: mu4e is an emacs mail client :)
<jackdk>
bluefox83: nixpkgs stdenv comes with all the usual bits like make and stuff
* bluefox83
wonders if he's wrong about where he's wandered into...
<simpson>
bluefox83: Not really; you will generally want to ask Nix to build things for you, rather than building system packages on your own.
doublex has quit [Ping timeout: 240 seconds]
<simpson>
bluefox83: Hi! Welcome to #nixos. This channel is for Nix on any kernel, including NixOS and nixpkgs.
dbmikus__ has quit [Ping timeout: 240 seconds]
<mwelt>
simpson: thx very much for the link, but mu4e is no usual emacs package, it needs a standalone email indexing component additionally to some dot-el files.
<{^_^}>
[nixpkgs] @Ma27 pushed commit from @Vskilet to release-19.09 « matrix-synapse: 1.3.1 -> 1.4.0 »: https://git.io/Je8rQ
<simpson>
mwelt: I see. Well, `nix-shell -p gobject-introspection` might get you started, but there's no replacement for writing a proper Nix expression for a package.
<mwelt>
simpson: so basically i can write a nix-expression to build some random git / src repo?
<mwelt>
ok so i'll look into writing nix-expressions
toppler has quit [Ping timeout: 268 seconds]
<simpson>
mwelt: Yes. The nixpkgs manual is good reading. You can find similar packages in nixpkgs already, and imitate what they do. There's also a step-by-step tutorial: https://nixos.org/nixos/nix-pills/index.html
br_ has joined #nixos
bluefox83 has quit [Quit: leaving]
<mwelt>
simpson: thanks :) this pill guide will keep me busy for sometime
mbrgm has quit [Ping timeout: 276 seconds]
mbrgm has joined #nixos
toppler has joined #nixos
doublex has joined #nixos
br_ has quit [Ping timeout: 250 seconds]
noonien has quit [Quit: Connection closed for inactivity]