<NickHu>
Hi, I'm wondering how I can use a service from nixos-unstable without switching channels to it fully
andreas303 has joined #nixos
<NickHu>
Specifically, I'm trying to use the urxvtd service which doesn't appear to be in the stable channel yet, but I don't want to switch over to unstable completely
<NickHu>
I'm quite new to nixos
nh2_ has quit [(Remote host closed the connection)]
<Drakonis>
hmm
<Drakonis>
unstable isn't actually that unstable :v?
<Drakonis>
its more like nixos-next
<Drakonis>
and if shit breaks, you can always rollback
<NickHu>
.. should I just bite the bullet and switch then?
<NickHu>
I only just installed nixos today
<NickHu>
I'm used to shit breaking a lot, coming from arch
<Drakonis>
i'd say things are much less likely to break because there is a veneer of screening
<Drakonis>
you'd first have to change to the correct channel, wouldn't you?
<NickHu>
Is there a way to do it without switching channels, I mean
eacameron has quit [(Remote host closed the connection)]
Shou has joined #nixos
<Drakonis>
actually that's funny you say it isn't there
<Drakonis>
it is in 16.09
<Drakonis>
nevermind that, looks like github's search doesn't search branches
<Drakonis>
switch to unstable and then options.services.urxvtd.enable = true;
<Drakonis>
on your configuration
<Drakonis>
rather, only services.urxvtd.enable = true;
<NixOS_GitHub>
[nixpkgs] benley opened pull request #22539: Backport zfs and spl 0.6.5.9 for Linux 4.9 compatibility (release-16.09...zfs-backport) https://git.io/vDBpF
<Ralith>
NickHu: you do not need to use unstable to use a service added in unstable
<Drakonis>
Ralith, is that so?
MP2E has joined #nixos
<Drakonis>
that's pretty cool.
<Drakonis>
the more you know about nix
<Ralith>
instead, copy the service definition out of unstable, save it somewhere (I like putting this sort of thing in /etc/nixos/ somewhere) and import it from your configuration.nix
<Ralith>
be sure you don't forget to remove it when the time comes to update to 17.03
chris-martin has joined #nixos
<Ralith>
though I imagine you'll get a conflict error that should make it pretty obvious
MP2E has quit [(Client Quit)]
<Ralith>
"import it" here means "add the file to the 'imports' list"
<benley>
I'm having surprisingly good luck with running nixos 16.09 these days; it's nice that I can actually use a stable branch.
<Drakonis>
nixos-unstable is just 180 packages behind
<Drakonis>
swell
<benley>
I end up having to backport some fixes but I don't mind doing that
<Drakonis>
5 behind on nixpkgs-unstable
<Drakonis>
damn.
<Drakonis>
yeah, looks like it isn't the safest thing.
<joachifm>
I think there should be a warning about the unstable channel, it tends to get stuck for long periods, so running it means you'll risk going without important bugfixes &c for longer than necessary.
<NixOS_GitHub>
[nixpkgs] benley opened pull request #22542: virtualbox: fix the build with toString (release-16.09...fix-virtualbox) https://git.io/vDRfV
alx741 has quit [(Ping timeout: 240 seconds)]
t7 has quit [(Remote host closed the connection)]
eacamero_ has joined #nixos
eacameron has quit [(Ping timeout: 256 seconds)]
erlandsona has joined #nixos
erlandsona has quit [(Ping timeout: 260 seconds)]
derjohn_mob has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub>
[nixpkgs] joachifm pushed 3 new commits to release-16.09: https://git.io/vDRJj
<NixOS_GitHub>
nixpkgs/release-16.09 82a6c83 Peter Hoeg: fpm: fix vulnerable dependency...
<NixOS_GitHub>
nixpkgs/release-16.09 fc6a87e Joachim Fasting: grsecurity: 4.8.17-201701151620 -> 4.9.8-201702060653...
<NixOS_GitHub>
nixpkgs/release-16.09 98f8cfb Joachim Fasting: grsecurity: 4.9.8-201702060653 -> 201702071801...
sitedyno has quit [(Ping timeout: 240 seconds)]
MP2E has joined #nixos
danharaj has joined #nixos
endformationage has quit [(Quit: WeeChat 1.6)]
derjohn_mob has joined #nixos
takle has quit [(Remote host closed the connection)]
acarrico has joined #nixos
alx741_ has quit [(Quit: alx741_)]
alx741 has joined #nixos
davidak has quit [(Quit: Leaving.)]
alx741 has quit [(Client Quit)]
alx741 has joined #nixos
takle has joined #nixos
s33se_ has joined #nixos
sitedyno has joined #nixos
takle has quit [(Remote host closed the connection)]
s33se has quit [(Ping timeout: 255 seconds)]
<pikajude>
what's the easiest way to make a program run as root always
<pikajude>
specifically gparted
hamishmack has quit [(Quit: hamishmack)]
<grantwu>
make a wrapper that calls sudo?
hamishmack has joined #nixos
<gchristensen>
setuid wrapper
<gchristensen>
is how, ex, ping does it
athan has quit [(Remote host closed the connection)]
alx741 has quit [(Quit: alx741)]
<pikajude>
oh
systemfault has quit [(Quit: Bye!)]
<pikajude>
does nixos have an option to turn it into a setuid wrapper
<pikajude>
how does ping get into that directory
sitedyno has quit [(Ping timeout: 258 seconds)]
<cransom>
pikajude: check the option for `security.setuidPrograms`
<pikajude>
thanks
sellout- has joined #nixos
<pikajude>
damn, i added it to that but it still wants root privileges to run
<pikajude>
ok, well given that i can use sudo in dmenu, no need to solve this problem
mbrgm has joined #nixos
mlieberman85 has joined #nixos
sitedyno has joined #nixos
erlandsona has joined #nixos
ryanartecona has joined #nixos
<erlandsona>
Hello?
Drakonis has quit [(Read error: Connection reset by peer)]
<benley>
ohai
<erlandsona>
Do you know how to change the cursor theme for nixos globally? EG: On Arch you can put an index.theme file in /usr/share/icons/default/ and specify a default cursor theme?
johnsonav has quit [(Ping timeout: 245 seconds)]
mlieberman85 has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
mlieberman85 has joined #nixos
mlieberman85 has quit [(Client Quit)]
mlieberman85 has joined #nixos
mlieberman85 has quit [(Client Quit)]
erlandsona has quit [(Ping timeout: 260 seconds)]
lverns has quit [(Ping timeout: 255 seconds)]
mlieberman85 has joined #nixos
mlieberman85 has quit [(Client Quit)]
mlieberman85 has joined #nixos
mlieberman85 has quit [(Client Quit)]
sellout- has quit [(Quit: Leaving.)]
johnsonav has joined #nixos
mlieberman85 has joined #nixos
Tarinaky has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub>
[nixpkgs] domenkozar closed pull request #22542: virtualbox: fix the build with toString (release-16.09...fix-virtualbox) https://git.io/vDRfV
Tarinaky has joined #nixos
eacamero_ has quit [(Remote host closed the connection)]
lverns has joined #nixos
eacameron has joined #nixos
Kingsquee has joined #nixos
eacameron has quit [(Ping timeout: 245 seconds)]
eacameron has joined #nixos
lverns has quit [(Quit: Konversation terminated!)]
martinklepsch has quit [(Ping timeout: 255 seconds)]
martinklepsch has joined #nixos
nathan7 has quit [(Ping timeout: 252 seconds)]
takle has quit [(Remote host closed the connection)]
thc202 has joined #nixos
nathan7 has joined #nixos
bohan has quit [(Ping timeout: 248 seconds)]
pippijn has quit [(Ping timeout: 260 seconds)]
bohan has joined #nixos
pippijn has joined #nixos
Sigma has quit [(Ping timeout: 240 seconds)]
ckauhaus has quit [(Ping timeout: 240 seconds)]
Wizek__ has quit [(Ping timeout: 240 seconds)]
Sigma has joined #nixos
ckauhaus has joined #nixos
fractal has joined #nixos
eacameron has joined #nixos
Wizek__ has joined #nixos
eacameron has quit [(Ping timeout: 276 seconds)]
sitedyno has quit [(Ping timeout: 240 seconds)]
ixxie has joined #nixos
goibhniu has joined #nixos
<ixxie>
hmmm.... I can't seem to find the config option for changing the kernel version
derjohn_mob has joined #nixos
lsix has joined #nixos
<page>
ixxie: boot.kernelPackages
<ixxie>
cheers page!
ckauhaus has quit [(Quit: Leaving.)]
jensens has joined #nixos
Wizek__ has quit [(Ping timeout: 258 seconds)]
jgertm has quit [(Ping timeout: 260 seconds)]
ixxie has quit [(Remote host closed the connection)]
samvher has joined #nixos
gilligan_ has quit [(Quit: Leaving)]
<samvher>
Hi, I'm having some weird issues with my python installation. I set it up with some packages (with a withPackages expression), and if I import them it works fine. But I have a vim plugin which interacts with python (Covim) and that one gets an import error. The strange thing is, if I start a nix-shell with the python packages available vim works fine
<samvher>
is this expected behavior?
<samvher>
maybe I'm just doing something wrong or misunderstanding nix
ebzzry has joined #nixos
georges-duperon has quit [(Ping timeout: 252 seconds)]
<goibhniu>
hi samvher, can you verify that this plugin (or vim in general) is using the customized python (that uses withPackages)? ... I presume it's not, but I wonder which it's using. Also, do you install that version of python in the system profile (using configuration.nix) or in a user profile?
<lsix>
Hi all, I have a hydra instance deployed internally to build our in-house developments. However, I have a job that is supposed to build a docker image (pkgs.dockerTools.buildImage) that never runs and remains in the queue. Any idea what I should to reconfigure my instance to run this build?
Wizek__ has quit [(Ping timeout: 264 seconds)]
<jophish>
lsix: does it have any required features?
derjohn_mob has quit [(Ping timeout: 252 seconds)]
<samvher>
goibhniu: I'm not sure how to verify that
<samvher>
I tried with configuration.nix, and also writing another .nix file and using nix-env -if
<lsix>
I guessed the solution should be somewhere around that, but I did not find doc about those. I thins I have added "kvm" as a feature to my runner, but I do not know what should be set
<ikwildrpepper>
lsix: can you check the .drv for any requiredSystemFeatures?
<ikwildrpepper>
oops, jophish already mentioned that :D
<goibhniu>
samvher: sorry, it's a while since I've used vim ... is there a way to run a shell command, e.g. `which python`?
<jophish>
not the "supportedFeatures" list on calcifer
<goibhniu>
samvher: is it just `!which python` maybe?
<samvher>
goibhniu: it seems that that works, it gives me /home/user/.nix-profile/bin/python
<ikwildrpepper>
looks like kvm is indeed a required system feature for docker layer
<ikwildrpepper>
lsix: so you need to add kvm to the supportedFeatures of nausicaa or calcifer (from your config that you posted)
<samvher>
if I "which python" in bash that gives me the same path
<goibhniu>
samvher: hrm, I wonder what nix-shell does differently to get it to work
<goibhniu>
samvher: maybe it sets PYTHONPATH?
<jophish>
note*
<jophish>
ikwildrpepper: that was my config, as am example to lsix :)
<ikwildrpepper>
jophish: damn, I need coffee :D
lsix_ has joined #nixos
<ikwildrpepper>
let me just stop typing...
fkz__ has joined #nixos
fkz__ is now known as Guest37382
<lsix_>
(s/requires/required/) I had a typo but nothing in the .drv
nmattia_ has joined #nixos
mudri has joined #nixos
johnw- has joined #nixos
<samvher>
goibhniu: that might be what's happening, echo $PYTHONPATH in my normal shell (also after installing python with packages) gives nothing, doing it in nix-shell gives a long path
olejorgenb has joined #nixos
avalan has joined #nixos
socksy_ has joined #nixos
nathan7_ has joined #nixos
MarcWebe1 has joined #nixos
siddhu_ has joined #nixos
qualia_ has joined #nixos
josePhoenix_ has joined #nixos
nathan7_ has quit [(Changing host)]
nathan7_ has joined #nixos
josePhoenix_ has quit [(Changing host)]
josePhoenix_ has joined #nixos
rawtaz_ has joined #nixos
rly_ has joined #nixos
Guest66676 has joined #nixos
octe_ has joined #nixos
canndrew has joined #nixos
<samvher>
then I wonder how to get my normal env to set a pythonpath
dweller has quit [(Disconnected by services)]
nahamu_ has joined #nixos
avalan is now known as dweller
civodul has joined #nixos
bitchecker_ has joined #nixos
Wizek__ has joined #nixos
luigy_ has joined #nixos
swflint_away has joined #nixos
henrytill_ has joined #nixos
Fuuzetsu_ has joined #nixos
<samvher>
goibhniu: do you think this is a bug/I should file an issue?
<goibhniu>
samvher: aha! I wonder if you can also add a hook to export it as an environment variable for your shell ... but maybe this breaks things
<goibhniu>
samvher: yeah, go for it, maybe someone already has a solution
swflint_away is now known as swflint
dredozub- has joined #nixos
<samvher>
goibhniu: alright, thanks for your help
Fuuzetsu_ is now known as Fuuzetsu
<goibhniu>
samvher: my pleasure, I hope it works out!
cfricke has joined #nixos
Kingsquee has joined #nixos
makefu has joined #nixos
Mic92 has joined #nixos
Profpatsch has joined #nixos
c74d has joined #nixos
jeaye has joined #nixos
hotfuzz has joined #nixos
samvher has quit [(Quit: leaving)]
dramforever has quit [(Quit: Leaving)]
Wizek__ has quit [(Ping timeout: 276 seconds)]
<musicmatze>
Profpatsch: ah, okay. I thought of a ad-hoc nixos meetup via video chat ... but nvm...
<musicmatze>
with some more nixers from here? I do not have a topic or something... just wanted to chat a bit :-)
<goibhniu>
a virtual conference type thing?
<goibhniu>
conference/meeting/meetup
<musicmatze>
Jup, something like that. As said: I do not have an idea what to talk about,... so I cannot play moderator ... but I'd love to hear what others might have to say :-)
<goibhniu>
sounds cool!
<musicmatze>
topics could be (just proposing) nixpkgs development process and how to optimize it, IPFS +
<musicmatze>
IPFS + Nix ... where are we and where are we going*
<musicmatze>
(from the top of my head right now)
mkoenig has quit [(Ping timeout: 255 seconds)]
<goibhniu>
it's always interesting to talk to other nixers about the kinds of things they're up to
georges-duperon has joined #nixos
<goibhniu>
... we could even record it, and have a podcast?
roconnor has quit [(Ping timeout: 240 seconds)]
<musicmatze>
Yeah, we could do that (although then we have to ask everyone involved whether it is okay to record them)
mkoenig has joined #nixos
johann__ has joined #nixos
<musicmatze>
goibhniu: do you think of an audio podcast or an video "podcast"?
<goibhniu>
well, I tend to listen to a lot of audio podcasts, so I'd be more interested in that
<musicmatze>
The thing with video is that we would need to use a platform like youtube... with an audio podcast, you wouldn't need that. We could even host it through IPFS (video or audio would do) ... I have two VM instances at my university where I could mirror it
<musicmatze>
goibhniu: same for me. (because I don't like the idea of beeing in a video, though)
Wizek__ has joined #nixos
<goibhniu>
yeah, audio is easy
<goibhniu>
we could just discuss what's in the nixos weekly news too
<goibhniu>
... and invite people for a chat about whatever they're working on
<musicmatze>
I see you like the idea! :-)
<goibhniu>
definitely!
<goibhniu>
mumble would work well too
<musicmatze>
I've never tried that. I only tried jitsi and matrix so far...
<schoppenhauer>
hi. how can I install the kernel module "pciehp" or "acpiphp"? they are not found in my installation.
teknico1 has joined #nixos
<schoppenhauer>
I assume setting CONFIG_HOTPLUG_PCI_PCIE to y?
<schoppenhauer>
and rebuilding the kernel?
<gchristensen>
sounds probable, yeah
<schoppenhauer>
meh
<schoppenhauer>
why is this not the default?
<Dezgeg>
it's already 'y' for me
<Dezgeg>
on unstable
teknico has quit [(Ping timeout: 260 seconds)]
<schoppenhauer>
Dezgeg: I am using stable. do you have the module pciehp?
<gchristensen>
hhmmm yeah I'm on stable and I have CONFIG_HOTPLUG_PCI_PCIE=y
<gchristensen>
4.8.17
<schoppenhauer>
gchristensen: do you have the module pciehp?
Shou has joined #nixos
<Dezgeg>
it's not a module because it's 'y'
<gchristensen>
pkgs/os-specific/linux/kernel/common-config.nix:419 ${optionalString (versionAtLeast version "3.12") "HOTPLUG_PCI_PCIE y"}
<schoppenhauer>
but it /run/current-system/kernel-modules/lib/modules/4.4.45/modules.builtin it is not listed for me
<Dezgeg>
so what says 'zcat /proc/config.gz | grep HOTPLUG_PCI_PCIE' ?
<schoppenhauer>
Dezgeg: it says CONFIG_HOTPLUG_PCI_PCIE=y
<schoppenhauer>
Dezgeg: hm. but pci hotplug does not work.
<gchristensen>
what are you trying to hotplug, in to what hardware?
acarrico has quit [(Ping timeout: 240 seconds)]
<gchristensen>
anything in dmesg?
<schoppenhauer>
no
<jophish>
good morning gchristensen
<schoppenhauer>
I already wrote it to the mailinglist but they are not really helpfull. The hardware works under my ubuntu live stick, without any problem. It is a "05:00.0 USB controller: Fresco Logic FL1100 USB 3.0 Host Controller (rev 10)", lspci -n says "05:00.0 0c03: 1b73:1100 (rev 10)"
<schoppenhauer>
gchristensen: no, dmesg doesnt show anything, same for udevadm, under nixos.
<domenkozar>
peti: hey
<schoppenhauer>
gchristensen: it just ignores the hotplug event.
takle has quit [(Remote host closed the connection)]
<gchristensen>
good morning, jophish :)
<schoppenhauer>
gchristensen: I disabled the mitigateDMAAttacks from luks already. I wonder why it still *ignores* the hotplug event.
acarrico has joined #nixos
<gchristensen>
ohhh ... yeah :/
<schoppenhauer>
like, it does *nothing* at all. the only thing I notice is that the sound when I play music loops shortly.
<gchristensen>
schoppenhauer: maybe dump the zcat /proc/config.gz and see what they have, diff'd against what our kernel has
<schoppenhauer>
so apparently it does something, but this something does not show in dmesg
<Dezgeg>
maybe it would be useful to run 'lshw' and 'lsmod' on the ubuntu and check what modules it has loaded
<Dezgeg>
and dmesg of what happens there when it's plugged in
<Dezgeg>
ok... I can't see anything odd in those pastes at least
<peti>
domenkozar: heya
<schoppenhauer>
Dezgeg: I think for some reason nixos deliberately ignores pci hotplug.
<gchristensen>
that isn't likely, I hotplug thunderbolt, which is pci
<Dezgeg>
well, it's a kernel thing somehow
<Dezgeg>
in the worst case it only works under some ubuntu-private kernel patches
<gchristensen>
domenkozar: did you get the new xps?
<schoppenhauer>
Dezgeg: it worked under debian as well in the past
<Dezgeg>
ok, that's more promising then
<schoppenhauer>
Dezgeg: and its a lenovo x220 tablet.
<Dezgeg>
it would be interesting to know if it also works on the arch livecd
<Dezgeg>
that kernel should be really close to what we're running (besides the .config)
<schoppenhauer>
and what bugs me: if it showed some error message that something is blacklisted or disabled or unknown, this would be one thing. but it shows *nothing*
<schoppenhauer>
ok, I will try the arch livecd later. (can't currently, I am in the bus right now)
<schoppenhauer>
I'll highlight you later, if that is ok?
athan has quit [(Remote host closed the connection)]
Dezgeg has quit [(Ping timeout: 264 seconds)]
<domenkozar>
peti: did you see ghc section splitting PR?
<domenkozar>
anything missing there?
<peti>
domenkozar: I saw it. I just couldn't look at it yet (crazy busy at work). I'll merge ASAP. Just give me a day or so.
ThatDocsLady has quit [(Read error: Connection reset by peer)]
panostimos has quit [(Ping timeout: 255 seconds)]
<NixOS_GitHub>
[nixpkgs] abbradar pushed 1 new commit to master: https://git.io/vDRFC
<NixOS_GitHub>
nixpkgs/master 9d30099 Antoine Eiche: nixos/systemd: set r-x group permissions on /var/log/journal...
<NixOS_GitHub>
[nixpkgs] abbradar closed pull request #22503: nixos/systemd: set r-x group permissions on /var/log/journal (master...master) https://git.io/vDl4B
<justan0theruser>
benley: any luck
Wizek has joined #nixos
Wizek_ has joined #nixos
jensens has quit [(Ping timeout: 264 seconds)]
<domenkozar>
peti: thanks!
ThatDocsLady has joined #nixos
jensens has joined #nixos
<NixOS_GitHub>
[nixpkgs] grahamc pushed 1 new commit to master: https://git.io/vDRNM
<NixOS_GitHub>
nixpkgs/master afd5981 Graham Christensen: gstreamer-*: 1.10.2 -> 1.10.3 for multiple CVEs...
takle has joined #nixos
<ronny>
man
<ronny>
meld is broken in general, kdiff3 is broken on nix specifically - waht do people use to merge on nixos
<jophish>
vim?
predkambrij has joined #nixos
<pi3r>
Hi,
<pi3r>
I am building nixos images from packer. Starting from a minimum compressed image (vagrant box) of ~300M, I go up to 2G when provisioning using a custom /etc/nixos/configuration.nix
<pi3r>
If I start from the same 2G image and upgrade nixos along, the size of the compressed image will increase after each iteration. I am now having a compressed image of 4G.
<pi3r>
At each iteration, I only do a 'nixos-rebuild switch --upgrade', then I reclaim storage with 'nix-collect-garbage -d' and even "nix-store optimize".
<pi3r>
K
mudri has quit [(Ping timeout: 240 seconds)]
<pi3r>
On the image itself, the size of the store is about ~8G which seems quite a lot. What else can I do to reclaim disk space ?
<pi3r>
A part from starting over from the packer minimal image
lsix_ has quit [(Quit: Konversation terminated!)]
tvon has quit [(Read error: Connection reset by peer)]
<sphalerite>
pi3r: the garbage collection won't remove anything if the old generations are still there and still referring to older versions of software
<sphalerite>
wait never mind, I see you used nix-collect-garbage -d
<pi3r>
sphalerite: ok I guess I need another command that remove all derivations. I thought the '-d' flag would do that for me
<pi3r>
Is it nix-env -p /nix/var/nix/profiles/per-user/root/profile --delete-generations old that I should use ?
panostimos has joined #nixos
<gchristensen>
pi3r: nix-store --gc --print-roots will tell you your GC roots, maybe you have some sitting around you didn't mean to leave
<LnL>
pi3r: the currently booted system also is a gc root
tvon has joined #nixos
<LnL>
so there are certain things that will stay alive even if you garbage collect old profiles
<makefu>
also, for examples links created with nix-build
<musicmatze>
makefu: you're refering to the "result" symlinks, right?
<sphalerite>
I'm trying to get a nix-shell with jupyter, but getting a collision error with nix-shell -p 'python3.withPackages (ps: with ps; [jupyter beautifulsoup4])'. Am I doing something wrong, or is this a bug?
<sphalerite>
Something similar to that worked for me previously, but I don't know what it was
<gchristensen>
pi3r: your system is much more tidy than mine ;)
<pi3r>
well it is suppposed to be the base system ;-) that I ship to other dev
<makefu>
musicmatze: yes
<sphalerite>
asdasd
<sphalerite>
oops
<musicmatze>
pi3r: gchristensen and then mine... I have ~50 channel links alive ... I guess I should delete them at some point, too, am I right?
<LnL>
I only run a gc once every few months or so
<musicmatze>
/nix/var/nix/profiles/per-user/root/channels-106-link -> /nix/store/fnjfjbaa074ff30h3wndaq0y4nrhnwya-user-environment all the way down :-)
<pi3r>
LnL: so I guess I should start over from the minimal packer ? I know I should automate that part anyway going from one minimal packer to a base image packer. I have had the time to do so
tvon has quit [(Ping timeout: 240 seconds)]
<pi3r>
*haven't had the time to do so*
<NixOS_GitHub>
[nixpkgs] grahamc pushed 1 new commit to release-16.09: https://git.io/vDRpI
<NixOS_GitHub>
nixpkgs/release-16.09 504d394 Graham Christensen: gstreamer-*: 1.10.2 -> 1.10.3 for multiple CVEs...
<musicmatze>
pi3r: If you're ready with creating the base image thing, I'd love to read a blog post about how you did it and about the things/bugs/inconveniences you've run into! :-)
<LnL>
pi3r: I would look at our virtualbox ova build, it's probably easier to build the baseimage outside of a vm
<pi3r>
musicmatze: then I am building a nixos devbox that can be customize at will. This is the github project: https://github.com/CIRB/devbox
<musicmatze>
gchristensen: conceptional question: I do not have a nix-channel configured for my user on my system, just system channels (output of "nix-channel --list" is empty for my user). I have it this way for 2 years now... that's not a problem, is it? I mean, when I install packages for my user (via nix-env -iA) it takes the system channel ... so everything should be fine, am I right?
<musicmatze>
pi3r: cool!
<gchristensen>
yep
<gchristensen>
I don't use user channels either, b/c I can't remember to update them
jgertm has joined #nixos
<avn>
Folks, is hard to brew nixos' image for kvm on other nixos powered host?
<musicmatze>
gchristensen: so basically that's what everyone wants... and if I'd use a multi-user nixos instance, each user would configure his/her own channels and the system would be kept minimal by itself...
<gchristensen>
if they want, yeah
<musicmatze>
okay, then I understood things correctly :-)
<gchristensen>
:)
<gchristensen>
I put everything in my system config, though, very little in my use
<gchristensen>
user*
<musicmatze>
same here. I have 41 packages in my user environment right now, rest is in my system.
<Somelauw>
gchristensen: i currently have it in .zshrc but that isn't sourced until i open a terminal
<Somelauw>
i'll try .zprofile
<gchristensen>
Somelauw: ok, and exactly are you trying to do that isn't working? I don't know exactly what you're trying that is not working as you expect, so I don't know how to help.
<Somelauw>
gchristensen: if i source it in .zshrc (as is the default config), I can only start nix' programs by first opening a terminal and typing its name, but i can not start programs from a "launcher"
<Somelauw>
like dmenu or something
<Somelauw>
or gnome-run or kde-run or whatever
<gchristensen>
I see
<gchristensen>
I don't know how to add to the PATH of KDE :
<musicmatze>
Somelauw: where did you add it to bashrc/zshrc? At the top or at the bottom?
<musicmatze>
I had problems with the debian default bashrc, because it returns at the first few lines if you are not in a interactive shell, thus, the nix stuff never gets "source"d if you put the "source /some/path" thing _after_ that "return" line.
<Somelauw>
musicmatze: at the bottom and that works when starting a zsh shell first, that is the problem, i don't always start a zsh shell first
<musicmatze>
Fix: Put yout ". ~/.nix-profile/etc/profile.d/nix.sh" right after the shebang
<musicmatze>
(dmenu might call bashrc, not zshrc, so you need to add it there, too!)
<Somelauw>
i didn't know dmenu sourced anything at all
RayNbow`TU has quit [(Read error: Connection reset by peer)]
<musicmatze>
try it and we'll see... ;-)
<Somelauw>
but better to have it global, in case I want to launch something from emacs
<Somelauw>
or any other program
<shlevy>
use .xprofile
<musicmatze>
Somelauw: well, they are all started via a shell somewhere... so I guess it would work, too.
<Somelauw>
Debian also uses dash for some things
rly_ has quit [(Quit: leaving)]
tvon_ has quit [(Quit: System is sleeping...)]
mguentner2 is now known as mguentner
<NixOS_GitHub>
[nixpkgs] abbradar pushed 1 new commit to master: https://git.io/vD0JW
<NixOS_GitHub>
nixpkgs/master 45368ed Nikolay Amiantov: haskellPackages.typed-process: disable tests...
<NixOS_GitHub>
[nixpkgs] the-kenny pushed 2 new commits to master: https://git.io/vD0Ja
<NixOS_GitHub>
nixpkgs/master 403eb76 Moritz Ulrich: rawtherapee: 5.0 -> 5.0-r1
<NixOS_GitHub>
nixpkgs/master 827009a Moritz Ulrich: digikam5: 5.3.0 -> 5.4.0
<NixOS_GitHub>
[nixpkgs] peterhoeg opened pull request #22556: dropbox: works with qt 5.6 (master...f/db) https://git.io/vD0JQ
<NixOS_GitHub>
[nixpkgs] peterhoeg opened pull request #22557: neovim-qt: works with qt 5.6 and msgpack 2.0 (master...f/neovim-qt) https://git.io/vD0Jj
cpennington has joined #nixos
Shou has quit [(Ping timeout: 258 seconds)]
Dezgeg has joined #nixos
benzrf has joined #nixos
<benzrf>
hey
alx741 has joined #nixos
<benzrf>
are there any plans to set up automatic pypi nixification like there is for hackage?
nahamu_ is now known as nahamu
<benzrf>
and i think ive probably already asked this, but are there any plans or existing things that do hackage (or something else, i guess) and specifically have separate derivations for different versions of packages, and have correct-version dependencies
<ToxicFrog>
Correct-version dependencies for haskell packages would be great
<benzrf>
i know, right!
<ToxicFrog>
I've run into a few places where nixos-rebuild stops working because one of the haskell packages updated in a way that broke compatibility with something I want to install that depends on it
<benzrf>
=(
<gchristensen>
benzrf: pypi is _very_ hard
danharaj has joined #nixos
Rotaerk_ has quit [(Quit: Leaving)]
<benzrf>
gchristensen: how so?
<ToxicFrog>
(in general I think nixos could handle versioned packages a lot better than it does, but it's not something I have the will to fix)
<gchristensen>
benzrf: well to determine what versions of software you need for a python project you have to execute python code, there is no way to statically determine what a package needs
<benzrf>
gchristensen: oooh.
<benzrf>
that's true isnt it.
<benzrf>
well damn
<gchristensen>
yes :)
<gchristensen>
fridh has put in a ton of work on this front, but it remains very difficult
<benzrf>
well, the solution is obvious:
<Baughn>
ToxicFrog: The NixOS package system reminds me a lot of... google-internal thing I can't explain...
<Baughn>
Erm.
tvon has joined #nixos
<benzrf>
in the derivations definitions, shell out to python
<benzrf>
:>>>
<Baughn>
In that it's got dozens of reimplementations of the same idea.
ckauhaus has joined #nixos
<Baughn>
All slightly different, none quite complete.
fritschy has quit [(Quit: Leaving.)]
<ToxicFrog>
Baughn: and the old ones are deprecated and the new ones aren't ready yet? :P
<Baughn>
ToxicFrog: That would imply a level of structure I don't think is there. :/
mkoenig has quit [(Read error: Connection reset by peer)]
<Baughn>
ToxicFrog: It doesn't help that a lot of discussion happens on the mailing list. Having one is great, it's much better than nothing, but you'd think we could do better nowadays.
* ToxicFrog
nods
<gchristensen>
Baughn: re: google? re: nixpkgs?
<ToxicFrog>
I honestly think it works either way, but I think they were talking about nixpkgs
<benzrf>
would including all versions of hackage packages in nixpkgs cause: 1. all that much extra space usage; 2. all that much extra resources for evaluating specific cases
<Baughn>
gchristensen: They have slightly different goals, but honestly Nix reminds me a _lot_ of GCL. Both in theory and practice.
nathan7_ is now known as nathan7
<Baughn>
To the point that I'm sure someone was inspired by it.
<Baughn>
...or possibly the other way around. Nix is pretty old.
<NixOS_GitHub>
[nixpkgs] grahamc pushed 2 new commits to master: https://git.io/vD0IO
<NixOS_GitHub>
nixpkgs/master 5eaec77 Peter Hoeg: wavpack: 4.80.0 -> 5.1.0
<NixOS_GitHub>
nixpkgs/master ae02508 Graham Christensen: Merge pull request #22555 from peterhoeg/u/wavpack...
RayNbow`TU has joined #nixos
<gchristensen>
Baughn: nix is about 14 years old now
<ToxicFrog>
Baughn: oh, I had no idea we'd publicised GCL
<Baughn>
I had to track this down through footnotes. :P
<gchristensen>
oh that document is redacted
<NixOS_GitHub>
[nixpkgs] grahamc pushed 1 new commit to release-16.09: https://git.io/vD0Ic
<NixOS_GitHub>
nixpkgs/release-16.09 1873f69 Peter Hoeg: wavpack: 4.80.0 -> 5.1.0...
<gchristensen>
(page 10)
<Baughn>
Mm, but the basic concepts aren't.
mkoenig has joined #nixos
<Baughn>
Might be a case of convergent evolution, too. Regardless, Nix and GCL resemble each other.
<gchristensen>
lol page 21
<Baughn>
One thing that's clear is that, over time, you end up wishing you'd written it all in Haskell instead. :P
<Baughn>
..or maybe not Haskell. Just.. *something* full-featured.
<ToxicFrog>
I've done a lot more GCL than Nix work, but I think I'd rather work in Nix, given the choice.
MercurialAlchemi has quit [(Ping timeout: 240 seconds)]
<niksnut>
Baughn: I've never heard of GCL I think, so I was definitely not inspired by it :-)
<Baughn>
niksnut: Well, congratulations on reinventing the most-hated language in all of Google. :P
<Baughn>
In all seriousness, I also think Nix is better.
<gchristensen>
ouch!
<Baughn>
(But it does have some of the same problems. People end up using it as a fully-featured language, and it's just.. not.)
<niksnut>
Baughn: you could also say Google reinvented the Nix language badly ;-)
<gchristensen>
now we're talkin
<Baughn>
niksnut: I could! But I'd be lying.
<Baughn>
I think you both hit on the same idea, from slightly different directions, and they're both V1 implementations of the idea.
<Baughn>
gchristensen: It's a thing that people love to hate. Not exactly because it's *bad*, but because it's being used well beyond its original design goals.
<Baughn>
Beats the hell out of not having it.
<Baughn>
And yes, Nix avoids some of the greatest annoyances. Like dynamically-scoped variable lookup. :S
<gchristensen>
:O
<benzrf>
dear lord
<Baughn>
("I have a value foo! Is it defined in this file.. yes, it is, at the top level. But I'm getting a different value. Oh, because it's also defined in the object this one is templated after, three layers of imports away...")
<Baughn>
It can get much worse.
<gchristensen>
well that sounds like it deserves to be most hated
<Baughn>
In comparison to that, callPackage is pure sweetness and light.
<gchristensen>
we've already got javascript
<Baughn>
No. well, I mean, Javascript is much saner.
<ToxicFrog>
Baughn: the most hated? I think borgmon probably takes that crown.
<MarcWebe1>
Anyone using nvidia legary 340 ? dmesg shows that some hardware address "was already locked/used" or such.
<Baughn>
ToxicFrog: But that's deprecated.. the replacement just isn't ready yet...
<ToxicFrog>
Point.
ckauhaus has quit [(Read error: Connection reset by peer)]
<gchristensen>
alright, y'all, don't reveal any secrets now :P
estewei has joined #nixos
<Baughn>
gchristensen: Borgmon ain't secret no more. :P
<Baughn>
gchristensen: https://prometheus.io/ <- And if you want to run it, you can. ...Prometheus fixes most of its warts, of course.
<Baughn>
Reminds me, I had a prometheus-monitoring-of-nixos thing I was supposed to be working on. Need to get back to that...
<gilligan_>
I've got a question on using `patchelf` - What I did is `patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) someBinary` -- Running `ldd someBinary` shows that `libelf` cannot be resolved. I think I have to configure that somehow? I don't have any experience with that
<gilligan_>
puffnfresh, hey - around?
Ivanych has joined #nixos
<gilligan_>
puffnfresh, i see you are listed as maintainer of flow. I just tried to update to 0.38.0 and got some compile error. You haven't by any chance looked at that before?
Drakonis has joined #nixos
Drakonis has quit [(Changing host)]
Drakonis has joined #nixos
<Drakonis>
a random nixos comment was spotted in the wild again
<garbas>
benzrf: pypi2nix works for me, but if you hit any problems please report them. i can only fix things i know are broken. and i dont use all of the pypi. https://github.com/garbas/pypi2nix
<garbas>
benzrf: also i'm working (slowly) on nixpkgs-python, which is a collection of python sets of packages. some work is still needed but that might be used also to generate a nixpkgs set of python and keeping them updated
<garbas>
benzrf: to package all of the pypi (and boy i tried) might never happen.
<garbas>
gilligan_: hey! not really i used it and it worked :)
<schoppenhauer>
gchristensen, Dezgeg: ok, I think it is definitely hotplug. It works under a current arch linux install usb stick, and under ubuntu. and I just noticed that after rebooting, I can see my usb bus in lspci. but it does not disappear when I unplug it and when I plug it in again it will not work anymore.
<schoppenhauer>
gchristensen, Dezgeg: even though lsusb and lspci still show the hub
<gilligan_>
garbas, darn hehe. Then again my problem maybe isn't really patchelf. I mean I run patchelf and it seems to do it job but then when I check the output of ldd I see that libelf cannot be resolved
<schoppenhauer>
gchristensen, Dezgeg: so it must probably be something with pci hotplug
<gilligan_>
garbas, dunno if that is something that I need to solve with setting some rpath or something else entirely
<NixOS_GitHub>
[nixpkgs] garbas pushed 5 new commits to master: https://git.io/vD0B3
<NixOS_GitHub>
nixpkgs/master afa428b Rok Garbas: networkmanager(applet): 1.4.2 -> 1.4.4
<NixOS_GitHub>
nixpkgs/master 0a687c3 Rok Garbas: networkmanager_openconnect: 1.2.2 -> 1.2.4
<NixOS_GitHub>
nixpkgs/master b900796 Rok Garbas: networkmanager_openvpn: 1.2.6 -> 1.2.8
<Dezgeg>
schoppenhauer: so in nixos it works only when plugged in before boot but in both arch and ubuntu even hotplug works?
Itkovian has quit [(Read error: Connection reset by peer)]
<schoppenhauer>
Dezgeg: yes
<Dezgeg>
ok, I guess it's worth taking arch's kernel config then and trying to tweak the nixos one be more like it
Guest66676 is now known as Guest6666
<dtzWill>
anyone know if there already exists a project/tool for managing stale GC roots on NixOS? Basically thinking walking through output of 'nix-store --gc --print-roots' and interactively asking if they're wanted or not
<dtzWill>
i, uh, tend to leave roots alllll over the place xD
endformationage has joined #nixos
<musicmatze>
Profpatsch: are you here?
ixxie has joined #nixos
<NixOS_GitHub>
[nixpkgs] bdimcheff opened pull request #22559: astroid: fix crash due to missing icons (master...fix-astroid-icon-crash) https://git.io/vD00O
<schoppenhauer>
Dezgeg: these kernel configs are pretty long :\
<schoppenhauer>
Dezgeg: ok, they have another version, 4.9.6-1, but that shouldn't be the problem, I guess, I'll look at the diff now
Shou has quit [(Ping timeout: 240 seconds)]
xeviox has quit [(Ping timeout: 258 seconds)]
<schoppenhauer>
ok, CONFIG_GART_IOMMU is set in arch linux. this could be a problem, right?
Sonarpulse has joined #nixos
Sonarpulse has quit [(Remote host closed the connection)]
<Dezgeg>
no idea what that does
Sonarpulse has joined #nixos
Sonarpulse has quit [(Remote host closed the connection)]
Sonarpulse has joined #nixos
Sonarpulse has quit [(Remote host closed the connection)]
<Profpatsch>
musicmatze: aye
Sonarpulse has joined #nixos
<Profpatsch>
but maybe laggy (train)
<musicmatze>
ah, okay.
<musicmatze>
so no vid/audio chat right now :-/
<Profpatsch>
what0s up?
<Profpatsch>
hehe
<musicmatze>
nothing... just wanted to have a chat :-)
<musicmatze>
ask you about the status of the distributed issue tracker spec :-P
jgertm has joined #nixos
<NixOS_GitHub>
[nixpkgs] matthiasbeyer opened pull request #22560: xfce4-mpc-plugin: init at 0.4.5 (master...add-xfce4-mpd-plugin) https://git.io/vD0gU
<musicmatze>
jophish: a project I did this semester at my university. It is a issue tracker (like the github issue tracker) but completely distributed (as in git)
Shou has joined #nixos
<jophish>
sounds cool
jgertm has quit [(Ping timeout: 255 seconds)]
goibhniu has quit [(Ping timeout: 255 seconds)]
<musicmatze>
jup. It works pretty well. We implemented a proof of concept ... we hope we have time to re-implement it in a decent programming language (right now it is bash + sed, awk)
teknico1 has left #nixos []
stepcut has quit [()]
<schoppenhauer>
I hate compiling kernels :(
<NixOS_GitHub>
[nixpkgs] matthiasbeyer opened pull request #22562: xfce4-mailwatch-plugin: init at 1.2.0 (master...add-xfce-mailwatch-panel-plugin) https://git.io/vD0w8
jensens has quit [(Ping timeout: 240 seconds)]
<Dezgeg>
are there differences in other CONFIG_HOTPLUG_PCI_* options?
Shou has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub>
[nixpkgs] matthiasbeyer opened pull request #22563: xfce-timer-plugin: init at 1.6.0 (master...add-xfce-timer-plugin) https://git.io/vD0wK
stepcut has joined #nixos
nschoe has quit [(Quit: Program. Terminated.)]
<musicmatze>
anyone interested in a video/audio meetup right now?
<musicmatze>
well then... I'm going to play some minecraft then,... see you all! :-)
kampfschlaefer has joined #nixos
<erasmas>
is there a nix-approved way of keeping a file's timestamp when it's installed in the nix store? I have a package that's mostly static assets and nix resets the last modified time to the epoch
alx741_ has joined #nixos
davidak has joined #nixos
<musicmatze>
erasmas: that's because of time beeing an impurity. I'm pretty sure it can't be switched off..
<maurer>
If it's a constant timestamp, it wouldn't be an impurity
<maurer>
though I don't know what erasmas is doing
<erasmas>
it could be an input to the package with a constant value. in that sense it wouldn't break purity, but I'm not sure if it'd break nix expectations or if there's a phase that lets you modify it
<maurer>
erasmas: Why do you want a different timestamp on the file?
<erasmas>
maurer: other programs that know nothing about nix need to know how recent the files are. ideally I'd like to install the package and pass in the current timestamp at install time
<erasmas>
I know there are other ways to get and track that information, but it's one of those cases where a whole lot of services and configs are involved, and they all expect to be able to read the last modified date
<maurer>
Setting it to the install time is most certainly not valid
<erasmas>
maurer: in what sense? if it's passed to the package as a parameter then it should be. nix will produce a different output hash based on the input being different
<maurer>
erasmas: Said nix package will produce a different output every time it's built
<maurer>
erasmas: which means that every time you build something that depends on it, you'll get an additional copy
<erasmas>
maurer: yes, that's fine. conceptually it's a different package anyway. that behavior doesn't concern me -- I'm wondering if something else in nix will be thrown off by having files in the nix store with their own timestamps
ok2 has quit [(Ping timeout: 255 seconds)]
<erasmas>
and/or whether or not there's even a phase that lets you change it. I'm not sure which phase nix uses to change the timestamp
ixxie has quit [(Ping timeout: 260 seconds)]
<maurer>
I suspect it's during the fixupPhase
<maurer>
Oh wait, no, there won't be a phase
<maurer>
I'm pretty sure nix-store does this
<maurer>
so I don't know that you can override this behavior
FRidh has quit [(Quit: Konversation terminated!)]
<maurer>
I'd also like to point out htat I can't think of any useful logic a program could perform by reading the last modified time that wouldn't result in it trying to write to a read-only file in this case...
<maurer>
*that
<samae>
How can I install an alternative version of OCaml? There seems to be a 4.04 version available, but it is not installed by default
<erasmas>
maurer: ah, it's not even a phase? ok
<maurer>
erasmas: if it is in a phase it'll be fixupPhase
<maurer>
erasmas: I don't think it is though
<dtzWill>
taktoa: souper, \o/! Haha nicely done! Are you using souper at the moment? :D
* dtzWill
deletes his local souper packaging in favor of the new upstream one
<maurer>
samae: be aware that a lot of packages don't work on ocaml other than 4.02
<samae>
uh !
<samae>
nice thanks
<samae>
I'll target this one then
ok2 has joined #nixos
<maurer>
(specifically, the big problem is that Jane Street Core has separate source versions for 4.02 and 4.03)
<maurer>
(and since their main dev branch is still 4.02 based, I've been waiting until Jane Street itself moves to 4.03 or higher to try to boost our library compat)
<dtzWill>
taktoa: and any interest or problems with the other utilities? Wasn't sure how many of them were worth fixing up--sclang/sclang++,cache_*,souper2llvm, etc.
<samae>
I see
<samae>
gosh, I didn't even know they existed (jane street)
<samae>
: )
<Dezgeg>
ffuuuu... half of nix gets compiled with _FILE_OFFSET_BITS=64 (or something like that) and the other half with _FILE_OFFSET_BITS not set
<schoppenhauer>
hm. why uses kernel-compiling only one core?
<schoppenhauer>
(gah, grammar fail)
<schoppenhauer>
why does kernel-compiling only use one core?
<dtzWill>
Dezgeg: D: that's... unfortunate
<corngood>
schoppenhauer: probably because you have nix.buildCores = 1
<corngood>
Check the manual for how to set it
<Dezgeg>
that was *not* a fun one to debug
* Dezgeg
beer
danielrf1 has quit [(Quit: WeeChat 1.6)]
derjohn_mob has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to staging: https://git.io/vD0DD
<NixOS_GitHub>
nixpkgs/staging d452487 Frederik Rietdijk: libimobiledevice: use python2...
<NixOS_GitHub>
[nixpkgs] FRidh force-pushed python3 from 4820fe2 to 4a7b6a2: https://git.io/vPPX6
stepcut_ has quit [(Remote host closed the connection)]
stepcut has joined #nixos
georges-duperon has quit [(Ping timeout: 252 seconds)]
pi3r has joined #nixos
andrewthad has joined #nixos
<andrewthad>
I'm trying to use nix-shell to drop into environments with different versions of elasticsearch
<andrewthad>
This command works:
<andrewthad>
nix-shell -p elasticsearch
<andrewthad>
I end up in an environment with elasticsearch 1.7.2
<Sonarpulse>
do our GHCs use LLVM?
<NixOS_GitHub>
[nixpkgs] copumpkin pushed 1 new commit to master: https://git.io/vD05E
<NixOS_GitHub>
nixpkgs/master 4fef9bf Dan Peebles: pythonPackages.ansicolors: add meta
<andrewthad>
But, I cannot figure out how to get into an environment with elasticsearch 2.4.4
<Sonarpulse>
it doesn't look like it, but I'm trying to get a cross compiler built
<Sonarpulse>
and just got an LLVM error
<Sonarpulse>
*ghc complaining it cannot find llbm
<andrewthad>
For example, this does not work:
<andrewthad>
nix-shell -p elasticsearch-2.4.4
<andrewthad>
The package name appears to be invalid
<andrewthad>
All the examples where people are talking about python just use python35 or python33, but I cannot make any variant of that work for elasticsearch
FRidh has joined #nixos
<gchristensen>
andrewthad: it is because we've explicitly packaged python27, python35, etc. but perhaps not the version of elasticsearch you're looking for
<ToxicFrog>
andrewthad: NixOS doesn't do versioned packages (this is, IMO, one of its biggest flaws). The different versions of python or lua or the like are actually different *packages*, not different versions of the same package.
<ToxicFrog>
If ES 2.4.4 is available in one of the other nixpkgs channels, you could try installing from that channel; if not you may need to write your own derivation or override for it.
petar has quit [(Remote host closed the connection)]
fhoffmeyer has joined #nixos
<srhb>
andrewthad: You can explore the packagesets like this: nix-env -qaP -A nixpkgs.python35Packages | grep elasticsearch
<srhb>
andrewthad: Or just grep through a nixpkgs checkout.
<gchristensen>
ToxicFrog: how would NixOS do versioned packages, but still maintain its sanctity?
<ToxicFrog>
gchristensen: what do you mean by "sanctity" here?
vengefulpickle has quit [(Ping timeout: 252 seconds)]
<gchristensen>
the packages being passed in by reference, etc. no "dependency solver" madness
ThatDocsLady has quit [(Read error: Connection reset by peer)]
<srhb>
I think userspace tools to easily generate expressions for newer versions is really the answer.
<srhb>
Not that it's particularly hard to go alter the numbers in nixpkgs. :)
<ToxicFrog>
gchristensen: well, in practice when you callPackage the caller isn't passing in the dependencies, it's passing in all of pkgs and the derivation fishes out what it needs
<ToxicFrog>
So instead of depending on pkgs.foo (implicitly pkgs.foo.latest) you depend on pkgs.foo."1.2.3"
<gchristensen>
yes but it is still passed by reference and not a magic solver
<andrewthad>
I just cannot get into a shell with it
[0x4A6F] has joined #nixos
<srhb>
andrewthad: nix-shell -p elasticsearch2
<ToxicFrog>
gchristensen: yes? I don't understand your objection here
<ToxicFrog>
Like, I'm not saying "add a dependency solver"
<andrewthad>
ahh
<gchristensen>
mmm I see what you're saying, ToxicFrog :)
<srhb>
andrewthad: nix-env -qaP | grep elasticsearch to find it
<srhb>
The whole package name thing is very confusing, yeah.
<ToxicFrog>
I'm saying "make package versions a first-class concept in nixpkgs rather than an inconsistently-followed package naming conventions, and make it possible to refer to specific versions of packages in derivations or nix-shell/nix-env, and make it easy to add new versions of a package without completely replacing the old versions"
<mguentner>
ToxicFrog: +1
<gchristensen>
it wouldn't be impossible
<srhb>
ToxicFrog: That would be very cool
<FRidh>
The expression of a package depends on the version of the package, but also on the versions of its dependencies.
<ToxicFrog>
I mean, honestly, you can already do #1 and #2, I think, just no-one ever does that
<LnL>
gchristensen: do you know how the nixos tests work, I would expect it to have problems with sandboxing
modafinil_ has joined #nixos
<ToxicFrog>
By making pkgs.foo a rec of drvs rather than a drv
<andrewthad>
So, are there two different kinds of packages going on?
BramD has joined #nixos
<gchristensen>
LnL: what's up?
<ToxicFrog>
andrewthad: "elasticsearch2" is the canonical name of the ES 2.4.4 package
r0bby has joined #nixos
<srhb>
andrewthad: You mean the python packages versus the others?
<andrewthad>
so, does nix-shell only accept "canonical" package names for the -p flag?
<gchristensen>
LnL: it uses qemu, which uses kvm
<ToxicFrog>
The "attribute name" is what nix-env/nix-shell expect.
<srhb>
andrewthad: Nope.
teozkr has joined #nixos
<srhb>
andrewthad: Well, actually I'm not sure what that even means.
<LnL>
gchristensen: yes I know that, but all of that runs inside the sandbox?
aristid has joined #nixos
<andrewthad>
Why can I not pass it elasticsearch-2.4.4 instead? Shouldn't those refer to the same thing?
nz has joined #nixos
<andrewthad>
btw, using elasticsearch2 does work
<gchristensen>
andrewthad: it is like programming. it is, in fact, programming. you can't just define a variable with one name, and then refer to it by another
<Dezgeg>
you only need /dev/kvm inside the sandbox for the tests to work (or well, even without that they will run, just slowly)
<gchristensen>
LnL: yeah, sandboxes get access to /dev unless that feature is disabled, I think
jgertm has joined #nixos
petar has joined #nixos
<srhb>
andrewthad: nix-env can use package names like that (nix-env -i elasticsearch-2.4.4) though it's slow because there's no direct reference to that name, it has to actually evaluate lots of things. nix-shell cannot do that, as far as I know.
<srhb>
There's no particular reason for that limitation.
<srhb>
(As far as I know)
<srhb>
Holy cow, I just ran out of memory while nixos-rebeuilding. Funky.
<andrewthad>
ok, thanks
vengefulpickle has joined #nixos
dvim has joined #nixos
<andrewthad>
I just found where elasticsearch2 is defined in all-packages.nix, so this is making more sense now
stasku has joined #nixos
<srhb>
andrewthad: Yeah, getting to know the nixpkgs structure a bit helps a lot in understanding things. :)
Jackneill_ has joined #nixos
seanparsons_ has joined #nixos
carter has joined #nixos
adelbertc has joined #nixos
manveru has joined #nixos
cfricke has joined #nixos
ocharles has joined #nixos
petar has quit [(Remote host closed the connection)]
feepo has joined #nixos
petar has joined #nixos
cstrahan has joined #nixos
sjanssen has joined #nixos
marcinkuzminski has quit [(Changing host)]
marcinkuzminski has joined #nixos
takle has joined #nixos
modafinil_ is now known as modafinil
bdimcheff has joined #nixos
rmeis has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
ryantm____ has joined #nixos
<Dezgeg>
whew, finally a working nix (soon-to-be-)master that works on ARM
<gchristensen>
nice :D
<clever>
:D
ericbmerritt_ has joined #nixos
<NixOS_GitHub>
[nixpkgs] copumpkin pushed 1 new commit to master: https://git.io/vD0pn
<NixOS_GitHub>
nixpkgs/master 84542bb Dan Peebles: pythonPackages.pants: add meta
mbrock has joined #nixos
phorse has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nixpkgs] copumpkin pushed 1 new commit to master: https://git.io/vD0pQ
<NixOS_GitHub>
nixpkgs/master 825ef23 Dan Peebles: pythonPackages.pants: fix typo in license
savanni has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
pkogan has joined #nixos
<viric>
Dezgeg: nix wasn't working?
<Dezgeg>
nixUnstable wasn't (and I suppose i686 is equally broken)
<viric>
ah
<NixOS_GitHub>
[nixpkgs] FRidh created python from staging (+0 new commits): https://git.io/vD0hq
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to staging: https://git.io/vD0hO
<NixOS_GitHub>
nixpkgs/staging 939f426 Frederik Rietdijk: python35: 3.5.2 -> 3.5.3
<NixOS_GitHub>
nixpkgs/staging b846a53 Frederik Rietdijk: python34: 3.4.5 -> 3.4.6
<clever>
JHenry: str and string are also very different types, and i think ive seen a few options with the wrong variant
<clever>
JHenry: str allows a single string between all config
<clever>
while string will just concat each instance with no separator
<JHenry>
gotcha, ty.
monad_cat has joined #nixos
phorse has joined #nixos
codedmart has joined #nixos
jml has joined #nixos
dgonyeo has joined #nixos
<c74d>
What is ‘/nix/store/d1prcspbh2qsviipvnaxizcj8l3g7fpw-bootstrap-tools’? nix-shell seems to download all 31.9 MiB of it every day (I have Nix store GC running nightly)
<srhb>
Huh, looks like it's the nvidia drivers that barf out with oom.
yurrriq has joined #nixos
takle has joined #nixos
tjg1 has joined #nixos
philips has joined #nixos
nand0p has joined #nixos
<NixOS_GitHub>
[nixpkgs] copumpkin pushed 1 new commit to master: https://git.io/vDEvM
<NixOS_GitHub>
nixpkgs/master e012e12 Dan Peebles: pythonPackages.pathspec: add meta
andrewthad has quit [(Quit: Ex-Chat)]
eddyb has joined #nixos
jmeredith has joined #nixos
<srhb>
Has anyone managed to build them on unstable?
wizeman has joined #nixos
<c74d>
I don't suppose it's possible to look up the attribute path that would yield a given store path?
fhoffmeyer has quit [(Ping timeout: 276 seconds)]
stig has joined #nixos
georges-duperon has joined #nixos
fingerzam has joined #nixos
obadz has quit [(Ping timeout: 255 seconds)]
<NixOS_GitHub>
[nixpkgs] copumpkin pushed 1 new commit to master: https://git.io/vDEUI
<NixOS_GitHub>
nixpkgs/master 554bfea Dan Peebles: pythonPackages.pex: add meta
phorse has quit [(Read error: Connection reset by peer)]
phorse has joined #nixos
obadz has joined #nixos
ladron has joined #nixos
gilligan_ has quit [(Quit: Leaving)]
Itkovian has joined #nixos
<srhb>
Holy crap, I created a 32G swap file and the build succeeded. It just USES that much. O_o
phorse has left #nixos ["ERC (IRC client for Emacs 25.1.1)"]
<viric>
c74d: impossible
cfricke has quit [(Quit: WeeChat 1.6)]
<c74d>
viric: which?
<viric>
c74d: look up...
<Nafai>
srhb: I haven't noticed issues with the nvidia drivers, but I am having problems compiling widevine support for chrome
<srhb>
Nafai: Yes, that didn't work for me either.
<viric>
c74d: You should tell your gc not to erase the stdenv :)
<Nafai>
srhb: Did the swap file fix that?
<srhb>
Nafai: As for nvidia drivers, it looks like it just needs more than 16G of memory
<jophish>
hmm, nix-instantiate seems to be ignoring NIX_BUILD_HOOK
<srhb>
Nafai: I doubt it, but I can try
<Nafai>
srhb: I have 24G of RAM and 24G of swap
<srhb>
Nafai: seemed like a different issue.
<viric>
c74d: bootstrap-tools are the earliest files put in the store; they include gcc, glibc, ... the bare minimum to start things
<srhb>
Nafai: That would explain why you didn't notice that. :-)
<Nafai>
probably
ertes has joined #nixos
<c74d>
viric: (a) okay, I didn't think such look-up would be available; (b) I'm currently going to add those files to my configuration's list of derivations to protect from the GC by writing their store paths somewhere in /etc
<viric>
c74d: I think there is a flag...
<c74d>
oh?
<viric>
maybe not
<viric>
I'm outdated since someone put stdenv out of the nixos system derivation
<c74d>
I do wonder why Nix deletes these things that it seems to always need
<viric>
or fetchurl, or whatever piece that kept those things alive
<c74d>
(I now recall that nixos-rebuild always seems to download them too)
<viric>
c74d: there was an effort to reduce the size of the system closure
<c74d>
ah
<viric>
I'd prefer having all that alive, though
rmeis has quit [(Ping timeout: 240 seconds)]
<Dezgeg>
system.extraDependencies = with pkgs; [ stdenv stdenvNoCC ] or something
<jophish>
oh of course, I don't have write permissions to the store, so it's defaulting to the daemon
<jophish>
I was reading that code earlier today
<c74d>
oh, I didn't know about system.extraDependencies; that seems like the proper equivalent to my stuffing stringified derivations into a file in /etc
chpatrick has joined #nixos
<chpatrick>
something's wrong with eigen/3.3 I think
<chpatrick>
pkg-config --cflags eigen3 is: -I/nix/store/9lyqmq1w21s52981zscm6jsdp076prjv-eigen-3.3.2//nix/store/9lyqmq1w21s52981zscm6jsdp076prjv-eigen-3.3.2/include/eigen3
<NixOS_GitHub>
[nixpkgs] LnL7 opened pull request #22571: add setup-hook to fix darwin frameworks (master...darwin-frameworks-hook) https://git.io/vDEtw
endformationage has quit [(Quit: WeeChat 1.6)]
xwvvvvwx has joined #nixos
<xwvvvvwx>
Hi :)
<eacameron>
Is there any technique/process/template or some-such for converting an RPM package to a Nix derivation?
<Sonarpulse>
I asked before, but anyone know about whether/how ghc uses llvm?
<xwvvvvwx>
▶ WARNING (CONN KeybaseDaemonRPC c91174df) Connection: error dialing transport: dial unix /run/user/1000/keybase/keybased.sock: connect: no such file or directory
<xwvvvvwx>
▶ WARNING KeybaseDaemonRPC: connection error: "dial unix /run/user/1000/keybase/keybased.sock: connect: no such file or directory"; retrying in 552.330144ms
<Sonarpulse>
I don't seen any reference to llvm in its derivation
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<xwvvvvwx>
hmmmmm
<xwvvvvwx>
running keybase ctrl restart (controls the background keybase daemon) previously failed with the same error
<NixOS_GitHub>
[nixpkgs] copumpkin pushed 1 new commit to master: https://git.io/vDEKh
<NixOS_GitHub>
nixpkgs/master 3e7dffd Dan Peebles: pythonPackages.twitter-common-*: add meta...
goibhniu has quit [(Ping timeout: 245 seconds)]
<NixOS_GitHub>
[nixpkgs] k0001 opened pull request #22574: compilers/ghcjs/base.nix: Take ghcjsNodePkgs as argument (master...ghcjs-node) https://git.io/vDE6c
<tnks>
here's another question. I sometimes get confused between the first and third argument to callPackageWith.
<tnks>
oh, it's about auto-args.
ndowens08 has joined #nixos
helpusobi has quit [(Ping timeout: 252 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]