<sphalerite_>
and yes, it should be fairly simple to generate an epub from the pills too, they're written in docbook like the manuals
<mfiano>
He argues it doesn't make sense for Roswell on NixOS, but I don't think he is using it for anything more than managing multiple versions of Common Lisp implementations
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dotlambda pushed 4 new commits to python-unstable: https://git.io/vAKAw
<NixOS_GitHub>
nixpkgs/python-unstable d6e25bf Robert Schütz: home-assistant: pin astral version to 1.5
<NixOS_GitHub>
nixpkgs/python-unstable 31a9465 Robert Schütz: pythonPackages.stripe: add simplejson dependency for python 2
<NixOS_GitHub>
nixpkgs/python-unstable c5fab86 Robert Schütz: pythonPackages.astral: fix build
<ottidmes>
mfiano: No idea if it actually works, never used it or common lisp, but it at least compiles and matches what Arch Linux and the compile from source page says
smichel17 has joined #nixos
<mfiano>
ottidmes: Great. I'll just have to make a proper package out of it so I can deploy my config to a bunch of machines
pxc has quit [Ping timeout: 252 seconds]
<mfiano>
When I learn that part :)
<sphalerite_>
oh neat
ryanartecona has quit [Quit: ryanartecona]
BlessJah has quit [Ping timeout: 240 seconds]
humid has quit [Remote host closed the connection]
dhess has joined #nixos
<ottidmes>
mfiano: You might also add which and git, it uses which to determine git and git to determine its version, not sure if it actually is necessary, but without which you will get message about it missing during the build, and you can actually see it using git to determine the version, so I have added them as well
<Sonarpulse>
--indirect no longer works with nix-build?
<ryantrinkle>
nix-shell 1.11 had a feature (bug?) where you could do nix-shell path/to/some.drv, and it would enter the nix-shell for that drv without re-evaluating it
<Sonarpulse>
also that ^
<Sonarpulse>
shlevy: 2.0.1 time!
<ryantrinkle>
since evaluation of large nix expressions can take a few seconds, it's nice to avoid that evaluation
<Sonarpulse>
if its released before the nixpkgs master pr lands......that's good!
<ryantrinkle>
is it possible to do that some other way with the new nix-shell?
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #35695: swift: add include for <functional> (#35689) (master...fix/swift-gcc7) https://git.io/vA6TM
NixOS_GitHub has left #nixos [#nixos]
<abathur>
anyone around do much with python/pip?
<simpson>
Sure. I am very experienced at being grumpy at pip.
<abathur>
grin
<samueldr>
grumpip?
duckwho has joined #nixos
<abathur>
getting my bearings to set up development environments, and I got something that "works", but it seems like cheating, and after having some trouble with a few of the commonly-recommended tools
duckwho has quit [Client Quit]
<abathur>
so just trying to get a sense of what the pitfalls are with how I'm approaching it
pxc1 has joined #nixos
<elvishjerricco>
infinisil: Noticed that your https://github.com/Infinisil/system/ uses nixops. I'm curious how you deal with nixops state. Don't you always have to deploy from the same machine, meaning you can't make trivial system updates locally (except on the machine that has the state)?
<abathur>
so, setting up a python dev environment for a web app that doesn't have a setup.py or other python build config because it's just deployed to heroku via git
<abathur>
so I tried uh, I think it was pypi2nix first
<abathur>
and that choked on a private-repo dependency
<abathur>
so I moved on to pip2nix
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dtzWill closed pull request #33708: nginx: Add option for enabling pagespeed, option for additional modules (master...feature/nginx-pagespeed-nixos) https://git.io/vNY14
NixOS_GitHub has left #nixos [#nixos]
<abathur>
which worked with the private dependency, but seemed like it was oriented around the assumption that we would have a setup.py, I couldn't figure out how to specify a module at least
<abathur>
so I eventually fell back to one of the recommendations I've seen around, which was just mkDerivation with python, pip, and virtualenv
<simpson>
So if you don't have a setup.py, but you do have a list of dependencies, then you could `with pythonPackages; [ twisted treq ampoule ]` or whatever.
<abathur>
I have something along those lines, though including pip, virtualenv, and then with a shellHook to actually run 'pip install -r requirements.txt', start up postgres, etc.
<abathur>
I linked to a subsection in the python section of the manual, but I'm not really sure I understand the distinction it's making, aside from the use of the withPackages function?
<mckeankylej>
Hey all Im on a 2017 macbook pro and im trying to boot the nixos minimal unstable iso but when I boot into it the keyboard is unresponsive. Do I need to rebuild the iso with some kernel module? If so is it possible to cross compile the iso anyway?
<palo>
mckeankylej: do you have a usb keyboard, maybe this works.
<mckeankylej>
I dont I guess I could go get one
<palo>
I installed a linux a while a go on a macintosh, and I remembered similar problems.
<clever>
mckeankylej: is secure-boot turned off?
<palo>
But this was my only tip so far :D, I guess not really a help
<clever>
mckeankylej: oh wait, nvm, mixing things up
LT^ has joined #nixos
<clever>
mckeankylej: yeah, id find a usb keyboard
Supersonic has joined #nixos
fragamus has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jtojnar pushed 1 new commit to master: https://git.io/vA6Lw
<abathur>
gchristensen: I've been wondering, without much context for knowing if it makes architectural sense, if nix receives or seeks donations of off-peak cloud capacity for builds?
<ryantm>
I just PR kapacitor but didn't tell your bot to build it.
<jgt>
when I use "ghc802" it downloads all the pre-built stuff
<vaibhavsagar>
jgt: it's the ghc822 that's making a difference
<jgt>
but with "ghc822", it compiles everything
<vaibhavsagar>
because hydra isn't building all those packages
<clever>
yeah
<jgt>
vaibhavsagar: Right. Is there a way to know which packages Hydra is building?
dbmikus has joined #nixos
<vaibhavsagar>
that is an excellent question
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ryantm opened pull request #35744: fix maintainer name 'gavin' to match GitHub username (master...fix-gavin) https://git.io/vA6qg
NixOS_GitHub has left #nixos [#nixos]
<vaibhavsagar>
jgt: you can rely on anything in nixos-17.09 to be built by hydra
<gchristensen>
ryantm: we'll just need to hold off a minute before I'll know. everything is so backed up and I don't have adequate logging of the automatic schedulin7g.
<gchristensen>
but: it _SHOULD_ be auto-scheduling for you.
slyfox has quit [Ping timeout: 268 seconds]
slyfox has joined #nixos
<ryantm>
gchristensen: Ok, I'll hold off on asking for builds and if the PRs don't have builds when I wake up, I'll check in with you.
<gchristensen>
OK thanks!
<ryantm>
Sorry for backing up your server!
<gchristensen>
haha it is okay
Myrl-saki has quit [Read error: Connection reset by peer]
jtojnar has quit [Quit: jtojnar]
<gchristensen>
also, you're pushing record #'s of logs through the log collector
<ryantm>
stress test!
<gchristensen>
no kidding ;)
jgt has quit [Ping timeout: 240 seconds]
jtojnar has joined #nixos
<gchristensen>
tbh the #1 reason I'm spinning up extra capacity is so the system in the room by the bedroom will quiet down :)
<ryantm>
It can only figure out how to update packages that are in package-name/default.nix and have the old version available for download and the new version available for download, and I don't make a update branch unless the build completes on my NixOS machine
<gchristensen>
oh wow, cool
<abathur>
is there a common idiom/pattern for where to put things like postgres' datadir within a nix-shell? I see a number of people specifying it in their shell/default.nix, but no consistent location
<abathur>
is there a norm or a pattern regarding something like a database's storage path with nix-shell? it looks like the default is in /var/lib/postgres, but I assume with nix-shell I should be moving it into ~/ somewheres
<abathur>
not sure if I should be setting it distinctly per shell/default.nix or not
<Izorkin>
clever: hi. need create issue to nix 2.0?
<ryantm>
abathur: Does your shell start up postgre too?
<abathur>
yes, sorry, should have specified that
<abathur>
not defining the service, just in the local .nix
<ryantm>
abathur: I haven't done that before, and I don't know if there is a standard, but I would probably keep it in some hidden ignored directory of the project. You could also consider using some kind of chroot for your project?
pxc1 has joined #nixos
<ryantm>
gchristensen: yay it auto built kapacitor!
<gchristensen>
w00t
<abathur>
grin
<gchristensen>
ok finally the # of pending evaluations has started to go down instead of continuing up
<ryantm>
So basically it's caught up to about when we started talked about it being behind :)
<gchristensen>
it took a whole hour to provision extra capacity :(
<abathur>
ryantm: ok, that's roughly my intuition on it; just a little thrown because I see a mix in various online shell/default.nix files, some people specifying a PGPATH somewhere in /var/, and others specifying paths that are definitely or probably in ~/
<ryantm>
To me, it makes not sense to use /var/ or ~/ because you might want to have multiple copies of the project on your computer.
<ryantm>
makes no*
<abathur>
ryantm: though it didn't occur to me that some of those may be from non-nixos nix users
<abathur>
ryantm: good point
<abathur>
ryantm not used to thinking about it; usually just use distinct VMs
<abathur>
meh
<ryantm>
I guess you could do it by the location of the project on the filesystem, but then you'd have trouble moving it.
pxc1 has quit [Ping timeout: 245 seconds]
<abathur>
ryantm: I see some specifying $(pwd)/...
<gchristensen>
ryantm: the first 4.5 pages are all you O.O
<abathur>
ryantm: which made the most sense to me
<ryantm>
abathur: yeah pwd sounds good.
<ryantm>
gchristensen: 0.0
<ryantm>
gchristensen: I thought you were going to bed :-/ sorry for keeping you up
<abathur>
ryantm: ty
pxc has joined #nixos
<gchristensen>
ryantm: well I was going to, but realized I'd sleep better if I could stop the server that was doing 50% of the evaluations (ie: would be whirring, loud, all night)
<gchristensen>
usually it doesn't bother me, but continously loaded all night is a lot :) and: I have new funding to take advantage of, for exactly this purpose: https://www.patreon.com/ofborg
reinzelmann has joined #nixos
digitalmentat has quit [Ping timeout: 276 seconds]
ryanartecona has joined #nixos
<angerman>
so I have this cross compiler: x86_64-pc-mingw32-ghc, how do I get myself into a shell where I can use it?
<ryantm>
angerman: What do you mean by your having the cross compiler?
<angerman>
ryantm: that package is built. I just want to be able to use it from the shell.
<angerman>
ryantm: e.g. drop me into a shell, that has the `bin` path of that package in PATH.
<jtojnar>
ryantm: also I am rewriting the code in haskell just for fun
<jtojnar>
so far it is just a lot of system calls
<jtojnar>
but eventually I want to clean it up, add changelog look up, etc.
<ryantm>
jtojnar: my scripts or update-source-version?
<jtojnar>
your scripts
<ryantm>
jtojnar: cool; I'd like to help with that.
<jtojnar>
I will open a PR soon
jgt has joined #nixos
<ryantm>
Those 3500 outdated packages aren't going to update themselves.
<gchristensen>
plz let me know _before_ you put in the next 3,000 PRs
<gchristensen>
I know it is old fashioned to not automagically auto-scale, but alas ;)
robstr has joined #nixos
<ryantm>
gchristensen: I'll probably have a ton more around 8:00 PT tomorrow.
Rusty1_ has quit [Quit: Konversation terminated!]
<gchristensen>
nice
<gchristensen>
please also consider our ability to accept them
<gchristensen>
ryantm: will you be producing them faster, or just more, about the same rate?
hamishmack has joined #nixos
<ryantm>
gchristensen: I'm going to leave my builder running all night and at work tomorrow then I'll probably be manually adding the PRs again like last night, so only as fast as I can click the GitHub buttons.
<gchristensen>
oh, the PRs you're opening today aren't automatic?
reinzelmann has quit [Quit: Leaving]
<ryantm>
No, I'm manually looking at the changes and checks.
<gchristensen>
you are a beast!
<ryantm>
I'd like to automate that, mainly so I don't need to keep deleting the contributing contents.
<ryantm>
I have this hope that once we catch up, we can process them faster than the program makers.
<gchristensen>
yeah
bluebelly_ has joined #nixos
<adisbladis[m]>
I think we are hitting scalability issues in terms of being able to accept PRs already :P
<ryantm>
What can we do to make it better?
<adisbladis[m]>
I'm not sure..
<gchristensen>
I think your pinging of maintainers is a good step
<adisbladis[m]>
ryantm: Running `nox-review pr` on every one of the would help imo
<adisbladis[m]>
But that might take a prohibitive amount of time
<gchristensen>
ok I can't stay up any longer
<ryantm>
What does that do?
<gchristensen>
good night, good luck, I'll be back in several hours :P
<adisbladis[m]>
ryantm: Rebuilds all packages affected by your change
<gchristensen>
one thing to consider is ofborg is semi-built for this
<gchristensen>
you can get a litsl of all changed attributes at: https://github.com/NixOS/nixpkgs/pull/35791 -> Show All Checks -> the Details link next to "grahamcofborg-eval — ^.^! "
<dtz>
i'm not sure it's reasonable to shoot for us processing them faster than "program makers"
<gchristensen>
and pass some of them to `@grahamcofborg build ...`
orivej has quit [Ping timeout: 248 seconds]
<dtz>
they may or may not be limited by the sort of quality control we should be holding ourselves to as a distribution/curated set of packages
<dtz>
(regardless of what they intend, it is doubtful they test their update in Nixpkgs before tagging a release, and as such there is work for us to do)
<dtz>
and a bit of wisdom in lagging a smidge
<dtz>
if we had infinite build capacity, and many many more tests
<dtz>
we could move faster
<adisbladis[m]>
dtz: Yeah this kind of stream of PRs really makes you realise how much testing we are missing
<mkaito>
does anyone currently use nix with ruby? Bundix looks unmaintained, and the info on the wiki and the nixpkgs manual looks even older.
<dtz>
absolutely. Although given our processing capacity I'm not sure we really could sustain 2 orders of magnitude more tests. So it's a trade-off :)
<jtojnar>
optimally, the bot would add changelog, reviewer would read the changelog, run a command that would obtain the built closure from ofborg and test if the package works
<dtz>
optimally testing if it works would also be automated :P :P
<dtz>
"optimallly"
<dtz>
optimally I would have a pony
<jtojnar>
well, that one should be reasonably easy to achieve
* dtz
runs `nix-env -iA nixos.ponyc` and calls it good enough
<jtojnar>
we just need ofborg to push to a binary cache
<dtz>
(actually pony is pretty cool, feel bad referencing it only as a joke replacement lol)
<gchristensen>
Check the goal on patreon :)
<dtz>
hehe
<dtz>
#include <funding.h>
<jtojnar>
cool
<dtz>
where "obviously" our cc-wrapper automagically redirects that include to an appropriate funding source
<dtz>
lol
Fannar has joined #nixos
Fannar is now known as username
username is now known as Guest1637
Guest1637 has left #nixos [#nixos]
Guanin has quit [Ping timeout: 240 seconds]
<fearlessKim[m]>
how can I add packages in nixops' libvirt machines ? I would like to autoinstall qemu agent to improve nixops-libvirtd interactions
commander has quit [Ping timeout: 245 seconds]
<fearlessKim[m]>
I mean as an upstream change, not just for my VMs
username_r has joined #nixos
username_r has quit [Client Quit]
Guanin has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
commander has joined #nixos
<ryantm>
going to sleep soon
jgt has quit [Ping timeout: 240 seconds]
<ryantm>
so someone can probably turn back on github if they want
<ryantm>
My server is done with the Ls!
<ryantm>
night night
<abathur>
semi on-topic, but I was reading some comments on the trouble keeping up with PRs and wondered if requiring package submissions be accompanied reasonably high-level tests at some future version goalpost might doubly help
<adisbladis[m]>
abathur: It would probably help but it's very difficult to require
<abathur>
extra work to eval good submissions in the short run, but it would be easy to dust off people who put in 0 or minimal effort
<abathur>
nod
<adisbladis[m]>
Also I'm not sure if polluting `nixos/tests` with tests for _everything_ is the right thing to do
markus1189_ has joined #nixos
<adisbladis[m]>
abathur: But maybe at the very least a rudimentary checkPhase should be required
<adisbladis[m]>
dtz: I think you'll be hard pressed to find anyone in disagreement ;)
<dtz>
:P
<mfiano>
Can anyone tell me how to generate epub book for nix-pills like I did for the other 2 books?
rauno has joined #nixos
ryantm has quit [Ping timeout: 240 seconds]
<abathur>
I don't have much perspective on the project-level constraints, and I wouldn't want to see proliferation of unit tests or simple execution of the software's own test suite
<abathur>
but as a noob user at least I imagine some value in a public promise that some non-trivial (i.e., no --help or --version) commands/services/apis work, and in the case of the more obscure packages, it would double bare-minimum documentation
<abathur>
yeah
<abathur>
I also think having to exercise the software in some way might dissuade the people who won't maintain the submission anyways (either due to lack of knowledge or interest)
jtojnar2 has joined #nixos
<abathur>
I guess that could also be adversarial
<adisbladis[m]>
abathur: We do run a lot of unit tests in package builds already (see `checkPhase` in `mkDerivation`)
<abathur>
nod, not as concerned with those, since their value varies so widely by product
<adisbladis[m]>
jtojnar: Yeah that looks great
leat has quit [Ping timeout: 248 seconds]
<adisbladis[m]>
abathur: How would you encourage writing tests for new package submissions?
<abathur>
don't ignore my noob hat, but I guess it would depend on specific goals
<mfiano>
jtojnar: Seems to, thanks
<abathur>
if getting package coverage is still a big goal, maybe tests could just be part of moving a package from a provisional to a stable status
<abathur>
while getting a package over the first hurdle could remain loose
<abathur>
less relevant for new packages, but I could imagine an appeal to future stability/usability being sufficient to get me to do tasks like PR/mark/propose various commands that reflect core functionality
<abathur>
and depending on the software complexity, a less-technical user could confirm things like whether the command works, and is a sane way to use the program
Lisanna has joined #nixos
MercurialAlchemi has joined #nixos
chocopuff has joined #nixos
<Lisanna>
Is it a good idea to add the localhost as a "remote builder"? I have some requiredSystemFeatures in some derivations such that I only want them to be built on certain machines, which can include the localhost.
LysergicDreams has joined #nixos
<Lisanna>
I also think it would be nice to use nixos machines as 'build proxies', such that if machine B has C and D setup as remote builders, and A has B setup as a remote builder, then a build that A forwards to B could be forwarded again to C or D on its behalf
<Lisanna>
so that you don't have to maintain complete remote builder configurations / access for every single user you want to be able to use it
<clever>
Lisanna: ive seen nix deadlock when localhost is a build slave
<Lisanna>
clever ugh, that sucks
<clever>
Lisanna: it will sometimes grab a lock locally, then ssh into itself, and then wait for the lock
<clever>
Lisanna: but i suspect thats only nix, and not hydra, one min
<clever>
Lisanna: for nix itself, NIX_REMOTE_SYSTEMS must point to a single file with the slaves
<clever>
Lisanna: but for hydra, it can be a : seperated list
<clever>
that allows hydra to have extra slaves, that nix isnt aware of, localhost might work there
<Lisanna>
alright, looks like this feature of nix could stand to use some improvement :)
<clever>
it also allows hydra to obey a file that nix doesnt even manage, so you could have a daemon dynamically adding/removing slaves, as you auto-scale the pool on AWS
<Lisanna>
...I'll add it to my growing list of nix projects that I wish I had time to work on
jgt has joined #nixos
<clever>
Lisanna: i have considered setting up netboot images, that self-report their arch to hydra, then hydra auto-adds those slaves as slaves
<clever>
Lisanna: and if the slave stops self-reporting, auto-remove!
pie_ has quit [Ping timeout: 265 seconds]
<Lisanna>
that sounds like it would be cool for large-scale operations
<mfiano>
I need a better suggestion than sudoedit for editing files as root with vim. Because sudoedit just copies to a random location in /tmp, I lose a lot of things like persistent history/undo, remembering where in a file i was last session, etc. It's driving me nuts
<mfiano>
It's making editing my nix config rather difficult
<Lisanna>
mfiano ...uhh, sudo emacs?
<mfiano>
I prefer vim, and that's coming from a full time Lisp developer
<Lisanna>
:)
<adisbladis[m]>
Lisanna: :D
<adisbladis[m]>
sudo spacemacs then? ;)
<adisbladis[m]>
Doesn't vim have something similar to tramp?
<mfiano>
I have an extensive vim config spanning several locations of hundreds of files. I guess I should learn how to install that globally as a custom package.
<clever>
mfiano: if you can make them all load relative to a single directory, then the rest should be easy
<adisbladis[m]>
mfiano: The internet says that saving a buffer as root can be done like `:w !sudo tee %`
<mfiano>
I don't know how "easy" that would be for me. I'm still too new around here :)
<clever>
mfiano: i can help with that step once its all in a single directory that isnt hard-coded
<mfiano>
I'm still debating on whether or not it's better to add a keybinding in vim to do something like what adisbladis[m] suggested, or to install my crazy config globally. The latter approach would mean I can't easily share my config in my dotfiles repo for non-Nix people I think.
<clever>
mfiano: if its setup to just load relative to itself, then it can still work without nix
jackdk has quit [Ping timeout: 240 seconds]
<clever>
mfiano: to start with, make it something simple like all the config in ~/.vim/ and ~/.vimrc is just 1 line to load something like ~/.vim/root.config
<mfiano>
Yeah I think making a Nix package is the right thing to do here, because I really want vim to work the same on all of my boxes without manual steps.
<clever>
and root.config loads the rest
<mfiano>
I guess I'll work on hacking on my config to un-hardcode paths and store everything under one root
<Izorkin>
clever: need create issue to nix 2.0? - error: unable to start build process
<clever>
Izorkin: yeah, i think you should go ahead and create one
rauno has quit [Remote host closed the connection]
<mfiano>
clever: A big problem is I'm using neovim, instead of vim, and it looks for $XDG_CONFIG_HOME/init.vim as it's startup file, and loads scripts etc from $XDG_DATA_HOME/nvim instead
<mfiano>
$XDG_CONFIG_HOME/nvim/init.vim rather
<clever>
mfiano: that can still work, just replace ~/.vimrc with init.vim in my directions
niklob has quit [Client Quit]
<mfiano>
clever: Hmm, some things require an absolute path in the vim config
<clever>
mfiano: it cant do things like ./foo to be relative to itself?, or $BASH_SOURCE[0] or $(pwd)ish?
<sphalerite_>
mfiano: fwiw there's fancy wrapping stuff in nixpkgs for [neo]vim that takes care of packages and stuff as well
<mfiano>
for example, it expects plugins to be in ~/.data on my machine, and ~/.config is sourced on startup, and using ../../ does not resolve
<mfiano>
yeah this is going to be difficult looking at yours
<mfiano>
i have too much to learn and use like 100 plugins and config for each
<clever>
ive never had to lookup the #include syntax for vim
<clever>
mfiano: oh, i have an idea
<clever>
mfiano: what if .vimrc set a vim variable, pointing to the directory with the rest of the config?
<clever>
mfiano: then you use that variable in all the source statements
<mfiano>
some expect a string literal :(
<fearlessKim[m]>
when I get the time, I'll try to improve the vim_configurable so that it can be used with neovim/home-manager as well. Like right now vim paths are hardcoded, it doesn't set $MYVIMRC which break some scripts
<sphalerite_>
fearlessKim[m]: it works with neovim already
<mfiano>
clever: anyway, i don't have any source statements
<sphalerite_>
just that to use it with neovim you do neovim.override { configure = …; } rather than vim_configurable.customize { … }
<fearlessKim[m]>
sphalerite_: I use it but it hardly improves anything, like even vim plugins don't handle dependencies so what's the point
<mfiano>
clever: all i have is 1 ~/.config/nvim/init.el, which uses plugins that are loaded from ~/.data/nvim/site/plugged and other directories in ~/.data/nvim
<sphalerite_>
ah yeah, fair enough
<mfiano>
err init.vim
hyper_ch2 has joined #nixos
<fearlessKim[m]>
in fact I have vim_configurable define some paths towards binaries like clangd etc.. and then set $MYVIMRC & load source /home/teto/.config/nvim/init.vim
<94KAAB0N1>
nixpkgs/master 815d6ba Frederik Rietdijk: Merge pull request #35814 from ryantm/auto-update/libwacom-0.26-to-0.28...
<94KAAB0N1>
[nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vA642
<94KAAB0N1>
nixpkgs/master 215cef2 Ryan Mulligan: libwacom: 0.26 -> 0.28...
94KAAB0N1 has left #nixos [#nixos]
xAFFE has joined #nixos
xAFFE has left #nixos [#nixos]
xAFFE has joined #nixos
adisbladis has joined #nixos
rauno has joined #nixos
adisbladis has quit [Changing host]
adisbladis has joined #nixos
<robstr>
Hey, I'm trying first time NixOS with the graphical iso, while booting I receive: "mount: mounting /dev/root on /mnt-root/iso failed: no such file or directory" on stage 1 - Can someone help here ?
<mfiano>
clever: Alright. I edited my config so that it only references stuff under ~/.vim/, and the expected ~/.config/nvim/init.vim is a symlink to ~/.vim/vimrc. Now what do you suggest?
xAFFE has left #nixos [#nixos]
<clever>
2018-02-27 03:36:20 < sphalerite_> just that to use it with neovim you do neovim.override { configure = …; } rather than vim_configurable.customize { … }
<clever>
mfiano: using these 2, i believe you can generate a custom neovim, where the contents of init.vim are inside the string from lines 7-24
<sphalerite_>
that'll be your problem
<sphalerite_>
Try using dd instead
Itkovian has joined #nixos
<clever>
mfiano: then, to pull in the .vim directory, you would do something like source ${./vim_configs}/something, or set plugin_search_path=${./vim_configs}/plugins, inside that string from 7-24 in my vim.nix
<mfiano>
is it bad that i prefer vim to manage my plugins though?
<clever>
mfiano: nix will then put a copy of the vim_configs directory into /nix/store/, and insert its path into the resulting string
<sphalerite_>
mfiano: it's not bad per se, but nix has some advantages :D
<clever>
mfiano: ive run into problems when i let vim install its own plugins
<clever>
mfiano: for example, the wakatime plugin tries to be too smart, and tries to find wakatime.py, then run python on it
<clever>
mfiano: python, and site-packages arent global, so it fails miserably
<mfiano>
I develop a lot of vim stuff, and I am constantly updating all plugins with vim-plug to test
<clever>
mfiano: and nixos already wrapped wakatime.py in a bash script that does everything for you
<clever>
mfiano: so just deleting the 'python' element from the command fixes it
asuryawanshi has joined #nixos
<clever>
but, its not managed by nix, so vim breaks it every time vim downloads the plugin
asuryawanshi has quit [Remote host closed the connection]
zzamboni has joined #nixos
asuryawanshi has joined #nixos
<mfiano>
Well I rely on plugins being updated on-demand with 1 keybind in vim to test things, and changing thousands of lines of vimL is not my idea of fun.
17WAAUP8C has joined #nixos
07IACKQDU has joined #nixos
<17WAAUP8C>
[nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vA6BD
<17WAAUP8C>
nixpkgs/master 05de674 Frederik Rietdijk: Merge pull request #35757 from ryantm/auto-update/latte-dock-0.7.1-to-0.7.3...
<17WAAUP8C>
nixpkgs/master 52efa97 Ryan Mulligan: latte-dock: 0.7.1 -> 0.7.3...
<sphalerite_>
vaibhavsagar: mfiano wants a stateful setup managed by vim-plug, and not use nix for it
<vaibhavsagar>
yes, I know
<sphalerite_>
and not have to use nix for it on other machines
<sphalerite_>
AFAIU
<vaibhavsagar>
oh, that second requirement I was unaware of
<mfiano>
Well not quite
zzamboni has joined #nixos
Tucky has joined #nixos
<mfiano>
I want to a) be able to use `nvim` or `sudo vim` and have the same config (and all plugins/other files loaded by that same config), b) deployable to all my machines, c) by able to track my vim config as a separate dotfiles repository not specific to Nix for other users
ckauhaus has joined #nixos
zzamboni has quit [Ping timeout: 252 seconds]
thc202 has joined #nixos
zzamboni has joined #nixos
pie_ has quit [Ping timeout: 240 seconds]
asuryawanshi has quit [Ping timeout: 252 seconds]
zzamboni has quit [Ping timeout: 268 seconds]
asuryawanshi has joined #nixos
zzamboni has joined #nixos
vidbina has joined #nixos
<mfiano>
sphalerite_: and /etc/xdg/nvim is not checked by nvim - but some distributions set $VIM to this. however on Nix this wouldn't work because the system-global vim files to source before user files are not located there
<sphalerite_>
oh ok
<mfiano>
I'll give up and just deal with some vim functionality not working with sudoedit for now just to configure Nix some more
zzamboni has quit [Ping timeout: 248 seconds]
zzamboni has joined #nixos
winem_ has joined #nixos
reinzelmann has joined #nixos
<sphalerite_>
:(
scribbler has joined #nixos
zzamboni has quit [Ping timeout: 248 seconds]
pie_ has joined #nixos
aborsu has quit [Quit: aborsu]
aborsu has joined #nixos
zzamboni has joined #nixos
rauno has quit [Ping timeout: 268 seconds]
roberth has quit [Ping timeout: 252 seconds]
jonas_ has joined #nixos
jonas_ is now known as Guest73697
<robstr>
sphalerite_: thank you, I tried with dd - now I receive : "SQUASHFS error: squashfs on /nix/ .ro-store ..." :-/
zzamboni has quit [Client Quit]
zzamboni has joined #nixos
<sphalerite_>
robstr: weird. the image might be corrupted, did you check the hash sum after downloading it/
Guest73697 has quit [Client Quit]
<mfiano>
sphalerite_: The problem is I can't just store everything in /etc anyway, since multiple users would need write access to update plugins in vim, and updating plugins as a user shouldn't affect the other user, so needs to be in $HOME of every user...but I don't think there is a very easy Nix solution for installing like this
nh2 has joined #nixos
<sphalerite_>
that sounds... complex :)
zzamboni has quit [Client Quit]
zzamboni has joined #nixos
scribbler has quit [Quit: scribbler]
pie_ has quit [Ping timeout: 248 seconds]
zzamboni has quit [Client Quit]
zzamboni has joined #nixos
zzamboni has quit [Client Quit]
zzamboni has joined #nixos
knupfer has joined #nixos
<palo>
Somebody here developing electron apps with nixos ?
<sphalerite_>
!doesanyoneuse
<{^_^}>
Don't ask if anyone uses software xyz, just ask your specific question. This helps solve your problem quicker, and allows people who haven't used xyz but may still be able to help you to do so.
<94KAAB1O6>
nixpkgs/staging 728e119 Ryan Mulligan: libmicrohttpd: 0.9.58 -> 0.9.59...
<94KAAB1O6>
nixpkgs/staging 7737ef3 Frederik Rietdijk: Merge pull request #35789 from ryantm/auto-update/libmicrohttpd-0.9.58-to-0.9.59...
<94KAAB1O6>
[nixpkgs] FRidh pushed 2 new commits to staging: https://git.io/vA6g9
94KAAB1O6 has left #nixos [#nixos]
<sphalerite_>
but to answer your question a little bit, no I don't think we have any regular electron developers using nixos
periklis has quit [Ping timeout: 256 seconds]
<palo>
sphalerite_: I also thought so, because I did not find anything on that topic :(.
<sphalerite_>
I might be wrong though
<palo>
even nodejs development seems to very hard under nixos
<sphalerite_>
generally electron is a massive pain
rgc has joined #nixos
<palo>
you mean package it ?
<etu>
palo: I know that some people do nodejs
<adisbladis>
palo: Nodejs is not hard at all on nixos
<adisbladis>
Actually its not much different from any other distro
headfault has joined #nixos
Tucky has quit [Quit: WeeChat 2.0.1]
<adisbladis>
palo: And for packaging nodejs apps we have multiple solutions depending on your choice of node package manager: http://github.com/svanderburg/node2nix
<sphalerite_>
but all the electron apps I know of in nixpkgs are built from patched binary packages for other distros
<palo>
but how do you run the programms you install in node_modules ? I mean there is for example 7zip-bin and 7zip-bin-linux which delivers binraries. and the linker can't find the dependencies
<headfault>
Anybody else having a seriously bad day with nix 2.0pre5968_a6c0b773?
<palo>
so far I use fhsUserEnv but it is quite a pain
<headfault>
my system is pretty much bricked...
<sphalerite_>
headfault: ??
<adisbladis>
palo: You mean for natively linked deps? I just add them to a project local shell.nix
<headfault>
nix-env hangs and must be killed with -9
<adisbladis>
And do all my node development in a nix-shell
<palo>
adisbladis: do you have a link to a project where I can look at your shell.nix files ?
<headfault>
nix-collect-garbage resulted in every single package in my nix-profile being purged
<sphalerite_>
headfault: can you not rollback?
<sphalerite_>
o.o
<headfault>
nope, too little space on my drive, so I had to garbage collect
<headfault>
unfortunately
knupfer has quit [Ping timeout: 276 seconds]
<adisbladis>
palo: I dont really do nodejs for fun so its not open source stuff. I can hack together an example for you.
<headfault>
I have my system on github, so reinstalling is not a big deal, but...
andymandias has quit [Ping timeout: 252 seconds]
<palo>
adisbladis: o that would be great
<headfault>
nix-env grables the screen when downloading
<sphalerite_>
you shouldn't need to reinstall completely, just boot the installer and mount your partitions without reformatting everything then just rerun nixos-install
<headfault>
nix-info hangs with 100% cpu
<headfault>
sphalerite_: good idea
<sphalerite_>
we've had this quite a bit now so it's definitely a real issue, not daemon-client version mismatch as I thought before
<sphalerite_>
but yeah, maybe don't gc *so* aggressively :p
<sphalerite_>
surely you can at least keep one previous gen around?
<headfault>
sphalerite_: running under virtualbox on a laptop with _required_ win 10 space hog => very limited space for nixos
<sphalerite_>
:(
sigmundv has joined #nixos
<headfault>
i'll try the nix-install trick, and see how it goes
<etu>
headfault: nix-store --optimize # might help you a bit if you do it from time to time
nadley has quit [Remote host closed the connection]
headfault has joined #nixos
nadley has joined #nixos
<headfault>
sphalerite_, etu: I installed nix-1.11.6 from a local nixpkgs repo, and now things seem to work again!
<sphalerite_>
\o/
<headfault>
the nixUnstable in the repos is really honest about what it is! The clue is in the title ;)
<sphalerite_>
haha
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ottidmes has joined #nixos
Itkovian has joined #nixos
rauno has joined #nixos
chaker has joined #nixos
Itkovian has quit [Client Quit]
Itkovian has joined #nixos
<jonge>
hi there. i would like to write a default.nix file in my c++ project so i can automatically pull in all libraries i need. the little obstacle i have is that `gbenchmark` has `platforms=platforms.linux;` set, but i would need darwin activated here. now i feel a bit lost how to modify this package in a way that it sopports darwin.
<symphorien>
jonge: put parens around (gbenchmark.overrideAttrs (...))
<jonge>
symphorien: just did so. unfortunately, this changes goes with no effect.
MP2E has quit [Remote host closed the connection]
<symphorien>
What if you nix-build default.nix ?
oida has quit [Quit: byez]
<jonge>
completely the same error message. "...libraries/gbenchmark/default.nix:19 is not supported on x86_64-darwin, refusing to evaluate"
oida has joined #nixos
<symphorien>
Ahh
headfault has quit [Ping timeout: 260 seconds]
jgt has quit [Quit: WeeChat 1.9.1]
<symphorien>
I thought "it is not available" meant "builds fine, but not present in the shell then"
<jonge>
i hope that i can one day use so many different libraries with ease like a ninja using nix. but currently i am stumbling over such problems all the time, not understanding how to solve. :'-D
<jonge>
oh, no. sorry i should have posted the actual error message earlier. one moment, i will add it to the gist.
<symphorien>
I have a fuzzy memory that overrideAttrs doesn't work with meta and there is a overrideMeta somewhere, maybe
<jonge>
so when my application builds and links with that on mac - is my eyewitness "i have experienced it to work" enough to justify a pull request which adds x86_64-darwin to the platforms?
<Phlogistique>
has anyone done unattended installs of NixOS through PXE?
<adisbladis>
jonge: I think so. A lot of the time the only reason darwin is not there in the first place is the original author not having the means to test things on darwin.
chaker` has joined #nixos
<jonge>
adisbladis: makes sense.
<genesis>
i confirm...
<symphorien>
You can test that it really works, not only compiles, since you know how to use it
<genesis>
and some dep on darwin are not available or broken .
<LnL>
jonge: yes, please send pull requests enabling things that work :)
<hyper_ch2>
it's freezing here... more than freezing... like -10°C :(
rauno has quit [Remote host closed the connection]
<jonge>
just -5 here. :D where are you
pie_ has joined #nixos
gspia has joined #nixos
<hyper_ch2>
jonge: at the office :) well, inside it's warm but outside it ain't (Switzerland)
rauno has joined #nixos
rui has joined #nixos
<adisbladis>
Cold today.. Just 18 degrees :O
kandinski has joined #nixos
zzamboni has quit [Quit: Leaving.]
<hyper_ch2>
adisbladis: that's like high summer temperaturs
<hyper_ch2>
get the swim suit and enjoy the beach
rauno has quit [Remote host closed the connection]
<adisbladis>
hyper_ch2: Beach?! This is no weather for the beach...
rauno has joined #nixos
<adisbladis>
Water temp is roughly the same as air temp
<hyper_ch2>
it's like really hot... you need to go to the beach so you can cool down your body before you'll over heat
rui has quit [Client Quit]
<kandinski>
I have a plan to install nixos on my laptop using qemu on a spare disk before I boot from it.
<kandinski>
This is so I can keep using the laptop for irc and web while I get the new system working. Any tip or better suggestion?
<hyper_ch2>
kandinski: why?
<hyper_ch2>
(get a second notebook)
rauno has quit [Remote host closed the connection]
rauno has joined #nixos
<hyper_ch2>
kandinski: why that trouble? do you fear something won't work?
<adisbladis>
kandinski: Sounds good to me.
<kandinski>
no, I need irc and web to look up documentation while I install.
zzamboni has joined #nixos
<adisbladis>
kandinski: The graphical installer comes with everything you would need in that regard
<kandinski>
adisbladis: thanks. I would have to re-run hardware discovery after I reboot on the host laptop, right?
<adisbladis>
kandinski: Yes, you would.
<hyper_ch2>
I'd also just use live iso
<hyper_ch2>
sounds less painful IMHO
<kandinski>
hyper_ch2: I Plan to use the live iso, but from qemu.
<adisbladis>
Well if a browser is the only concern I would use live iso.
patrl has joined #nixos
zzamboni1 has joined #nixos
zzamboni has quit [Remote host closed the connection]
<LnL>
it's -5 here and people are freaking out about it for some reason :p
<kandinski>
adisbladis: also so I can do everything else for work etc while I tinker with the new system. I'll report on how I go.
<silver_hook>
Silly end-user question: What music player packaged for Nix has Deezer integration?
<patrl>
hi everyone. Before I spend a lot of time on this, I was wondering if anyone has had any success building the scuttlebutt Patchwork app on NixOS
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jonge>
it just needs to download the header file and put it into `/nix/store/....catch2.1.2/include/catch/catch.hpp`. nothing else.
thblt has quit [Ping timeout: 248 seconds]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
rauno has joined #nixos
<symphorien>
jonge: create another file with content : with import <nixpkgs> {}; callPackage ./myfile.nix {}
<symphorien>
And build this file instead
abathur has quit [Ping timeout: 260 seconds]
<symphorien>
This will call the function in your file with the required arguments
pie_ has quit [Ping timeout: 240 seconds]
<jonge>
symphorien: wow i see. that does something. :) thank you
nixer101 has joined #nixos
<nixer101>
Hi! I have a video problem with openarena and urbanterror games on current Nixos(x64), radeon driver. These games work on KDE Neon. When I launch these games, I get black screen and can hear sound in background. The input is working. If I manage to kill the game or just reboot, I get black screen past KDE login. Kscreen seem to set itself to 1024x768, if I delete .local/share/kscreen/*, the screen is ok after login.
<nixer101>
I have monitor connected to HDMI, this is the only type of input the monitor supports.
<nixer101>
The freeorion is not affected, this may be a problem with quake3-based games.
<mfiano>
how often are nix pills released? 19.6 mentions a next pill on the way so i assume this book is ongoing still?
<nixer101>
glxinfo says I have direct rendering and correct accelerated driver (llvm 4, openg 4.5 etc)
<jonge>
symphorien: it tells me that it does not know how to unpack the archive. but it's not an archive, it's "just that file" which now needs to be moved to $out/include/catch. i do not see how i can prevent it from trying to unpack
bara has quit [Ping timeout: 256 seconds]
bara has joined #nixos
<LnL>
mfiano: the original author stopped writing a while back, but I think somebody else is working on another chapter based on what was mentioned in the last pill
<silver_hook>
goibhniu: Don’t think so, no ^ see ^
<goibhniu>
silver_hook: yep, doesn't look like it :/
<silver_hook>
Oh well, back to the drawing board :)
schoppenhauer has quit [Ping timeout: 252 seconds]
<silver_hook>
I have on my ToDo to some day package Elisa.
pkill9 has joined #nixos
<jonge>
how does nix determine the hash of a _directory_? i get "output path /nix/store/...-src has r:sha256 hash "foo" when "bar" was expected"
<ottidmes>
Is there a way to say: "I know these files conflict, just give priority to that one"? I have a custom samba setup, but when samba is disabled it will write a dummy file to /etc/samba/smb.conf, while the custom samba setup also writes to this file, so I want it to ignore the dummy file, I could just change the code in nixpkgs that does this, but is there a non-invasive way to give this prio?
<LnL>
jonge: either it imports a literal path like ./. and calculates this for you at eval time or it's a fixed output drv in which case the derivation has to specify what it's going to be upfront
<nixer101>
does anyone know how to install all Gstreamer stuff at once and also add it as backend for phonon? Thanks!
<jonge>
LnL the thing is that i wrote my own package that uses `fetchFromGitHub` and as a sha256 attr i gave it the hash of the downloaded tarball. after unpacking it claims that there is a mismatch in the _folder_, which i do not understand how and why
<LnL>
jonge: ah! use nix-prefetch-url -A foo.src
<LnL>
!tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<sphalerite_>
jonge: it dumps it as a nix archive (deterministic stream archive of a dir) and hashes that
<LnL>
for fetchFromGitHub it's the unpacked hash not the hash of the tarball
<woffs>
jonge: the manual page of nix-prefetch-url has an example
<jonge>
LnL: sphalerite_ ok i do not really understand that now... the have i give it is completely different from what the message says would be expected.
<jonge>
*the hash i give it
<sphalerite_>
jonge: yeah, just copy in the one it says it got
<jonge>
sphalerite_: ok, that works.
<jonge>
thank you. on to the next obstacle. :D
schoppenhauer has joined #nixos
<jonge>
wtf... this just builds again.
<robstr>
sphalerite_: Oh you are right,now it is working iso was not ok
<jonge>
this stuff (nix) amazed the shit out of me.
<robstr>
sphalerite_: thank you
<sphalerite_>
robstr: phew!
alex`` has joined #nixos
<silver_hook>
It seems Mellow Player and Babe support Deezer (and Jamendo). Neither are packaged yet for Nix though, damn.
<silver_hook>
Stupid silly question: is it possible (I know it’s not sensible) to run AppImages on NixOS?
<sphalerite_>
sensible is subjective :D
<sphalerite_>
I think it should be possible with some amount of fiddling
pxc1 has joined #nixos
<sphalerite_>
you might need to invoke the linker yourself, and use LD_PRELOAD to get it to load libc. But beyond that I think it should maybe work
<silver_hook>
sphalerite_: Sounds about as much work as writing a Nix expression for it :p
michas__ has joined #nixos
<sphalerite_>
I don't think so
<sphalerite_>
bleh. On the one hand I think it's really cool that librsvg is using Rust because Rust is awesome. On the other hand, Rust isn't currently bootstrapping successfully on my chromebook so now I can't build librsvg which means I can't build imagemagick which means I can't build nixos-icons which means I can't build my nixos config >.>
<TimePath>
Ah, dependency hell
<adisbladis>
silver_hook: You might have to do a lot of patchelfing and such
<TimePath>
Surely rust was working at some point?
<adisbladis>
silver_hook: So I think in general you are better off writing a nix expression
<nixer101>
does anyone know how to install all Gstreamer stuff at once and also add it as backend for phonon? Thanks!
<sphalerite_>
TimePath: it was, but not on current nixos-unstable for ARM
<silver_hook>
adisbladis: Yeah, I feared as much.
<michas__>
Hi, is there a good way to find out why some dependency is installed, i.e. which other package depends on it?
pxc1 has quit [Ping timeout: 265 seconds]
<silver_hook>
Oh well, will take a stab one day.
* silver_hook
’s list of packages to package is growing :p
<sphalerite_>
michas__: nix-store -q --referers
<sphalerite_>
referrers
<TimePath>
sphalerite_: oh, ARM Chromebook, that changes things
<sphalerite_>
TimePath: :)
<adisbladis>
silver_hook: What are you trying to run?
<adisbladis>
Because I have only ever hit one package that was not in nixpkgs that I could find as an appimage
<silver_hook>
adisbladis: Nothing yet, but was thinking of running Mellow Player’s AppImage.
headfault has joined #nixos
<adisbladis>
silver_hook: Just a cursory glance makes me think it's not a ton of work to package :)
<TimePath>
It'd run with steam-run wouldn't it?
headfault has left #nixos [#nixos]
<silver_hook>
adisbladis: Yeah, I’ll probably package it one day :)
patrl has quit [Quit: WeeChat 1.9.1]
<TimePath>
(the appimage)
<silver_hook>
So far I co-wrote one or two easy packages, but forgot everything. Now I’m packaging Lokalize and it’s a PITA so far.
<sphalerite_>
TimePath: oh yeah good point, or probably a plain FHS user env as well
<silver_hook>
e.g. missing docs for KDE-relevant Nix shortcuts.
<sphalerite_>
steam-run is a pain because it's so much to download
<ottidmes>
michas__: You should check the manpage of nix-store, the --query part, I believe for your question the answer is: nix-store -q --referrers /nix/store/your/path
<TimePath>
sphalerite_: there's a non-steam steam-run?
<nixer101>
does anyone know how to install phonon+gstreamer? Thanks!
pie_ has joined #nixos
<sphalerite_>
TimePath: sort of :) buildFHSUserEnv makes a nix-shell environment which fakes FHS stuff using user namespaces and stuff but with the nix-packaged libraries
<michas__>
ottidmes: thanks. according to that, "system-path" depends on it. what does that mean?
TweyII has joined #nixos
orivej has joined #nixos
<TimePath>
sphalerite_: oh cool, that's all factored out of steam
<TimePath>
Fortunately everything I use is already packaged though
<sphalerite_>
TimePath: the steam runtime is a completely separate beast
<sphalerite_>
all the libraries are compiled and dsitributed by Valce
<sphalerite_>
Valve
<TweyII>
If I have an expression with arguments, what's a nice way to build '(import <nixpkgs> { }).callPackage (import ./my-package.nix)' from the command line and drop into a shell with that thing? I've always made an environment derivation with stdenv.mkDerivation { env = buildEnv … } every time, but surely there's a nicer way just to drop into an environment with that one package available
<TweyII>
I guess `nix-shell -E '(import <nixpkgs> { }).callPackage (import ./folly.nix) { }'` works, but that too feels a bit clumsy
zzamboni1 has quit [Quit: Leaving.]
<TweyII>
So I often end up writing my derivations with ... arguments just so I can say 'nix-shell my-package.nix --arg 'import <nixpkgs> { }', which is slightly nicer
<sphalerite_>
There, I think that's my final answer xD
<Izorkin>
how to need to show progress build vith nix 2.0?
<sphalerite_>
Izorkin: use nix build instead of nix-build. The command line syntax is a bit different unfortunately
juselius has joined #nixos
juselius has quit [Remote host closed the connection]
<Izorkin>
sphalerite: "nix build" not show progress build in stdout
<sphalerite_>
oh you mean to get the log?
<sphalerite_>
replace `build` with `log` in your build command
<sphalerite_>
or you can use the old nix-build command which still behaves the same as well
<infinisil>
Izorkin: And i think you might need sudo..
rindvieh has joined #nixos
<sphalerite_>
infinisil: what? why?
romildo has joined #nixos
<infinisil>
sphalerite_: it's weird, but for some reason progress hasn't been working for non-root users for a while, not sure if it's been fixed
<michas__>
sphalerite_: Is there a good way to find out why (according to --referers) "system-path" depends on xwayland?
<sphalerite_>
huh, I haven't seen that at all
<infinisil>
sphalerite_: Check out eelco's demo of the progress thing at nixcon, i'm pretty sure he uses root
<sphalerite_>
infinisil: it's been working fine for me since I started using 1.12pre, which must have been sometime in November
<infinisil>
He did not use root, whoops
<infinisil>
Alright that's nice to hear
romildo has quit [Client Quit]
<sphalerite_>
michas__: typically that means it's in systemPackages. Unfortunately it's not easy to track down where each item of systemPackages comes from AFAIK :/
<infinisil>
> This works only as root because progress messages aren't tunneled over the nix-daemon client connection.
<sphalerite_>
oh but that was ages ago :p
<infinisil>
I remember having that problem not too long ago when I tried out the nix commands for the first time
<infinisil>
Eh, just glad it's not there anymore :)
<Izorkin>
sphalerite: "nix build"does not show where the package is? nix-build <nixpkgs> -A mc showing - /nix/store/xliwqc6fsiv4al4n46i6iqz7blqpq24c-mc-4.8.19
<michas__>
sphalerite_: I already checked configuration.nix. It is not specified explicitly. I guess some enabled module implicitly adds it somehow.
dynamicudpate has quit [Read error: Connection reset by peer]
<sphalerite_>
Izorkin: it creates a result symlink
headfault has joined #nixos
reinzelmann has quit [Ping timeout: 252 seconds]
dynamicudpate has joined #nixos
<genesis>
enableParallelBuilding is not true by default ? sound weird to explicit it in derivation
<genesis>
i imagine it haves to be tested and could failed anyway
<TimePath>
Some makefiles misbehave with parallel builds
<TimePath>
But only sometimes
<TimePath>
Since nix caches builds, problems could go unnoticed for a while and then break randomly
aborsu has quit [Quit: aborsu]
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
headfault has left #nixos [#nixos]
<sphalerite_>
and sometimes it causes nondeterministic behaviour
<sphalerite_>
err, well, that's a case of nondeterminstic behaviour
headfault has joined #nixos
<sphalerite_>
but also nondeterministic *output*
<Myrl-saki>
Is there any news about following stackage?
<sphalerite_>
and for machines that are building a lot of stuff they can usually exploit parallelism at the derivation level by building severla derivations at once so it doesn't matter that much
reinzelmann has joined #nixos
<genesis>
just try to reduce my build time of mame :D
<genesis>
they embed lot of 3rdparty they dont want to build apart.
kelleyNif has joined #nixos
<genesis>
for classic bad reasons i don't want argue.
<ij>
I'm trying to make a derivation that would work for both a nix-shell and as a store directory full of executables. i.e. what bundlerEnv does when I get (bundlerEnv …).env. Do I need a buildEnv instead of a mkDerivation without a src attribute?
<sphalerite_>
ij: so something to install or shell into?
<sphalerite_>
yeah I think buildEnv is the right thing for that
patrl has joined #nixos
headfault has quit [Remote host closed the connection]
__Sander__ has joined #nixos
coot has joined #nixos
<ij>
manveru, Shouldn't a bundlerEnv include ruby?
smrtak[m] has joined #nixos
goibhniu has quit [Ping timeout: 240 seconds]
<sphalerite_>
Is there a way to list all the valid paths in the store?
<sphalerite_>
or to clean up invalid ones
JazzyEagle has quit [Quit: WeeChat 2.0.1]
<Izorkin>
command - nix copy --from ssh://user@server-test /nix/store/...-libressl-2.6.3-bin --no-check-sigs error - cannot add path '/nix/store/...-libressl-2.6.3' because it lacks a valid signature. How to fix?
<ij>
sphalerite_, Are invalid paths the ones that don't match the hash?
pie_ has quit [Ping timeout: 240 seconds]
<sphalerite_>
ij: they're ones that weren't registered as valid
<sphalerite_>
ij: AFAIK this applies to lock files and anything that was added under nix's nose
<sphalerite_>
but I'm X-Ying here. I want to get the hashes of all the valid paths from two different systems and compare them to see if there are any differences in the paths that they share
<sphalerite_>
to find out about nondeterministic stuff across machines that are quite different from each other
freeman42x]NixOS has joined #nixos
vaninwagen has quit [Ping timeout: 245 seconds]
headfault has joined #nixos
Itkovian has joined #nixos
<ij>
I've a rails application to whose source directory I want to add assets. That means I'll take up source*2+assets disk space? Or can I make builder that copies source temporarily, builds and only then copies?
<sphalerite_>
ij: is symlinking an option?
<sphalerite_>
I'm not sure what you mean by your suggestion
<sphalerite_>
FWIW if you have the same files twice in the store nix optimise-store will deduplicate them. Although in that case they will still initially take up that space
<ij>
That might work, I'll have to see whether I can override some locations.
<ij>
Does that only run on request/
orivej has quit [Ping timeout: 256 seconds]
ryantrinkle has quit [Ping timeout: 245 seconds]
<sphalerite_>
ij: yes, although there is a setting for it (auto-optimise-store or something). Check man nix.conf. I think there's also a nixos option to have it run periodically
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vA6jL
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master dc7f2ee Frederik Rietdijk: pipenv: 9.0.1 -> 10.0.1
rindvieh has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] zimbatm pushed 1 new commit to master: https://git.io/vA6jV
<NixOS_GitHub>
nixpkgs/master fda4b93 zimbatm: nodejs: keep the build headers (#35568)...
NixOS_GitHub has left #nixos [#nixos]
<manveru>
ij: the gems have ruby, you can get the bundlerEnv ruby from the wrappedRuby attribute of your env
<infinisil>
Over 700 PR's :O
<ij>
Has anyone deployed rails to production with nix?
<manveru>
i have
<WilliamHamilton>
hi, does anyone know how to modify `default.nix` or `shell.nix` of a haskell project in order to use ihaskell in it with the dependencies of the package? I can install `nixos.ihaskell`, but it seems to come with siloed ghc packages
<adisbladis>
infinisil: I have merged around 80 in the last two days..
<infinisil>
adisbladis: Nice work!
lord| has quit [Quit: WeeChat 2.0.1]
<headfault>
Can someone explain this: If I do "nix-env -iA nixos.zlib.dev", there is still no reference to include/zlib.h, lib/libz.a nor lib/pkgconfig/zlib.pc in ~/.nix-profile. There is however a lib/libz.so. If I install eg. libxslt or libxslt.dev, I cannot find any trace of them in ~/.nix-profile, nor using pkg-config --list-all. It's awfully tedious to list packages in CPATH and LIBRARY_PATH explicitly from /nix/store when building software ad hoc...
<infinisil>
ryantm seems to have opened like 50 PR's with libfoo updates
<ij>
manveru, How did you do the asset precompulation?
<nixer101>
does anyone know how to install phonon+gstreamer? Thanks!
<ij>
manveru, precompilation* :D
<Guanin>
Hi, I want to use curl in "AuthorizedKeysCommand" for openssh. Is there a way to fetch the absolute path to curl?
<manveru>
i can't share the full source, but hopefully that gets you further :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] andsild opened pull request #35848: htop-vim: init at 70c91d6d598f15b0311ae6779810e036133e72d2 (master...htop-vim) https://git.io/vAieR
NixOS_GitHub has left #nixos [#nixos]
<infinisil>
htop-vim? :O
<ij>
manveru, Awesome, that's as much as you need.
<manveru>
i just realized i could've just merged the fullEnv into the derivation...
<manveru>
oh well :)
sirkha has quit [Quit: Leaving]
<nixer101>
does anyone know how to install phonon+gstreamer? Thanks!
<ij>
manveru, Is $src a path inside the store? Why didn't you put rails root in $out, but in $out/foobar insteaed?
<manveru>
ij: no problem, making derivations for rails apps takes a bit of effort... you have to avoid stepping on all the landmines bundler and rails have prepared :(
Phillemann has joined #nixos
tertle||eltret has quit [Quit: Connection closed for inactivity]
nixer101 has left #nixos ["Konversation terminated!"]
nixer101 has joined #nixos
<Phillemann>
I'm trying to pin a specific nixpkgs version by using "src = fetchFromGithub { ... }". But then, how do I translate "import <nixpkgs/nixos/lib/.../foo.nix>" to be relative to "src"?
nixer101 has left #nixos ["Konversation terminated!"]
<Phillemann>
${src}/nixos/... is syntactically invalid.
<ij>
Phillemann, If your there's a NIX_PATH=nixpkgs=/path/to/nixpkgs then <nixpkgs/further> translates to /path/to/nixpkgs/further, if that helps.
<ij>
/path/to/nixpkgs/further is just a string, yeah
<Phillemann>
I was simply confused syntactically I think.
reinzelmann has quit [Ping timeout: 240 seconds]
<Phillemann>
Okay, it works. Thanks! :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dotlambda closed pull request #35388: pythonPackages.magic-wormhole: patch the call to 'locale' (master...adunham/magic-wormhole-locale) https://git.io/vA2Md
NixOS_GitHub has left #nixos [#nixos]
ryantm has joined #nixos
chaker` has quit [Remote host closed the connection]
<ryantm>
Wow, a lot got merged!
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vAivA
<NixOS_GitHub>
nixpkgs/master 6f6d082 adisbladis: Merge pull request #35749 from ryantm/auto-update/latex2html-2016-to-2018...
<NixOS_GitHub>
nixpkgs/master 430dc52 Ryan Mulligan: latex2html: 2016 -> 2018...
NixOS_GitHub has left #nixos [#nixos]
<TweyII>
sphalerite_: Oooooh -p evaluates!
<robstr>
did I understand correct, when installing nixos - lvm volumes are recommended over partitions ? :-/
<gchristensen>
robstr: no, set it up however you like
<gchristensen>
we have no specific preference for lvm
<TweyII>
NixOS installation neither requires nor helps with any particular disk layout :(
<robstr>
gchristensen: ok, what is the general opinion ? On my current debian i just clicked next :P
<gchristensen>
robstr: me? I like to use a single ext4 partition with no swap for almost all of my systems.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master 4034ca7 Ryan Mulligan: leocad: 17.07 -> 18.02...
<NixOS_GitHub>
nixpkgs/master 6a10134 adisbladis: Merge pull request #35751 from ryantm/auto-update/leocad-17.07-to-18.02...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vAifa
<ryantm>
robstr: What kind of application are you installing it for?
<gchristensen>
simple, reliable, nothing to write home about. if I have a lot of disks I'll use zfs
davidcl has quit [Remote host closed the connection]
<TweyII>
I'm using a three-partition setup under LVM under LUKS
<TweyII>
Might switch to ZFS some day :)
<robstr>
ryantm: private / working stuff
* goibhniu
likes XFS for large data partitions
<ryantm>
I'm using f2fs on my private stuff because supposedly it's good for SSDs. I use ext4 everywhere else. Really this choice has little to do with NixOS and more to do with whatver your application is.
<ryantm>
Like, I use LVM whenever I want to do a database machine, because it allows for quick live backups.
<robstr>
thank you
* etu
runs lvm+ext4 on most systems
<gchristensen>
Profpatsch: thank you a lot for the pledge!
<etu>
lvm is nice since it's easy to rearrange partitions
rindvieh has joined #nixos
<adisbladis>
zfs all the way baby
patrl has joined #nixos
* adisbladis
is hopeful for bcachefs in the future
<robstr>
currently i dont see a benefit of using partitions :-/
<robstr>
i will go with single partition ext4
* etu
has his lvm in luks as well
Phillemann has left #nixos ["WeeChat 2.0.1"]
reinzelmann has joined #nixos
<Profpatsch>
gchristensen: Let’s pierce the heavens. :)
<gchristensen>
I really don't like LVM, because I can never remember how to do things with it when things are broken and I'm stressed
<etu>
robstr: If you use EFI you need an ESP that's fat32
<TweyII>
gchristensen: That's just a matter of practice :þ
<TweyII>
It's pretty discoverable to be fair
<hodapp>
hm, I only have used ZFS on FreeBSD so far
<ryantm>
Darn, my server got stopped by the mblaze package. Somehow it eluded my timeout kill command.
<adisbladis>
hodapp: Ive been using it on Linux since around 2011 without any issues :)
<TweyII>
I didn't realize ZFS was a thing on Linux until I joined this channel and saw people raving about it
rindvieh has quit [Ping timeout: 240 seconds]
<robstr>
etu: thank you
<gchristensen>
Profpatsch: no doubt!
rauno has quit [Ping timeout: 260 seconds]
<etu>
robstr: And if you use luks or encrypted disk in general you probably need to have a boot partition that is unencrypted (there's ways around that nowadays with grub)
mg- has quit [Ping timeout: 240 seconds]
<etu>
robstr: That's a few reasons for partitions :)
<gchristensen>
Profpatsch: though I sort of imagined Kraftwerk's The Robots
<avn>
well, zfs is one of best fs, but usually it need ext4/xfs volume aside, for crap which need fast random writes (like torrents)
davidcl has joined #nixos
<Profpatsch>
gchristensen: It’s a mixture. :P
<gchristensen>
:)
oida has joined #nixos
<Guanin>
avn, do I understand it correctly, that zfs is also not well suited for databases because of that?
<gchristensen>
man, I got to see Kraftwerk in concert a few years ago and one of their robots was broken (._.)
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ryantm>
Profpatsch: I linked your comment about confd to the PR.
rindvieh has quit [Ping timeout: 252 seconds]
<Profpatsch>
ryantm: Thanks, don’t take my criticism too harshly.
<Profpatsch>
Every bit of automation is *awesome*
<Profpatsch>
So please keep on rocking. +1
<ryantm>
Profpatsch: I'm not taking it harshly; I am worried about this breaking stuff too.
arximboldi has joined #nixos
patrl has quit [Ping timeout: 252 seconds]
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alexteves_ has joined #nixos
<ryantm>
Profpatsch: is the spam comment about jquery because the version number it updated to is obviously wrong?
<ryantm>
gchristensen: Can I do more PRs?
coot has quit [Quit: coot]
<gchristensen>
ryantm: how many do you have?
<ryantm>
25
headfault has quit [Remote host closed the connection]
ottidmes has joined #nixos
<gchristensen>
ok, but probably before the next big series we should talk more strategically about how we handle this
arximboldi has quit [Quit: arximboldi]
ryantrinkle has joined #nixos
<ryantm>
Ok, I probably want to do a bunch more tonight (in 12 hrs), if my server doesn't get stuck again. I can try to give you a few updates about how many I'll have throughout the day.
<ij>
I'm trying to make a derivation in the nix-repl and first it results in .drv, but even when I force it to become a path via "${…}", it doesn't exist!
<LnL>
so nix-build can only create roots for the output now, not the drv
coot has joined #nixos
<alexteves_>
Lnl: so, making .drv a gc-root will preserve build-time deps?
<LnL>
yes
<alexteves_>
just what I wanted thanks
<LnL>
ij: use :b to build it
<alexteves_>
Is there a point in me opening a PR adding a warning to --drv-link and friends in nix-build, or is this a RTFM ?
<ryantm>
gchristensen: okay done for now
<gchristensen>
cool
patrl has joined #nixos
<ij>
LnL, thanks
<etu>
gchristensen: Isn't there any way to get that github bot to remain in the channel to get rid of the joins/quits without doing it clientside?
<gchristensen>
no
<etu>
:(
<gchristensen>
the only option is to build our own bot
jensens has joined #nixos
<gchristensen>
if you'd like to write the function to do that (accept: webhook data, output: IRC messages) I'll run it
<etu>
Still needs to listen to some endpoint for them to push the data too
<etu>
But that's easy
<gchristensen>
I already have that infrastructure setup, and an IRC bot
knupfer has quit [Ping timeout: 248 seconds]
<gchristensen>
the only missing part is filtering / interpreting the data, and converting it in to what to say on IRC
robstr has quit [Remote host closed the connection]
robstr has joined #nixos
<Lisanna>
managing state in a nixos service seems like a really hard problem. I feel like in order to do it correctly, you need to know what the old value of the configuration was, so you can go back and e.g. delete files that you don't need anymore due to some settings change
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vAi3W
<NixOS_GitHub>
nixpkgs/master b0ad9f1 adisbladis: Merge pull request #35854 from ryantm/auto-update/monit-5.23.0-to-5.25.1...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master b7dcc45 Ryan Mulligan: monit: 5.23.0 -> 5.25.1...
<ryantm>
FRidh and adisbladis are also beasts :)
<gchristensen>
Etu so basically two pure functions: a filter for irc worthy events, and a map to convert an interesting event into a message.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vAi3V
<NixOS_GitHub>
nixpkgs/master a739671 adisbladis: Merge pull request #35847 from dywedir/yarn...
<etu>
gchristensen: I don't have the infrastructure or the bot source set up, so for me it's a bit harder to try to do it quickly. And my knowledge in nix is so far limited.
<gchristensen>
Well
robstr has quit [Ping timeout: 256 seconds]
<gchristensen>
You don't really need the source and don't need nix for it. Pretty much any language will do. But I understand :)
<Izorkin>
nix copy --from ssh://test1@192.168.0.110 /nix/store/...-apr-util-1.6.1 --no-check-sigs - error: imported archive of ‘/nix/store/...-apr-util-1.6.1’ lacks a signature - How to fix? Package apr-util custom builded
<etu>
gchristensen: I see, I thought it was built with nix. I can do it in PHP then ;D
<gchristensen>
Sure php is fine
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master 51691f4 Michael Alan Dorman: org-packages: 2018-02-26
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 3065b6c Michael Alan Dorman: elpa-packages: 2018-02-26
<NixOS_GitHub>
[nixpkgs] nlewo pushed 5 new commits to master: https://git.io/vAise
<NixOS_GitHub>
nixpkgs/master 913905d Michael Alan Dorman: melpa-stable-packages: 2018-02-26...
knupfer has joined #nixos
<etu>
gchristensen: I'll look into it some day. have lots of things going on. But I'll put it on my list :)
xAFFE has joined #nixos
xAFFE has left #nixos [#nixos]
<gchristensen>
sure no worries
xAFFE has joined #nixos
xAFFE has quit [Client Quit]
<gchristensen>
pretty much as soon as _anyone_ wants to write it, we can replace the NixOS_GitHub bot
<etu>
My main project atm is to be able to build the firmware for my keyboardio. It complains about modemmanager being in the way and that I have to add udev rules that I already added. So I have to debug that further.
nuncanada has joined #nixos
<adisbladis>
ryantm: :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vAis2
<NixOS_GitHub>
nixpkgs/master 9eb24ee adisbladis: Merge pull request #35874 from ryantm/auto-update/mc-4.8.19-to-4.8.20...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master f132dcf Ryan Mulligan: mc: 4.8.19 -> 4.8.20...
robstr has joined #nixos
chaker has joined #nixos
zzamboni has quit [Quit: Leaving.]
<chaker>
Hey, is't possible to deploy Raspberry PI machines with nixops?? My idea is to create a deployment that have a the configuration of a PI 3 and deploy the configuration from my machine, perhaps by using a none backend.
<chaker>
The problem that I see here is with cross compilation since the configuration will be built on my machine which has a different systemd arch than the PI.
<chaker>
Did anyone try to do something like this before?
<ottidmes>
chaker: Just trying out nixops myself and have no experience with Raspberry PIs, but I do not see why not? As long as it has Nix installed, a network connection, and SSH root access
<mkaito>
does anyone currently use nix with ruby? Bundix looks unmaintained, and the info on the wiki and the nixpkgs manual looks even older.
<sphalerite_>
manveru does I believ
<ottidmes>
chaker: Ah, different arch, then I have no idea
<sphalerite_>
chaker: cross-compilation support in nixpkgs isn't completely usable for that sort of hting yet
<sphalerite_>
chaker: you'd have to offload the builds to the pi as well
<aminechikhaoui>
sphalerite_: maybe it's possible to use nixops with nix builders set to the target env itself together with substitution as hydra is building aarch64 afaik
zzamboni has joined #nixos
<chaker>
Okay, let me try than to do that :) will post the result back here.
<mbrock>
umm, I can't use "nix-env -e" anymore, I guess since I upgraded to nixUnstable
<mbrock>
I get an "unexpected EOF reading a line" after "building path(s) ...-user-environment"
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/staging f3abbf3 Frederik Rietdijk: Merge pull request #35798 from ryantm/auto-update/libraw1394-2.1.1-to-2.1.2...
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to staging: https://git.io/vAiZ7
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/staging 0800585 Ryan Mulligan: libraw1394: 2.1.1 -> 2.1.2...
MercurialAlchemi has quit [Ping timeout: 248 seconds]
zzamboni has quit [Client Quit]
zzamboni has joined #nixos
<mkaito>
manveru: not a specific issue, just trying to figure out how one could deploy a sinatra app with nix. I've made bundix agree somehow and got a gemset.nix and a default.nix that uses it. and then the nix store started complaining about not being able to change ownership of random files...
<mbrock>
also, my usual practice of inserting 52 "a" characters as a fake sha256 hash doesn't work anymore :'(
zzamboni has quit [Client Quit]
zzamboni has joined #nixos
<mbrock>
guess I'll use nix-prefetch-git
<manveru>
mkaito: what files?
chaker` has joined #nixos
chaker has quit [Remote host closed the connection]
<manveru>
mkaito: it might be that you have to change your working directory to a mutable one if it tries to make a tmp or cache folder or such
* TweyII
is going to have to rethink his workflow ›.›
<jonge>
hey there. how can i modify my stdenv so that CXX=g++ and not clang++ ?
<mkaito>
manveru: haven't even reached that stage yet. I'll have to handle an upload folder somehow, but right now it was complaining about not being able to change ownership in the nix store. I just nuked the nix store, seems to have fixed it. now nix-build keeps running out of memory -_-
<mkaito>
any way I can exclude something from the 'source' passed to mkDerivation?
<TweyII>
jonge: Are you on Mac?
<jonge>
TweyII: yes
<TweyII>
jonge: There's a special ‘gccStdenv’
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/staging d10c201 Frederik Rietdijk: Merge remote-tracking branch 'upstream/master' into HEAD
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to staging: https://git.io/vAicV
<TweyII>
jonge: That I believe does what you want
<manveru>
mkaito: filterSource
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vAico
<NixOS_GitHub>
nixpkgs/master 95e9896 Ryan Mulligan: memcached: 1.5.4 -> 1.5.5...
<NixOS_GitHub>
nixpkgs/master b8c67f3 adisbladis: Merge pull request #35870 from ryantm/auto-update/memcached-1.5.4-to-1.5.5...
NixOS_GitHub has left #nixos [#nixos]
<michas__>
Hi, `rkt run` complains that group "rkt" is missing. Should I create that group manually or is there maybe some "enabled" option which takes care of that?
<NixOS_GitHub>
nixpkgs/master b0a8ca6 Ryan Mulligan: mediainfo-gui: 17.10 -> 17.12...
<NixOS_GitHub>
nixpkgs/master a69917e adisbladis: Merge pull request #35871 from ryantm/auto-update/mediainfo-gui-17.10-to-17.12...
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vAicA
NixOS_GitHub has left #nixos [#nixos]
<mkaito>
manveru: fetchgit sounds like it would do what I want (one of the things I want to ignore is the .git folder, in fact)
cement has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master 9c51e9f Ryan Mulligan: minisign: 0.7 -> 0.8...
<NixOS_GitHub>
nixpkgs/master b5baccb adisbladis: Merge pull request #35864 from ryantm/auto-update/minisign-0.7-to-0.8...
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vAicp
NixOS_GitHub has left #nixos [#nixos]
<yorick>
manveru: when should I use builtins.fetchgit vs pkgs.fetchGit?
mkoenig has quit [Ping timeout: 245 seconds]
<manveru>
sorry, it's builtins.fetchGit
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master 6d0f342 adisbladis: Merge pull request #35875 from ryantm/auto-update/mbpfan-2.0.1-to-2.0.2...
<NixOS_GitHub>
nixpkgs/master e01ecc2 Ryan Mulligan: mbpfan: 2.0.1 -> 2.0.2...
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vAiCT
NixOS_GitHub has left #nixos [#nixos]
<yorick>
manveru: ok, but when should I use the nixpkgs one?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master ef27d3e Ryan Mulligan: mcelog: 153 -> 154...
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vAiCY
<NixOS_GitHub>
nixpkgs/master 84249c7 adisbladis: Merge pull request #35873 from ryantm/auto-update/mcelog-153-to-154...
NixOS_GitHub has left #nixos [#nixos]
<manveru>
yorick: i think the benefit of builtins.fetchGit is that it allows you to not pass the sha256 if you've got a revision?
<manveru>
i can't say i've used it yet :)
<manveru>
just saw it in the release notes
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master 0a4f591 adisbladis: Merge pull request #35865 from ryantm/auto-update/mg-20170828-to-20171014...
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vAiCn
<NixOS_GitHub>
nixpkgs/master f361beb Ryan Mulligan: mg: 20170828 -> 20171014...
NixOS_GitHub has left #nixos [#nixos]
<yorick>
manveru: it also runs at evaluation time, so can use your own ssh keys
<TweyII>
yorick: builtins.fetchGit is pretty new, so won't work on older Nix versions
<manveru>
that's actually very awesome
<yorick>
I don't care about the past :P
<manveru>
there's no excuse to use old nix anymore :D
<TweyII>
Then I think you should always use builtins.fetchGit
mkoenig has joined #nixos
markus1189_ has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master 939e653 Ryan Mulligan: menu-cache: 1.0.2 -> 1.1.0...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master b75327e adisbladis: Merge pull request #35869 from ryantm/auto-update/menu-cache-1.0.2-to-1.1.0...
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vAiCr
* mbrock
finds himself in dire acute need for Agda 2.5.4 which is not in Nixpkgs yet...
<mbrock>
time for some overriding
<hodapp>
found the static types guy!
* hodapp
trips over 3 Haskell books to run and throw rocks at mbrock
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master 3265226 Joachim F: Merge pull request #35859 from ryantm/auto-update/mksh-56b-to-56c...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
[nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vAiCy
<NixOS_GitHub>
nixpkgs/master 4e2def9 Ryan Mulligan: mksh: 56b -> 56c...
<mbrock>
2.5.4 has do notation, yay
<hodapp>
I need to work through some stuff in Lean Theorem Prover again...
<hodapp>
I rather liked it but it's a much younger system than Coq, Agda, or even Idris
<TweyII>
I'm surprisingly a fan of L∃∀N
<TweyII>
I thought I'd find the syntax too verbose after Agda, but actually it feels very nice
<mbrock>
I'm not doing much actual proving in Agda, with equational reasoning over algebraic structures or whatever, but the dependent types and the flexible syntax makes it really nice for defining DSLs, I've noticed
<michas__>
Hi, is there any chance to see what was the last nix-env action I did, i.e. what exactly would nix-env --rollback do in the current situation?
<mbrock>
so it's like a Haskell with better syntax, better module system, and basically just a better type system?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to staging: https://git.io/vAiWG
<NixOS_GitHub>
nixpkgs/staging 15beb89 Frederik Rietdijk: python: wrapt: 1.10.5 -> 1.10.11
NixOS_GitHub has left #nixos [#nixos]
<mbrock>
it even has pretty cool macros, where you get to transform syntax trees and interact with the type checker in a neat way
<TweyII>
mbrock: Eh, it has a lot of nice things but usability is not always as good as Haskell in practice, and performance is definitely not — it's much closer to the proof assistant side, and it shows if you try to use it for programming
<mbrock>
TweyII: yeah, I'm just happy because my use case basically doesn't need any performance
<mbrock>
and the Emacs mode and the HTML generator are *extremely* useful!
<TweyII>
The emacs mode is lovely
<TweyII>
I wish more things had Agda's hole support
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Lassulus opened pull request #35880: fix zathura on stable 17.09 (release-17.09...zathura-stable) https://git.io/vAiWu
NixOS_GitHub has left #nixos [#nixos]
ryanartecona has joined #nixos
michas__ has quit [Remote host closed the connection]
<aminechikhaoui>
Folks re:musl rfc, I'm trying to understand how musl support will help packaging static binaries ? does that mean static linking ? and how would a libc change affect how libraries are linked in general, isn't that the job of the compiler (gcc and al) ?
<palo>
mbrock: First time I saw dependent types I was very impressed, but after a while (playing around with idris) I must say this concept is over-engineered and usually results in endless compile problems. (I also saw rarly a usecase for it, like very rarly printf was the only one)
<aminechikhaoui>
possibly a newbie question ^ :D
<infinisil>
palo: dependent types is the same as proof checking, which is very useful
<TweyII>
palo: Dependent types are really incredibly useful and can be applied all over the place, as well as providing a consistent framework that obviates a lot of more complicated type-system features from other systems
hyper_ch2 has quit [Quit: Page closed]
<infinisil>
TweyII: Agreed, especially apparent with haskell constraints, kinds, types, type families, etc. Which are all unified in Idris
<palo>
I never found a usefull situation (for example to restrict a list to 3 elements)
<TweyII>
palo: It's rarely useful to restrict a list to 3 elements, but often useful to restrict a list to n elements where n is constrained to be e.g. the same as the length of some other list
<palo>
for me it was always an excuse to create proper types and hide contracts between interfaces
<TweyII>
palo: In the same sense in which it's rarely useful to write a loop over 3 elements :þ
Sonarpulse has joined #nixos
<infinisil>
palo: Have you checked out the ST File interface in Idris? It has the perfect interface for interacting with files in a guaranteed safe way
<palo>
infinisil: nope, ... let me check it out
<TweyII>
palo: Wait, how does creating proper types *hide* contracts?
<mbrock>
I don't use a huge amount of dependent types, but for example, my project involves a stack machine where I could quite easily make it impossible to write mismatched stack operations
zzamboni has quit [Quit: Leaving.]
<infinisil>
I also had a recent example of where I wished to have dependent types for State machines in haskell
zzamboni has joined #nixos
<palo>
infinisil: yeah I also read that "when you really need dependent types, you really need them", maybe I was just fooling around back than, and got the wrong impression on how to use them
<palo>
(damn the cite is wrong :D)
zzamboni has quit [Client Quit]
<mbrock>
I started watching https://www.youtube.com/watch?v=vy5C-mlUQ1w and it seems like an interesting and pragmatic approach to explain the purpose of dependent type programming
<palo>
it was more like " if you need them there is nothing else you can use instead"
zzamboni has joined #nixos
<infinisil>
well dependent types are strictly more powerful than non-dependent types
<infinisil>
This conversation is probably a bit off-topic for #nixos though, since Nix' type system is like non-existant lol
<infinisil>
we're like infinitely far away from dependent types
<palo>
:D
<infinisil>
(Will be happy to discuss dependent types in #idris or ##dependent though)
<mbrock>
I don't understand why, when I try to use Agda master's default.nix, it fails to satisfy "blaze-html >=0.8 && <0.10", when my hackage-packages.nix has "0.9.0.1" as the version for "blaze-html"
<infinisil>
mbrock: do they not have a pinned nixpkgs?
<palo>
infinisil: sure, but I guess I'm not really in the topic anymore and also not enough experianced. (I'm happy for the ST tip, will read this the next days, it's a lot of theory behind it)
<shlevy>
(continuing a conversation from #riscv and #nixos-dev) sorear: Overlays are the hot new mechanism for adding/overriding packages in a nixpkgs set https://nixos.org/nixpkgs/manual/#chap-overlays
pkill9_ is now known as pkill9
<shlevy>
sorear: bootstrapping is the process of getting from binaries on tarballs.nixos.org to a fully compiled toolchain ready to build our real package set
<shlevy>
They combine while you're working on the standard env, because you ideally don't want to rebuild the whole world a million times just to do initial validation on your 1-line glibc buld change
<shlevy>
So ideally there'd be a way with overlays to say "I'm updating glibc in *this* pacakge set, but taking my stdenv from *that* one"
<shlevy>
So that your stdenv doesn't pick up the glibc change for its own packages
<sorear>
unrelated thing from last night, do I have this right: the reason you can "just" cross-compile the kernel, systemd, and nix but gcc has to be cross-compiled, tarred, uploaded to tarballs.nixos.org, and re-created as a fetchurl derivation is because nix considers gcc to be a build input and includes it in hashes but does not consider itself or the running kernel to be build inputs? so the gcc has to be a fixed *binary*
<sorear>
in order to have a stable base to build the rest on and have working cachein
detran` has quit [Ping timeout: 260 seconds]
<dtz>
also easy way to build a package set with a new stdenv would be nice O:).
<shlevy>
sorear: Yes, exactly
<shlevy>
sorear: The Nix "system" string is meant to capture "which kernel is running"
<shlevy>
sorear: And we try hard not to make the version of nix matter to the result of the build, so long as it's new enough to support whatever features we use
robstr has quit [Remote host closed the connection]
<shlevy>
sorear: Note that this isn't strictly speaking required though. E.g. on non-Linux non-Darwin we just sue /usr/bin/gcc or whatever
robstr has joined #nixos
<shlevy>
But having a pure stdenv is a major goal for new platform support
mizu_no__ has joined #nixos
<gchristensen>
("because impurity is a crime!")
<dtz>
and in theory the running kernel or running Nix version can change without changing the build result--and AFAIK generally that's true.
<shlevy>
Right. It's less true with darwin, sadly :(
<dtz>
:(
<shlevy>
But Linus is very keen on reproducibility across versions :)
patrl has joined #nixos
patrl has quit [Client Quit]
detran` has joined #nixos
<dtz>
so I spent 10s and put together this PR--anyone have thoughts on it, particularly why it'd be a bad idea?
<dtz>
I thought it'd break a lot more than it seems to, haha, given the thought put into it. And then looking at the breakage I/we could develop a better solution... xD
<sphalerite>
dtz: I'm in favour!
robstr has quit [Ping timeout: 256 seconds]
digitus has joined #nixos
robstr has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rnhmjoj opened pull request #35885: Mpv (master...mpv) https://git.io/vAig4
NixOS_GitHub has left #nixos [#nixos]
coot has joined #nixos
detran` has quit [Ping timeout: 248 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/python-unstable f627302 Robert Schütz: python3Packages.netdisco: allow newer zeroconf versions
<NixOS_GitHub>
nixpkgs/python-unstable 5364ea1 Robert Schütz: pythonPackages.pytest-xdist: 1.22.1 -> 1.22.2
<NixOS_GitHub>
[nixpkgs] dotlambda created python-unstable (+2 new commits): https://git.io/vAigE
NixOS_GitHub has left #nixos [#nixos]
jensens has quit [Ping timeout: 252 seconds]
mizu_no__ has quit [Quit: Computer has gone to sleep.]
robstr has quit [Remote host closed the connection]
coot has quit [Ping timeout: 265 seconds]
detran` has joined #nixos
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leat has joined #nixos
Fare has joined #nixos
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Itkovian has joined #nixos
<Fare>
Hi. Gerbil 0.12 is out. Previous version was called 0.12-DEV-1404-g0a266db. Doesn't nix consider 0.12 as older? Should I then call the nix package 0.12-RELEASE or something?
<gchristensen>
what would Nix think of 0.12.0?
pxc1 has joined #nixos
the_real_plumps has quit [Remote host closed the connection]
<Fare>
well, that's not how the upstream package is called.
<genesis>
If a package is not a release but a commit from a repository, then the version part of the name must be the date of that (fetched) commit. The date must be in "YYYY-MM-DD" format. Also append "unstable" to the name - e.g., "pkgname-unstable-2014-09-23".
<Fare>
genesis, in this case, it *is* a release.
Itkovian has joined #nixos
<Fare>
genesis, it's just that the project has this unusual convention of calling development versions *before* the release with the release version followed by -DEV-...
pasqui023 has joined #nixos
the_real_plumps has joined #nixos
<infinisil>
Fare: Well the relevant function is builtins.compareVersions, which indeed thinks that 1.12-DEV is newer than 1.12
<Fare>
should I call the package 0.12-release lowercase instead of uppercase?
<Fare>
infinisil, exactly
<infinisil>
Fare: I remember seeing an issue regarding this but can't find it
ebzzry_ has quit [Ping timeout: 248 seconds]
<simpson>
Fare: Live and learn, I suppose. Tell your users that they won't be able to $(nix-env -u) this one.
<genesis>
i would not follow upstream, and use unstable-date to be compliant.
<gchristensen>
I agree
<infinisil>
It seems to be a primitive string comparison
<Fare>
unless there's an established convention, I'll call the package 0.12-RELEASE, since 0.12-DEV-1404-g0a266db is already uppercase.
<gchristensen>
there is an established convention on version numbers in Nixpkgs, regardless of what the upstream literally uses, and you should follow it
<simpson>
There's clearly an established convention.
<Acou_Bass>
eyy everyone, im having trouble with sddm on nixos-unstable, it seems to boot to a black screen... anyone else having this? using nvidia gfx
<gchristensen>
Acou_Bass: I've seen that! but in my laziness I switched to lightdm :|
<Acou_Bass>
sddm itself isnt displaying, i can ctrl-alt-f2 to console
endformationage has joined #nixos
Neo-- has joined #nixos
<Fare>
gchristensen, yes, but isn't the nix convention based on release numbers being bumped up at release time rather than before release time?
<Acou_Bass>
gchristensen: hmm fair enough, may try that... any downsides?
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 10 new commits to release-17.09: https://git.io/vAiot
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/release-17.09 2d8f560 Miguel Madrid Mencía: zathura-pdf-mupdf: 0.3.1 -> 0.3.2...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/release-17.09 3338b50 Miguel Madrid Mencía: zathura-core: 0.3.7 -> 0.3.8...
<NixOS_GitHub>
nixpkgs/release-17.09 43a9105 Miguel Madrid Mencía: girara: 0.2.7 -> 0.2.8...
<gchristensen>
Acou_Bass: I dunno
<pasqui023>
Hello on my nixos install with kde 5.11 I can log out of user but if I try to switchusers without logging out it brings me to the lock screen,even if I try to switch to a new user form the lock screen
<gchristensen>
Fare: you should probably use 0.12.0 for now: nix-repl> (builtins.compareVersions "0.12.0" "0.12-DEV") == 1
<Acou_Bass>
worth a try, anythings better than not working at all xD
<Fare>
thanks! I knew of the nix and nixos manuals but not the nixpkgs manual.
rardiol1 has joined #nixos
<gchristensen>
ahh yeah :)
<gchristensen>
IMO: each manual should include as an appendix its lower level's manual. NixOS contains the Nixpkgs and Nix manual, Nixpkgs contains the Nix manual
<gchristensen>
this would also fix the problem where the nixpkgs manual is for unstable and nixos manual is for stable
<Fare>
if I use the -unstable- convention, how will it know that 0.12 is after unstable-2018-02-26 but before unstable-2018-02-28 ?
<gchristensen>
typically there is an -unstnable package, separate from the stable package
peacememories has joined #nixos
peacememories has quit [Client Quit]
<Fare>
ok.
<Fare>
It's true that there hadn't been a stable release of gerbil yet
<Fare>
0.12.0 still feels wrong.
<Fare>
what about 0.12-0 or something? Oh, it's still considered older than 0.12-DEV-...
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vAiKX
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #35887: luatex: patch to fix crash w/gcc7 (master...fix/luatex-issue-35839) https://git.io/vAiK9
NixOS_GitHub has left #nixos [#nixos]
peacememories has joined #nixos
<Fare>
I believe 0.12-RELEASE while ugly does not violate the guidelines, and is backward compatible. I'll use that now. For the next versions, I'll use 0.13 and unstable-YYYY-MM-DD. But backward compatibility is more important than minor style issues.
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
szicari has quit [Read error: Connection reset by peer]
szicari has joined #nixos
patrl has quit [Quit: WeeChat 1.9.1]
<dtz>
gchristensen: did github fix the "pulse" rendering thing you tweeted? haha it looks right now
<simpson>
Fare: FWIW it sounds a lot like you just don't care about our guidelines and want to do what you always planned to do regardless of what we say or what suggestions have been documented.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vAi6u
<NixOS_GitHub>
nixpkgs/master 90b69fa Jörg Thalheim: a2jmidid: does not build on aarch64
NixOS_GitHub has left #nixos [#nixos]
mg- has joined #nixos
<mlieberman85>
Is there a way to share IPC namespaces between containers using nixos-container?
sigmundv has quit [Ping timeout: 245 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fare opened pull request #35888: Releases of Gambit and Gerbil (master...master) https://git.io/vAi6F
NixOS_GitHub has left #nixos [#nixos]
<Fare>
simpson, I do care about the guidelines and suggestions.
pxc1 has quit [Ping timeout: 252 seconds]
<Fare>
simpson, I will change things in the future.
<simpson>
Fare: I'm wondering what's actually going to break for you or your users besides ($
<simpson>
*besides $(nix-env -u).
<Fare>
But for this release, the name is compatible enough with the guidelines and not a regression compared to what's checked into nixpkgs already.
<gchristensen>
still busted for me ...
winem_ has quit [Ping timeout: 248 seconds]
<Fare>
I care about smooth upgrades more than about immediate compliance.
<wervenyt[m]>
would anyone more experienced in nix[os] be willing to check out what's up with the 2bwm package? the maintainer hasn't replied to my email, and I'm having trouble finding the issue
robstr has quit [Remote host closed the connection]
rindvieh has quit []
<Fare>
(Next version will be fully compliant.)
<gchristensen>
Fare: sounds good
<genesis>
next version could be out before PR will be merge anyway :D
<gchristensen>
I definitely appreciate the usability concerns there
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<Fare>
Thanks. I appreciate the tremendous efforts you put into nix{,os,pkgs}
peacememories has quit [Ping timeout: 248 seconds]
<jtojnar>
where would I found C.UTF-8 locale file?
<TweyII>
wervenyt[m]: Looks fine to me; what problems are you experiencing?
<NixOS_GitHub>
[nixpkgs] dtzWill pushed 3 new commits to master: https://git.io/vAiPr
<NixOS_GitHub>
nixpkgs/master af73962 Will Dietz: luatex: add prefix to patch so it applies with default patch flags
<NixOS_GitHub>
nixpkgs/master 08805e9 Will Dietz: texlive: patch luatex to fix crash w/gcc7...
<NixOS_GitHub>
nixpkgs/master c9cf193 Will Dietz: Merge pull request #35887 from dtzWill/fix/luatex-issue-35839...
NixOS_GitHub has left #nixos [#nixos]
<ottidmes>
wervenyt[m]: I just ran `nix-build -A 2bwm` in my nixpkgs checkout and it downloaded it from the cache, are you on nixos-unstable?
pxc1 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vAiPF
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master e4623d4 Jörg Thalheim: aegisub: not supported on aarch64...
pasqui023 has quit [Quit: Page closed]
<TweyII>
wervenyt[m]: I think that's to do with the aliases in aliases.nix — most aliases evaluate to a derivation, but the numerical aliases introduced in 18.03 seem to evaluate to strings instead
chaker` has quit [Remote host closed the connection]
<TweyII>
wervenyt[m]: If you build 2bwm explicitly, e.g. nix-shell -p 'callPackage pkgs/applications/window-managers/2bwm {patches=[];}', it seems to work fine
<jonge>
how can i run my `nix-shell` (or with what changes to the default.nix) so that CXX=clang++ (using linux now) ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master 2b7e912 Bignaux Ronan: libdsk: init at 1.5.8
<NixOS_GitHub>
[nixpkgs] jtojnar pushed 2 new commits to master: https://git.io/vAiDB
<NixOS_GitHub>
nixpkgs/master dbb22dd Bignaux Ronan: xcpc: init at 20070122
NixOS_GitHub has left #nixos [#nixos]
<simpson>
jonge: Grab `clangStdenv` from pkgs, and then `clangStdenv.mkDerivation` and you'll get Clang as your CC.
<Acou_Bass>
ook... so the other day i said im getting this error: error: cannot auto-call a function that has an argument without a default value (‘config’)
<Acou_Bass>
it was suggested that i go through my user-installed packages and remove them until the error quits
<jonge>
simpson: oh i thought that's just for mac. thx!
<Acou_Bass>
ive just removed every package from my user (nix-env -e '.*') and im still getting the error :(
<simpson>
jonge: I don't know whether it's supposed to only be for OSX, but it works great on Linux for everything I've tried it on.
<jonge>
simpson: just tried it. works perfectly. thank you for the quick answer!
pxc1 has quit [Ping timeout: 245 seconds]
<gchristensen>
holy guacamole, 161/211 PRs from ryantm merged already??
<Acou_Bass>
i get the error when i run nix-env -iA nixos.anypackage
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jtojnar closed pull request #34965: xcpc: init at version 20070122 (master...cpc) https://git.io/vAGYU
NixOS_GitHub has left #nixos [#nixos]
<jonge>
simpson: is there a parameter to `nix-shell` that i can provide that automatically substitutes `stdenv` by `clangStdenv` so i do not have to change the file manually?
<simpson>
jonge: I don't know. I suspect so, since OSX defaults to Clang, but I don't know how to do it.
vidbina has quit [Ping timeout: 260 seconds]
<lassulus>
so when does a new channel gets released? I'm waiting for fixed zathura on 17.09 and this job is already finished: https://hydra.nixos.org/build/70240064
<jonge>
simpson: i gave my default.nix file a parameter `{ stdenv ? pkgs.stdenv }`. now when i run `nix-shell --argstr stdenv pkgs.clangStdenv` it says "error: value is a string while a set was expected".
<jonge>
do i use the argument on the cmd line wrong or is there a way to convert from string to whats needed?
<simpson>
jonge: Because --argstr passes a string. I don't know how to make nix-shell do this particular thing.
clacke[m] has joined #nixos
<jonge>
i see. thx
rihards has quit [Quit: rihards]
<TweyII>
jonge: You can use just --arg, but you'll need to bring pkgs into scope
gustavderdrache1 has joined #nixos
<TweyII>
jonge: So e.g. nix-shell --arg stdenv '(import <nixpkgs> { }).clangStdenv' will do the trick
<jonge>
TweyII: thx. i just realized that i chose argstr over arg because i am blind.
<ottidmes>
lassulus: You can also use: unstable = import /your/nixpkgs/nixos-unstable/checkout { config = { allowUnfree = true; }; }; in your nixpkgs overlay/overrides and then you can just use pkgs.unstable.zathura, this will also download its dependencies from unstable, so it will cost you a bit more disk space than usual, but they should be downloaded from the cache
<jonge>
TweyII: but wow that works. thanks man!
<TweyII>
jonge: nix-shell -p will (I learnt today) also evaluate its argument with nixpkgs in scope, so e.g. nix-shell -p 'import ./. { stdenv = clangStdenv; }' is also an option
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jtojnar pushed 1 new commit to master: https://git.io/vAiS3
<NixOS_GitHub>
nixpkgs/master 795e49b Jan Tojnar: pipewire: 0.1.8 → 0.1.9
NixOS_GitHub has left #nixos [#nixos]
<jonge>
TweyII: ok that is a little bit too fast for me, i did not get that one
<TweyII>
jonge: The arguments to nix-shell -p are not just package names but arbitrary Nix expressions, with <nixpkgs> imported and all its attributes in scope
<TweyII>
'import ./.' imports your file, so results in a function (because the expression in your file defines a function), which you can then call with whatever arguments you want
<TweyII>
And 'clangStdenv' is in scope, pulled from nixpkgs, because -p puts it there
<jonge>
TweyII: i see. but in my particular case, where i want the whole derivation to use a different stdenv this would not help me, or would it?
<jonge>
i am however amazed how ninja-like one can modify the build environment for coding.
<jonge>
running the unit tests with X different compilers and versions... i am blown away
<TweyII>
nix-shell -p 'import ./. { stdenv = foo; other = bar; yet_another = baz; }' is going to be nicer than nix-shell --arg stdenv '(import <nixpkgs> { }).foo' --arg other '(import <nixpkgs> { }).bar' --arg yet_another '(import <nixpkgs> { }).baz'
<ottidmes>
Is there a builtin or lib function to search the NIX_PATH? I know I can do <some-name> to lookup some-name=some-value in the NIX_PATH, but that errors when it is missing. I know too how to implement it in Nix if I have to, just wondering if it already exists
<jonge>
TweyII: that'x true.
<jonge>
TweyII: does `-p gcc7` somehow override all the other packages in my default.nix?
<jonge>
...because it does not find the headers i declare there
<TweyII>
jonge: No
<TweyII>
jonge: There's no magic overriding in Nix, just functions
<jonge>
i mean `nix-shell --pure --command "make -B && ./run"` works. but `nix-shell --pure --command "..." -p gcc7` does not work any longer because it does not find the headers which my default.nix fetches...
<TweyII>
ottidmes: It would be nice if builtins.pathExists "<some-name>" worked…
<TweyII>
jonge: -p gcc7 won't read your default.nix
<TweyII>
jonge: -p overrides the default default.nix/shell.nix lookup
<jonge>
ok. so i want to have all packages in my default nix plus another one. how to achieve that?
<jonge>
TweyII: symphorien got it to work with `nix-shell --arg stdenv 'with (import <nixpkgs> {}); overrideCC stdenv gcc7'`
<jonge>
`stdenv` is a parameter of my default.nix
<TweyII>
So you're using (overrideCC stdenv gcc7).mkDerivation ?
<jonge>
TweyII: basically, yes... ok so that works on my linux machine but turns out to be problematic on my mac.
<TweyII>
There is also gcc7.stdenv
<ottidmes>
TweyII: with builtins; with (import <nixpkgs/lib>); let getNixPath = name: let prefix = "${name}="; in concatStrings (map (removePrefix prefix) (filter (hasPrefix prefix) (splitString ":" (getEnv "NIX_PATH")))); in getNixPath "nixos-config"
<ottidmes>
TweyII: Running that in nix-repl seems to work :)
<TweyII>
ottidmes: Yeah, that'd work, but it would be good if <angle-paths> counted as absolute paths
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rycee pushed 1 new commit to master: https://git.io/vAiHb
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master ac4e65c Robert Helgesson: eclipse-plugin-jsonedit: 1.0.1 -> 1.0.2
knupfer has quit [Remote host closed the connection]
<TweyII>
ottidmes: Rather than being as special as they are
<jonge>
TweyII: ok what really works on mac and linux is overrideCC with the right choice of clangStdenv and gccStdenv matching the second parameter compiler package choice
<jonge>
thanks TweyII and symphorien for your help
<jonge>
i need to give a talk about this in my company. :D
<NixOS_GitHub>
nixpkgs/nix-2.0 cc2eeef Eelco Dolstra: Fix installing the Nixpkgs channel on the installation media...
ThatDocsLady_ has quit [Ping timeout: 245 seconds]
mekeor has joined #nixos
nh2 has quit [Quit: Leaving.]
<detran`>
anybody with a dell xps 15? do you use multiple monitors? and i3wm? does the resolution scaling between monitors work ok?
andromeda-galaxy has quit [Ping timeout: 248 seconds]
phdoerfler has joined #nixos
<gchristensen>
X doesn't really let you have multiple resolutions
andromeda-galaxy has joined #nixos
<detran`>
should I just get a precision with the 1920x1080 resolution then? I use my current laptop with a couple of other 1080 monitors and I don't know if high resolution is worth the hassle
<BlessJah>
detran`: I'm using 3x 1920x1080, it works
<BlessJah>
what do you mean by scalling?
<gchristensen>
well you can drop down the resolution when you're plugged in to the monitor I think
<BlessJah>
gchristensen: I used to work with three monitors with different resolution, it worked fine
<wervenyt[m]>
X's dpi scaling is flat across all outputs, but you can change it at any time
<detran`>
BlessJah: the xps 15 comes with a 3840x2160 screen, and I just have 1920x1080 monitors
astsmtl has quit [Ping timeout: 240 seconds]
astsmtl has joined #nixos
astsmtl has quit [Changing host]
astsmtl has joined #nixos
<BlessJah>
and you want to scale that 3840 down? or you just want to have 3840 + 1920 + 1920?
<detran`>
the second option, though I would accept the first if I had to
ryanartecona has joined #nixos
rogue_koder has quit [Quit: Konversation terminated!]
pxc has quit [Ping timeout: 245 seconds]
pxc1 has quit [Ping timeout: 265 seconds]
Itkovian has joined #nixos
<gchristensen>
I guess I'm thinking my problem was I can't use the computer at 3840x2160 and needed to scale it, while the scale needed to be different on external monitors
<BlessJah>
No problem, you'll just have upper or lower corner mismatch
<johnw>
clever: are you a Haskell user?
jtojnar has quit [Remote host closed the connection]
<Guanin>
Hi, when calling a script with a nix-shell shebang via sudo, I get "/nix/var/nix/db is not writable: Permission denied". Can someone explain, why? (I just want to pull jq and curl into the path)
<symphorien>
are you using nix multiuser or single user ?
<srhb>
Guanin: I've seen this error mostly when switching from nix to nixUnstable, I think.
jtojnar2 has quit [Ping timeout: 240 seconds]
<BlessJah>
detran`: 3840 vs 1920 is a big difference though, may be annoying. I used to work with macbook pro (2880x1800?) hooked to external FullHD, wasn't that great
<gchristensen>
anyone know of a tool to automatically put repo's in to a directory structure based on where they came from? like. projects/github.com/nixos/nixpkgs for example
<BlessJah>
gchristensen: I had such setup with repos cloned by ansible
<mbrock>
is there any easy way to install Nix 1.* now that the installer script on nixos.org/nix/install installs Nix 2?
<Guanin>
symphorien, nixOS with multiple user, I guess. logging in as the user and running the script works fine
jb55 has joined #nixos
<symphorien>
then try setting NIX_REMOTE=daemon
<symphorien>
sudo may have stripped this env var
<Guanin>
srhb, I'm just on 17.09-small
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master de1dce9 Robert Schütz: mopidy-mopify: 1.6.0 -> 1.6.1 and modernize
<NixOS_GitHub>
[nixpkgs] dotlambda pushed 3 new commits to master: https://git.io/vAijX
<NixOS_GitHub>
nixpkgs/master bb2aa1d Ryan Mulligan: mopidy-mopify: 1.5.17 -> 1.6.0...
<NixOS_GitHub>
nixpkgs/master 2812966 Robert Schütz: Merge pull request #35851 from ryantm/auto-update/mopidy-mopify-1.5.17-to-1.6.0...
<johnw>
I have a Haskell project for which I'm generating a default.nix with cabal2nix . > default.nix, and a shell.nix with cabal2nix --shell . > shell.nix. However, while nix-build is able to build the project, nix-shell --command "cabal build" fails due to a missing dependency. Can anyone help me understand why the evaluation of these two environments would be different in this way? I had thought that they would each be seeing exactly the
<johnw>
same haskellPackages set.
michas_ has quit [Remote host closed the connection]
<BlessJah>
gchristensen: I has something resembling nix for maintaining virtualenvs as well: install some packages, create wrapper scripts and put them in $PATH
<gchristensen>
oh ver ycool
<BlessJah>
cannot use it with nixos though, always short of few headers
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/python-unstable 6426fd5 Robert Schütz: pythonPackages.aiohttp: 3.0.4 -> 3.0.5
<NixOS_GitHub>
nixpkgs/python-unstable b1b1660 Robert Schütz: python3Packages.netdisco: allow newer zeroconf versions
<NixOS_GitHub>
[nixpkgs] dotlambda force-pushed python-unstable from f627302 to aaaaa49: https://git.io/v5aIf
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/python-unstable aaaaa49 Robert Schütz: pythonPackages.asynctest: 0.11.1 -> 0.12.0
<johnw>
another problem I've run into with this discrepancy is that while one project will build fine with nix-build, a nix-shell build of the same project fails to find a Darwin framework; but how can they be using different build environments?
<mbrock>
johnw: I'm not all that knowledgeable, but I'm sometimes a bit skeptical of nix-shell because it will start a real shell using my own bash rc files, so it's not super clear how the environment ends up
<johnw>
my main question right now is how *could* the nix-build and nix-shell pkgs environments be so different; as in, there's a package that's in one but not in the other, but I don't see how they aren't just loading from the same source
dbmikus has quit [Ping timeout: 245 seconds]
chessai has joined #nixos
<Guanin>
Thanks symphorien, setting NIX_REMOTE fixed it :)
<gchristensen>
johnw: hmm maybe try with --pure?
<johnw>
I tried --pure with an absolute path for 'cabal' (since cabal isn't a direct dependency), but I get the same missing dependency error
<ottidmes>
johnw: I think it is mentioned in the issue I linked, it probably has to do with the interference of the environment in nix-shell
<ottidmes>
johnw: If you read the manpage of nix-shell about --pure it states for example "Note that ~/.bashrc and (depending on your Bash installation) /etc/bashrc are still sourced"
<johnw>
ottidmes: I wonder what sort of interface could create what I'm seeing...
<johnw>
hmm
<johnw>
s/interface/inteference
<johnw>
if I could get nix-build to run cabal build with -v, I could see where they differ...
dbmikus has joined #nixos
ckauhaus has quit [Quit: Leaving.]
jb55 has quit [Ping timeout: 260 seconds]
coot has quit [Quit: coot]
<johnw>
I bet this is because when I run nix-shell --command "cabal build", a much different set of things is happening than when nix-build runs its buildPhase
<Guanin>
symphorien, at least it works for sudo, but not for my intended usecase as AuthorizedKeysCommand for openssh :(
Fare has joined #nixos
ThatDocsLady_ has joined #nixos
kitemikaze has quit [Remote host closed the connection]
kitemikaze has joined #nixos
pxc1 has joined #nixos
civodul has joined #nixos
<disasm>
lol, leave it to Comcast to screw up a conference registration process so bad they tell you 2 days after you register for the event that there are no spots left. I registered as soon as I saw it on the nixos weekly announcement, so guessing they were booked even before the nixos weekly newsletter was published.
<disasm>
or maybe it was 1 day, but still :)
<gchristensen>
maybe Susan can get us more spots :)
<disasm>
that would be awesome! Are you going Graham(?
<gchristensen>
I didn't get in either
nyberg has joined #nixos
<disasm>
Do you have contact information for Susan?
<gchristensen>
we follow each other on twitter :) let me message her
<disasm>
that would be awesome! I really want to go :)
<BlessJah>
any events in europe (besides number of local user groups)?
rgc has left #nixos [#nixos]
<nyberg>
hello, I was wondering how to run an extra command during the build phase of an idris package. Thus far I have this https://0x0.st/sA6s.nix which "builds" but fails to be of any use as none of the actual build phase is run.
ThatDocsLady_ has quit [Ping timeout: 245 seconds]
orivej has joined #nixos
MP2E has joined #nixos
<sudoreboot[m]>
`sudo nixos-rebuild -I nixpkgs=/data/src/nix/nixpkgs boot` Doesn't actually build from my local checkout; why is that?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/python-unstable 2bc81b7 Robert Schütz: pythonPackages.virtual-display: move expression
<NixOS_GitHub>
nixpkgs/python-unstable 6bc69f2 Robert Schütz: pythonPackages.BlinkStick: patch for newer pyusb version
<NixOS_GitHub>
[nixpkgs] dotlambda pushed 4 new commits to python-unstable: https://git.io/vAPIf
<NixOS_GitHub>
nixpkgs/python-unstable dba55d9 Robert Schütz: pythonPackages.BlinkStick: move expression
NixOS_GitHub has left #nixos [#nixos]
<gchristensen>
dotlambda: hey, would you mind continuing to do PRs for the evaluation chechks?
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vidbina has joined #nixos
<BlessJah>
I'm trying to write nix script that'd let me build iso with just 'nix-build iso.nix'
<BlessJah>
how iso images are build is closer to how whole system is build, rather than a single packages, isn't it?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master e21057a Robert Helgesson: pytrainer: 1.11.0 -> 1.12.0
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
[nixpkgs] rycee pushed 1 new commit to master: https://git.io/vAPIX
<sudoreboot[m]>
Sorry, I was mistaken. Disregard my question
<ottidmes>
BlessJah: It basically builds a whole system, so yeah
<BlessJah>
by running nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=iso.nix
<BlessJah>
I'm telling it to take (<nixpkgs/nixos>).config.system.build.isoImage derivation (is it derivation?)
nyberg has quit [Ping timeout: 245 seconds]
chaker has joined #nixos
Sonarpulse_ has joined #nixos
<BlessJah>
What does nixos-config=iso.nix mean? I can see that there is such attribute in (import <nixpkgs/nixos> {}).config.system.build
ryantm has joined #nixos
<BlessJah>
I'm not sure if it's related
<ryantm>
gchristensen: I have 112 more PRs to do so far.
goibhniu has quit [Ping timeout: 240 seconds]
<gchristensen>
neat
<gchristensen>
let me scale some machines up
<ryantm>
gchristensen: I'm not going to start yet, like in 6 hrs.
<gchristensen>
oh
<gchristensen>
I'll scale them back down ;) ping me with like 30min notice?
<ryantm>
gchristensen: Ok!
<ottidmes>
BlessJah: It is assigning a NIX_PATH value
<BlessJah>
gchristensen: no autoscalling?
Sonarpulse has quit [Ping timeout: 248 seconds]
<BlessJah>
ottidmes: ignotum per ignotum :|
goibhniu has joined #nixos
<chaker>
Hey, I'm trying to build a maven project using Nix. I managed to generate project-info.json file using the maven2nix plugin. I also created a default.nix that contain "jar = (buildMaven ./project-info.json).build". However it's failling due to missing packages!! The POM for org.codehaus.plexus:plexus-component-annotations:jar:1.6 is missing, no dependency information available. Can we add packages outside from project-info file?
<gchristensen>
BlessJah: I don't have time or budget to set that up right now
pmade has joined #nixos
<ottidmes>
BlessJah: Sorry, I might just be introducing more confusion, I never really use -I, but nixos-config determines the config the iso should be based on
<ottidmes>
BlessJah: I always use NIXOS_CONFIG=/wheel/proj/nixcfg/backupserver/build/installer.nix nix-build '<nixpkgs/nixos>' --no-out-link -A config.system.build.isoImage
<chaker>
Well nothing is mentioned in the README of mvn2nix-maven-plugin about that
vidbina has quit [Quit: Lost terminal]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dywedir opened pull request #35903: nnn: 1.6 -> 1.7 (master...nnn) https://git.io/vAPLh
NixOS_GitHub has left #nixos [#nixos]
rogue_koder has joined #nixos
<mfiano>
How do I view the shutdown log? I saw 2 things had [FAILED] next to them, but it goes by too fast to know what.
<Guanin>
you can jump to the end with capital G in there
<BlessJah>
oh, then I'm skipping ahead
<BlessJah>
I'm on pills
<mfiano>
Guanin: Hmm, I have 3 failures
<mfiano>
Failed unmounting /run/user/1000. Failed unmounting /home. watchdog: watchdog0: watchdog did not stop!
hamishmack has joined #nixos
Georgyo has joined #nixos
<Guanin>
did the shutdown took a long time (1m30s or something like that)?
<ottidmes>
BlessJah: Gotta love tech talk where nothing is what it seems, like I can say: Ah, its good you are using pills :P
<mfiano>
Guanin: No it's instant
kelleyNif has quit [Quit: Leaving.]
<Guanin>
okay, I do have the same error regarding watchdog on my laptop with archlinux, but it never really bothered me, as it is afaik some race condition with systemd. It just annoys me because shutdown takes a while
<ottidmes>
mfiano: I get that one as well, not always, but often enough, probably just some process or another preventing those unmounts, I regard them as harmless
<BlessJah>
ottidmes: whoever designed variadic templates in C++ must have been on LSD
<mfiano>
ottidmes: That's hard to ignore my important data on home not unmounting properly, and maybe data not even synced to disk yet because of that
alex`` has quit [Ping timeout: 256 seconds]
<ottidmes>
mfiano: Sure, I would rather have it unmount properly, but I am not afraid of that, I have backups and almost all my applications handle crashes good enough
sakshams has joined #nixos
<BlessJah>
ottidmes: will it even be possible to write single file so I could 'nix-build iso.nix
<mfiano>
Googling seems to suggest it's related to having a display manager running that logs a user in on /home
<BlessJah>
when I need to set NIX_PATH?
<ottidmes>
BlessJah: Hah, just using C++ is insane in my book :P
<ottidmes>
mfiano: Are you using lightdm as well?
<sakshams>
Hi all, a gentoo-to-NixOS convert here. I'm struggling with a weird version issue, there's 2 versions of irony-server appearing, and that's breaking things for me.
<mfiano>
ottidmes: No, I'm using the 'auto' displayManager
<ldlework>
how do I install ack-grep?
<ottidmes>
BlessJah: Yeah there are multiple ways I could think of, some more hacky than others
<BlessJah>
sphalerite_: I believe -f '<nixpkgs>' to be unnecessary
<sphalerite_>
BlessJah: it's necessary for consistent behaviour
<BlessJah>
sphalerite_: what's the difference between -iA nixos.ack and -f '<nixpkgs>' -iA ack then?
hiratara has joined #nixos
<sphalerite_>
BlessJah: without the -f, it'll refer to ~/.nix-defexpr
peacememories has quit [Ping timeout: 256 seconds]
<sphalerite_>
the behaviour's rather confusing, but with the default setup it boils down to `nix-env -iA nixos.ack` if you're on nixos and `nix-env -iA nixpkgs.ack` otherwise
<BlessJah>
oh, makes sense
<BlessJah>
sphalerite_: and if I had other channels?
<sphalerite_>
nix-env -f '<nixpkgs>' -iA ack behaves consistently across all non-pathological nix installations :D
mmlb has quit [Ping timeout: 248 seconds]
<BlessJah>
you're right
<sphalerite_>
then you'd typically want to do nix-env -f '<other-channel-name>' provided your NIX_PATH is set up to refer to the channels profile
<BlessJah>
error: file ‘nixos-unstable’ was not found in the Nix search path (add it using $NIX_PATH or -I)
<ottidmes>
BlessJah: Thinking about it some more, you could create something in Nix, but it will not be much different than making a shell alias, because like you said, you basically ask for the evaluated config to build it as an iso, so in that sense it cannot be a standalone package (or that package would have to do a similar "build system as iso" call itself)
<sphalerite_>
BlessJah: you have the channel available? and your channels dir on NIX_PATH?
<sphalerite_>
and you have it in root's channels, not your user's? (sudo nix-channel --list)
<BlessJah>
in users
roberth has quit [Ping timeout: 240 seconds]
<ottidmes>
lol, I have had environment.shellAliases.nix-env = "nix-env --file '\\''<nixpkgs>'\\''"; for ages, I almost said, huh, I never do that but never encountered a problem, well that alias explains why...
<sphalerite_>
yeah the user's channels aren't in the NIX_PATH by default, just to add to the confusion
<BlessJah>
root has nixos, user has nixos-unstable (only)
<sphalerite_>
This is why nix-env is terrible and needs replaced
<sphalerite_>
ottidmes: yep. I have the same. It's nice because you can still use -f . or whatever, as only the last -f seems to take effect
<BlessJah>
sphalerite_: I'd love to see something like environment.nix where I could manage env like I manage system-wide packages in /etc/nixos/
shabius has quit [Quit: Leaving]
<sphalerite_>
BlessJah: check out the page linked at
<LnL>
yeah you can manage user profiles mostly declarative, but can’t link it right now
<sphalerite_>
LnL: it's linked from the wiki page :)
<ottidmes>
BlessJah: But the file would be your NixOS config right? Why not make your own, call it nix-iso-build, that ends up calling nix-build with the config supplied?
<LnL>
sphalerite: oh? :)
<sphalerite_>
yep
<BlessJah>
sphalerite_: I use -iA ${channel}.foo, but I guess it's anyway replaced with nixos-unstable next time I nix-env --upgrade
shabius has joined #nixos
<sphalerite_>
BlessJah: --upgrade is another hairy issue, it's alsom entioned on the wiki page
<LnL>
well I’m glad I fixed that to be a proper overlay :D
<BlessJah>
ottidmes: ideally building would boil down to ./iso.nix, with nix being only requirement
<BlessJah>
i.e. no aliases, scripts etc
nyberg has joined #nixos
<BlessJah>
sphalerite_: is it possible to manage env without nix-env? sth like environment.systemPackages?
<sphalerite_>
BlessJah: not really, nix-env is necessary for managing profiles. But you can use wrappers like LnL's nix-rebuild.
<sphalerite_>
nixos-rebuild uses nix-env under the hood as well.
<LnL>
yeah even nixos-rebuils depends on the set operation of nix-env
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dotlambda force-pushed python-unstable from c1b7935 to c5d6e66: https://git.io/v5aIf
<NixOS_GitHub>
nixpkgs/python-unstable bd49adc Robert Schütz: pythonPackages.aiohttp: 3.0.4 -> 3.0.5
<NixOS_GitHub>
nixpkgs/python-unstable cd323e8 Robert Schütz: python3Packages.netdisco: allow newer zeroconf versions
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/python-unstable a2bc30c Robert Schütz: pythonPackages.pytest-xdist: 1.22.1 -> 1.22.2
<LnL>
lol, that’s not even close to some of the magic I’ve done in nix-darwin
phdoerfler has quit [Quit: Leaving.]
theNerd247 has joined #nixos
kelleyNif has joined #nixos
<theNerd247>
if I have a default.nix is there a way to download the source contained therein and enter a nix-shell that has all the depenendencies installed and setup?
<BlessJah>
LnL: when I have two channels: nixos (root) and nixos-unstable (user), how do I tell them with that super argument?
dan_b has joined #nixos
<ottidmes>
BlessJah: One tip, you might look at importing from a derivation for some of what you try to do, not sure how to make it work the way you want it, isnt the contents of iso.nix just passed to the stdin?
<BlessJah>
ottidmes: ./iso.nix will execute /usr/bin/env nix-build ./iso.nix
ryanartecona has quit [Quit: ryanartecona]
<hodapp>
let me tell you about the one time I did some black magic so weird in QMake that I had to destroy it completely lest it rise again...
chaker has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
chaker has joined #nixos
<shapr>
ok, I want to hear this.
<chaker>
Unfortunately, after going through #nixos log, I'm now sure that packaging a Maven project with Nix won't be a pleasant experience :(
* hodapp
runs
<hodapp>
chaker: is there much precedent for packaging Java-ish stuff in Nix?
szicari has quit [Quit: szicari]
<chaker>
Well there's a function 'buildMaven' to build maven project. But it's not under dev, and no documentation AFAIK. I guess building a java application that doesn't need maven to fetch the dependencies is *easy*. But the majority of Java apps are using Maven!
sakshams has quit [Quit: Page closed]
chessai has quit [Remote host closed the connection]
Mateon3 has joined #nixos
<elvishjerricco>
Is there a workaround for `access to path ... is forbidden in restricted mode` for Hydra? It breaks `callCabal2nix`.
<sphalerite_>
isn't callCabal2nix IFD?
<elvishjerricco>
sphalerite_: Yes
Mateon1 has quit [Ping timeout: 248 seconds]
Mateon3 is now known as Mateon1
<sphalerite_>
And IFD just isn't allowed in nixpkgs
<sphalerite_>
AFAIK
<sphalerite_>
so — to my knowledge — the answer is simply "no"
<elvishjerricco>
This isn't for nixpkgs, this is for reflex-platform, which uses it extensively
<sphalerite_>
oh right
<elvishjerricco>
I've been trying to give reflex-platform a hydra instance for a while, and this just came out of nowhere when I updated my 17.09
<theNerd247>
yorick: thanks!
theNerd247 has quit [Quit: Page closed]
<elvishjerricco>
There's no configuration option or anything anywhere to either allow IFD in restricted mode or not use restricted mode in Hydra?
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master e41ca3b David Asabina: digitalbitbox: init at 2.2.2 (#33787)...
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vAPGu
jsgrant has quit [Quit: WeeChat 2.0.1]
rardiol1 has quit [Remote host closed the connection]
jackdk has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dotlambda pushed 2 new commits to python-unstable: https://git.io/vAPZk
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/python-unstable f76e8cb Robert Schütz: pythonPackages.tmdb3: 0.6.17 -> 0.7.2
<NixOS_GitHub>
nixpkgs/python-unstable 9e29b4b Robert Schütz: pythonPackages.tmdb3: move expression
<ottidmes>
Ah, this seems to work: if ! { true && true; }; then echo yes; else echo no; fi
mdedetrich has joined #nixos
<mdedetrich>
Is this the right channel to get some intermediate help regarding nix packages (in my case its the rust overlay package from Mozilla?)
<mdedetrich>
In my case I am getting the same problem that is listed here, i.e. when I try to install a Rust package via cargo I get the following error
<mdedetrich>
rust-1.24.0-2018-02-12-4d90ac38c is the package I have installed
asuryawanshi has quit [Ping timeout: 245 seconds]
<ottidmes>
mdedetrich: I have seen multiple people ask about setting up a Rust env here on the channel, but unfortunately I will not be any help, I have never used rust in NixOS, hopefully others will be able to help you
chaker has quit [Ping timeout: 260 seconds]
<mdedetrich>
its installed with the rust overlay, i.e. nix-env -Ai nixos.latest.rustChannels.stable.rust
<mdedetrich>
ottidmes: Thanks, I think the issue is that cargo isn't aware of gcc because of how its installed with nixos
<mdedetrich>
Trying to google around however I haven't found any helper
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master ede1b6f Sander van der Burg: nodePackages: regenerate with node2nix 1.5.2
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
[nixpkgs] svanderburg pushed 1 new commit to master: https://git.io/vAPcf
<mdedetrich>
Hmm I may have found something
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 822526f Tuomas Tynkkynen: kernel config: Enable CGROUP_BPF...
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vAPc8
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] svanderburg pushed 1 new commit to release-17.09: https://git.io/vAPcB
<NixOS_GitHub>
nixpkgs/release-17.09 2113096 Sander van der Burg: nodePackages: add jsdoc + regenerate with node2nix 1.5.2
NixOS_GitHub has left #nixos [#nixos]
wladz has joined #nixos
sigmundv has joined #nixos
judson has joined #nixos
<judson>
I added docker-compose to a nix-shell, and now my Neovim python plugins are broken there.
humanoyd has quit [Quit: WeeChat 2.0.1]
<judson>
I'm confused, because nvim is a wrapper that points Neovim to nvim-python instances.
<judson>
What I'm seeing though is lib/python3.6/imp.py calling lib/python2.7/site-packages/site.py
<judson>
FRidh, I think you're the Nix Python expert?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] deepfire opened pull request #35905: GHC 8.4 configuration: trim outdated overrides (master...ghc-8.4) https://git.io/vAPcj
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 2482e28 John Ericson: prebuilt android tools: Init using SDK...
<NixOS_GitHub>
[nixpkgs] Ericson2314 pushed 3 new commits to master: https://git.io/vAPCm
<NixOS_GitHub>
nixpkgs/master d31fb80 John Ericson: Merge pull request #35451 from obsidiansystems/android-cross...
<NixOS_GitHub>
nixpkgs/master 3a672cb John Ericson: libiconv, ncurses: Add optional flags for minimal android variant
Drakonis has joined #nixos
leoleoleotest[m] has joined #nixos
thebardian has quit [Remote host closed the connection]
chessai has quit [Remote host closed the connection]
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<judson>
This is just a bad time of day for most of this room, isn't it?
<simpson>
I'm around but I have zero idea what's wrong with your setup.
<judson>
Fair enough :/
babyflakes has quit [Quit: Connection closed for inactivity]
<judson>
It's not my usual problem - it just seems to have gone wrong once I added docker-compose to this nix-shell
<judson>
When confronted long ago with Ruby and Python, I chose Ruby, so Python's environment is a little mysterious to me
<judson>
I can live with a system-wide docker-compose I guess.
<gchristensen>
maybe take a look at the environment variables