<ottidmes>
clever: But the list equivalent? I mean I could do: foldr (x: xs: xs // x) listOfAttrsets, but I do not think I have ever seen that being done before, I am going with listToAttrs for now I guess
kelleyNif has quit [Client Quit]
fendor has joined #nixos
<clever>
ottidmes: ah, over a list of them, hmmm, not sure about that
marusich has joined #nixos
BlessJah has quit [Ping timeout: 256 seconds]
bind has quit [Ping timeout: 240 seconds]
bind has joined #nixos
Rusty1_ is now known as Rusty1
coot has quit [Quit: coot]
Myrl-saki has quit [Ping timeout: 256 seconds]
<bgamari>
hmm, gcc7 appears to segfault when cross compiled
<Guanin_>
clever, sphalerite_ thanks for your help, I got the raid automaticly opened and mounted after unlocking my root lvm volume. I now use a lv as a key file, as it is visible to luks after unlocking the volume group
<Guanin_>
ah, did not want to send it already - it is still booting up :D
<Guanin_>
it booted and works fine :) So, thank you
kelleyNif has joined #nixos
<gem>
clever: I added that and ran the command, nothing was installed. There were no errors, but nothing was installed. Sorry to bother you again
freeman42x]NixOS has quit [Ping timeout: 260 seconds]
coot has joined #nixos
<clever>
gem: nix-build only builds things, the result goes into a symlink called result
<clever>
gem: if you just want to install 0ad, you can run nix-env -iA nixos.0ad and it will grab it from the nixpkgs you already have
kelleyNif has quit [Client Quit]
<clever>
gem: oops, its called zeroad, so nix-env -iA nixos.zeroad
<gem>
Ohh
<gem>
I'm an idiot
<gem>
Well, thanks! Just for future refrence, nix-build -E should work?
<clever>
that command will let you build most default.nix files, but it wont install anything
<clever>
its mainly for testing things out
<clever>
the nix-env command lets you install things without having to download any special files
taktoa has joined #nixos
<gem>
nix-env -if, right
<clever>
that would load it from a given file
<clever>
but the file has to import its own nixpkgs
<clever>
which the default.nix you first linked doesnt do
<gem>
Ohh, so you need to add that line
snajpa has joined #nixos
<johnw>
what is the "right" to install both gcc and binutils? I'm getting a conflict at "as"
<johnw>
i need both the command ar and gcc
<clever>
johnw: the right way is to not install them, but to use nix-shell
Guest99414 has quit [Ping timeout: 248 seconds]
<johnw>
I'm getting tired of that answer...
<johnw>
how can it be done, without nix-shell?
<clever>
johnw: or use a buildEnv to merge things together, and set the allowCollisions flag
<johnw>
it works if I install gcc alongside binutils-unwrapped
<samueldr>
green are new PRs, yellow are newly closed, and black + yellow are then closed
<samueldr>
(the fine red line is technically part of the black area)
<samueldr>
and the whole height is the total number of both opened and closed PRs
<samueldr>
both views (log and linear) makes it hard to follow since there SO MUCH stuff happening
ryanartecona has quit [Quit: ryanartecona]
<samueldr>
which is why someone that knows how to represent data should look at this :D
fragamus has joined #nixos
dan_b has quit [Ping timeout: 248 seconds]
<samueldr>
I'm 100% sure my data "viz" is flawed
pkill9 has quit [Ping timeout: 265 seconds]
Adluc has quit [Ping timeout: 240 seconds]
pkill9 has joined #nixos
theNerd247 has joined #nixos
coot has quit [Quit: coot]
mmlb has quit [Ping timeout: 248 seconds]
<theNerd247>
So I'm following https://github.com/Gabriel439/haskell-nix/blob/master/project2/README.md to setup a Haskell/Elm project. I've got separate derivations written which build both pieces independently. How do I go about making the elm a dependency of the haskell project such that when the haskell project builds the elm also builds
<gchristensen>
Samueldr can you do one focusing on just the last six months or year?
<samueldr>
the data's here, but do you have a better form to suggest?
<samueldr>
(I may as well try to make it more useful)
MP2E has joined #nixos
<MP2E>
hmm.. having an odd problem with my NixOS install based off of nixpkgs master (as of today)
<MP2E>
basically, my tmux sessions won't persist anymore
<MP2E>
if I open up tmux, type something in the session like 'ls' then close the window and try to reattach in a new terminal it's just gone
<gchristensen>
I'm curious if there is a quantifiable improvement in PR merge since ofborg was first used
<MP2E>
never seen anything like it
snajpa has quit [Ping timeout: 268 seconds]
srk has quit [Ping timeout: 248 seconds]
<dtz>
improvement in my happiness since it was first introduced
<dtz>
;)
<gchristensen>
That is almost all that matters :)
<dtz>
would probably be more quantifiable if our travis builders didn't kinda fade away into increasing uselessness around the same time
<infinisil>
theNerd247: can you show your project?
<gchristensen>
Dtz please provide any suggestions on making it better, too.
<dtz>
o7
<dtz>
(salute)
<samueldr>
is 56 PR opened yesterday a number that looks alright?
<meyermagic>
I'm having an issue moving / copying my EFI NixOS installation from one disk to a new one. I have a feeling I'm missing something obvious, but I'm not sure what it could be. What I've done is: formatted the new drive to GPT, copy my root partition from my old drive to the new one, leaving space before the partition for the boot partition, boot to my (old) NixOS, using gdisk add an EFI partition before the root partition, and a swap partition
<meyermagic>
I've also fiddled with rEFInd a bit, but the package doesn't seem to be working right now.
m3lst4d has quit [Ping timeout: 248 seconds]
<meyermagic>
Is there a "registration" step I'm missing? I was under the impression part of the point of EFI was that the system could search out everything bootable via EFI without needing a single MBR
theNerd247 has joined #nixos
theNerd247 has quit [Client Quit]
<meyermagic>
Oh, I also generated a new UUID for the copied NixOS partition, since I copied it as a partition rather than a filesystem. And I omitted various resizing / growing steps
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vABPr
<NixOS_GitHub>
nixpkgs/master 32d3533 Shea Levy: riscv: Compile console support into the kernel.
NixOS_GitHub has left #nixos [#nixos]
<acowley>
Anyone happen to know what package I need to get me a cask (emacs tooling) executable on PATH?
<simpson>
If your DE has a power control, use that. Otherwise, you can do the /sys/power/state technique, or whatever you'd normally use on other Linux systems.
hamishmack has quit [Quit: hamishmack]
schoppenhauer has quit [Ping timeout: 240 seconds]
meyermagic has joined #nixos
raynold has quit [Quit: Connection closed for inactivity]
ryanartecona has joined #nixos
pie_ has quit [Read error: Connection reset by peer]
pie__ has joined #nixos
schoppenhauer has joined #nixos
<pie__>
problem is im not sure how to get that in my path
<simpson>
Okay, well, for now, you can $(cat /sys/power/state) to see your options. `mem` is suspend-to-RAM "sleep", and `disk` is suspend-to-disk "hibernation". To sleep, $(echo mem > /sys/power/state).
<simpson>
I know that some funky laptops require pm-suspend or similar in order to get all their bits and pieces sorted first, but I've found that that sort of hardware is increasingly rare, and usually the kernel knows how to sleep.
<pie__>
i mean man systemd-sleep works >_>
ghostyyy is now known as ghostyy
<simpson>
Ha, if it works for you, I guess~
<pie__>
yeah i guess i could try pmutils
<pie__>
i mean the irony is i get the man page but not the command
ryanartecona has quit [Quit: ryanartecona]
pkill9 has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fragamus has joined #nixos
fragamus has quit [Ping timeout: 256 seconds]
maingo has joined #nixos
<maingo>
people keep saying to use guix because they say nix code is crap and guix is compatible with nixpks, is that just FUD or should I install guix if im only using nix for the packages?
<simpson>
maingo: Sounds like a silly thing to argue over, TBH.
<maingo>
yeah im currently using nix and seems to work fine
<simpson>
It's up to you, but nixpkgs is intended to work with Nix.
<verite>
Newbie question. What does it mean to "wrap a binary"?
<adisbladis[m]>
verite: Wrap it up in a shell script
<verite>
Thank you adisbladis[m] !
rauno has quit [Remote host closed the connection]
<adisbladis[m]>
verite: Usually to set up required env vars and the like: nix-shell -p '(python3.withPackages (ps: [ ps.ipython ps.requests ps.psutil ]))' --run 'cat $(which python)' | wgetpaste
<markus1199>
I would like to add an ENV var to a single program that I install with minimum effort. I want to set DEFAULT_SERVICE=gists for wgetpaste. I though about using wrapProgram, but then I would have to write a whole derivation. Is there some easier way?
posco has joined #nixos
<fearlessKim[m]>
I don't think the concepts of wrappers is explained in the doc though it's used quite often. It can be confusing as a noob when "nox" presents the wrapped and unwrapped versions
<verite>
Newbie question, what is an example of a data format change? (Reading Nix pill 1.5: "If there is a data format change, then migrating to the new data format remains your own responsibility.")
<Lisanna>
Oh wait, that's definitely not going to work
<Lisanna>
since this is being done in a build
<sphalerite_>
yeah that thing can't use --export and --import because (a) it's running in a derivation so you'd need recursive nix and (b) it includes metadata so yoyu can't just rewrite it
<Lisanna>
so I can't just go messing with the nix-store
<sphalerite_>
ah :/
zzamboni has joined #nixos
<sphalerite_>
verite: nix doesn't handle stateful data like databases and stuff
<sphalerite_>
verite: this *is* handled to some extent by nixos though
<verite>
Ah! Gotcha. Thank you, sphalerite_
<sphalerite_>
verite: an example would be a backwards-incompatible change in profile data format for firefox, or an on-disk database format change for a database engine
<sphalerite_>
the former is quite frequent AFAIK
pie_ has quit [Quit: Leaving]
<verite>
Hmm. What kind of data format changes does Firefox have?
<sphalerite_>
not sure about the exact details, but they explicitly don't support downgrades
<Lisanna>
sphalerite_ ...seems like I could trick Nix into making sure all of those get built by doing an IFD to get the closure of the input, and then including those paths somewhere in the runCommand string, so they get added to the context of the drv
<verite>
Ah, nevermind, sphalerite_ , googled and found some examples.
<Lisanna>
although the more interesting question is why those aren't getting built in the first place...
<sphalerite_>
Lisanna: wouldn't exportReferencesGraph do the trick in this case too?
<Lisanna>
yeah, probably
<sphalerite_>
(not sure fi I'm remembering that name right)
<Lisanna>
hopefully I'm just doing an unnecessary unsafeDiscardStringContext somewhere that I can get rid of
leat has joined #nixos
Capprentice has quit [Quit: Leaving]
<Dirt[m]>
Anyone know if there's a built-in way to set the group of a folder using NixOS (or home-manager)? As far as I can see there isn't, but it's possible I'm missing something...
<Lisanna>
Dirt[m] you can do that with environment.etc files I think
roberth has joined #nixos
<sphalerite_>
Dirt[m]: not using home-manager I'd guess since only root can do chown
<Dirt[m]>
Lisanna: Yeah, I thought it might be possible there, but I'm not seeing it:
<Dirt[m]>
Ah, guess I was just looking in the wrong places. I really need to use that options search more often...
reinzelmann has joined #nixos
<Dirt[m]>
In this case my file is in my homedir so the etc environment won't help me much, but it's nice to know the functionality is there.
ertes has joined #nixos
<sphalerite_>
this seems more like something to just do one-off
<sphalerite_>
as opposed to managing it with nixos or home-manager
<Dirt[m]>
That's true. Though my personal goal w/ NixOS has been to build a collection of configs for deploying my ideal setup, with as little manual labor tasks as possible.
<Dirt[m]>
Could definitely just write a script to clean up the bits and pieces, though.
<sphalerite_>
and put that script in a one-shot systemd service ;)
<NixOS_GitHub>
[nixpkgs] qknight closed pull request #35171: BuildRustCrate: more general overrides, and handling the "dylib" crate type (master...build-rust-crate-ln) https://git.io/vA43B
NixOS_GitHub has left #nixos [#nixos]
knupfer has joined #nixos
<joko>
(I am using outPath directly - a nix store directory - to import stuff from there)
<joko>
(and recent Hydra versions -even in 17.09- complain that "access to path /nix/store/xxxx is forbidden in restricted mode")
<sphalerite_>
joko: nixUnstable is nix 2.0pre now, not 1.12pre
<sphalerite_>
that looks like regular IFD to me, should still work really, I think…
<sphalerite_>
restricted mode does prevent IFD AFAIK so yeah I think it's a no-go on hydra
<sphalerite_>
oh, try mapping import over them rather than (drv: drv.outPath)
<joko>
sphalerite_: right, 2.0pre. Importing them how?
<sphalerite_>
just replace (drv: drv.outPath) with import
<sphalerite_>
import isn't a keyword or anything, it's just a built-in function and you can map it like any other function :)
<elvishjerricco>
How do you build `Cabal` and `cabal-install` from head in Nix? I'm setting them in `haskellPackages.extend` with `callCabal2nix` on the sources, but it seems like a bunch of things fail to build because they're built with the `Cabal` shipped with GHC instead of the updated version.
humanoyd has joined #nixos
aristid has joined #nixos
<elvishjerricco>
Such as the `Setup` script for `lens`. Though I guess that's unrelated to `cabal-install`
niklob has joined #nixos
f0i has joined #nixos
MP2E has quit [Remote host closed the connection]
verite has quit [Ping timeout: 248 seconds]
orivej has quit [Ping timeout: 248 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] xeji opened pull request #35214: spice-gtk: fix usb redirection (master...spice-gtk-usbredir) https://git.io/vAReV
<ij>
sphalerite_, I just realized that even if VLC knew enough to search for sf2/*.sf2 in one of the $XDG_DATA_DIRS paths, it wouldn't find soundfont-fluid, because it's in share/soundfonts/FluidR3_GM2-2.sf2. (sf2 != soundfonts).
tommyangelo has joined #nixos
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
<sphalerite_>
ij: ah… so for each entry in XDG_DATA_DIRS, search $p/soundfonts *and* $p/sf2
<sphalerite_>
I think that would be sensible
<ij>
sphalerite_, Does anyone else but nixos use $p/soundfonts?
<sphalerite_>
idk
<sphalerite_>
it must come from somewhere..?
<sphalerite_>
yeah alternatively we could change the soundfont package
<tommyangelo>
I'm trying to write a default.nix for staytus, so I can hack on the git source code to fix a bug. I created this default.nix: http://nixpaste.lbr.uno/zebuoid-?nix but when I run nix-shell, followed by `procodile start --foreground`, I get a load of `could not find rake` errors: http://nixpaste.lbr.uno/CBR9m3yM?text. I generated the gemset.nix with `bundix --gemset=gemset.nix --lockfile=Gemfile.lock --gemfile=Gemfile`
<ij>
sphalerite_, It doesn't give me autoconf if I try just that. :/
<sphalerite_>
ij: ah right, so it's a shell suitable for building from a source release tarball but not from git
<ij>
Gotcha.
<ij>
In the release they've added the ./configure?
<ij>
Probably so.
<sphalerite_>
try this mouthful... nix-shell -E 'with import <nixpkgs> {}; vlc.overrideAttrs (o: {nativeBuildInputs = (o.nativeBuildInputs or []) ++ [autoreconfHook];})'
<tommyangelo>
manveru: Same behaviour. I added rake to the Gemfile, ran `bundix -l`, then `nix-shell` and `procodile start --foreground`
r5d has joined #nixos
<manveru>
hmm
<tommyangelo>
according to the error message, it fails at `Bundler.setup("default")` in the /nix/store/50nshm7i29n5dn7vjk5a8q5gmv7nsgyj-staytus-env/bin/rake file
<sphalerite_>
ij: does that work?
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master a425c65 Mitsuhiro Nakamura: mbedtls: change extension .so -> .dylib on Darwin
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vARka
<NixOS_GitHub>
[nixpkgs] Mic92 closed pull request #35177: debBuild: install all packages at once to avoid dependency management (master...fix-debbuild) https://git.io/vA4R9
NixOS_GitHub has left #nixos [#nixos]
verite has joined #nixos
vidbina has joined #nixos
knupfer has joined #nixos
niklob has quit [Ping timeout: 276 seconds]
zzamboni has quit [Ping timeout: 256 seconds]
zzamboni has joined #nixos
raynold has quit [Quit: Connection closed for inactivity]
<hask_bee_3>
I've already done this BTW: $ nix-channel --update
<sphalerite_>
hask_bee_3: 18.03 is the version number of the next release, and unstable has version numbers like 18.03preABCD
<dtz>
err I meant CC_FOR_BUILD I guess lol
<sphalerite_>
hask_bee_3: and on macOS nix defaults to using nixpkgs-unstable because it's only for applications, not for critical stuff like booting :)
<sphalerite_>
hask_bee_3: once 18.03 becomes the stable version, unstable will get a new version number, probably 18.09
<maurer>
So, I haven't looked at how we're doing it, but if we're using rust stable, can't that be in the cache? Rust updates about once a month, which is pretty frequent for a compiler, but not so bad that I'd think nixos cache couldn't keep up
<dtz>
well I might be a complainy-face lol but it seems more often than that. Perhaps we're changing build deps of rust frequently
<maurer>
That's def. possible. It's also possible that for some reason it's been set against beta or nightly, which update nearly daily
<maurer>
and if so, that's probably bad
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] limeytexan opened pull request #35218: Multiple modules in support of POE-1.367 (master...perl-POE) https://git.io/vAR8E
NixOS_GitHub has left #nixos [#nixos]
robstr has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vAR8u
<NixOS_GitHub>
nixpkgs/master 1aa3777 Joachim F: Merge pull request #35104 from izuk/dart...
<sphalerite_>
how can I get the gcc-style host system string in nixpkgs?
<sphalerite_>
e.g. armv7l-unknown-linux-gnu
Ivanych has quit [Quit: Leaving.]
<dtz>
sphalerite_: hostPlatform.config ?
<jluttine>
how to write an overlay so that it just changes the version of a package? i tried: nixpkgs.overlays = [ (super: self: {tvheadend={version="4.2.1";};}) ] but i guess it's not right.. also, i'd need to change `src` too somehow
Itkovian_ has quit [Read error: Connection reset by peer]
asuryawanshi has quit [Ping timeout: 276 seconds]
<makefu>
jluttine: yes exactly, only overriding the version is not enough, you will need to add inside the override version=;src=self.fetchFromGithub { ... } }
Itkovian has quit [Ping timeout: 265 seconds]
<jluttine>
(copied my snippet incorrectly, it was ... tvheadend = super.tvheadend.override {version=...} ...
<jluttine>
but i get error: anonymous function at /nix/store/bh1c23b7wcc6zfy7nia1mmjjbmcdaa06-nixos-18.03pre127302.e860b651d6e/nixos/pkgs/servers/tvheadend/default.nix:1:1 called with unexpected argument ‘version’, at /nix/store/bh1c23b7wcc6zfy7nia1mmjjbmcdaa06-nixos-18.03pre127302.e860b651d6e/nixos/lib/customisation.nix:74:12
<jluttine>
:S
<jluttine>
i suppose that super.tvheadend.override isn't correct
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] bachp opened pull request #35220: systemd-cryptsetup-generator: fix compilation with systemd 237 (master...system-cryptsetup-generator-237) https://git.io/vAR0T
NixOS_GitHub has left #nixos [#nixos]
<makefu>
jluttine: .override can only be used to override the default dependencies, if you want to override attributes inside the derivation you will need to use pkgs.stdenv.lib.overrideDerivation
<makefu>
it seems overrideDerivation is deprecated and you should use overrideAttrs
lesce has joined #nixos
<makefu>
the example for overrideDerivation is better though :)
Itkovian has joined #nixos
<jluttine>
makefu: thanks. nice that there's documentation. funny that i didn't find that after lots of googling. i'm very often unable to find the correct place in the documentation by googling
<makefu>
jluttine: maybe you could add a small article into the https://nixos.wiki :)
<makefu>
or add the info where it fits
<makefu>
the seo of the three manuals is very poor due to the overly large html page
<freeman42x]NixOS>
looking for someting that can record to GIF basically
orivej has joined #nixos
harms has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vARuH
<NixOS_GitHub>
nixpkgs/master f8b5b93 Shea Levy: linux_riscv: Add patches for initrd support
NixOS_GitHub has left #nixos [#nixos]
<tommyangelo>
why does nixops need a 'nixosVersion' attribute suddenly? I'm trying to make a vbox network to test staytus deployment, and I reused my production file, but modified it for virtualbox, so
<tommyangelo>
it _should_ just work. None of the nixops examples show usage of nixosVersion
<gchristensen>
tommyangelo: how do you mean, "need"?
<gchristensen>
what is it doing which is surprising?
<NixOS_GitHub>
[nix] edolstra pushed 1 new commit to master: https://git.io/vARzn
NixOS_GitHub has left #nixos [#nixos]
self has joined #nixos
yann-kaelig has quit []
self is now known as Guest41864
Itkovian has quit [Read error: Connection reset by peer]
<tommyangelo>
I made a test network with one machine wiht `deployment.targetEnv = "virtualbox";`
reinzelmann has quit [Quit: Leaving]
jtojnar has quit [Ping timeout: 248 seconds]
<tommyangelo>
but when I deploy, nixops fails with `error: attribute ‘nixosVersion’ missing, at /nix/store/82gjbw920v9an39ik2jp1kjqb77l4adk-nixops-1.5.2/share/nix/nixops/eval-machine-info.nix:284:107`
<gchristensen>
how did you make that new network?
<gchristensen>
Nixops should automatically determine the nixosVersion
<tommyangelo>
nixops create / modify
<tommyangelo>
then nixops deploy
alexteves_ has joined #nixos
zzamboni has quit [Quit: Leaving.]
<gchristensen>
hrm. maybe destroy the network and just try again?
cinimod_ has joined #nixos
zzamboni has joined #nixos
<tommyangelo>
seems legit
<gchristensen>
or: remove / comment out your test VM, do a nixops deploy -k, add it back, and nixops deploy again
<tommyangelo>
hold on
ThatOtherGuy has quit [Read error: Connection reset by peer]
zzamboni has quit [Client Quit]
zzamboni has joined #nixos
vidbina has quit [Ping timeout: 248 seconds]
thblt has quit [Remote host closed the connection]
<cinimod_>
use ‘nix-env --set-flag priority NUMBER PKGNAME’ to change the priority of one of the conflicting packages
<cinimod_>
and
zzamboni has quit [Client Quit]
zzamboni has joined #nixos
<cinimod_>
Why is this happening?
<cinimod_>
I have no idea what I should do
zzamboni has quit [Client Quit]
<tommyangelo>
gchristensen: that did not make a difference. Going to try with an example from the manual to see if it's a local nix problem
zzamboni has joined #nixos
<cinimod_>
BTW I was trying to install pandoc
<niksnut>
are you using nixpkgs master? nixosVersion was removed a couple of days ago
<tommyangelo>
niksnut: yes
Neo-- has joined #nixos
<tommyangelo>
so I should update maybe?
<jluttine>
makefu: your snippet gave error: error: attempt to call something which is not a function but a set, at /nix/store/bh1c23b7wcc6zfy7nia1mmjjbmcdaa06-nixos-18.03pre127302.e860b651d6e/nixos/lib/customisation.nix:38:45
Drakonis has quit [Read error: Connection reset by peer]
zzamboni has quit [Remote host closed the connection]
<cinimod_>
error: selector ‘haskellPackages.pandoc’ matches no derivations`
Mateon1 has quit [Ping timeout: 276 seconds]
Mateon3 is now known as Mateon1
<hodapp>
what am I missing here? I added sshd.listenAddresses = [{ addr="localhost"; port=22; }]; to try to make sshd work on localhost only, but can still SSH in from external IPs
<NixOS_GitHub>
[nixpkgs] dezgeg closed pull request #35173: makeTest: Only allow test names of up to 50 characters (master...max-test-name-length) https://git.io/vA4GJ
<manveru>
no worries, i'll figure something out :)
throwup has joined #nixos
knupfer has joined #nixos
zzamboni has joined #nixos
mkoenig has joined #nixos
<zimbatm>
sorry I don't have the throughput available right now
<zimbatm>
ping me when you have the patch and I'll get it merged
<throwup>
When building a custom python (meaning python + packages) all packages seem to be built from source. Is there something I can do to get them to use binary caches, like when I install packages via configuration.nix
<throwup>
?
abcrawf has joined #nixos
<infinisil>
throwup: the channels should have cached builds
<throwup>
infinisil: I have both a nixos as well as a nixpkgs channel set up
<detran>
I just installed nixos on a vm, but I forgot to set a passwd for both root and the user I created. Is there an easy way to set those? Otherwise I'll just do a quick reinstall
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vARPP
<NixOS_GitHub>
nixpkgs/binutils-2.30 e0287cb Shea Levy: binutils: Bump default to 2.30
Itkovian has quit [Ping timeout: 255 seconds]
<dtz>
shlevy: can't wait for RISC-V support in musl (and gcc, if needed?)-- then the awesomeness will COMBINE muahaha
<shlevy>
dtz: gcc has it, there's a musl port I need to track down at some point
dnovosel has quit [Ping timeout: 260 seconds]
<dtz>
😁
<genesis>
RISC-V when i package a bunch of stuff for z80 :O
<genesis>
mode 0, nothing else matter.
<pie_>
dtz, plz, let me stop using systemd
<pie_>
> NEVER
<pie_>
also openbsd port of nix k thanks
<pie_>
:D
<Taneb>
pie_: my understanding is the only reason Nix doesn't support OpenBSD is that no-one's signed up to look after it
<Taneb>
It does support Mac
<dtz>
hahaha
<betaboon>
hello #nixos, I'm just trying to create a package with buildPythonApplication from a private python-project that uses setup.py with entry_points/console_scripts and i run into a "invalid syntax" error when running the package-provided application. i guess this is due to the wrapping of the application. can i deactivate that somehow ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peti pushed 7 new commits to master: https://git.io/vARSc
<NixOS_GitHub>
nixpkgs/master 8cfaa55 Peter Simons: hackage-packages.nix: automatic Haskell package set update...
<NixOS_GitHub>
nixpkgs/master a3c1a66 Peter Simons: liquidhaskell: drop obsolete override
<NixOS_GitHub>
nixpkgs/master 0d77408 Peter Simons: hackage2nix: disable broken Hydra builds
NixOS_GitHub has left #nixos [#nixos]
<dtz>
but yeah I wouldn't advise holding your breath for systemd-less NixOS, I think that would almost certainly need to be a fork or require some awesome abstractions around the init/etc
pkill9_ has joined #nixos
<dtz>
betaboon: quick grep suggests "dontWrapPythonPrograms = true" in your derivation may do the trick?
hexagoxel has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 2 new commits to master: https://git.io/vARSS
<NixOS_GitHub>
nixpkgs/master 328f8a6 volth: nixos/nat: support nat reflection
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 3942cbe Franz Pletz: Merge pull request #35161 from volth/patch-92...
<betaboon>
dtz: gonna check. i had the feeling that there is an option for that, but couldnt remind the key xD
<dtz>
betaboon: but if you want mixed wrapped and unwrapped I suspect you'll have to get your hands a bit dirty (and I'm probably not the best guide through the python workings)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vARS5
<NixOS_GitHub>
nixpkgs/master 39ff498 Shea Levy: kernelPatches: Add pointer to ml threads for riscv patches.
NixOS_GitHub has left #nixos [#nixos]
pkill9 has quit [Ping timeout: 248 seconds]
humanoyd has joined #nixos
<fearlessKim[m]>
betaboon: where the error happens ? I have had programs with console_scripts entry points too and no pb so far
<pie_>
Taneb, id be scratching my head a lot about linux features it depends on, but i dont know a lot about internals
<dtz>
betaboon: haha my thoughts exactly. I'm never far from a ripgrep invocation against nixpkgs-master lol!
<pie_>
i keep wanting to look into it but lack of time and lack of qualifications :D
<nflores>
sphalerite_: me again, those curlOpts in fetchurl are still giving me a problem. Using: curlOpts = lib.escapeShellArgs ["-L" "-H" "Accept: application/octet-stream"]; curl seems to thing each item in the list is a url: curl: (6) Could not resolve host: '-L', some for -H, Accept, and application.
lonokhov has quit [Quit: Lost terminal]
__monty__ has joined #nixos
<infinisil>
String based infertaces ftw
mkoenig has joined #nixos
<__monty__>
I run enlightenment, added ~/.nix-profile/share to XDG_DATA_DIRS so the Everything launcher could see the .desktop files but it can't launch the programs, opens a dialog stating "unable to run: program". Anyone know of a solution?
Itkovian has joined #nixos
<sphalerite>
infinisil: the kind that blows up inter your face
coot_ has quit [Ping timeout: 256 seconds]
<pie_>
so i have a symlink gc root for a thing so that i dont gc it by accident, but is there a way to make some kind of runner link for an environment so that i can reenter that environment?
<__monty__>
Another question: What firefox do I want? And do I need to specify addons when installing it with nix?
<pie_>
im running a shell.nix script after a reboot and its rebuilding stuff for somre reason
<ldlework>
How do I install dart/pub with Nix?
<infinisil>
sphalerite: hah
<dtz>
there's some recipes for that pie_ , on the mailing list. Maybe back when it was nix-dev@? don't remember the details ATM
<dtz>
and there may be a more readily available resource... :)
<infinisil>
__monty__: just firefox, no addons aren't done with nix
<ldlework>
Can't figure out the package invocation..
<infinisil>
__monty__: not sure what you mean by which firefox
<__monty__>
infinisil: There's a bunch of attributes firefox-esr, firefox-bin, firefox-unwrapped...
<hyper_ch>
infinisil: well, when writing a nixos module.... where will the config file actually end up and what will it look like or how to control it?
<freeman42x]NixOS>
infinisil, this bit: Cabal-1.24.2.0: createProcess: runInteractiveProcess: exec: does not exist
<freeman42x]NixOS>
so, not 100% sure... but I think it wants cabal-install v. 1
<hyper_ch>
btw, isn't it sad when a stroge disk has more ram than your whole server :(
mkoenig has quit [Ping timeout: 256 seconds]
<infinisil>
hyper_ch: there is no config file
lesce has joined #nixos
<infinisil>
hyper_ch: the output of the system derivation is your "config"
<infinisil>
but it really includes your whole system
<__monty__>
Anyone know how to properly add ~/.nix-profile/bin to PATH so your DE can see the change?
<infinisil>
hyper_ch: when you go to /run/current-system, that's such a result
Drakonis has joined #nixos
<infinisil>
freeman42x]NixOS: i'm not sure if cabal is the same as cabal-install
<Drakonis>
no gsoc this year?
throwup has quit [Ping timeout: 268 seconds]
winem_ has quit [Ping timeout: 268 seconds]
<hyper_ch>
infinisil: I don't really understand :(
<infinisil>
__monty__: ~/.xprofile gets sourced before DE's start, so putting `export PATH="$HOME/.nix-profile/bin:$PATH` there would probably solve it, but it's not a nice solution
<__monty__>
infinisil: What would be a nice solution?
<infinisil>
hyper_ch: you basically can't get the nix config for a built system, you can only query the stuff from the nix files
<infinisil>
__monty__: No idea
<hyper_ch>
infinisil: I don't understand... don't daemons usually require some configuration file
<hyper_ch>
or nginx / apache that defines vhosts and stuff
ixxie has joined #nixos
<infinisil>
hyper_ch: what daemon are you talking about?
<infinisil>
Ah
<hyper_ch>
infinisil: in the configuration.nix you set options
<hyper_ch>
so they must be stored somewhere
<hyper_ch>
like you did for znapzend
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] xeji opened pull request #35226: virglrenderer: init at 0.6.0 (master...virglrenderer) https://git.io/vARNA
NixOS_GitHub has left #nixos [#nixos]
<infinisil>
Ah so you want to check out what e.g. the config for X looks like, because it got generated with pkgs.writeFile at some point?
<hyper_ch>
infinisil: how in the module do I define what the configs looks like and where it's stored
<infinisil>
hyper_ch: you use let config = pkgs.writeFile "foo.config" '' <the contents of the config ''; in ...
<infinisil>
then insert config wherever the config needs to be (command line arguments or location)
<hyper_ch>
infinisil: I'll have to check up on that
<infinisil>
this just puts it somewhere in /nix/store and you don't really have to care about where exactly
__monty__ has quit [Quit: reboot]
mkoenig has joined #nixos
mkoenig has quit [Read error: Connection reset by peer]
<hyper_ch>
ok
<hyper_ch>
infinisil: another option for my backup script came to my mind :)
<infinisil>
that is?
pSub has quit [Remote host closed the connection]
<hyper_ch>
check free disk space and notifiy when it's less than xxx
<hyper_ch>
s/disk/tank/
<nflores>
anyone else have success passing in curlOpts to fetchurl? Here's what I'm trying: curlOpts = lib.escapeShellArgs ["-L" "-H" "Accept: application/octet-stream"]; curl seems to think each item in the list is a url: curl: (6) Could not resolve host: '-L', some for -H, Accept, and application.
hotfuzz_ has quit [Ping timeout: 260 seconds]
<infinisil>
sure :2
pSub has joined #nixos
pSub has quit [Changing host]
pSub has joined #nixos
<hyper_ch>
not sure if I should go for % or actual space
<hyper_ch>
I have a tendency leaning more towards %
<hyper_ch>
zpool list -o cap pool
<hyper_ch>
zpool list -Ho cap pool
__monty__ has joined #nixos
<__monty__>
infinisil: Seems to have done the trick, thanks.
<hyper_ch>
but I have to look up how you create like those services.nginx.virtualHosts.<name>.xxxxxxx
<jluttine>
how do i know if something goes to kernelModules or availableKernelModules?
mkoenig has joined #nixos
<__monty__>
I'd like to move some installed attributes into a buildEnv, how do I do this without uninstalling them?
<infinisil>
hyper_ch: I happen to know how
mkoenig has quit [Read error: Connection reset by peer]
<jluttine>
s/if/whether/
<hyper_ch>
infinisil: using advanced automagic?
<infinisil>
hyper_ch: indeed
<chaker>
Hey, What's the best why to package Maven packages? is't using mvn2nix? I saw in the mailing list that's it's not maitained anymore :(
<__monty__>
Is there a way to install thunderbird (earlybird) with a .desktop file? The lack of an icon makes it inconvenient in my panel.
<infinisil>
hyper_ch: okay well you can just look at other modules tbh
<aminechikhaoui>
jluttine: lsmod ?
<aminechikhaoui>
oh you mean which one to use
__Sander__ has quit [Quit: Konversation terminated!]
<jluttine>
aminechikhaoui: yep
hask_bee_3 has joined #nixos
<jluttine>
in this case, "dm-snapshot"
<hask_bee_3>
How can I make $NIX_PATH/nixpkgs point to a different channel?
<hask_bee_3>
(one of the channels at nix-channel --list)
<__monty__>
hask_bee_3: Re-export NIX_PATH?
<infinisil>
jluttine: from the options description: "Note that modules that are needed to mount the root file system should be added to boot.initrd.availableKernelModules or boot.initrd.kernelModules"
<clever>
hask_bee_3: also, <channelname> should work
<aminechikhaoui>
jluttine:
<jluttine>
infinisil: still that doesn't help me decide which one..
<infinisil>
ah haha
<__monty__>
It should, clever? I had to add and entry for nixos to my NIX_PATH.
<clever>
__monty__: under gentoo, it uses the channels from the user that installed nix
<__monty__>
So I can just replace my NIX_PATH with $HOME/.nix-channels?
<__monty__>
Or, ~/.nix-defexpr/channels?
<clever>
__monty__: i think the last one should work
pkill9 has quit [Ping timeout: 256 seconds]
knupfer has joined #nixos
<tmplt->
In nixpkgs, telegram-desktop is available under 'tdesktop' while other clients have the 'telegram-' prefix. Shouldn't telegram-desktop also have this prefix?
<__monty__>
clever: Seems to work, tested with nix-env -f '<nixos>' -qa after exporting a new NIX_PATH.
Drakonis has left #nixos ["Leaving"]
<__monty__>
So, my only remaining question how do I move something I installed into a buildEnv defined in config.nix?
<freeman42x]NixOS>
infinisil, trying with cabal-install version 1.24.0.2 didn't fix the issue :(
knupfer has quit [Read error: Connection reset by peer]
<clever>
__monty__: move?
<__monty__>
*something I installed using nix-env -iA attr.bute into a buildEnv defined in config.nix without uninstalling the attribute.
chaker` has joined #nixos
<clever>
__monty__: -e only works on names, check nix-env -q to see the names
kitemikaze has joined #nixos
<__monty__>
But do I have to -e?
knupfer has joined #nixos
jluttine has quit [Remote host closed the connection]
pkill9_ has quit [Ping timeout: 252 seconds]
<clever>
__monty__: oh, if you just want to update the buildEnv, just -iA it again
pkill9_ has joined #nixos
<__monty__>
Still not exactly what I meant but I realized -e only removes the name from my profile so it's basicaly harmless.
<aanderse>
i have a relatively new laptop which runs nixos. when i try to suspend the laptop (close the lid) the screen goes blank but i hear the fan running still. when i open the lid the screen won't turn back on and it is frozen, requiring me to hard reboot it. this wasn't always the case... at some point the laptop could suspend/resume fine. i just booted into an ubuntu livecd and suspend/resume works fine in a live usb environment. is
<aanderse>
there any advice someone could provide for me to troubleshoot?
<freeman42x]NixOS>
clever, I commented out ALL of the packages and even changed from ghcWithHoogle to ghcWithPackages and now it finally builds
<clever>
freeman42x]NixOS: theres probably something wrong with the 784 package set
<freeman42x]NixOS>
clever, that is what I don't get, I thought that if something works on Nix once it will forever work
<jluttine>
infinisil aminechikhaoui: i tried adding "dm-snapshot" to boot.kernelModules, boot.initrd.availableKernelModules and boot.initrd.kernelModules in turns. only the last one had the correct effect. not sure if i'm any wiser though.. this module was needed in stage1 but kernelModules was for stage2 so why did it work? also, still a bit unclear how kernelModules and availableKernelModules under boot.initrd
<jluttine>
differ...
<freeman42x]NixOS>
now even adding ghcWithHoogle breaks the build
<clever>
freeman42x]NixOS: somebody changed the haskell expressions, and didnt re-test its effects on 784
mkoenig has joined #nixos
mkoenig has quit [Read error: Connection reset by peer]
<srhb>
freeman42x]NixOS: The promise only really holds for one version of nixpkgs. Once you update your channel, everything goes! (Especially if there's no test automation)
<freeman42x]NixOS>
does it make any sense to create a ticket for this issue?
<srhb>
freeman42x]NixOS: For 7.8.4, I don't know... I doubt someone cares enough to support it, but you can always try.
<srhb>
Worst case it'll just rot. :)
abrar has joined #nixos
<dash>
srk: ever tried that?
<srhb>
I'd suggest either building whatever you need from there with an older version of nixpkgs instead (that's the promise!)
<srhb>
Or just upgrading what you need to a more recent ghc.
mkoenig has joined #nixos
coot_ has joined #nixos
<srhb>
freeman42x]NixOS: fwiw the oldest ghc in unstable is currently 7.10.3
<srk>
dash: not really, just added a printer via cups webif
ottidmes has joined #nixos
<dash>
srk: OK :-)
<dash>
i'm trying buildFHSUserEnv to see if that helps.
<dash>
currently it's decided that means rebuilding qt
ma27 has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jfrankenau opened pull request #35230: bcal: init at 1.7 (master...init-bcal) https://git.io/vA0UK
NixOS_GitHub has left #nixos [#nixos]
chreekat has joined #nixos
michalrus has joined #nixos
<michalrus>
Dezgeg: hello! What’s the status of nixos-arm.dezgeg.me? It seems that the cache stopped working.
<michalrus>
s/cache/ARM cache/
<Dezgeg>
I saw it earlier running out of memory when compiling GCC 7 for the kernel concurrently with something else
<Dezgeg>
but it seems it got past that, so hopefully it soon updates
<srhb>
freeman42x
<srhb>
Woops
<srhb>
freeman42x]NixOS: I need to go back to 2015 to get a working ghcWithHoogle in 784
<freeman42x]NixOS>
srhb, that's quite some time-travelling stuff :)
<srhb>
freeman42x]NixOS: Well, that's the cool thing. :-)
<freeman42x]NixOS>
time travelling can be dangerous, I'd have to abstain from punching my past self
<srhb>
I keep myself not included in nixpkgs to avoid that sort of thing.
<gchristensen>
!m srhb
<[0__0]>
You're doing good work, srhb!
<infinisil>
Nixpkgs really shines in that sense
<gchristensen>
very time-travel-safe
<infinisil>
But, how can you time travel with the correct nix version?
knupfer has quit [Ping timeout: 260 seconds]
<gchristensen>
nix is totally bC
knupfer has joined #nixos
<infinisil>
Because if you just nix-build it's gonna use 1.11, not the nix that was used for that nixpkgs
<srhb>
infinisil: Import nixpkgs once at the version, then again with that nix!
<chreekat>
When I read nix-instantiate's man page, I don't get the impression that it is going to build a lot of things. But that's what it does. What am I misunderstanding?
<infinisil>
I wonder how far back that would work
<clever>
chreekat: import from derivation can cause builds at eval time
<chreekat>
clever: Can you expand on that or provide an example?
<clever>
chreekat: any time you do something like import "${foo}" where foo was a derivation
<srhb>
infinisil: Presumably you'd only have to make more temporary breaks if it does break, no?
<srhb>
infinisil: Unless there's a definite break somewhere.. I guess there might very well be.
<srhb>
Some version of nix that can't build the one before it? I don't know.
<srhb>
I think the problem will probably be missing upstream sources before that :-P
<infinisil>
(ignore that)
<infinisil>
srhb: i guess a safe way is to boostrap nix from the bottom
<infinisil>
Instead of top-down
<srhb>
infinisil: Oh, yeah.
<infinisil>
The first nix version buildable by nix itself :o
szicari has quit [Quit: szicari]
<srhb>
Aghhh I just checked out the first commit and everything is so foreign
<gchristensen>
yeah Nix was VERY different then!
<srhb>
It doesn't even contain Nix!
<infinisil>
Yeah did that too before
<freeman42x]NixOS>
oh ghc-7.10.3 is newer than 7.8.4 doh :/
<srhb>
Commit message: "[...] Nix itself should also be Nixified so that it can be put into the store."
<srhb>
freeman42x]NixOS: Yeah! :-) By about a year iirc
Izorkin has joined #nixos
<srhb>
Mar 28 2003: * Allow arguments to be passed to programs in `nix run'.
<srhb>
This just in, Nix 2.0 is a hoax! It was there all along!
<srhb>
This is amazing, why have I never done this before...
<srhb>
It's like spelunking.
Synthetica has quit [Quit: Connection closed for inactivity]
elurin has joined #nixos
<niksnut>
incredible, that was when nix was less than 2 weeks old
<srhb>
:-)
<infinisil>
Hmm, maybe something interesting would turn up if one were to sort commits by commit message length
<niksnut>
I totally forgot it initially had a subcommand-style interface
<srhb>
niksnut: Time cycles! :-)
<pikajude>
is there an easy way to write a derivation that just unpacks a given zip file?
<clever>
pikajude: pkgs.runCommand
<niksnut>
interestingly, the very first commit has a proto-NixOS
<srhb>
So I see.
<srhb>
If I start calling packages "descriptors" I can seem really old school!
<srhb>
Ooo, what's this ~ operator
<srhb>
pkgs.bash ~ /bin/sh
<chreekat>
clever: ok, I think I understand. Let me describe my problem: On my laptop, I seem to have GC'd a huge goop of dependencies for a project using a pinned nixpkgs. This project doesn't have its own binary cache, and the upstream cache it was using seems to have evicted our particular dependency chain. Rather than rebuild the universe, I'd like to copy the closure from another machine that *does* have the deps
<chreekat>
built. But, sitting on my laptop with just the Nix files and source code, how do I figure out what store path I want to copy? There are a half-dozen versions on the other machine and I don't know which is which
<srhb>
chreekat: Can't you just build it on the other machine?
<dtz>
grahamc: is there an "ofBorg" channel? :P just wondering
<acowley>
Having to manually pick everything out from melpaPackages seems pretty clunky.
<chreekat>
srhb: I'm also interested in the underlying question for the sake of understanding Nix better, but I have a suspicion that the answer is "it can't be done". As in, I can't know the output of nix-instantiate without building all my deps. I mean, without building the derivations of my deps.
<LnL>
dash: #nixos-borg
<LnL>
dtz: oops ^
<chreekat>
DAE "derivation is a misnomer"? Derivation of what? And you can "build" a derivation? Seems like a derivation would be the output of a build, not the other way around... :)
<infinisil>
acowley: you can do something like `epkgs.melpaPackages.foo or epkgs.foo` to always prefer melpa
<jluttine>
uh, how can i make cmake a build input without it suddenly trying to make some funny stuff.. :o the make file needs cmake, that's it, but adding cmake to nativeBuildInputs adds some new steps or something weird
<dtz>
grahamc: misc thoughts well nix'ing: differentiating existing failures from new failures might be neat. I think I remember that being discussed, apologies if I missed that. Related: filter build platforms to those declared as supported? It's hardly a "failure" if it isn't meant to work, but it is nice to see that such is confirmed. Not a big thing...
<dtz>
oh hooray I thought so
<acowley>
infinisil: You need to do the the overrideScope to prevent dependencies coming from melpaStable if you want to use melpa, and then you need to re-list the packages you want in your emacsWithPackages function application.
<dtz>
jluttine: for this, dontUseCmakeConfigure = true;
self has joined #nixos
self is now known as Guest7111
<acowley>
You can't just say `emacsWithPackages (epkgs: [ epkgs.melpaPackages.foo ])`, for example, if you want foo's dependencies to come from melpaPackages rather than melpaStablePackages.
ixxie has quit [Quit: Lost terminal]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master 2f97446 Maximilian Bode: flink: 1.3.2 -> 1.4.0...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
[nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vA0qe
<NixOS_GitHub>
nixpkgs/master af37d08 Joachim F: Merge pull request #33143 from mbode/flink_1_4_0...
<acowley>
Doing the straightforward thing leaves you with multiple versions of packages on your load-path and an unhappy emacs
peacememories has joined #nixos
szicari has joined #nixos
alex`` has quit [Ping timeout: 256 seconds]
<jluttine>
dtz: thanks!
<chreekat>
ssh-substituter-hosts doesn't seem to do anything for me. It also doesn't show up in nix.conf(5), but I don't know if that is surprising or not
chaker` has quit [Ping timeout: 265 seconds]
<ottidmes>
chreekat: Are you using nix 2.0 (1.12)?
<ottidmes>
chreekat: Since it does work for me with nix 1.11, but when I tried nix 2.0 it no longer did
<chreekat>
I'm on whatver NixOS 17.09 provides
<ottidmes>
chreekat: That would be 1.11, unless you have nix.package set to nixUnstable
<chreekat>
the nix.conf(5) man page lists 'nix 1.11.16' in the footer, and I don't know where else to look :)
<chreekat>
ottidmes: Ok, so I'm on the version that *did* work for you
<Baughn>
So I configured it to use a static v6 address. This means it still uses dhcpcd, but only for v4.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh created python-unstable (+15 new commits): https://git.io/vA0Yt
<NixOS_GitHub>
nixpkgs/python-unstable 40cd1c4 Robert Schütz: pythonPackages.binaryornot: 0.4.0 -> 0.4.4
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/python-unstable c1fc779 Robert Schütz: pythonPackages.bibtexparser: enable tests
<NixOS_GitHub>
nixpkgs/python-unstable 56d9518 Robert Schütz: pythonPackages.bibtexparser: add propagatedBuildInputs
<Baughn>
There's a bug in NixOS there -- it marks network-online.target as successful as soon as the static configuration is complete, i.e. immediately once the ethernet link is configured and well before dhcpcd is done.
<chreekat>
Can I get a list of 'these will be downloaded, this will be built' when using nix-build or nix-shell? It seems it only shows up for nix-env
<acowley>
infinisil: Yeah, I discovered this by using emacsWithPackages and ending up with two versions of projectile. johnw has a somewhat elaborate setup that seems to rationalize the problem pretty well, but it's definitely not user friendly.
<clever>
Baughn: ah, yeah, online detection can be fun
<hask_bee_3>
Is it safe for me to manually change $NIX_PATH from the default
<hask_bee_3>
to
<hask_bee_3>
or is there a more idiomatic way to do it?
<hask_bee_3>
whoops
<Baughn>
This tickles a bug in ZNC. ZNC doesn't ever look for more addresses, so once it's got its v6 address, that's it. It never goes back to grab the v4 one.
<Baughn>
I only use one IRC network that doesn't offer v6, systemnet, and in fact I never actually look at that network anymore. So I didn't notice it hadn't connected.
<hask_bee_3>
Is it safe for me to manually change $NIX_PATH from the default /nix/var/nix/profiles/per-user/root/channels to /nix/var/nix/profiles/per-user/haskbee3/channels or is there a more idomatic way of doing it?
<clever>
hask_bee_3: just throw it into your .bashrc and it should be good
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dotlambda opened pull request #35235: ddar: move out of pythonPackages and fix tests (master...ddar) https://git.io/vA0Yg
NixOS_GitHub has left #nixos [#nixos]
<Baughn>
IRCCloud attempts to parse the error messages from ZNC. But there's a bug in IRCCloud that causes it to (somehow) close the connection to its android app every time it receives this particular error message.
<Baughn>
So, three bugs, and the end result was random-looking reconnections on an android app. ^^;
yann-kaelig has quit []
<clever>
Baughn: lol
<Baughn>
clever: I mean, in this case I suspect it's a simple fix. network-online needs to wait for *all* network connections to be configured, not *any*.
peacemem_ has joined #nixos
mrkgnao has quit [Ping timeout: 256 seconds]
peacememories has quit [Ping timeout: 255 seconds]
<clever>
Baughn: related, ive had issues with the SPAN support in my old cisco switch
<clever>
Baughn: the ethernet link is "live" for several seconds, without any routing, as it waits for SPAN broadcasts, to confirm i didnt f-up and create a cycle and broadcast storm :P
<clever>
Baughn: however, the dhcp client in some of my bios's for netboot, times out rather fast, and fails before the port fully enables
yann-kaelig has joined #nixos
peacemem_ has quit [Client Quit]
orivej has joined #nixos
<chreekat>
ottidmes: Ok, yeah, I see the path in $remote_host, and when i run "nix-store -r $path --ssh-substituter-hosts $remote_host" on my laptop, no substituting happens
<clever>
chreekat: try running that as root
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/staging 1d15dad Vladimír Čunát: Merge branch 'master' into staging...
<NixOS_GitHub>
[nixpkgs] vcunat pushed 3 new commits to staging: https://git.io/vA03J
<NixOS_GitHub>
nixpkgs/staging fbe38c7 Vladimír Čunát: rustc: build with gcc6 on i686...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/staging 43a88e3 Vladimír Čunát: Merge branch 'gcc-7' into staging...
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #35236: strace: disable mpers (multiple personality) support on aarch64 to fix (master...experimental/strace-no-mpers) https://git.io/vA03T
<ottidmes>
chreekat: I am running it as part of my system configs (for all hosts other than the supplying host), not as CLI argument, not sure if that effects the results
<infinisil>
acowley: just read the thread about emacsPackages
<infinisil>
That sounds horrible..
<gchristensen>
infinisil: what is up?
<genesis>
manveru : for people that spend hours trying to fix upstream mess, when it could be easily done by a generic builder ;)
<tmplt>
Is there a reason telegram-desktop is available under nixos.tdesktop instead of nixos.telegram-desktop? Other clients have the telegram- prefix.
<dhess>
gchristensen: in some ways the Haskell situation is less flexible. There is no "out-of-the-box" solution to using a different package set with Haskell in Nix, though there is a lot of nice tooling that makes it possible with some work.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master c5a5d22 Johannes Frankenau: mergerfs: 2.23.0 -> 2.23.1
<NixOS_GitHub>
[nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vA0GA
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master a82fada Joachim F: Merge pull request #35232 from jfrankenau/update-mergerfs...
<chreekat>
ottidmes: be back later. I had to go for a bit. (Still busy.) But running as root worked
<dhess>
gchristensen: just wait until you're my age and still using it ;)
<ottidmes>
chreekat: Great to hear you have got it working!
<infinisil>
I spent like a full day on the weekend trying to get a nice Rust IDE setup. Part-way through I realized that i was using stable packages that were sometimes really outdated all along
<gchristensen>
dhess: how old do you think I am?? :)
<infinisil>
now everything except company-mode is working decently
<dhess>
gchristensen: not as old as I :)
<infinisil>
dhess: gchristensen: we need numbers!
hamishmack has quit [Quit: hamishmack]
<gchristensen>
I'm old enough my avatar is bald and gray-scale
<dhess>
but seriously, my point was, your demands on Emacs gradually accrete the longer you use it
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/release-17.09 32ce3b0 Vladimír Čunát: pango: maintenance 1.40.11 -> 1.40.12...
<NixOS_GitHub>
nixpkgs/release-17.09 c5e7449 Daniel Peebles: Merge pull request #35237 from davisliu17/update-pango...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
[nixpkgs] copumpkin pushed 2 new commits to release-17.09: https://git.io/vA0ZP
<infinisil>
dhess: sooo, you've used emacs for how long?
<dhess>
infinisil: since college ;)
<infinisil>
ummm, same?
<infinisil>
i have concluded dhess must be about my age, 22
<dhess>
ok you got me
coot_ has quit [Quit: coot_]
lesce has joined #nixos
elurin has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
abrar has quit [Ping timeout: 276 seconds]
lesce has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ThatDocsLady_ has joined #nixos
ThatDocsLady has quit [Remote host closed the connection]
jtojnar_ has joined #nixos
<infinisil>
Yeah I have 2 evil modes installed..
<infinisil>
and a random mix of stable and unstable packages
<infinisil>
ugh
<manveru>
have you tried spacemacs yet?
lesce has joined #nixos
<Ankhers>
I didn't want to be the one to bring it up. But it does make most things rather trivial.
<manveru>
i wouldn't have switched to emacs if it didn't exist :)
<Ankhers>
Though, company-mode is broken right now :(
<infinisil>
I have used spacemacs in the past, but didn't like it because it seemed to be a bit too bloated, i couldn't find my way in configuring it myself
<infinisil>
so much stuff it comes with already
<infinisil>
company-mode works for me for elisp
<Ankhers>
Nothing gets loaded unless you ask for it though.
<infinisil>
so i guess the rust backend is broken somehow
<coconnor>
Tho I'd just go the systemd qemu service route if the VMs are essential to system function. Partly because of ignorance on how to use libvirtd tho
<manveru>
ok, haven't tried that yet
<BlessJah>
I want to run debian (proxmox) as guest on nixos host, with nixos/nixops handling cpu/mem/qcow2/ifaces and vnc
<manveru>
i got all my nvim config via nix, but for spacemacs it looked way more trouble than it's worth
<vitiral>
Hey everyone, I'm a NixOS newbie and I'm having some serious problems using openconnect and have been unable to find any triage help. I previously ran ArchLinux where openconnect worked fine for my corp network, but it now is not working. I can connect and it _says_ I am connected... but I can't actually access my corp network.
<vitiral>
is this the right place to ask for help?
<manveru>
vitiral: yeah, unless you count the #openconnect channel on OFTC
<clever>
vitiral: do you have a new interface in `ip link` when its ocnnected?
<vitiral>
yes, it has the tun0 interface
<manveru>
did you configure your DNS?
<clever>
vitiral: does `ip addr` show it as having an address, and is it listed in `ip route` ?
<vitiral>
one sec, logging in on the laptop itself, although will stay logged in on my desktop since I"m messing with networking
ryanartecona has joined #nixos
<thoughtpolice>
coconnor: whoa, you just boot right up into it? That's kind of awesome. :)
<thoughtpolice>
(I have a VFIO-capable setup myself now, so something like that is interesting...)
<manveru>
i basically had to fix /etc/resolv.conf everytime after openconnect did its thing because the domains and nameserver entry was messed up...
vitiral-lap has joined #nixos
lesce has joined #nixos
mjacob has joined #nixos
<infinisil>
I actually had pretty much the same problem before when trying to use vpnc
<tmplt>
thoughtpolice: GPU passthrough?
<coconnor>
haha aye. It is, as near as I can, no different from an actual windows VM. From NixOS the service is the "desktop" as well
<coconnor>
err actual windows system
<vitiral-lap>
clever: yes and ... no
<vitiral-lap>
5: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1406 qdisc pfifo_fast state UNKNOWN group default qlen 500 link/none inet 10.249.208.187/32 scope global tun0 valid_lft forever preferred_lft forever inet6 fe80::a4be:e60c:f593:2fac/64 scope link stable-privacy valid_lft forever preferred_lft forever [root@garrett-laptop:~]# ip route default via 192.168.43.1 dev wlp3s0 proto static metric 600 10.24
<vitiral-lap>
whoa
<vitiral-lap>
sorry
<thoughtpolice>
tmplt: Yes, but not really for Windows actually.
<vitiral-lap>
gonna do pastebin
<BlessJah>
coconnor: I guess I'l give libvirt a try. Not that I don't like nix, just never used nixops before.
<hask_bee_3>
$ nix-shell '<nixos-17.09>' -p hello
<hask_bee_3>
error: file ‘nixpkgs’ was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:13
<hask_bee_3>
^^^ Why does it care about nixpkgs existing if I explicitly specified another channel to use?
<coconnor>
note the vmhost.vfio options in that example are not in NixOS. That is specific to my config
<clever>
hask_bee_3: nix-shell -p is hard-coded to use <nixpkgs>, so you need to use -I or NIX_PATH to setup nixpkgs to point somewhere
<coconnor>
BlessJah: NixOS's libvirtd service is nicely set up. Auto-resuming domains on boot works as expected
<aminechikhaoui>
hask_bee_3: the right command is nix-shell '<nixpkgs>' -I nixpkgs=channel:nixos-17.09
<manveru>
is nixos-17.09 even a valid channel name?
<BlessJah>
coconnor: I guess I'll need something in front of libvirt? Would you mind recommending something (either virsh or ovirt I presume)?
<vitiral-lap>
they _are_ pingable when I am on the network though (from my work desktop, which is in the local network)
<vitiral-lap>
clever: sorry, forgot to mention you ^^^
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dywedir opened pull request #35240: rustup: 2017-10-29 -> 1.11.0 (master...rustup) https://git.io/vA0lV
NixOS_GitHub has left #nixos [#nixos]
<clever>
vitiral-lap: yeah, thats a common vpn problem, you have to use the vpn dns to connect to anything, but that also breaks dns when you disconnect
<BlessJah>
neither is available on nixos, bummer
hamishmack has joined #nixos
<infinisil>
clever: how do you do that properly though?
<vitiral-lap>
so can I force the resolv.conf in some way?
<hask_bee_3>
clever, the thing is I modified NIX_PATH to be this: /nix/var/nix/profiles/per-user/haskbee3/channels (as opposed to the default /nix/var/nix/profiles/per-user/root/channels)
<gchristensen>
peel[m]: I have a sneaking suspicion you meant to paste that somewhere else, since it otherwise seems off topic, but neat!
f0i has quit [Ping timeout: 256 seconds]
<hask_bee_3>
clever but there is no "nixpkgs" in there by default.
<clever>
infinisil: you would need to properly talk to resolvconf and dhcpcd, to insert a dns override, and remove it when disconnecting
<vitiral-lap>
is there some way I can find the DNS to use?
<clever>
hask_bee_3: you could also switch to using -E, nix-shell -E 'with import <nixos-17.09> {}; stdenv.mkDerivation { name = "foo"; buildInputs = [ hello ]; }'
<clever>
vitiral-lap: it should be in the logs for the vpn, i would think
<hask_bee_3>
clever 17.09 works! but now i got a new problem. stdenv doesn't seem to exist in 14.04. i ran nix-channel --update and it told me it successfully updated both 17.09 and 14.04
<coconnor>
BlessJah: I use nixops in front of libvirt. Plus a frontend that removes some warts.
<coconnor>
BlessJah: not really satisfied with it. I'd focus on using virsh directly if I was to do it again
<vitiral-lap>
infinisil: are you able to connect now?
<infinisil>
vitiral-lap: Connect to it successfully, pinging normal ips works, internal ips don't work, and dns doesn't work at all
<infinisil>
I'm gonna set it up again now and maybe have another debug attempt
<infinisil>
(remembered this from last time i tried)
<BlessJah>
coconnor: I'm tasked with replacing or rebuilding proxmox cluster, and proxmox is only clustering solution both I and team had real experience with
taktoa has quit [Remote host closed the connection]
lesce has joined #nixos
<infinisil>
vitiral-lap: Using cisco vpn (vpnc) though
Ross has joined #nixos
<infinisil>
vitiral-lap: i do have some fundamentals in how networks work, so maybe I'll give the ip command a try
<vitiral-lap>
infinisil: that is my same case. I believe openconnect _is_ cisco vpn (for everyone)
<nflores>
hi there, nixos noob here, I'm trying to download private GitHub release artifacts using fetchurl, has someone had success suing fetchurl for this? My nix file downloads just the json associated with my url and doesn't seem to follow the redirect.
<vitiral-lap>
man openconnect shows: "openconnect - Connect to Cisco AnyConnect VPN"
<clever>
nflores: ive done it with ssh and ssh-agent
<infinisil>
vitiral-lap: Alright so maybe to start off, i have a dns related problem, just to make sure it's not related. Does the command `dig +short google.com` return something for you with vpn turned off?
<clever>
nflores: if you set NIX_CURL_FLAGS prior to starting a build, those will be passed to curl when it tries to download things
<clever>
nflores: and i think you can put a user:pass for github or also a personal access token into that
<infinisil>
vitiral-lap: because it does not for me, however `nslookup google.com` does return stuff including an ipv4 address
Lisanna has quit [Ping timeout: 255 seconds]
<clever>
infinisil: i prefer dig for testing
<infinisil>
clever: well it doesn't work for me apparently, no idea why
<clever>
infinisil: `dig google.com` and `dig google.com @192.168.2.1`
<clever>
infinisil: the first obeys /etc/resolv.conf, the second forces it to use a certain server
<clever>
infinisil: so you can pre-test a dns, before making it active
freeman42x]NixOS has quit [Remote host closed the connection]
dan_b has joined #nixos
lesce has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
freeman42x]NixOS has joined #nixos
<vitiral-lap>
infinisil: in both cases it returns 172.217.3.78, which is not in my resolv.conf in either case
<infinisil>
clever: nslookup <domain> <server> does the same btw
<clever>
nflores: that puts your token into the nix store, and it basically becomes public, depending on what you have configured
<infinisil>
vitiral-lap: alright, then the problem i have with dig is probably something else, that command just looks up google's ip address, so that's just fine
<nflores>
clever: yeah it does, but for now, at the very least, I'd like to get a successful download of my private artifact
humanoyd has quit [Quit: WeeChat 2.0.1]
<nflores>
clever: that config, currently, simply pulls down some json that GitHub endpoint provides and the underlying curl issued by fetchurl doesn't seem to follow redirects
<clever>
nflores: there is a flag for curl to make it follow redirects, check its man page
<nflores>
sphalerite_: no worries at all! I figured you were busy or something.
<nflores>
clever: yeah, its -L and my config above includes it
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh opened pull request #35243: postgis: get rid of composableDerivation (master...postgis) https://git.io/vA0R6
NixOS_GitHub has left #nixos [#nixos]
<clever>
nflores: i also suspect that the token only applies to the first url, you want to switch to -u
<peel[m]>
gchristensen: ah, my bad. sorry for that. fighting weechat on a detached tmux in a user service and /missing/ luaPackages got me dizzy.
<gchristensen>
no worries :)
vidbina has quit [Remote host closed the connection]
lesce has joined #nixos
<mkaito>
say I want to mess with something in nixpkgs. how do I go about testing it? some sort of overlay? point nix at a "channel" local git clone?
<nflores>
clever: good point, let me give that a try
<infinisil>
vitiral-lap: I posted a big comment of resolv.conf/ip addr/ip route before and after connecting with vpnc
<gchristensen>
mkaito: what do you want to do?
<mkaito>
add a headless-experimental version to the factorio package
<nflores>
clever: yeah, I've invoked the same curl command that fetchurl uses in my command line and it works. I believe this is the same command that fetchurl issues with my additional options: curl --retry 3 --disable-epsv --cookie-jar cookies --insecure --location --max-redirs 20 -J -L -H 'Accept:application/octet-stream' https://...
<vitiral-lap>
and worst of all I have no clue why it suddenly works. It is putting a whole bunch of different stuff in the resolv.conf (why is the behavior so different?)
robstr has joined #nixos
<clever>
aminechikhaoui: that script is passed to the dhcp client, which will then set the vars and run it
<vitiral-lap>
clever: is this worth a bug report? I can try and at least document the differences
<clever>
vitiral-lap: sure
<vitiral-lap>
clever: would it be a nixpkgs bug report?
<clever>
vitiral-lap: yeah
<aminechikhaoui>
oh and any idea based on what $router is set ?
<aminechikhaoui>
(I probably should read the man pages of udhcp though :p )
<clever>
aminechikhaoui: probably the reply it got from the dhcp server
ryanartecona has quit [Quit: ryanartecona]
<vitiral-lap>
clever: okay, I'll do that in a week or so (hopefully) I'm pretty swamped. Honestly getting this working is the biggest life saver. Thanks a ton!
<genesis>
Mic92 : thx to help on z88dk derivation.
Guanin__ is now known as Guanin
lesce has joined #nixos
<genesis>
Mic92 : i'm writing some test to automate testing of my nix cpc toolchain.
<aminechikhaoui>
clever: I'm connected to the serial console of a GCE instance and doing that command returns this
<aminechikhaoui>
ip: RTNETLINK answers: Network is unreachable
<aminechikhaoui>
but doing ip route add default via 10.240.0.2 dev eth0 made me able to ping the metadata server
<aminechikhaoui>
which was what I was trying
stephenjudkins has joined #nixos
<clever>
aminechikhaoui: copy the script to the current directory, and edit it to add "set -x", then re-run it
<clever>
aminechikhaoui: preferably after a reboot so the state has been reset
vitiral-lap has quit [Ping timeout: 260 seconds]
<aminechikhaoui>
alright, will try that :)
<magnetophon>
I just noticed nixos-unstable on https://howoldis.herokuapp.com/ went from 2 days old to 9 hours old, with the same hash. anyone know why?
<infinisil>
vitiral: the way i ended up saving my ass in the past was by booting into macOS lol
<infinisil>
Because vpn works no problem there of course
<aminechikhaoui>
clever: the set -x seems to be ignored, not sure how udhcpc runs the script and whether it should write the set -x output to the current stdout though
mbrgm_ is now known as mbrgm
hiratara has quit [Ping timeout: 240 seconds]
<clever>
aminechikhaoui: did you point udhcpc at the modified version of the script?
lesce has joined #nixos
<aminechikhaoui>
yep
<clever>
aminechikhaoui: what about just adding an echo $router or just plain 'set' or 'env' to the script?
hiratara has joined #nixos
<aminechikhaoui>
doing any random echo "foo" doesn't work either
<clever>
aminechikhaoui: ps aux | grep udhcpc
<clever>
aminechikhaoui: it might be contacting the existing instance, and reusing the script it was given
<aminechikhaoui>
so the ps command doesn't return any process
<aminechikhaoui>
note that the output was a bit different when I ran it
<NixOS_GitHub>
[nixpkgs] telent opened pull request #35247: add mips 32-bit and mipsel 32-bit systems (master...mips32) https://git.io/vA0Vu
NixOS_GitHub has left #nixos [#nixos]
szicari has quit [Quit: szicari]
ryanartecona has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] telent opened pull request #35248: monit: cross-compile, and make openssl optional (master...cross-monit) https://git.io/vA0V9
<theNerd247>
quick question: if I have two seperate projects each with their own shell.nix is there a way to create a top level shell.nix that will put me in a nix shell as if I invoked both sub shell.nix files?
mkoenig has quit [Read error: Connection reset by peer]
ryanartecona has quit [Client Quit]
tertle||eltret has joined #nixos
<dtz>
gchristensen: <3 good to hear, and no worries I appreciate your comment! I'm surprised my quick draft got this far without needing to be refined hehe. You're asking the right questions, and someone needs to :).
aborsu has joined #nixos
<gchristensen>
<3
<gchristensen>
what timezone are you in?
mkoenig has joined #nixos
<dtz>
I'm in "Central" (Illinois, USA), I'm at UIUC :)
<gchristensen>
oh cool
<gchristensen>
I'm afraid of combinatorially exploding how many builds we do
sirkha has quit [Remote host closed the connection]
sirkha has joined #nixos
<MichaelRaskin>
So, now we will see if RFC process can actually work…
<gchristensen>
it _would_ be nice if it wasn't a process where ideas go to die :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vA06L
<NixOS_GitHub>
nixpkgs/master 74029a2 Johannes Frankenau: bcal: init at 1.7
<MichaelRaskin>
dtz: look at our parallel building settings… I am actually interested if the decision making in Nix* has progressed since then.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dywedir opened pull request #35255: joe: 4.4 -> 4.6 (master...joe) https://git.io/vA06P
NixOS_GitHub has left #nixos [#nixos]
dbmikus has quit [Ping timeout: 248 seconds]
jensens has quit [Ping timeout: 265 seconds]
<theNerd247>
quick question: if I have two seperate projects each with their own shell.nix is there a way to create a top level shell.nix that will put me in a nix shell as if I invoked both sub shell.nix files?
coot has joined #nixos
<infinisil>
theNerd247: Well a lazy solution would be to just call nix-shell again in shellHook
<infinisil>
theNerd247: I'm not sure if it makes sense to even want that though, a nix-shell is there to build a single derivation, and it sets buildPhase and similar variables to the derivations correct phases
<MichaelRaskin>
It depends, if it is -p and not -A then it should be fine
<infinisil>
MichaelRaskin: yeah, but a shell.nix is usually used for -A like behavior
<theNerd247>
MichaelRaskin: could you explain a bit? I'm new to nix
<sphalerite_>
infinisil: idk, I've found myself wanting it multiple times
ryanartecona has joined #nixos
<infinisil>
theNerd247: You can however do something like propagate each buildInput from both shell.nix's to a top-level shell.nix
fendor has joined #nixos
fendor has quit [Remote host closed the connection]
<infinisil>
wait, maybe not
<theNerd247>
infinsil I tried that using `let a = (import ...).a.buildInputs; b = (import ...).b.buildInputs; in mkDerivation { ... buildInputs = a ++ b}` however the "a" project is a haskell project and for some reason I can't get the dependencies to load when creating the shell
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vA0io
<NixOS_GitHub>
nixpkgs/master 46485d0 Franz Pletz: openra: 20171014 -> 20180218
NixOS_GitHub has left #nixos [#nixos]
<infinisil>
Was thinking of something like `buildEnv { paths = (import folderA/shell.nix).buildInputs ++ (import folderB/shell.nix).buildInputs; ... }` but that won't work because they're derivation
<infinisil>
s
<theNerd247>
I even tried using "pkgs.haskellPackage.ghcWithPackages"
<MichaelRaskin>
It actually does for some shell.nix
<infinisil>
MichaelRaskin: it does?
<infinisil>
I guess you can do it by using passthru in each shell.nix
<MichaelRaskin>
I think that is good enough for practical purposes
<dtz>
gchristensen: your concerns about increasing build pressure (exponentially?) are valid
<theNerd247>
MichaelRaskin: is that to create the buildInputs of a top-level derivation or the paths for the buildEnv?
<gchristensen>
this isn't exponential no :)
kelleyNif has quit [Quit: Leaving.]
<MichaelRaskin>
theNerd247: It is a list of paths, whether to use it for buildEnv or nix-shell is your choice
<infinisil>
MichaelRaskin: ohh i didn't know buildInputs gets passed through automatically
<MichaelRaskin>
It is not a passthrough
<MichaelRaskin>
It is derivation argument
<MichaelRaskin>
For example, nativeBuildInputs are not separate there
kelleyNif has joined #nixos
mkoenig has quit [Ping timeout: 240 seconds]
<MichaelRaskin>
These are not from mkDerivation, these are from builtins.derivation
<infinisil>
oh i see
<infinisil>
didn't know builtins.derivation had buildInputs!
<MichaelRaskin>
Well, stdenv setup refers to it as an environment variable
mkoenig has joined #nixos
<MichaelRaskin>
You can feed builtins.derivation basically whatever and it will create one more environment variable
<gchristensen>
dtz: but it _does_ have a real impact upon hardware requirements, potentially doubling, which doesn't have to be exponential to be expensive :)
<theNerd247>
so in use with nix-shell would I need to create a new derivation?
<MichaelRaskin>
gchristensen: doubling implies that we start building everything with musl without dropping anything with glibc
<MichaelRaskin>
Of course, there is also just a growth of the package set
<infinisil>
MichaelRaskin: why did you map over outPath there?
<MichaelRaskin>
infinisil: you could try without that and hope it would work…
<MichaelRaskin>
I just wanted the package paths, not the derivation paths (~ build instruction paths)
<dtz>
gchristensen: yeah, while this is only (at most!) "double", we do have an exponential-ish problem of sorts as we consider an ever-growing number of platforms, cross-configurations, more packages on top xD
<infinisil>
theNerd247: I think `buildEnv { name = "combined"; paths = (import A/shell.nix).buildInputs ++ (import B/shell.nix).buildInputs; }` should work
<infinisil>
But I'll test what MichaelRaskin said myself now
<dtz>
it wouldn't be much but I'd be willing and perhaps my research grant could help fund builders -- BUT I don't think they'd be willing to.. send someone a machine, lol. Is there a good story for "contributing" build power in a way that the results can be trusted enough to be useful? Just a thought...
stephenj_ has joined #nixos
<infinisil>
MichaelRaskin: Ah i see where you were going with the map now
stephenj_ has quit [Remote host closed the connection]
stephenjudkins has quit [Ping timeout: 268 seconds]
<ottidmes>
What is the NixOS equivalent to gcc and gcc-libs of Arch Linux? In the particular Nix package I am basing mine on, it uses stdenv.cc.cc, does that contain both (gcc and gcc-libs)?
<infinisil>
It does not work haha
kelleyNif has quit [Quit: Leaving.]
Guest79952 has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
<infinisil>
theNerd247: yea with buildInputs that's better, but in that case you don't need the map
<theNerd247>
infinisil: I've made the changes however the breeze-login/shell.nix is a haskell project. I can build the shell however cabal complains about not finding ghc
<infinisil>
I'm out of ideaa
chris| has joined #nixos
<theNerd247>
hmmm...
mkoenig has quit [Ping timeout: 256 seconds]
mkoenig has joined #nixos
<LnL>
Havvy: looks like the darwin.apple_sdk.frameworks.CoreServices framework is missing
Myrl-saki has joined #nixos
<Havvy>
So add that to my build inputs and I'll be good to go?
<LnL>
yeah, unless there's more needed
Itkovian has quit [Ping timeout: 256 seconds]
<LnL>
you can ping me or the darwin-maintainers group if you want help
<theNerd247>
infinisil: for future notice it does work with an Elm dependency I have. I'm just not sure why haskell dependencies aren't being propigated