<disasm>
SusWombat: what display manager are you using?
SusWombat has quit [(Ping timeout: 260 seconds)]
koserge has quit [(Ping timeout: 252 seconds)]
Lisanna_ has joined #nixos
<Lisanna_>
Anyone ever tried using Nix as a build system? i.e., in place of cmake, autotools, etc.
<disasm>
Lisanna_: well that's an interesting use case. I suppose you could, but I'm not sure it would be worth it.
<gchristensen>
Lisanna_: it'd probably be a bit slow
<gchristensen>
all the setup/teardown stuff
<Fare>
Lisanna, that would be great... an alternative to bazel.
<Lisanna_>
but it'd have good incremental build support
<Lisanna_>
parallel building built in
<Fare>
need a good caching strategy for which intermediate parts to keep or throw away
<Lisanna_>
dang... I kind of want to build this now :)
<Lisanna_>
I have a small project that autotools is just not right for
<Lisanna_>
so I've resorted to bash scripts
<gchristensen>
Lisanna_: give it a go :)
<gchristensen>
but ... make is pretty good
<Lisanna_>
gchristensen: key word there being "want to"
mudri has quit [(Ping timeout: 252 seconds)]
<gchristensen>
hehe
<Lisanna_>
anyways, here's a dumb question: I'm getting tired of typing this all the time: blah = import ./blah.nix { inherit stdenv coreutils findutils lib foo bar baz };
<clever>
Lisanna_: bar can now depend on foo, without you having to pass it in
<clever>
the new myCallPackage will first search within self, then pkgs
Guest65577 has joined #nixos
<Lisanna_>
oh, that's cool
<Lisanna_>
argh... I should really contribute some of the derivations I'm writing to nixpkgs, just no time ):
<gchristensen>
oh please do :)
<Lisanna_>
they're probably nothing anyone other than me would care too much about... just some HPC stuff
wilornel has joined #nixos
<gchristensen>
oh? can you provide specifics?
<wilornel>
Hey #nixos! Is it possible to use nix (on the non-nixos Ubuntu) to manage systemd? I'd like to declare that I want a redis server and a postgresql server running at specific ports
<Lisanna_>
well I saw you guys have an OpenMPI package in nixpkgs... it's a bit way outdated though :)
sellout- has quit [(Quit: Leaving.)]
sellout- has joined #nixos
<gchristensen>
Lisanna_: we have several HPC users
<Lisanna_>
huh... well, maybe one of these days I'll sit down and clean up some of the stuff I have and start upstreaming
phinxy has quit [(Read error: Connection reset by peer)]
cpennington has joined #nixos
takle has joined #nixos
<Lisanna_>
also, curious if anyone else uses Nix stuff for building stuff for other distress?
<Lisanna_>
*distros?
sigmundv has quit [(Ping timeout: 240 seconds)]
jellowj has quit [(Ping timeout: 248 seconds)]
takle has quit [(Ping timeout: 248 seconds)]
jellowj has joined #nixos
Supersonic112 has quit [(Disconnected by services)]
<wilornel>
Ah, seems like installing postgresql on ubuntu using nix did not work out nicely
atondwal has quit [(Ping timeout: 264 seconds)]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
<Infinisil>
I mean any project that uses nix to manage it's dependencies is usable by any linux
<Infinisil>
pretty much
<Infinisil>
ls https://github.com/*/*/blob/master/default.nix would list them :P
<Infinisil>
Lisanna_: ^^
mbrgm has quit [(Ping timeout: 240 seconds)]
mbrgm has joined #nixos
<Lisanna_>
Infinisil: it can work if you have a switch in your derivation that toggles between different distros,including nix, and then you always build against the Nix versions, but install the other ones
<wilornel>
could someone help me troubleshoot the issue I have with `psql` , the `postgres` service, and nix on Ubuntu?
<Lisanna_>
shared libraries are shared libraries :)
slack1256 has joined #nixos
<Lisanna_>
I do this for OpenMPI and osu-micro-benchmarks and find that it works great
<Lisanna_>
where OpenMPI is the dependency
<Infinisil>
is it not possible to use the nix versions of those libraries?
<Infinisil>
I mean all nixpkgs linux packages should work no problem on other distros (although I haven't tried it)
<Lisanna_>
I run on red hat for my HPC stuff most of the time, so I'll build OpenMPI with a Nix expression for Nix, then build osu-micro-benchmarks for red hat against the Nix version of OpenMPI, then install my red hat version of OpenMPI (that I built using the same derivation) alongside the red hat version of sou-micro-benchmarks.
<Lisanna_>
Infinisil: that's actually an interesting idea, I never thought of that
<Lisanna_>
I just use patchelf and skip all the fixup stuff and it's worked great so far
<wilornel>
Infinisil: The issue was that the postgres service was run by systemd (under root?) and so the loaded libraries for the user and the server were different, I think
<Infinisil>
Lisanna_: I see, well I'd just force nix upon them, it's not like it hurts them anyways
<Infinisil>
it's going to be easier and less painfull after all
<Infinisil>
suppose they update the system, shared libraries may change and the thing you packages breaks
<Infinisil>
packaged*
<tilpner>
Why does importing a directory fail when the .drv is absent?
justanotheruser has joined #nixos
<tilpner>
In my case: cannot import '/nix/store/kh1jfhlw9kdbqpzrdfh2snfr1m4pxqg4-riot-electron-nix-ec1f0e61ee6822791e57b91b679e93d2c38ec56c-src', since path '/nix/store/ylcq7flzzmnshrbf9gd8crfmxsgxh678-riot-electron-nix-ec1f0e61ee6822791e57b91b679e93d2c38ec56c-src.drv' is not valid
stepcut has quit [()]
atondwal has quit [(Quit: atondwal)]
ryanarte_ has joined #nixos
<slack1256>
using packages from multiples generations trashes the page cache right?
<Lisanna_>
Infinisil: all of these are true statements ^^ I'm going to start maintaining my own internal channel probably for our software, and then if they bitch about something breaking or being old I'm just going to point them to Nix :)
<Lisanna_>
would also make it a lot easier to run the Nix versions of this kind of software my own platforms with Nix installed like you were suggesting earlier
<Infinisil>
tilpner: I cannot reproduce this, works for me
jellowj has quit [(Ping timeout: 240 seconds)]
<Lisanna_>
currently I'm building RHEL versions of everything and then packaging them into RPMs with Nix as well, then shipping those RPMs off through Docker or something
<Lisanna_>
*to Docker
<Infinisil>
that sounds horrible
<tilpner>
Infinisil - I should have mentioned this only happens during "nox anything", and the package is tx0.co/E0ke.nix
<tilpner>
Infinisil - Could you try to put that into overlays or packageOverrides, then use nox?
<Lisanna_>
seriously though, fsck red hat and RPMs in general. what a terrible idea.
<Infinisil>
tilpner: on it
<tilpner>
Thanks :)
<Infinisil>
Well I think nox fails because I'm using a git version of nixpkgs or so, some python error
lambdamu has joined #nixos
Lisanna_ has quit [(Quit: Page closed)]
<tilpner>
Okay, forget nox, what about nix-env -qa \*?
<tilpner>
Is that supposed to only work with channels
vegai has quit [(Remote host closed the connection)]
<Infinisil>
nix-env should certainly work with non-channels, but I've heard it's a problem with nox, could be wrong though
mattox has left #nixos ["ERC (IRC client for Emacs 25.2.1)"]
<tilpner>
nix-env -qa firefox --show-trace erros with tx0.co/E-m9
<Infinisil>
How are you putting this in an overlay exactly?
lambdamu_ has quit [(Ping timeout: 248 seconds)]
sellout- has joined #nixos
<tilpner>
I hope that part's not relevant. I have an overlay [ tx0.co/sND8.nix ] that calls packages from a directory. riot-electron.nix is in that ../pkgs directory
cpennington has quit [(Remote host closed the connection)]
<tilpner>
So it's practically self: super: { riot-electron = super.callPackage ../pkgs/riot-electron.nix {}; }, which should be fine
<Infinisil>
Hmm, I can't seem to get an overlay working, but why are you using callPackage twice?
<Infinisil>
callPackage (fetchFromGitHub { ... }) {} should be enough
<tilpner>
The first callPackage (in the overlay) provides callPackage and fetchFromGitHub to the expression that fetches and calls the actual package
<mbrock>
Lisanna: I recently set up such an internal Nix infrastructure, I'm quite happy with it
<mbrock>
Lisanna: I got a bunch of help here and tinkered on my own and eventually arrived at an overlay that imports a pinned version of nixpkgs. You can look at https://github.com/dapphub/nixpkgs-dapphub if you're curious
<mbrock>
oh yeah and then I expose that repository as a channel
SusWombat has joined #nixos
<SusWombat>
When i use nix where would i find files that are usually in /us/share/doc ?
<SusWombat>
/usr/share/doc*
MercurialAlchemi has joined #nixos
<nixy>
I believe they would show up in the derivation under share/doc
<SusWombat>
aaah found it thanks anyway!
<nixy>
No problemo
<SusWombat>
found it in the nix store folder of the package
<mbrock>
you can look in /run/current-system/sw
<mbrock>
for stuff you have installed as system packages
<SusWombat>
im not using nixos maybe that makes a difference
<nixy>
mbrock: That only works on NixOS though, if they are just using Nix that wouldn't apply
<mbrock>
oh yeah right
<nixy>
I think LnL's nix-darwin creates the whole /run/current-system thing for darwin tho
silver_hook has joined #nixos
silver_hook has quit [(Changing host)]
silver_hook has joined #nixos
jsgrant has joined #nixos
jsgrant_ has joined #nixos
<mbrock>
nixy: woah, that's an interesting project
jsgrant has quit [(Client Quit)]
jsgrant has joined #nixos
ryanarte_ has quit [(Quit: ryanarte_)]
hamishmack has joined #nixos
silver_hook has quit [(Ping timeout: 240 seconds)]
SusWombat has quit [(Ping timeout: 260 seconds)]
MP2E has quit [(Quit: reboot)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] MP2E pushed 1 new commit to master: https://git.io/vdvdT
taktoa has quit [(Remote host closed the connection)]
hamishmack has joined #nixos
ertes has quit [(Ping timeout: 252 seconds)]
Neo-- has joined #nixos
<ixxie>
it seems somehow my channels are not updating correctly
orivej has quit [(Ping timeout: 240 seconds)]
<ixxie>
I keep getting the same error event though rycee fixed the bug yesterday and I updated my channels
leat has joined #nixos
kiloreux has joined #nixos
kiloreux_ has joined #nixos
odi` is now known as odi
<ij>
Where is the closure information about store paths stored?
<kiloreux_>
Would it be possible for me to use /nix/store as a volume inside docker image ? SO I don't reinstall binaries inside every image and reuse them from the machine ?
<akamaus>
hi everyone
<ixxie>
heya
<akamaus>
Is it possible to use pip to quickly experiment with python packages not included into nixpkgs?
<ij>
kiloreux_, Probably. Only one way to find out. :)
<kiloreux_>
testing all kind of ways and still trying to figure it out. So I thought someone here might have more experience doing this :D
<ixxie>
kiloreux_: I just know it is possible to share the store between multiple parititions and machines
<akamaus>
i tried to install chainer package, it unpacked to ~/.local/lib/... as usual with pip, but python interpreter doesn't see it.
goibhniu has joined #nixos
<ixxie>
kiloreux_: there is something somewhere about serving the nix store and since docker images can access your local network it should be possible
<kiloreux_>
ixxie, Thank you. Do you have any link or something so I can read more about this?
<ixxie>
kiloreux_: be sure to record what you know, there are no guides yet on this topic on nixos.wiki afaik
<ixxie>
record what you learn*
<kiloreux_>
Alright, will make sure to.
Mateon1 has left #nixos []
civodul has joined #nixos
<ixxie>
is it alright to use the nixpkgs-unstable channel for my nixos user profile?
<makefu>
ixxie: of course, just think of the consequences (a lot of broken packages ;)
<ixxie>
makefu: what is the difference between nixpkgs unstable and nixos unstable? The tests right?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] nlewo opened pull request #29660: [wip] dockerTools.buildImage: Switch to the format image generated by Skopeo (master...pr/docker-build-image-registry-format) https://git.io/vdvAA
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vdvpX
<NixOS_GitHub>
nixpkgs/master 6075d4a Russell O'Connor: bitcoin: 0.15.0 -> 0.15.0.1
NixOS_GitHub has left #nixos []
jsgrant has joined #nixos
ebzzry has quit [(Quit: WeeChat 1.9)]
jsgrant has quit [(Client Quit)]
jsgrant has joined #nixos
koserge has joined #nixos
kuznero has joined #nixos
corpix has quit [(Remote host closed the connection)]
corpix has joined #nixos
numerobis has joined #nixos
koserge has quit [(Ping timeout: 260 seconds)]
<cmcdragonkai1>
If you were to try to package up cling independent of the root framework, the manual instructions listed here: https://root.cern.ch/cling-build-instructions indicate multiple git repositories that must be fetched and composed together imperatively
<cmcdragonkai1>
How would one write a nix expression to do this?
ertes-w has joined #nixos
<cmcdragonkai1>
One way might be to write multiple nix expressions, one for each src url. With the final one imperatively doing symlinks to construct the expected FS structure, and then running cmake.
<cmcdragonkai1>
But is there a way to bring in multiple external sources in a single nix expression?
zzamboni has quit [(Quit: Leaving.)]
corpix has quit [(Read error: Connection reset by peer)]
zzamboni has joined #nixos
jtojnar has quit [(Remote host closed the connection)]
kini has quit [(Remote host closed the connection)]
[0__0] has quit [(Remote host closed the connection)]
mudri has joined #nixos
lambdamu has quit [(Quit: No Ping reply in 180 seconds.)]
rsa has quit [(Ping timeout: 240 seconds)]
Khetzal has quit [(Ping timeout: 240 seconds)]
jophish has quit [(Ping timeout: 240 seconds)]
kkini` has joined #nixos
obadz has quit [(Ping timeout: 240 seconds)]
woffs has quit [(Ping timeout: 246 seconds)]
[0__0] has joined #nixos
Khetzal has joined #nixos
rsa has joined #nixos
VLetrmx has quit [(Ping timeout: 240 seconds)]
lambdamu has joined #nixos
MP2E has quit [(Ping timeout: 260 seconds)]
Acou_Bass has quit [(Ping timeout: 248 seconds)]
corpix has joined #nixos
kragniz has quit [(Ping timeout: 255 seconds)]
manveru has joined #nixos
kini has joined #nixos
mudri|srcf has quit [(Ping timeout: 260 seconds)]
Itkovian has joined #nixos
benmachine has quit [(K-Lined)]
barrucadu has quit [(Ping timeout: 248 seconds)]
<numerobis>
Infinisil: mattox: Thank you very much (and sorry for the late response)! Yes, the package is in the nixpkgs repository. I will try your suggestion.
Ankhers has quit [(Ping timeout: 240 seconds)]
barrucadu has joined #nixos
barrucadu has quit [(Changing host)]
barrucadu has joined #nixos
Ankhers has joined #nixos
kkini has quit [(Ping timeout: 255 seconds)]
Acou_Bass has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
zzamboni has joined #nixos
obadz has joined #nixos
kragniz has joined #nixos
MP2E has joined #nixos
VLetrmx has joined #nixos
jophish has joined #nixos
uralbash has joined #nixos
uralbash has left #nixos []
TMVector has quit [(Quit: Page closed)]
mortum5 has joined #nixos
endformationage has quit [(Quit: WeeChat 1.9)]
__Sander__ has joined #nixos
hotfuzz_ is now known as hotfuzz
kiloreux__ has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vdfmC
<NixOS_GitHub>
nixpkgs/master f2aecac Joerg Thalheim: topydo: use throw instead of trace to not break evaluation
NixOS_GitHub has left #nixos []
<joepie91>
gchristensen: I'd like to hear more about what you've learned and how (given that you've worked on it a bunch), but I'll have to take a rain check on that; my shoulder is currently injured, so I can't type too much at the moment :P
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 3 new commits to release-17.09: https://git.io/vdfm2
<NixOS_GitHub>
nixpkgs/release-17.09 1c8872b Samuel Leathers: topydo: 0.9 -> 0.13...
<NixOS_GitHub>
nixpkgs/release-17.09 ae26449 Joerg Thalheim: topydo: really move out of python-packages...
<NixOS_GitHub>
nixpkgs/release-17.09 053d9a4 Joerg Thalheim: topydo: use throw instead of trace to not break evaluation...
Nergal has quit [(Remote host closed the connection)]
jsgrant has joined #nixos
<gchristensen>
joepie91: well just by the time I got all the docs encoded in the .nix file, it was like 40 lines long and the function was 3 lines long, and it was terrible :P
<gchristensen>
joepie91: and I would end up writing docbook in the .nix file anyway
goibhniu has quit [(Remote host closed the connection)]
<woffs>
Anyone using distributed builds with nixos and a remote machine? I get failing ssh connection, apparently the ssh key which I prepared keeps unused.
<woffs>
I need a remote build machine because for i686 many packages are no more compiled by hydra and my machine is rather slow and has little RAM
<ij>
Puzzled by how man finds the manuals stored in ~/.nix-profile. There's no mention of ~/.nix-profile/share/man in `env`, the man I'm using is /usr/bin/man and it comes from arch linux packages and /etc/man_db.conf is also clean.
<v0lZy>
hm
<v0lZy>
I got a report that grub2 boot load failed... I guess grub cant do ext4 or.. ?
<v0lZy>
sas 'File system ext2 doesnt support embedding.. but my filesystem is ext4
<v0lZy>
mm... i see
pie_ has joined #nixos
<v0lZy>
needs a bios boot partition ... ok
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vdfCx
<avn>
v0lZy: s/nix-install/nixos-rebuild switch/ if you already on your new system
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vdf4G
<NixOS_GitHub>
nixpkgs/master 02fe120 Matt McHenry: openjdk9: init at 9.0.0+180...
NixOS_GitHub has left #nixos []
<samae>
There may be another module enabling it
<v0lZy>
I have a completely default configuration.nix file
<v0lZy>
yet I see in /etc/samba/ smb.conf pointing to /etc/static/samba/smb.conf
<v0lZy>
and that one points to /nix/store/....-smb-dummy.conf
<v0lZy>
'which smbd' doesnt find smbd though.
<v0lZy>
so I guess its just config files that are there for when package is installed?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vyp opened pull request #29665: qt-5/qtbase-setup-hook.sh: attempt to make directories only if needed (master...issue/29589) https://git.io/vdf4F
NixOS_GitHub has left #nixos []
<v0lZy>
avn: if i do nixos-rebuild switch ... after i did nix-env -i mc ... wht does that do?
<v0lZy>
does it add 'mc' as a package to configuration.nix or something?
numerobis has quit [(Ping timeout: 240 seconds)]
<goibhniu>
v0lZy: nope ... you have a few different options to "install" things on NixOS
<goibhniu>
you can enable modules (e.g. a web server) and install packages systemwide in your configuration.nix
<avn>
v0lZy: edit your configuration.nix, then rebuild switch
<goibhniu>
independently, you can install packages as a user (with nix-env)
<v0lZy>
ah
<v0lZy>
so nix-env -i mc is isolated to my user
<goibhniu>
with nix-env you install stuff into your "user profile" and with nixos-rebuild you install stuff into your "system profile"
<v0lZy>
(happens to be root right now)
<goibhniu>
exactly
<v0lZy>
and other users can then use this or not?
<avn>
My opinionated suggestion -- use configuration.nix and/or nix-shell
<v0lZy>
avn: for my use case, i think ill be using configuration.nix, yeah
<goibhniu>
although, stuff installed as root is also available to all users
<v0lZy>
good to know
<v0lZy>
but if it was a normal user
<v0lZy>
and installed nix-env -i
<v0lZy>
would other users be able to use it, I assume not?
<v0lZy>
(though i assume thats just a permissions and path thing?)
<goibhniu>
they wouldn't
<goibhniu>
it's just the path
<goibhniu>
they could run it directly from the store
<goibhniu>
but it wouldn't be on their path
thblt has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vdfBo
<thblt>
Hi! I have a small nixpkgs issue: I can't install asymptote, because it conflicts with texlive.combined.scheme-full (and other schemes), because (I assume) they both provide the same .sty.
<thblt>
error is: collision between `/nix/store/jl8fkpzhf1p21mi8yhj08d01d8jf5yz5-texlive-combined-full-2016/share/texmf/tex/latex/asymptote/asymptote.sty' and `/nix/store/1dqwslmjb75n2x3niqs0ajim09ydzwkz-asymptote-2.39/share/texmf/tex/latex/asymptote/asymptote.sty'
<thblt>
<v0lZy>
goibhniu: and how would one prevent usres from installing anyhting they wanted ... not allow execution of nix-env for their group?
acarrico has quit [(Ping timeout: 246 seconds)]
<goibhniu>
I don't know
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] primeos pushed 1 new commit to master: https://git.io/vdfBx
<NixOS_GitHub>
nixpkgs/master 8758a4d Michael Weiss: pythonPackages.raven: 6.1.0 -> 6.2.0
NixOS_GitHub has left #nixos []
<thblt>
v0lZy: I may be missing context, but why would you do that?
<Infinisil>
Regarding the dummy samba config, from nixpkgs/nixos/modules/services/network-filesystems/samba.nix: "Always provide a smb.conf to shut up programs like smbclient and smbspool."
woffs has quit [(Quit: Gateway shutdown)]
<v0lZy>
thank Infinisil
<disasm>
v0lZy: don't do a multi-user install and chown /nix to root?
acarrico has joined #nixos
<v0lZy>
disasm: I like the idea of having multiple users
<v0lZy>
disasm: just not the idea that any of them can install anything
<v0lZy>
thblt: well I'm assuming anyone installing anything they want is going to fill up the system
<v0lZy>
seems to me everything gets installed to /nix/store and linked
mattcode has joined #nixos
woffs has joined #nixos
<etu>
v0lZy: Users can store huge files in the filesystem as well
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ttuegel pushed 2 new commits to master: https://git.io/vdfRW
<NixOS_GitHub>
nixpkgs/master 99eabd6 xd1le: qt-5/qtbase-setup-hook.sh: attempt to make directories only if needed...
<NixOS_GitHub>
nixpkgs/master 6237ece Thomas Tuegel: Merge pull request #29665 from vyp/issue/29589...
NixOS_GitHub has left #nixos []
<etu>
v0lZy: Even huge files, and then the filesystem is full
<Infinisil>
v0lZy: And users can compile anything they want -> install anything
<Infinisil>
installing is really just adding a binary to $PATH
<v0lZy>
etu: does nix-env require sudo rights or..?
<etu>
v0lZy: no
<etu>
v0lZy: you can invoke it for your users profile
<globin>
's dedicated build users build the packages
<Infinisil>
v0lZy: nix doesn't really distinguish between users, so it makes little sense to run a nix-daemon for each user, they'd just trample over each other
sellout- has quit [(Quit: Leaving.)]
<v0lZy>
what do you mean it doesnt distinguis between users ... ?
<v0lZy>
(sorry, utter n00b here)
kmicu has joined #nixos
<v0lZy>
I mean, from what i understand rigt now, only root can alter configuration.nix
<Infinisil>
v0lZy: building a package with user a or b doesn't change the package, it's still gonna end at the same location in /nix/store/...
<v0lZy>
but anything root installs as nix-env is by default available to all...
<Infinisil>
yeah, profiles are per-user
<Infinisil>
(well some are at least)
<v0lZy>
and those that arent... isnt there security concerns or anything?
<clever>
only things root installs become global
<clever>
and nix-daemon enforces the rules, so you always get the program you asked for
<Infinisil>
but everything nix (really the nix-daemon) builds goes into /nix/store, which isn't specific to any user
<clever>
even if another user installs a trojaned variant of a program, you will never be given the path to it
<clever>
because your asking nix-daemon for the non-trojaned variant
ShalokShalom_ is now known as ShalokShalom
<Infinisil>
I imagine the nix-daemon interface to be something like "Build me this derivation: /nix/store/...-foo.drv" -> "Here is your built derivation: /nix/store/...-foo"
numerobis has joined #nixos
<clever>
Infinisil: more like the -foo.drv file contains the -foo path in it already
<Infinisil>
Ah right
<clever>
and nix-daemon is purely to spawn the build, and enforce what args it gets started with, so nobody can cheat
<Infinisil>
Ah nice
<v0lZy>
i imagine if theres a trojaned version some user built its only them that get to execute it when they call it
<clever>
v0lZy: exactly
<v0lZy>
but above it was said that the users can still run what other users build, if they do it directly on their own (link and copy stuff)
<thblt>
v0lZy: Beyond trojaned versions, users may want to modify the packages they install for themselves
<Infinisil>
Unless you execute the binary directly in the nix store, but you won't have any reason to do that anyways
<thblt>
Eg, my config.nix modifies the default Emacs package.
civodul has joined #nixos
<thblt>
And of course, nobody wants *my* Emacs. But since the package is modified, the hash is different so there's no collision in the store.
<v0lZy>
Infinisil: as a single user you might not have a reason to do that, but im thinking that were the users running X and browsing around clicking on files that might be symlinks...
<v0lZy>
seems like someone could slip them something
<v0lZy>
though i guess that holds true anyway for other distros too
<thblt>
If you start running any binary you find lying around, you're going to get into trouble anyway. :)
<Infinisil>
v0lZy: Unless you browse files in /home/malicioususer/.nix-profile this won't happen
<Infinisil>
and /nix/store of course
<disasm>
Infinisil: yeah, it's required to build stuff. You can't put things in the nix store without the nix daemon
<Infinisil>
disasm: I see thanks
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 18 new commits to release-17.09: https://git.io/vdfuW
<NixOS_GitHub>
nixpkgs/release-17.09 63c5978 Thomas Tuegel: alacritty: install desktop icon...
<NixOS_GitHub>
nixpkgs/release-17.09 c57bf23 Thomas Tuegel: alacritty: respect pre- and post-hooks of overridden phases...
<NixOS_GitHub>
nixpkgs/release-17.09 91aa0f4 Samuel Leathers: lenmus: removing custom cmakeFlags...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] sargon opened pull request #29667: radsecproxy: init at 1.6.9 (master...radsecproxy) https://git.io/vdfui
NixOS_GitHub has left #nixos []
<disasm>
how can I disable python 3 support in a normal stdenv.mkDerivation (not buildPythonPackage)
slabity has joined #nixos
sellout- has joined #nixos
takle has joined #nixos
<Infinisil>
Does just not including python3 work?
bennofs has quit [(Read error: Connection reset by peer)]
takle has quit [(Remote host closed the connection)]
takle has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vyp opened pull request #29668: CONTRIBUTING.md: mention that the meta.license and meta.maintainers attributes must be set (master...doc/contributing.md) https://git.io/vdfz1
NixOS_GitHub has left #nixos []
nh2 has quit [(Ping timeout: 260 seconds)]
bennofs has joined #nixos
griff_ has joined #nixos
lambdamu has quit [(Ping timeout: 240 seconds)]
jmeredith_ has joined #nixos
lambdamu has joined #nixos
nh2 has joined #nixos
nvd has joined #nixos
<nvd>
I'm trying to set the MAC address of eth0 using the option "networking.interfaces.eth0.macAddress = ..." and it seems to not be set until after eth0 is busy
Infinisi1 has joined #nixos
Infinisil has quit [(Ping timeout: 240 seconds)]
hotfuzz has quit [(Ping timeout: 240 seconds)]
_c_ has left #nixos ["-"]
freeman42x has joined #nixos
eacameron has joined #nixos
justanotheruser has quit [(Ping timeout: 264 seconds)]
chreekat has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 64 new commits to release-17.09: https://git.io/vdfo4
<NixOS_GitHub>
nixpkgs/release-17.09 638abc6 Michael Weiss: gengetopt: Fix the build...
<NixOS_GitHub>
nixpkgs/release-17.09 b331778 Samuel Leathers: mqtt-bench: init at 0.3.0...
<NixOS_GitHub>
nixpkgs/release-17.09 5ee4a20 José Romildo Malaquias: flat-plat: 20170605 -> 20170917...
NixOS_GitHub has left #nixos []
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
MercurialAlchemi has quit [(Ping timeout: 252 seconds)]
thetet has left #nixos []
ryanarte_ has joined #nixos
eacamero_ has joined #nixos
v0lZy has quit [(Ping timeout: 252 seconds)]
skidmata_ has quit [(Ping timeout: 246 seconds)]
proteusguy has joined #nixos
eacameron has quit [(Ping timeout: 255 seconds)]
sauyon has quit [(Ping timeout: 246 seconds)]
revtintin has joined #nixos
v0lZy has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vdf6A
<NixOS_GitHub>
nixpkgs/master ab71280 Tuomas Tynkkynen: darwin: Disable some packages that have never built successfully...
NixOS_GitHub has left #nixos []
Sonarpulse has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to release-17.09: https://git.io/vdfil
<NixOS_GitHub>
nixpkgs/release-17.09 f5d5180 Tuomas Tynkkynen: darwin: Disable some packages that have never built successfully...
NixOS_GitHub has left #nixos []
<disasm>
Ankhers: I was going through IRC logs looking for good resources on elixir build processes and came across your name. I have a project that I'm thinking of using nix to deploy some code (written with elixir/phoenix). Was wondering if there's any good resources you may have for doing that, and if you've hit any gotchas.
<Ankhers>
disasm: Unfortunately I have not yet deployed an Elixir app using Nix.
skidmata_ has joined #nixos
<disasm>
Ankhers: ok, thanks!
<disasm>
Ankhers: if I figure it out, you bet there will be a blog post :)
<Ankhers>
Good to hear. There is still some work being done within nixpkgs to properly support Erlang, Elixir, etc. We mostly just need to get an updated version of the hex packages into nixpkgs I think. I'm sure you can still do it using regular mix though.
Itkovian has joined #nixos
<Ankhers>
gleber_: Is there anything you want me to do to keep the BEAM stuff moving along?
peacememories has joined #nixos
peacememories has quit [(Client Quit)]
peacememories has joined #nixos
csingley has joined #nixos
bennofs has quit [(Read error: Connection reset by peer)]
<Ankhers>
gleber_: Better yet. Is there a ticket somewhere listing what has and still needs to be done?
v0lZy1 has joined #nixos
glenn has quit [(Remote host closed the connection)]
v0lZy has quit [(Ping timeout: 248 seconds)]
v0lZy1 is now known as v0lZy
glenn has joined #nixos
glenn has quit [(Remote host closed the connection)]
glenn has quit [(Remote host closed the connection)]
taktoa has quit [(Remote host closed the connection)]
glenn has joined #nixos
<disasm>
Ankhers: awesome, if you link me a ticket on outstanding tasks, I might be able to get someone else where I work helping with it if we can convince the client to go the nix route.
<Ankhers>
That would be awesome. I really want to be using it at work, but I think we are going to go Google Container Engine route.
<disasm>
nix in gce? :)
<Ankhers>
Does nix have an interface to googles cloud offering yet? I think the last time I checked, it didn't.
<samueldr>
If path is not given, nix-shell defaults to shell.nix if it exists, and default.nix otherwise.
Itkovian has quit [(Ping timeout: 240 seconds)]
<samueldr>
and later on, in the release notes for 1.7
<samueldr>
> It now uses shell.nix as the default expression, falling back to default.nix if the former doesn’t exist. This makes it convenient to have a shell.nix in your project to set up a nice development environment.
erasmas has joined #nixos
<gleber_>
Ankhers: there's no great list out there. I'll write one today and I'll let you know. Thanks for the initiative!
<Ankhers>
gleber_: Thank you for taking the lead on this!
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] primeos pushed 1 new commit to master: https://git.io/vdfDQ
<NixOS_GitHub>
nixpkgs/master 6f02c3b Michael Weiss: sshfs-fuse: Fix the build on i686-linux...
NixOS_GitHub has left #nixos []
Vorpal has joined #nixos
Vorpal has quit [(Remote host closed the connection)]
<Ankhers>
samueldr: Thanks. Unfortunately I am still confused :(.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vdfyL
<NixOS_GitHub>
nixpkgs/master 24bed29 Tim Steinbach: openjdk: Fix build
NixOS_GitHub has left #nixos []
<Ankhers>
How about this. If I have a library in $LANGUAGE that I wanted to test across a bunch of different versions of $LANGUAGE, how would I set that up?
<Ankhers>
by test, I meant the test suite for the package.
<samueldr>
that's actually a great question there
<samueldr>
`shell.nix` would be used to have different configurations for a shell, like some more packages, when compared to `default.nix`, which could be used with nix-build or any other nix uses
proteusguy has quit [(Ping timeout: 260 seconds)]
Vorpal has joined #nixos
<samueldr>
for your question, it might actually depend on the language, since not all of them have the same processes for the different interpreters/versions
<samueldr>
it would also depend on whether you want to test only versions available in nixpkgs or more
<samueldr>
but I wouldn't know how
<samueldr>
nix probably has some magic/tools to help with that
orivej has quit [(Ping timeout: 248 seconds)]
<Ankhers>
I guess I was just wondering what would go in each file. So by the sounds of it, I could have a default.nix which would be the basic version of my library, but then I would have another file that overrides the specific version of $LANGUAGE I am looking to run?
oida_ has joined #nixos
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Sonarpulse has quit [(Ping timeout: 240 seconds)]
jensens has quit [(Ping timeout: 246 seconds)]
oida has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to release-17.09: https://git.io/vdfyF
<NixOS_GitHub>
nixpkgs/release-17.09 b8919e7 Michael Weiss: sshfs-fuse: Fix the build on i686-linux...
NixOS_GitHub has left #nixos []
oida has joined #nixos
oida_ has quit [(Ping timeout: 248 seconds)]
griff_ has quit [(Quit: griff_)]
leat has quit [(Quit: WeeChat 1.9)]
v0lZy has quit [(Remote host closed the connection)]
<kuznero>
How much sense does it make to keep kubernetes up to date in nixpkgs-channel? It is 1.5.2 currently... but 1.7.x is the latest released version. I read through some history on botbotme, but didn't really see a clear answer.
kanshazan has joined #nixos
<Ankhers>
I can't speak to the previous discussions, but if you or anyone else needs an up to date version of kubernetes, I think it should be updated.
kanshazan has quit [(Client Quit)]
<kuznero>
Ankhers: my position is somewhat unclear as I am trying to learn it (not necessarily good justification to start updating it in nix-ecosystem). I am coming from docker/swarm side and was simply wondering if it really make sense. I can imaging at least one use case with nixops - spin up kubernetes cluster (which if production better be of a recent version of course).
<Ankhers>
Yeah, I was toying with running a system on k8s and nixops. But I just ever got around to building it.
erictapen has joined #nixos
<Ankhers>
But I don't know what everyones opinions on k8s and nix are. But I do not really see a reason at the moment to exclude it. I feel like if it was really something people didn't want, it wouldn't still be in nixpkgs.
nschoe has quit [(Quit: Program. Terminated.)]
<kuznero>
Ankhers: I am relatively new to nix, but I saw a couple of examples of pretty outdated packages by now.
<Ankhers>
Yeah. That will happen. People keep the packages they use up to date.
<Ankhers>
The good news is you can usually update / introduce packages with a simple PR!
<kuznero>
Yes, unless software vendors themeselves will start at some point realizing that having updated packages in NIX ecosystem is so important that they will start doing it too.
noobineer has joined #nixos
<kuznero>
What is the difference between nixpkgs and nixpkgs-channels repositories on github?
noobineer has quit [(Quit: Leaving)]
woffs has quit [(Quit: Gateway shutdown)]
noobineer has joined #nixos
woffs has joined #nixos
<kuznero>
I guess it is primarily the same, but used perhaps for different purposes?
<Ankhers>
nixpkgs is where all of the packages are. I believe nixpkgs-channels is almost a fork of nixpkgs. The build farm updates nixpkgs-channels upon successful build / test of a given commit.
<Ankhers>
nixpkgs is where you will send your PRs to add / modify things.
<kuznero>
Ah, neat. Thanks!
<Ankhers>
Are you familiar with channels?
noobineer has quit [(Remote host closed the connection)]
noobineer has joined #nixos
ixxie has joined #nixos
erictapen has quit [(Ping timeout: 248 seconds)]
<kuznero>
Ankhers: yes, somewhat on a high-level. Currently I switched to nixos-17.09 which is still beta and `nixos-rebuild switch --upgrade`. This is the way I use channels explicitly.
naught has joined #nixos
naught has quit [(Client Quit)]
<Ankhers>
Yeah, so essentially the channel youo are on dictates the set of availabel packages.
<Ankhers>
And lets pretend I know how to type today...
<ixxie>
rycee: I tried ALL the channels now - nixos stable and unstable, nixpkgs unstable - all of them yield the same error
<ixxie>
it doesn't make any sense
<ixxie>
something isn't updating correctly in my channel
<rycee>
ixxie: Did you update the system channel as well?
<ixxie>
hmmm no
<ixxie>
how would that make a difference?
noobineer has quit [(Ping timeout: 240 seconds)]
<ixxie>
okay that fixed it
<ixxie>
but now I wonder.... how?
<rycee>
I suspect that your Nix commands are working with the system channel. Not your per-user channel.
digitus has joined #nixos
<rycee>
Because NIX_PATH is set up to have <nixpkgs> point to the system channel.
<ixxie>
ah yes
<ixxie>
it points to root
<rycee>
I don't see how to make it point to the per-user channel in a reasonable way. Just sourcing `~/.nix-profile/etc/profile.d/nix.sh` doesn't seem to work.
<ixxie>
I wonder how that happened
orivej has joined #nixos
__Sander__ has quit [(Quit: Konversation terminated!)]
<rycee>
I'm a bit surprised why sourcing that doesn't work and asked in #nixos-dev but didn't get a response at that time. Might be better to ask on the mailing list.
peacememories has joined #nixos
<qz>
trying to build elm-compiler and nix-env -i elm-compiler fails while nix-build -A elmPackages.elm-compiler works fine. what's the difference between those commands when it comes to build process?
<kuznero>
In the contribution guidelines on nixpkgs it is stated to do `nixos-rebuild switch -I nixpkgs=/path/to/my/nixpkgs` after cloning nixpkgs from github. How to revert these changes? Should I do something like `nixos-rebuild switch -I nixpkgs=<nixpkgs>` after I'm done? Or is there a better way somehow to isolate my experiments?
sellout- has quit [(Quit: Leaving.)]
leat has joined #nixos
<rycee>
qz: `nix-env -i` uses the package name while `nix-build -A` uses the attribute name. Generally speaking using the attribute name is more precise and faster. You can use the attribute name in `nix-env` as well: `nix-env -iA elmPackages.elm-compiler`
<rycee>
kuznero: You think you can revert the changes in the usual way, that is, using `--rollback`. If you want to use the default Nixpkgs, then just omit the `-I nixpkgs=...` part.
TweyII has joined #nixos
phdoerfler has quit [(Quit: Leaving.)]
<qz>
rycee: it says attribute ‘elmPackages’ in selection path ‘elmPackages.elm-compiler’ not found if i try to invoke nix-env like that :(
<ixxie>
so rycee there no way to seperate user and system channels currently?
ryanarte_ has quit [(Quit: ryanarte_)]
revtintin has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] bjornfor pushed 1 new commit to master: https://git.io/vdfNV
<NixOS_GitHub>
nixpkgs/master c73a381 Pavel Goran: nixos/gitolite: customize .gitolite.rc declaratively...
NixOS_GitHub has left #nixos []
<rycee>
qz: Sorry, yeah. I guess you are inside a Nixpkgs checkout or something. In that case try `nix-env -f . -iA elmPackages.elm-compiler`.
<qz>
rycee: figured.. or else i can do -iA nixpkgs.elmPackages.elm-compiler
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] bjornfor pushed 1 new commit to release-17.09: https://git.io/vdfN6
<NixOS_GitHub>
nixpkgs/release-17.09 5b1d686 Pavel Goran: nixos/gitolite: customize .gitolite.rc declaratively...
NixOS_GitHub has left #nixos []
<qz>
but problem is.. how comes nix-build builds package just fine, while nix-env fails with error
<qz>
are there any differences in build process between them?
<rycee>
ixxie: You can try manually setting NIX_PATH? exporting something like `NIX_PATH="nixpkgs=$HOME/.nix-defexpr/channels/nixpkgs:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels"` might work.
astronavt has joined #nixos
jellowj has joined #nixos
<kuznero>
rycee: so, -I nixpkgs= flag is not keeping the new value but is used when provided?
<ixxie>
rycee: since its building now I don't know if I wanna mess with that
<kuznero>
rycee: how can I install a specific package with `nix-env -i` from my sources of nixpkgs other than `nixos-rebuild`?
<ixxie>
rycee: but what *should* it be set to really?
<rycee>
ixxie: I expected it to be set like the NIX_PATH variable I gave above. I don't know why it is different in reality. It may very well be that I'm missing something fundamental so it would be nice to have input from somebody more knowledgeable in Nix and channels…
<kuznero>
rycee: it does not seem to pick up changes from my local repo for some reason. Here is my command: `nix-env -I nixpkgs=$(pwd) -i kubernetes`. In the source I have change it to a new version but it is still trying to install old one.
erictapen has joined #nixos
civodul has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
<clever>
sphalerite: what this did, was open up an unmodified nixpkgs, grab its ghc, then use that to generate a haskellPackages using the generic-builder.nix in a modified nixpkgs
riclima has joined #nixos
<clever>
sphalerite: `stdenvNoCC = stdenv.override { cc = null; };` this creates a new stdenv, with a given gcc
akamaus has quit [(Remote host closed the connection)]
<clever>
sphalerite: in theory, you can take the gcc from an unmodified nixpkgs, and override the stdenv in a new nixpkgs
<clever>
then only a minimal subset of packages get rebuilt
<Jackneill>
does nix have packagekit integration?
<sphalerite>
clever: that sounds good, thanks
ThatDocsLady has quit [(Quit: Leaving)]
ixxie has quit [(Quit: Lost terminal)]
ixxie_ has quit [(Remote host closed the connection)]
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
jellowj has joined #nixos
a6a3uh has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<rycee>
clever: Yeah, but as far as I can tell, with the way NIX_PATH is set up at the moment `nix-build` also effectively ignores per-user channels.
<qz>
if i use -K to keep build directory when doing nix-env -i and then doing source env-vars, are there any other steps needed to be able to invoke $buildPhase for example?
<qz>
right now it complains that runHook is unknown command
<LnL>
you can get an interactive shell with the build environment using nix-shell -A
longrin has quit [(Remote host closed the connection)]
rtjure has quit [(Ping timeout: 248 seconds)]
Neo-- has quit [(Ping timeout: 240 seconds)]
rtjure has joined #nixos
leat has quit [(Ping timeout: 240 seconds)]
Lisanna_ has joined #nixos
<Lisanna_>
Hey, is there a quick example for how to use the <name?> feature?
numerobis has joined #nixos
<clever>
rycee: both nix-env and nix-build will "basically ignore NIX_PATH", enless directly told to search for something in it
<clever>
rycee: such as nix-env -f '<nixpkgs>' or nix-build '<nixpkgs>', or via similar things within config.nix
<clever>
[root@amd-nixos:~]# ls .nix-defexpr/*/*/default.nix -dl
<clever>
-r--r--r-- 1 root root 557 Dec 31 1969 .nix-defexpr/channels/nixos/default.nix
<clever>
rycee: behind the scenes, nix-env will look in this general area, for default.nix files, and use the last directory in the chain as the name, so the above would turn up at nix-env -iA nixos.hello
<clever>
rycee: and this turns up as nix-env -iA foo.hello
<clever>
rycee: if you want to ensure nix-build uses the same channel, you have to manually look it up in the def-expr, and run `nix-build ~/.nix-defexpr/channels_root/nixos -A hello`
<clever>
rycee: but in the case of nixos with default config, <nixpkgs> points to the nixos channel on root
<cocreature>
is there a way to keep temporary files around on failed builds for debugging purposes?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 1 new commit to master: https://git.io/vdJJO
<NixOS_GitHub>
nixpkgs/master 8a0d857 Daiderd Jordan: tw-rs: fix darwin build
NixOS_GitHub has left #nixos []
<clever>
cocreature: -K
<cocreature>
clever: ah thx, should have just looked at --help. sry :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 1 new commit to release-17.09: https://git.io/vdJJg
<NixOS_GitHub>
nixpkgs/release-17.09 a8214f6 Daiderd Jordan: tw-rs: fix darwin build...
NixOS_GitHub has left #nixos []
jb55 has joined #nixos
<rycee>
clever: Thanks for the overview. My conundrum is when having a custom user channel called nixpkgs. Then I would have expected `nix-build '<nixpkgs>'` to use this channel, and not the system nixpkgs. For example, although I guess `~/.nix-profile/etc/profile.d/nix.sh` isn't really for people running NixOS it does set NIX_PATH with a comment saying "Append ~/.nix-defexpr/channels/nixpkgs to $NIX_PATH so that <nixpkgs> paths work
<rycee>
when the user has fetched the Nixpkgs channel."
<spear2>
is there an easy way to get the <nixpkgs> directory from the command line? other than typing /nix/var/nix/profiles/per-user/root/channels/nixos ?
<rycee>
spear2: I learned this yesterday :-) Try `nix-instantiate --eval -E '<nixpkgs>'`
<spear2>
rycee: ty
TweyII has quit [(Ping timeout: 240 seconds)]
hotfuzz has joined #nixos
hotfuzz has quit [(Quit: WeeChat 1.7.1)]
ryanarte_ has joined #nixos
<clever>
rycee, spear2: there is also: ]$ nix-instantiate --find-file nixpkgs
<Lisanna_>
Infinisi1: is there a way to do it outside of NixOS options? like, for any arbitrary set, e.g.: myfoo = { bar = "bar"; baz = <name?> };
<Lisanna_>
=> { bar = "bar"; baz = "myfoo"; }
<clever>
Lisanna_: f = name: { ${name} = { bar = "bar"; baz = name; };
<clever>
f "myFoo";
<Lisanna_>
clever: but that won't have the key "myFoo" in the parent set
numerobis has quit [(Ping timeout: 252 seconds)]
jsgrant has quit [(Quit: jsgrant)]
ryanarte_ has quit [(Quit: ryanarte_)]
<clever>
Lisanna_: yeah, then use // to merge that into whatever you wanted that key in
<Lisanna_>
Yeah, I guess that'd work, so something like (f "myFoo") // (g "myBar")
thblt has quit [(Ping timeout: 248 seconds)]
<clever>
yep
proteusguy has joined #nixos
a6a3uh has joined #nixos
leat has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vdJIB
<NixOS_GitHub>
nixpkgs/master 4acb425 Tuomas Tynkkynen: darwin: Disable yet another bunch of packages never having built successfully...
NixOS_GitHub has left #nixos []
jsgrant has joined #nixos
leat has quit [(Ping timeout: 252 seconds)]
jsgrant has quit [(Quit: jsgrant)]
hotfuzz has joined #nixos
jsgrant has joined #nixos
<Lisanna_>
It's such a good feeling when I completely rewrite a derivation and it doesn't do a rebuild because it was able to prove that they were the same thing
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to release-17.09: https://git.io/vdJLd
<NixOS_GitHub>
nixpkgs/release-17.09 83b72a9 Tuomas Tynkkynen: darwin: Disable yet another bunch of packages never having built successfully...
NixOS_GitHub has left #nixos []
leat has joined #nixos
dywedir has joined #nixos
simendsjo has joined #nixos
kiloreux__ is now known as kiloreux
romildo has joined #nixos
<romildo>
On NixOS unstable I am getting a library error when run mutt:
<romildo>
mutt: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
<romildo>
Is anybody getting it too?
simendsjo has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
<romildo>
I am using neomutt
Itkovian has joined #nixos
jb55 has quit [(Ping timeout: 240 seconds)]
jsgrant has quit [(Quit: jsgrant)]
jsgrant has joined #nixos
Infinisi1 has quit [(Remote host closed the connection)]
mudri has joined #nixos
jsgrant has quit [(Remote host closed the connection)]
jsgrant has joined #nixos
<Moredread>
Is there an options search page for other nixos channels than 17.03?
<LnL>
don't think so
<LnL>
but you can use nixos-option locally
rauno has quit [(Ping timeout: 246 seconds)]
hotfuzz has quit [(Quit: WeeChat 1.7.1)]
djahandarie has joined #nixos
<Moredread>
don't I need to know the full option name?
<LnL>
there's also man configuration.nix
<qz>
is there a command to delete everything from store?
<Moredread>
LnL: thx, that is what I needed
<djahandarie>
Heya. I'm trying to use systemtap on nixos. systemtap needs kernel debug symbols for a lot of things, but I'm not sure how to get those for it.
<clever>
qz: `sudo nix-collect-garbage -d` will delete everything you can safely delete
ryanarte_ has joined #nixos
viric has quit [(Ping timeout: 252 seconds)]
viric has joined #nixos
<spear2>
is there a command that will list the generations of system profiles?
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 1 new commit to master: https://git.io/vdJsA
<NixOS_GitHub>
nixpkgs/master 1acf671 Daiderd Jordan: textql: fix darwin build
NixOS_GitHub has left #nixos []
justbeingglad has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 1 new commit to release-17.09: https://git.io/vdJGv
<NixOS_GitHub>
nixpkgs/release-17.09 90a034b Daiderd Jordan: textql: fix darwin build...
NixOS_GitHub has left #nixos []
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Infinisil has joined #nixos
eacamero_ has quit [(Remote host closed the connection)]
odi has quit [(Ping timeout: 240 seconds)]
acarrico has quit [(Ping timeout: 240 seconds)]
mudri has quit [(Ping timeout: 252 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] primeos pushed 1 new commit to master: https://git.io/vdJG2
<NixOS_GitHub>
nixpkgs/master 5257232 Michael Weiss: gns3: "Improve" the packaging...
NixOS_GitHub has left #nixos []
Itkovian has joined #nixos
Fare has quit [(Ping timeout: 255 seconds)]
voiceftp has quit [(Quit: Leaving)]
Fare has joined #nixos
<qz>
how do i debug cycle references without installing nix 2.0 where error message is supposedly improved?
griff_ has joined #nixos
MP2E has joined #nixos
<disasm>
qz: paste it here and someone might be able to help
<qz>
cycle detected in the references of ‘/nix/store/8bjxnl81lqqn2x6da6dzak8dm4plyh2a-jailbreak-cabal-1.3.2’
<qz>
when trying to install this package with nix-env -iA nixpkgs.haskellPackages.jailbreak-cabal
zarel has joined #nixos
<disasm>
qz: builds fine on master for me... what release are you on?
<qz>
disasm: master, but i'm on on osx
<disasm>
ah
<qz>
maybe i got my /nix/store fucked up somehow and if there was a way to delete everything and start from scratch...
sellout- has quit [(Quit: Leaving.)]
<disasm>
qz: doubt that's the problem, it's probly a bug on isx
<disasm>
osx
<qz>
disasm: but that leads to cycle references?
mudri has joined #nixos
sellout- has joined #nixos
detran has quit [(Remote host closed the connection)]
glenn has quit [(Remote host closed the connection)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
mudri has quit [(Quit: WeeChat 1.9)]
Ivanych has joined #nixos
acarrico has joined #nixos
<orivej>
qz: doesn't the message tell you the second store path, as in "cycle detected in the references of /nix/store/... from /nix/store/..."?
a6a3uh has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
astronavt has quit [(Remote host closed the connection)]
hotfuzz has joined #nixos
endformationage has joined #nixos
<Lisanna_>
does anyone have some good examples of showing how to link together a bunch of unrelated default.nix files, e.g., from different project directories? I've got /foo/default.nix and /bar/default.nix, and I'd like to union them together and let them cross-reference derivations from each other
<NixOS_GitHub>
nixpkgs/master 22d9935 Joachim F: Merge pull request #29663 from womfoo/bump-fix/trackballs-1.2.3...
NixOS_GitHub has left #nixos []
<disasm>
qz: do you get the same thing if you git clone nixpkgs and run nix-build -A haskellPackages.jailbreak-cabal
eacameron has joined #nixos
eacameron has quit [(Remote host closed the connection)]
<Lisanna_>
specifically, what should the top line of my project-specific default.nix files be? Is it okay for it to be something like "nixpkgs: with nixpkgs;"
<orivej>
Lisanna_: one way is to begin with `with import <nixpkgs> { }; stdenv.mkDerivation {`, then you could use `buildInputs = [ (import ../another/project) ]`
<Lisanna_>
that looks pretty ugly :)
<Lisanna_>
I think what I'm going to do is something like "{ nixpkgs ? import <nixpkgs> {}, mypkgs }: let pkgs = nixpkgs // mypkgs; in with pkgs;"
<disasm>
that's what I'd do Lisanna_
<qz>
disasm: nope, nix-build -A haskellPackages.jailbreak-cabal runs fine, but it just fetches it from cache
<qz>
and nix-env -iA nixpkgs.haskellPackages.jailbreak-cabal fails
<Infinisil>
sphalerite: I've done that before, I'm pretty sure it fails because options are declared multiple times
oida_ has joined #nixos
<Infinisil>
well I can remember it failing anyways
<sphalerite>
ah ok, so I actually need to think about the hierarchy… what a disappointment x)
<disasm>
hmmm, any thoughts how to overcome this with a binary only tool? main: Assertion `!(st.st_mode & S_ISUID) || (st.st_uid == geteuid())' failed.
<Infinisil>
sphalerite: Probably it works if you don't have any options declared
oida has quit [(Ping timeout: 240 seconds)]
<globin>
Infinisil, grahamc: might even be more newsboard-like in a #nixos-bots channel.. and I think we have enough volume of both discussion and bot notification to split?
<sphalerite>
disasm: sounds like it wants setuid
<sphalerite>
or to run as the owner of the executable
<sphalerite>
so run it as root, probably
<disasm>
right, which you can't have in the store, right?
<sphalerite>
yep
<disasm>
i forgot to mention that's using sudo
<sphalerite>
oh. huh.
<disasm>
oh wait
<disasm>
I strace'd sudo, if I flip it, get a different error
<sphalerite>
oh yeah, you can't strace setuid stuff :)
<sphalerite>
s/strace/ptrace/
<sphalerite>
or rather if you do setuid fails
<globin>
disasm (you might want to look at security.wrappers for setuid functionality)
thc202 has quit [(Ping timeout: 246 seconds)]
jbl007 has quit [(Quit: jbl007)]
mudri has joined #nixos
erictapen has quit [(Ping timeout: 252 seconds)]
hiratara has joined #nixos
sellout- has quit [(Quit: Leaving.)]
predator117 has joined #nixos
darlan has joined #nixos
<grahamc>
Im flexible, gloving. It is a great problem that we have too much activity.
predator217 has quit [(Ping timeout: 248 seconds)]
<pxc>
the way to add a Node.js package is, to begin with, to add an entry to pkgs/top-level/node-packages.json and then just run `node2nix -i node-packages.json` in pkgs/top-level, right?
ryanarte_ has quit [(Quit: ryanarte_)]
orivej has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] womfoo opened pull request #29682: singular: use gcc5 to fix build (master...fix/singular-build) https://git.io/vdJ6H
NixOS_GitHub has left #nixos []
<disasm>
I kinda like seeing the commits and pull requests as they happen myself :)
erasmas has quit [(Quit: leaving)]
<nh2>
I also find the bots somewhat encouraging/motivating
mudri has joined #nixos
<LnL>
I don't think the github bot would be all that useful if it's on another channel
<pxc>
I like the GH notifications in this channel, too
<sphalerite>
Plus this is IRC
<sphalerite>
Most clients have /ignore :)
<nixy>
Yeah the bots aren't hard to filter out if you want to