<ottidmes>
Guest21612: That would be nice, I have packaged some things in the past that would randomly change something in the source files, making the hash invalid, but since I did not want to host my own mirrors and they weren't that important I just gave up on them
dan_b_ has joined #nixos
dan_b has quit [Read error: Connection reset by peer]
<rawtaz>
johnhamelink: also check the user michalrus on github, he has a bunch of nice nixos stuff in his dotfiles repo
* rawtaz
&
slyfox has joined #nixos
<__monty__>
Guest21612: Someone asked about ipfs yesterday, it was experimented with but it can't handle the write traffic, so unless that changes I think it's unlikely.
siva has joined #nixos
muzzy has joined #nixos
<siva>
Hello all, nixos newbie here. Installed nixos 17.09 in my laptop and it uses the stable channel. However, I'd like to install a few packages from unstable as a user (not system wide). I tried to search online and found a few answers, but it's not clear as a newbie what to do. Any suggestions and/or pointers to read on my own?
dan_b_ has quit [Read error: Connection reset by peer]
<__monty__>
siva: Do realize that the entire closure for the derivation will be installed so a small program can turn into a big install.
<siva>
electrocat: Thanks. Wouldn't that pollute the other packages too? I mean, wouldn't that 'upgrade' all other packages too?
<__monty__>
siva: No, you need to specify the channel when installing packages.
boomshroom has joined #nixos
<boomshroom>
Joining from school.
<symphorien>
siva: iirc there is an extended description on the faq page on nixos.wiki
<__monty__>
You're still in school and already using nixos? I envy you, wish I could've found the path to enlightenment back then.
<boomshroom>
I managed to get the tarballs that were clever showed me, but they seem to generate source tarballs.
<siva>
__monty__: Ok. Just so I'm getting this right: As a user there's no harm in adding unstable to the list of channels as nothing changes yet. And, when I want to install (I presume through nix-env -i) I'd have to specify a channel (in my case unstable) and existing packages won't get affected. Am I getting this right?
<boomshroom>
__monty__: It's more accurate to say I'm in 3rd year university. (College for you 'mericans)
dan_b has joined #nixos
<__monty__>
siva: Yes, you'd do something like nix-env -iA unstable.attributename
<boomshroom>
__monty__: also I've been visiting this channel for about as long as I've been using nixos, which I think has been since last summer.
<__monty__>
boomshroom: Ah, still you've got a full year's headstart on functional principles.
<siva>
__monty__ & symphorien: Thanks for your help. I didn't know about nixos.wiki (I was just following nixos.org). I'll check that out!
aramiscd has quit [Quit: WeeChat 2.0.1]
Fare has quit [Ping timeout: 240 seconds]
<boomshroom>
__monty__: I should mention that I think of myself less as a computer science student learning valuable skills, and more as a kid with a god complex and a keyboard.
<cstrahan>
Has anyone had this experience? I've set a boolean option in configuration.nix to something other than the default, and see that the value isn't sticking
<cstrahan>
Specifically, this isn't working: virtualization.virtualbox.host.enableHardening = false;
<boomshroom>
People keep talking about "money" and "jobs". All I want to do is make the impossible possible and bend the world to my will, starting with my own computer.
<cstrahan>
If I put a builtins.trace in the respective module in the nixpkgs source tree, I can see it print "true".
<cstrahan>
However, I can disable vbox host entirely like so (and builtins.trace appropriately reflects this): virtualisation.virtualbox.host.enable = true;
takeda has joined #nixos
<cstrahan>
err, I mean, make that last line [...] = false;
<cstrahan>
^ that works.
<boomshroom>
Back to my real question. I want a simple, static, build of nix that can run on arm7l so I can transfer it and bootstrap the rest from there.
sonarpulse has quit [Ping timeout: 260 seconds]
<cstrahan>
I'm feel like I'm starting to lose my mind. Everything in my config seems to be working fine, but the nix module system seems to be convinced somehow that virtualization.virtualbox.host.enableHardening is set to true, when it absolutely, certainly is not.
<johnhamelink>
rawtaz: will do!
hakujin has joined #nixos
jadsh has joined #nixos
spear2 has joined #nixos
erasmas has quit [Quit: leaving]
hakujin has quit [Ping timeout: 240 seconds]
<jadsh>
How do I list all the gnome3-related packages I have installed on my NixOS system? I'm trying to slim down gnome via environment.gnome3.excludePackages
<boomshroom>
I can use nix-shell to get a build environment for a package, right? If so, why is autoreconf and automake not included?
spietz has quit [Ping timeout: 245 seconds]
scribbler has quit [Ping timeout: 256 seconds]
Fare has joined #nixos
<elvishjerricco>
boomshroom: You can add them. They're just not there by default.
<boomshroom>
I managed to get an environment by changing a previous nix-build command to use nix-shell. A simple nix-shell wouldn't have worked anyways because I'm cross-compiling.
<cstrahan>
Wow. So I can do this with zero complaints from the module system: virtualization.virtualbox.host.enableHardening = "this aint a boolean, now is it?";
<cstrahan>
But this immediately fails: virtualization.virtualbox.host.enable = "nor is this ....";
scribbler has joined #nixos
<cstrahan>
(because, you know, type = types.bool)
xeji has quit [Quit: WeeChat 2.0]
dbe has quit [Ping timeout: 252 seconds]
<ryantm>
cstrahan: How does it fail with enable?
<cstrahan>
ryantm: error: The option value `virtualisation.virtualbox.host.enable' in `/home/cstrahan/src/nixos-config/configuration.nix' is not of type `boolean'.
<cstrahan>
... and yet I don't get that sort of error when I do something equally ridiculous for enableHardening
<cstrahan>
Also surprising (but maybe there's a reasonable explanation???): if I put a builtins.trace like so: config = mkIf (builtins.trace cfg.enable cfg.enable) [.....]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg closed pull request #36324: okular: add support for CHM, ZIP and markdown files (master...f/okular) https://git.io/vAHji
NixOS_GitHub has left #nixos [#nixos]
scribbler has quit [Ping timeout: 260 seconds]
<cstrahan>
I see these two lines in the stdout when doing a nixos-rebuild build:
<cstrahan>
trace: true
<cstrahan>
trace: false
<ryantm>
Maybe this is a sign enableHardening is not being used.
dan_b has quit [Ping timeout: 240 seconds]
<boomshroom>
Does nix statically link by default when cross-compiling from source?
<gchristensen>
no
<boomshroom>
gchristensen: I should be able to add -static to LD_FLAGS right?
<gchristensen>
no idea
<ryantm>
boomshroom: I don't think it's that simple, because you'd need to do that for all the dependencies, etc.
<boomshroom>
ryantm: The idea is that I'll be able to build a bootstrap nix on one machine, transfer it to another which doesn't have a compiler installed, and then copy a closure for a full install afterwords to bootstrap.
<ryantm>
boomshroom: my coworker made his own tiny version of something like nixpkgs to do cross-platform static linking https://github.com/pololu/nixcrpkgs
jbetz has left #nixos [#nixos]
<boomshroom>
ryantm: That actually looks very promissing.
<ryantm>
boomshroom: It's not clear what you mean by "nix". Are you trying to compile some particular program?
<boomshroom>
I'm trying to cross compile Nix itself so I can transfer a build of nix that was build with nix.
<boomshroom>
I'm trying to cross compile Nix itself so I can transfer a build of Nix that was built with Nix.
digitus has quit [Quit: digitus]
<ryantm>
Ah, okay. Yeah, maybe nixcrpkgs could help you, if it supports all the tools you need to build the nix compiler.
<boomshroom>
Nix doesn't have any prebuilt arm builds, so I have to make one myself. I have one built with Nix, but it's dynamically linked to libraries in the local store.
scribbler has quit [Ping timeout: 260 seconds]
<elvishjerricco>
There has been significant work on cross compiling with nixpkgs proper. They do have aarch64 builds now, boomshroom. No idea about rpi though
<boomshroom>
Actually, this is for my Nexus 4 running SailfishOS. :P
<elvishjerricco>
Ah. Well... Android cross compilation was recently added to nixpkgs, but I guess that doens't help you :P
<boomshroom>
I am interested on the possibility of running Nix on the Nintendo Switch once the bootrom exploit gets released.
<elvishjerricco>
Is SailfishOS compatible with aarch64-*-linux-gnu?
<boomshroom>
elvishjerricco: It comes with bash that targets armv7l-unknown-linux-gnueabi
<boomshroom>
elvishjerricco: In other words, it's a full linux distro, not a custom OS on top of the linux kernel like Android.
rardiol1 has left #nixos [#nixos]
<elvishjerricco>
Ah. I'm not sure if nixpkgs supports that one
muzzy has quit [Read error: Connection reset by peer]
<boomshroom>
I know it has arm7l support with hard floats. It probably won't take much effort to get it to build with soft floats if nessisary.
Fare has quit [Ping timeout: 256 seconds]
<elvishjerricco>
boomshroom: It'd be sweet if you got that working and submitted a PR :) I'd kill to be able to run an open source phone and cross compile to it with Nix
Tobba has joined #nixos
boomshroom_ has joined #nixos
<boomshroom_>
My laptop rebooted for no aparent reason
<boomshroom>
Simply adding -static did not work. The libraries aren't available statically unless I can override the LDFLAGS for nix and all transitive dependencies.
<boomshroom>
It's also silly because I can't run it on the host because it's the wrong cpu nor on the target because it links into the store. Unless... >:D
<jadsh>
Hey guys, I'm trying to do `services.gnome3.evolution-data-server.enable = mkForce false;` (as per https://github.com/NixOS/nixpkgs/issues/10241) but `nixos-rebuild switch` errors with "undefined variable 'mkForce'". Without mkForce, it errors saying there's a conflicting definition in gnome3.nix and my configuration.nix
<ryantm>
cstrahan: Darn, I saw you had a discrepancy between z and s and I thought it was just you typing.
<cstrahan>
Hehe, it's alright.
<ryantm>
jadsh: Do you have lib available in your current context? try lib.mkForce
simukis has quit [Ping timeout: 256 seconds]
<cstrahan>
I'm kind of surprised we spell it "virtualisation" -- that seems like a wildly unpopular way to spell it, if not flat out wrong.
<bitonic>
i'm getting `warning: substituter 'ssh://XYZ' does not have a valid signature for path '/nix/store/ASD' when specifying a substituter using `--option substituter ssh://XYZ`. i don't think this happened in nix < 2. does anybody have pointers?
<ottidmes>
bitonic: I have some pointers, but I have to say I have not gotten it to work yet, fixed that issue though, but got others in return (probably because I am still on stable 17.09)
<bitonic>
ottidmes: alternatively, is there an easy way to downgrade to nix?
<ottidmes>
bitonic: You will have to set secret-key-files and trusted-public-keys and generate them via nix-store (see manpage of nix-store or the Nix manual on secret-key-files)
<bitonic>
mhm
<bitonic>
i'd probably be better off just installing 1.11.something for now, but i'm not sure what the best way to do that is
<ottidmes>
bitonic: And then you have to sign the things already in your store with: nix sign-paths --all --key-file <secret-key-file>
<djahandarie>
In this thing I'm trying to package, it does cdll.LoadLibrary("libjack.so.0"), and that doesn't seem to work by default
<ottidmes>
bitonic: Are you on unstable?
<djahandarie>
I guess I might need to wrapProgram and fix some environment variable...?
<ottidmes>
bitonic: https://nixos.org/releases/nix/nix-1.11.16/ can be found on the download page, but then you still have to do the steps taken by the install script, not sure how to get the old version of the install script
<bitonic>
ottidmes: yeah i'm trying to do it manually now
<djahandarie>
This seemed to work, but is this actually the right way to do this? wrapProgram $f --prefix LD_LIBRARY_PATH ":" "${libjack2}/lib"
<ottidmes>
djahandarie: I think patchelf is preferred over wrapProgram, but I could be talking nonsense, not my area of expertise
<djahandarie>
Hmm, in this case it's a python script, so I'm not sure how I'd patchelf it
<ottidmes>
djahandarie: For example, from one of my packages: patchelf --set-interpreter "$(cat ${stdenv.cc}/nix-support/dynamic-linker)" --set-rpath ${libPath} $elf
<ottidmes>
djahandarie: Hmm, than wrapProgram is probably the best you can do
<djahandarie>
I guess the alternative would be to patch the python to do something more supported, though I'm not sure there is anything more supported than LoadLibrary
<djahandarie>
But in good news, I think I've finally succeeded in packaging cadence (claudia, etc), and its dependency ladish
<djahandarie>
If there's any useful docs someone could point me to on the procedure to get something into nixpkgs, that'd be lovely
<djahandarie>
(Especially if there's a procedure which causes someone more experience to review my code)
<djahandarie>
These are actually C++ programs which have some python in them, which is sort of what has been making this annoying, since I don't think I can really use any of the python derivation makers
<ottidmes>
djahandarie: You could always first paste it here (via a paste website), but my experience is that people will just give you feedback once you make your pull request
<djahandarie>
Alright. So procedure is to make the change on master and create a pull request?
jadsh has quit [Quit: Leaving]
<genesis>
djahandarie : you can prefix your pr with a [wip] to show it's not ready to merge but ask for reviewing
<genesis>
and be patient :D
hellrazor has joined #nixos
hellrazo1 has quit [Ping timeout: 260 seconds]
Rusty1_ has joined #nixos
pkill9 has quit [Ping timeout: 260 seconds]
<ryantm>
gchristensen: Does OfBorg figure out how many packages will change from a given commit by running the command at https://github.com/NixOS/ofborg#running-meta-checks-locally on master and the changed branch and comparing how many lines have changed?
rogue_koder has joined #nixos
boomshroom has joined #nixos
<boomshroom>
This is almost certainly not the recomended way, but I packaged nix and its transitive dependencies, transfered them over and unpacked them into root. Attempting to run it fails when trying to load libnghttp2.so.14.
<boomshroom>
clever: tar -cf pkgs.tar $(nix-store -qR $PKG)
<clever>
boomshroom: ah, you wanted `nix-store -qR` or the `make-system-tarball` previously mentioned
<clever>
make-system-tarball includes a "backup" of the db.sqlite you can restore, because your nix doesnt believe itself to be a valid store path
<clever>
nix will try to delete itself pretty quickly if you do anything like a GC
<boomshroom>
clever: I figured static linking would have been simpler, but simply throwing all it's dependencies was easier than I thought I would be.
<clever>
yeah, thats the magic of nix
<clever>
-qR just automagically knows what it depends on (if its written right), and just works
<clever>
then you have dbus that crashes the entire program if /etc/machine-id is missing, lol
d4g has joined #nixos
<boomshroom>
Interestingly it managed to create its own db.sqlite. I am getting `error: creating directory '/nix/var/nix/channel-cache': Permission denied` when trying to set the channel.
<boomshroom>
I already made some builder users even though it's a single user machine. Should I undo that and just chown?
<clever>
you only need build users if nix is being ran as root
d4g_ has quit [Ping timeout: 252 seconds]
<clever>
if it never gets root, and it has +w to the store, it works without build users
<boomshroom>
I'm generally not going to run nix as root.
<boomshroom>
The directory is currently owned by root, but I can chown it.
<clever>
then you can just omit build users and give the primary user full ownership
<clever>
thats how single-user nix works on most linux distros
<boomshroom>
How do I remove the build users?
<clever>
how did you create them?
<boomshroom>
I copied the command from the manual
<clever>
adduser or useradd?
<clever>
the oposite of useradd is userdel
<boomshroom>
Done.
<boomshroom>
should the whole store be chowned, or just /nix/var?
CMCDragonkai has joined #nixos
<clever>
whole thing
jtojnar has quit [Read error: Connection reset by peer]
<clever>
otherwise it will fail to create things in /nix/store/
etu has quit [Read error: Connection reset by peer]
timokau_ has quit [Ping timeout: 255 seconds]
etu has joined #nixos
<boomshroom>
Setting remote builderscan have them cross-compile right? I can tell my phone that my desktop (an x86_64 machine) can make arm7l executables?
<boomshroom>
packages rather?
<clever>
boomshroom: if its a proper cross-compiler, then you need to pass the cross-compile flags to nixpkgs when you import <nixpkgs> { ... };
<clever>
boomshroom: then nix will know that the compiler needs x86, and will force you to setup build slaves
<clever>
and the device will NEVER be able to compile its own files, even a simple "echo foo > $out"
<clever>
because it wants to use the x86 bash for echo
<boomshroom>
More imediate problem: nix-channel --update >> "unable to download 'https://nixos.org/channels/nixpkgs-unstable': Peer certificate cannot be authenticated with given CA certificates (60)"
<clever>
[clever@amd-nixos:~/Downloads]$ ls /etc/ssl/certs/
<clever>
ca-bundle.crt ca-certificates.crt
<clever>
boomshroom: these 2 files need to exist, just steal them from a nixos machine for the moment
<boomshroom>
Got ca-bundle.crt and ca-bundle.trust.crt. No ca-certificates.crt.
<clever>
just copy whatever you got and see what happens
lukec has joined #nixos
<boomshroom>
Note to self, if something is highlighted, check what kind of file it is before sending it. It might be a symlink.
<lukec>
I'm using nix 2.0 on darwin and nix-env is ignoring my substituters line in my /etc/nix/nix.conf. Any ideas?
<boomshroom>
Or worse, a symlink to a symlink.
Mic92 has quit [Ping timeout: 240 seconds]
<lukec>
I know it's reading the file because if I put garbage in it, nix-env complains.
<clever>
boomshroom: run realpath on it to resolve every level
mizu_no__ has quit [Quit: Computer has gone to sleep.]
<boomshroom>
Now it's complaining about `error: path '/nix/store/r7zcxm9df2yi3mvl30q3818safrqbapv-nix-2.0pre5968_a6c0b773-arm-unknown-linux-gnueabihf' does not exist and cannot be created` despite the fact that nix-channel itself is running in that directory.
<clever>
boomshroom: you didnt load the db.sqlite backup
<clever>
boomshroom: so nothing you copied over with tar is "valid"
<boomshroom>
I'm far from surprised. It was incredibly hacky.
<clever>
object points to the nix 2.0 derivation, and symlink is just a path of your choosing
<clever>
it will generate a tar file with symlink (in my case, /kexec_nixos) pointing to object, and everything object depends on
mbrgm has quit [Ping timeout: 256 seconds]
<clever>
it will also generate a nix-path-registration file in the root of the tar
<clever>
run `nix-store --load-db < nix-path-registration` to restore the db backup
<clever>
which makes every path in that tar valid
<boomshroom>
What I was surprised about is the fact that it generated a db.sqlite
<mduggie>
i'm writing a PR that bumps a version of a package and some text in a nixos module that references that version number (it used to be hard coded to an even older verion, now I'm accessing `pkgs.znc.version). should this be in 1 PR or 2?
<clever>
it will auto-generate a db.sqlite any time its missing
<boomshroom>
The command I was using to build nix was `nix-build '<nixpkgs>' --arg crossSystem '(import <nixpkgs> {}).lib.systems.examples.armv7l-hf-multiplatform' -A nixUnstable` How would I adapt that to use make-system-tarball?
<clever>
boomshroom: create a nix file that does
Acou_Bass has quit [Ping timeout: 240 seconds]
<boomshroom>
The problem is that that command came from a website that assumed use of --arg which translates non-trivially to a nix file.
<clever>
let nix = (import <nixpkgs> { crossSystem = (import <nixpkgs> {}).lib.systems.examples.armv7l-hf-multiplatform; }).nixUnstable in (import <nixpkgs> {}).callPackage <nixpkgs/nixos/lib/make-system-tarball.nix> {
<boomshroom>
I see nixpkgs being imported three different times.
<clever>
2 of those can be merged
<clever>
you need one nixpkgs with crossSystem set, for the cross compile
<boomshroom>
So --arg is an argument to nixpkgs, not the package itself.
<clever>
its a bit more complex then that, one min
<clever>
then you need a 2nd nixpkgs for the value of crossSystem (which you already had)
<clever>
and then you need a pkgs.callPackage for make-tar, where you can reuse the 2nd nixpkgs
<clever>
i didnt notice the 3rd until i got thar far, and didnt feel like optimizing it in a single-line edit box
<clever>
when you give a filename to nix-build, it will import that filename
<clever>
nix-build '<nixpkgs>' searches the search path, nix-build alone tries default.nix in the current dir, and nix-build whatever.nix opens that directly
<clever>
if that file contains a function, it is called with all --arg and --argstr
<clever>
if you supplied -A a.b.c, it will index into the .a attribute
<clever>
if that attr contains a function, it is called with all --arg and --argstr
<clever>
it will then index into the .b attribute
<clever>
if that attr contains a function, it is called with all --arg and --argstr
<clever>
repeat until you run out of -A parts
<boomshroom>
I can see why people think nix isn't very user friendly.
loonquawl has joined #nixos
<boomshroom>
Then again I'm far from an average user.
<clever>
i didnt even know it recursed like that until i read the source
<clever>
and i'm a pretty advanced user
<clever>
i assumed it only did the first step, auto-calling the <nixpkgs> function
<boomshroom>
Did I mention that I'm still not entirely sure wether or not the Nexus 4 supports hard floats?
<clever>
i would expect it to have failed by now if it didnt
<clever>
thoughtpolice: this uses the ./nix directory for /nix, exposes /home directly, and maps the host /etc to /host-etc, along with passing 3 env vars thru and wiping the rest
<clever>
and i'm calling it directly, from a helper script, after everything has been unpacked to ~/nix-install
mutantmell has joined #nixos
<thoughtpolice>
I have a few of the same additions. There's roughly 4 different variations of this idea now.
<NixOS_GitHub>
[nix] redfish64 opened pull request #1959: Modified MakeBinOp to no longer produce its name using concatenation … (master...master) https://git.io/vAxHL
NixOS_GitHub has left #nixos [#nixos]
<thoughtpolice>
2.0 --indirect, Luca's original version, this version, and mine, it would seem. (Mine is not published publicly yet)
<clever>
this region, modifies the arx package nix-bundle generates, so that the installer script can access your $HOME
<boomshroom>
tar: This does not look like a tar archive
<boomshroom>
xz is installed.
<clever>
boomshroom: you man need to manualy run unxz on it, some tar's are not smart enough to figure it out
<mutantmell>
Hello, I'm new to NixOS and am trying attempting to configure a new server to run a program (weechat) as a service. The program is in nixpkgs, but as an application rather than a server. I've been looking for ways to run it and configure it, but most everything I've found is aimed at modules. What resources should I look at to help me run this as a service?
Synthetica has quit [Quit: Connection closed for inactivity]
<clever>
mutantmell: what arguments is weechat ran with when acting as a server?
<mutantmell>
it's simply invoked and ran, but I need to pass configuration into a file that it looks for
<clever>
mutantmell: ah, then my snmp module would be a perfect example
<clever>
lines 11-14 is some SNMP config, and line 21 runs snmpd against that file
Lisanna has joined #nixos
<mutantmell>
ok, cool
<clever>
just put that file into /etc/nixos/ and add imports = [ ./snmpd.nix ]; to your configuration.nix
<mutantmell>
So, the basic approach is installing it as an application, then created a systemd daemon?
<clever>
no need to install the application
<clever>
line 21 automatically downloads it
<mutantmell>
oh ok
mizu_no_oto has joined #nixos
<clever>
though, if you want to be able to run it in a terminal, you will need to install it, either seperately, or by adding environment.systemPackages = [ pkgs.weechat ]; between lines 25&26 of my example
cstrahan has quit [Quit: Connection closed for inactivity]
<boomshroom>
I've imported the database, but trying to update the channel informs me that it's trying to use an x86_64 bash.
<mutantmell>
I don't particularly care about setting it up as a terminal
<clever>
boomshroom: can you paste the error?
<Lisanna>
the key uploading part of nixops is really slow... is there any way to speed it up? It reuploads each key every single deploy, which is probably unnecessary :/
<mutantmell>
main question going through my head right now is if I can pass a config file to weechat on the cmd line, or if I need to set it up ahead of time in the user's home dir
<boomshroom>
while setting up the build environment: executing '/nix/store/zqh3l3lyw32q1ayb15bnvg9f24j5v2p0-bash-4.4-p12/bin/bash': Exec format error
<boomshroom>
builder for '/nix/store/dpgxvb5zkk9mp4qhx6gdhkiszi733xl4-nixpkgs-18.03pre130569.7a04c2ca296.drv' failed with exit code 1
<boomshroom>
error: build of '/nix/store/dpgxvb5zkk9mp4qhx6gdhkiszi733xl4-nixpkgs-18.03pre130569.7a04c2ca296.drv' failed
<boomshroom>
error: program '/nix/store/r7zcxm9df2yi3mvl30q3818safrqbapv-nix-2.0pre5968_a6c0b773-arm-unknown-linux-gnueabihf/bin/nix-env' failed with exit code 100
<mutantmell>
In that case I believe I can set up a user, move config over to the right dotfile, then start the daemon
<boomshroom>
I should probably head home soon.
<boomshroom>
Can you get back to me when I log back in?
<clever>
boomshroom: i'm guessing that the config.nix inside the nix package has some wrong paths in it
<clever>
boomshroom: i'm going to be heading to bed soon
<boomshroom>
In that case, good night!
<clever>
boomshroom: search for the config.nix file inside nix, and check if the paths in it are arm executables
boomshroom has left #nixos [#nixos]
<clever>
mutantmell: its better to pass it on the cmd line
<clever>
nix works better when you do it that way
<mutantmell>
I'm not sure I have the option to, is my point :/
<clever>
mutantmell: ive also just recently started using weechat for a plugin, and am wondering how to get its logging to work right
<mutantmell>
that's a pretty cool use of foldl', thanks
<clever>
16 mkUser = name: {
<clever>
17 "${name}" = {
plakband has joined #nixos
<clever>
i'll post the full file in a few minutes, but thats an example of what the fn has to return
<clever>
i could have also used map over configs, but its simpler to just merge the 2 operations
<clever>
!tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
schoppenhauer has quit [Ping timeout: 240 seconds]
<clever>
Mar 09 04:09:51 router weechat-example-pre-start[20432]: /nix/store/s1wkdni2rn51jz7chh0r5fr0f1viki50-unit-script/bin/weechat-example-pre-start: line 4: unexpected EOF while looking for matching `]'
<jeaye>
I am interested in setting up a weechat jail on my nixos vps though, when time allows.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jtojnar pushed 1 new commit to master: https://git.io/vAx7V
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 0dccb85 Jan Tojnar: phpPackages.php-cs-fixer: 2.10.3 → 2.10.4
<clever>
yet it does exist
<clever>
ah, createHome didnt give it permission to the parent of home
<jeaye>
I've seen that as well.
<jeaye>
Seems borked.
<clever>
Mar 09 04:14:00 router systemd[21983]: weechat-example2.service: Failed at step CHDIR spawning /nix/store/0jpaib26q5qgshva3v3pzxnlm5n6r57b-unit-script/bin/weechat-example2-pre-start: No such file or directory
<clever>
i think systemd tried to run the service before the user/home where created
<clever>
oh wait no
<clever>
Mar 09 04:16:01 router weechat[22621]: Error opening terminal: unknown.
<jtojnar>
hmm "warning: inexact rename detection was skipped due to too many files."
<clever>
yeah, i think it demands a tty
<clever>
jtojnar: did you try to `mv *`?
<clever>
(which overwrites the last file with the 2nd last, and deletes all overs)
<jtojnar>
clever: that was just random git warning I got when rebasing an old branch
<clever>
ah,
<jtojnar>
should not "mv *" error with something like last is not a directory?
linuxdaemon has quit [Ping timeout: 240 seconds]
<clever>
jtojnar: it will assume your trying to rename file1 to file2, like `mv file1 file2`
<clever>
except, its dumb, when you give it 3 files
<clever>
`mv file1 file2 file3` renames 1->3, then 2->3
<clever>
if directory doesnt exist, it renames file1->directory, then renames file2->directory
<clever>
thats why i always do `mv -vi file1 file2 directory/`
<clever>
the -i asks before overwriting, the -v tells me exactly what it just did, and the trailing / causes it to fail, it cant rename a file to directory/
<clever>
mutantmell: dang, tmux also wants a tty!
<Lisanna>
ugh... why does nix-shell set TMPDIR to not /tmp? It's winding up being set to /run/user/<myuid>, which definitely can't handle the file sizes I need it to ):
<clever>
Lisanna: i think thats systemd, what is it set to outside nix-shell?
<clever>
mutantmell: it also includes the slack plugin, with the patches i previously mentioned, so it needs a different token
<clever>
mutantmell: /slack register gives help on how to find it
<mutantmell>
My plan is to only have a single instance running, but having some flexibility is nice
<mutantmell>
I think wee-slack handles connecting to multiple slacks?
<mutantmell>
I see you ended up running it in a tmux session
<clever>
yeah, weechat requires a tty to even start
<mutantmell>
ooh
<mutantmell>
lol
<clever>
and you also gain the ability to control it
<mutantmell>
ah
<mutantmell>
that will be helpful actually, since I will need to manually configure some things on first run
<clever>
same
<mutantmell>
(at least on the VM while I stage changes for the server)
<clever>
[root@router:~]# ls -ltrh /var/lib/weechat-example/.weechat/
[0x4A6F]1 has joined #nixos
<clever>
all of the state lands in the home directory, which is over here
<clever>
and i just realized some absurdity, i was connecting to tmux to set it up, while inside screen, lol
<mutantmell>
XD
<Lisanna>
Yeah, I don't think creating temporary directories in /run is a great idea, since it's a tmpfs, so anything that a normal process would expect to be able to do in a temporary directory (like create big files) will fail when run in a nix-shell or a nix-build. Apparently from what I've heard, this isn't something that other distros do either.
<clever>
Lisanna: some people try to mount a tmpfs to /tmp!!
<Lisanna>
right, but I think those are people who Know What They're Doing™ and are willing and capable of dealing with the potential fallout of trying to run a process which needs to DL a 50GB file to a temporary directory
<Lisanna>
I don't think it should be the default behavior
<clever>
mutantmell: ehgads!, weechat is using up a gig of ram already, and is forking like crazy
[0x4A6F] has quit [Ping timeout: 260 seconds]
[0x4A6F]1 is now known as [0x4A6F]
<mutantmell>
O.o
<clever>
1.2gig
<mutantmell>
uh
<mutantmell>
it's just idle?
<clever>
yes
<clever>
note, this slack has 16,000 users, and i had to adjust a timeout to even connect, because the very first API call returns a 27mb blob of JSON
<mutantmell>
oh lol
<mutantmell>
I wish you luck XD
<clever>
on my desktop, its idling at 500mb, and isnt forking
<clever>
on the server, its up to 1.6gig
<clever>
1.9 vs 2.0
<mutantmell>
1.9 on your desktop?
<clever>
1.9 on the server
<clever>
2.0 is behaving better
<clever>
[clever@amd-nixos:~/apps/slack-irc-gateway]$ nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion
<clever>
"18.03pre129076.831ef4756e3"
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
<mutantmell>
That's good
<clever>
thats the machine where it works fine
<clever>
adjusting my expression to force that version
<clever>
depending on your nix channel, you may not need this
<mutantmell>
how many weechat servers are you running right now? just the 1?
<boomshroom>
clever: What? I'm looking at the source code and it agrees with the error, so it's not entirely my problem this time.
<clever>
boomshroom: oops, meant to send that to mutantmell
[0x4A6F] has quit [Ping timeout: 240 seconds]
tomberek has quit [Ping timeout: 260 seconds]
<clever>
mutantmell: i'm thinking its not cleaning up self.reply_buffer[request_metadata.response_id] when requests fail
<lukec>
Found my problem from earlier re setting up alternate cache. Needed to restart nix-daemon for the settings to take effect.
loonquawl has quit [Quit: loonquawl]
<boomshroom>
If I'm going to have a non-arm system building binaries for my arm system, it would have to have different dependencies because they'd have different compilers. My understanding is that the "native" stdenv uses the systems native c-compiler, but my target system didn't come with a c compiler.
<clever>
boomshroom: there is no way for nix to get versions crossed like that
<clever>
boomshroom: so you can safely use any machine as the build slave, as long as the cpu can run the compiler
<boomshroom>
clever: How can I tell Nix that it shouldn't need a local stdenv? It's trying to use a local c compiler that doesn't exist (if I'm understanding stdenv/native correctly).
scribbler has quit [Quit: scribbler]
<clever>
boomshroom: always pass crossSystem to <nixpkgs> and it should always cross-compile on an x86 machine
<clever>
but it will still want to download the x86 compiler to the phone, then upload it to the build slave
<clever>
you may be better off building manually with nix-build on an external machine, running `nix copy`, and then `nix-store -i /nix/store/path`
<boomshroom>
clever: Probably. It would be nice if things Just Worked TM, but they never do.
<clever>
this is a problem that cross-compiling will always have
<clever>
nix believes the cross-built glibc is different from the native build glibc
<clever>
so you must either cross-compile everything, always
<clever>
or native-build random parts, including the entire gcc and glibc toolchain
Rusty1_ has quit [Quit: Konversation terminated!]
ebzzry_ has joined #nixos
ThatOtherGuy has quit [Ping timeout: 256 seconds]
ebzzry_ has quit [Ping timeout: 260 seconds]
<boomshroom>
This isn't a nixos problem, but my phone just refuses to accept my public key.
Hail_Spacecake has left #nixos [#nixos]
<boomshroom>
glibc = assert false; null;
<boomshroom>
Hmm... Something seems fishy about that line.
<boomshroom>
It's making sure it never requsts glibc, because it's lazy.
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
ThatOtherGuy has joined #nixos
MercurialAlchemi has joined #nixos
sigmundv_ has joined #nixos
<boomshroom>
I notice that nix eval doesn't just do a nix build without the output, since this derivation crashes on nix eval, but not nix build.
seanparsons has quit [Read error: Connection reset by peer]
<boomshroom>
Anyone think it should be safe to override my phones entire nixpkgs such that it claims it's actually an x86_64 system cross-compiling? :P
sigmundv_ has quit [Ping timeout: 252 seconds]
<mbrock>
what's a reasonable way to use Hydra from master? I feel like just overriding the src attribute on the Hydra package isn't reasonable, because it wouldn't work if the dependencies have changed
Lisanna has quit [Ping timeout: 256 seconds]
<mbrock>
ahh, I see there's a hydra-module.nix in the repository that I should be able to import
seanparsons has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master 5210122 Maxime Dénès: pythonPackages.pybtex: init at 0.21
<NixOS_GitHub>
nixpkgs/master 0450c59 Maxime Dénès: pythonPackages.latexcodec: init at 1.0.5
<NixOS_GitHub>
[nixpkgs] vbgl pushed 6 new commits to master: https://git.io/vAxAI
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master e8a5888 Maxime Dénès: pythonPackages.pybtex-docutils: init at 0.2.1
Lisanna has joined #nixos
Lisanna has quit [Client Quit]
<boomshroom>
Segmentation fault.
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 0ceb110 Vincent Laporte: ocamlPackages.sawja: 1.5.2 -> 1.5.3
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vAxAL
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
[0x4A6F] has joined #nixos
troydm has joined #nixos
davidlt has joined #nixos
<mbrock>
weird. even with the latest Hydra master, I get an error in the evaluator's "nix-prefetch-git", which seems to be a version that's over 2 years old
asuryawanshi has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
<mbrock>
oh, hydra has its own copy of that script in its repository
<NixOS_GitHub>
nixpkgs/master b402f4f Ryan Mulligan: jshon: 20140712 -> 20160111.2...
Guest38658 has quit [Ping timeout: 240 seconds]
<mbrock>
umm, so nix-push used to deal with .nar.xz and .narinfo files, but nix copy instead creates a whole ./nix/store, so I don't really understand how nix copy is a replacement for nix-push.....
rosa has quit [Quit: rosa]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vApe3
<mbrock>
ohh, I thought that nix-channel would add the channel's binary cache public key as trusted, but actually it doesn't
<mbrock>
and I was just deceived all this time because most of my users aren't on NixOS, and before Nix 2, only NixOS would require binary cache signatures at all...
tpanum has quit [Remote host closed the connection]
vidbina has quit [Ping timeout: 265 seconds]
<mbrock>
so that's why all my users are now having to wait for a bunch of compilations...
<mbrock>
I'll have to change our installation instructions to mention editing the nix.conf, I suppose...
<nico202>
I it possible to increase verbosity on nix-2? it saying "copying path /nix/... from https://cache...", I'd like to see the curl output like before
<vaibhavsagar>
nico202: you can still use nix-build
<vaibhavsagar>
or you can increase verbosity with -vvvv
<vaibhavsagar>
but I find the new verbose output is different from the old nix-build output
<vaibhavsagar>
or you could try the nix log command
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jfrankenau opened pull request #36621: rapid-photo-downloader: init at 0.9.9 (master...init-rapid-photo-downloader) https://git.io/vApTa
NixOS_GitHub has left #nixos [#nixos]
ckauhaus has joined #nixos
<nico202>
vaibhavsagar: thanks.. nix log package just reports "downloading".. I think vvv/vvvv is what I wanted
vidbina has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 0d98016 xeji: libreswan: fix build with gcc7
<NixOS_GitHub>
[nixpkgs] vcunat pushed 2 new commits to master: https://git.io/vApk4
<NixOS_GitHub>
nixpkgs/master ffe2c4b Vladimír Čunát: Merge #36555: libreswan: fix build with gcc7
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to release-18.03: https://git.io/vApkh
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/release-18.03 b8ec973 Vladimír Čunát: Merge #36555: libreswan: fix build with gcc7...
<NixOS_GitHub>
[nixpkgs] htr opened pull request #36631: nixnote2: fix icon and version (master...htr-nixnote2-improvements) https://git.io/vApcO
NixOS_GitHub has left #nixos [#nixos]
kitttn has joined #nixos
nico202 has quit [Quit: Leaving]
<kitttn>
hi, guys :) while trying to build a package, ran into a problem. Can't run curl while nix-build, it shows me error like this: https://github.com/NixOS/nixpkgs/issues/13744
<kitttn>
when doing echo $SSL_CERT_FILE, it shows nothing
<kitttn>
also as far as i understood, this should not be a problem for building, only for shell there.
MercurialAlchemi has quit [Ping timeout: 256 seconds]
risci has joined #nixos
<kitttn>
for me nix-shell works perfectly, curl works there
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vApc7
<LnL>
while building a package? network access is not allowed during builds
MercurialAlchemi has joined #nixos
<kitttn>
LnL: whaaat
<kitttn>
really?
<kitttn>
no, really?
<sphalerit>
Yes
<LnL>
yes, that's fragile and impure
<kitttn>
hm, ok, another idea.
<sphalerite>
you can get network access in a build if you can guarantee that the output is fixed
<sphalerite>
i.e. provide the hash of its output
<kitttn>
aha, i understand. Thanks for clearing it out!
<LnL>
yeah, things like fetchurl have network access but they essentially don't build anything
ckauhaus has quit []
<kitttn>
ok, and if i am building smth like package manager (like npm), how to pass the dir to the tool? I mean, /nix/store is immutable, i can't store loaded packages there
<infinisil>
joko: just source = "${derivation}/path/of/the/file";
rauno has quit [Remote host closed the connection]
iyzsong has joined #nixos
pkill9 has quit [Ping timeout: 240 seconds]
<ottidmes>
infinisil: Is that a bug though? It matches the description, you either give something that is of the type that should be coerced, or you give something of the final type
<ottidmes>
infinisil: If you check the implementation you could say that the real type check is postponed until the merge, and in the merge it does an assert on just the final type
<infinisil>
The check should verify that the value does indeed work for this type
<infinisil>
but "foo" does not work with this type, so check should return false
<infinisil>
It's trivial to add this
sigmundv_ has joined #nixos
nico202 has joined #nixos
<nico202>
Hi, how do I patchelf to fix missing linux-vdso.so.1?
<ottidmes>
infinisil: Right, so you just duplicated the check done in the merge, but did you consider: nix-repl> with (import <nixpkgs/lib>); isInt (toInt "foo") gives error: unrecognised JSON value
<infinisil>
I could've used a type that always succeeds the coerceFunc, but the finalType check failing
<mkaito>
So I've got a package for a java servlet. Some of the files inside the WEB-INF folder inside need to be modified for stuff like database credentials, probably as part of a module. How do I best handle this?
alex`` has joined #nixos
alex`` is now known as alexherbo2
alexherbo2 is now known as alex``
rosa has joined #nixos
<symphorien>
mkaito: be aware that anything which goes into the store will be world readable
<mkaito>
and is read-only
<mkaito>
both are part of the problem
<TimePath>
Yell at upstream for not loading configuration from a file, or create a functuon returning a derivation which unpacks, modifies and repacks
<symphorien>
I mean for the secrets
<mkaito>
TimePath: apparently, this is how java servlets work. I'm just trying to package this thing. I hate java.
<mkaito>
symphorien: oh well yes. I mean, Nix doesn't really have a good secret handling story. nixops key management is what I use for actual... secrets.
<symphorien>
this rules out the "create a patched derivation with conf/secrets inside"
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vApBA
<NixOS_GitHub>
nixpkgs/master 62190a6 Ryan Mulligan: cppcheck: 1.80 -> 1.82...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master a346ee2 Joachim F: Merge pull request #36504 from ryantm/auto-update/cppcheck...
<symphorien>
you really need to have the package read things in /etc for example
<mkaito>
that can be done via symlinks
<mkaito>
can I manage a folder inside /etc with nix?
Rusty1_ has joined #nixos
<hyper_ch2>
mkaito: nix or nixos?
<mkaito>
nixos
rindvieh has quit [Remote host closed the connection]
<mkaito>
more specifically, a nixos deployment done via nixops.
<hyper_ch2>
well, you generally set options for the services in the configuration.nix
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to release-18.03: https://git.io/vApRe
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/release-18.03 01360a2 Vladimír Čunát: gnat: mark as broken...
ckauhaus has joined #nixos
nico202 has quit [Ping timeout: 240 seconds]
<mkaito>
hyper_ch2: I'm writing a service module.
<hyper_ch2>
then you should be able to do that somehow but no idea how
hyper_ch2 has quit [Quit: Page closed]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] edolstra closed pull request #1959: Modified MakeBinOp to no longer produce its name using concatenation … (master...master) https://git.io/vAxHL
<genesis>
what is the libgl new thing to use instead of mesa_nonglu ?
<parseval>
I noticed that a few of the failing packages in 18.03 zero hydra issues ticket is spam packages that somehow ended up on hackage, hackage-packages.nix is autogenerated. What would be a good way of fixing that?
<srk>
anyone familiar with nix-store remote protocol and hydra internals?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 2 new commits to release-18.03: https://git.io/vApR1
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/release-18.03 861f8bf Joachim Fasting: electrum: 3.0.6 -> 3.1.0...
<NixOS_GitHub>
nixpkgs/release-18.03 67a504e Ryan Mulligan: cppcheck: 1.80 -> 1.82...
<genesis>
glproto ?
<gchristensen>
parseval: probably leave a comment about it and ask what you should do. optionally, ping peti
<parseval>
10-4 i'll use the issue tracker
<infinisil>
I need a sum type in the module system now..
<infinisil>
Didn't you have an implementation of that Profpatsch ?
<joko>
infinisil: it worked as you said, thanks :D
<infinisil>
ottidmes: Oh nice
<shlevy>
Please use it :D
<shlevy>
We're using it internally at Target to good effect
<shlevy>
But I'd love to get more testing.
pareidolia has quit [Ping timeout: 268 seconds]
<infinisil>
Hmm.. It might not actually be what i need though
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl opened pull request #36641: ocamlPackages: default to 4.05 (master...default-ocaml-4.05) https://git.io/vAp08
NixOS_GitHub has left #nixos [#nixos]
<shlevy>
It gives you sum types, but wouldn't be easy to add to the module system probably.
<infinisil>
Yeah I need it in the module system
<ottidmes>
infinisil: But... Then you have to specify better what you need, because "In particular, they enable the use of sum types"
<shlevy>
ottidmes: The problem is integrating it in with mainline nixpkgs, not the features
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master bcd11f6 Peter Simons: hackage-packages.nix: automatic Haskell package set update...
<NixOS_GitHub>
nixpkgs/master 96b5bbd Peter Simons: haskell-free: update overrides for version 5.0.1
<NixOS_GitHub>
[nixpkgs] peti pushed 3 new commits to master: https://git.io/vAp0V
<NixOS_GitHub>
nixpkgs/master 2a17cff Peter Simons: haskell-src-exts: update overrides for version 1.20.2
<rosa>
Does nix os offer a musl based distro aswell as a glibc based distro
<infinisil>
rosa: musl support has been added very recently, you're in luck! But not sure how well it works, and there's no prebuilt stuff for it
<rosa>
Ok
<manveru>
are there any docs for using musl?
<gchristensen>
and it isn't supported or documented ;)
<ottidmes>
shlevy: Ah ok, so if it was a clean slate, it would be easy, but combining it with what is already out there is hard. Just like why even though I love the idea of PureScript and the like, I stick with TypeScript if I want types in JavaScript, because it just works better with what is already there
<NixOS_GitHub>
[nixpkgs] timokau opened pull request #36642: sage: Mark as broken on non-86_64 platforms (master...sage-platforms) https://git.io/vAp0b
<shlevy>
dtz: Can you add some docs for using musl with the cross-compilation infra? :)
<manveru>
i guess you can set targetPlatform?
<infinisil>
shlevy: your adt library is really nice though! I thought about implementing something like this too some time ago, Nix's syntax is suprisingly well fit for interacting with adt's
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master 8dcd7f0 Peter Simons: multi-ghc-travis: update to latest git version
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
[nixpkgs] peti pushed 1 new commit to master: https://git.io/vApEg
<mkaito>
so we still can't have Nix read things in constant space, eh? why the heck do I keep running out of memory when dumping a ~260Mb derivation, dammit? there's even a PR that fixes it...
<shlevy>
infinisil: Thanks! Yeah I was surprised at how well it worked
rosa has quit [Quit: rosa]
dark has joined #nixos
<infinisil>
I also have some ideas and experimented with typing Nix with Nix itself
<infinisil>
So something like the module system, but a lot more powerful
<infinisil>
It would essentially be an almost Nix-like DSL interpreted within Nix itself
rindvieh has joined #nixos
<electrocat>
hey, question, if i write a derivation that builds something with gcc, gcc becomes a dependency, how do i make sure only gcc-libs and glibc and the likes stay runtime dependencies?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] yuriaisaka opened pull request #36644: caffe2: fix compilation on gcc7 (master...pr-caffe2-gcc7) https://git.io/vApuv
NixOS_GitHub has left #nixos [#nixos]
<infinisil>
And would have lots of applications
<vaibhavsagar>
hmm, jailbreak-cabal is broken
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] pbogdan opened pull request #36645: mps: fix build with gcc7 (master...mps-fix-build) https://git.io/vApuL
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
[nixpkgs] abbradar pushed 8 new commits to master: https://git.io/vApum
<NixOS_GitHub>
nixpkgs/master 809297e Nikolay Amiantov: the-powder-toy: disable on AArch64...
<NixOS_GitHub>
nixpkgs/master c292489 Nikolay Amiantov: deadbeef: disable on AArch64
<NixOS_GitHub>
nixpkgs/master 986ea06 Nikolay Amiantov: dwarf-fortress-packages.dwarf-therapist: disable on AArch64...
<manveru>
seems like this works `nix build -f '<nixpkgs>' --arg crossSystem '((import <nixpkgs> {}).lib.systems.examples.musl64)' hello`
<manveru>
which seems a bit... verbose
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/release-18.03 686ce4d Nikolay Amiantov: deadbeef: disable on AArch64...
<NixOS_GitHub>
[nixpkgs] abbradar pushed 8 new commits to release-18.03: https://git.io/vApuG
<NixOS_GitHub>
nixpkgs/release-18.03 180d071 Nikolay Amiantov: the-powder-toy: disable on AArch64...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/release-18.03 0a0b31d Nikolay Amiantov: dwarf-fortress-packages.dwarf-therapist: disable on AArch64...
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master 3eb7049 Ryan Mulligan: opensubdiv: 3.3.0 -> 3.3.1...
<NixOS_GitHub>
[nixpkgs] pbogdan opened pull request #36649: pingus: fix build with gcc7 (master...pingus-fix-build) https://git.io/vApz4
NixOS_GitHub has left #nixos [#nixos]
<dtz>
re:musl, native works a bit better than cross for some things, FWIW:
<dtz>
$ nix-build --arg localSystem '{config="x86_64-unknown-linux-musl";}' -A lldb_6
troydm has quit [Ping timeout: 252 seconds]
<dtz>
for x86_64 you can just specify the config string (same works for crossSystem)
sigmundv_ has quit [Remote host closed the connection]
<das-g[m]>
What is the recommended way to use Python packages that are in PyPI but not in nixpkgs together with Python packages that are in nixpkgs, when I only need that package combination ad-hoc (preferably in a nix-shell), not for any more persistent dev projects?
rindvieh has joined #nixos
<genesis>
should i git rm sdlmame and mess in my PR on mame since both are broken old non reachable stuff ?
<dtz>
as for using with NixOS that won't really work yet-- both because there isn't a simple way to specify localSystem there (AFAIK) but more problematically the systemd update 234 -> 237 doesn't work "yet" with musl, and NixOS is very dependent on systemd
troydm has joined #nixos
<manveru>
das-g[m]: i've used pypi2nix for that... though i'm not sure it uses any deps from nixpkgs, but at least it runs :)
rindvieh has quit [Remote host closed the connection]
<toogley>
what did i forgot to configure in my nixos laptop, when i can ping and use my router, but cannot reach its configuration site via typing "http://speedport.ip" in my browsers (firefox and chrome), when i can do so both on my handy and on my fedora box?
<ryantm>
toogley: Are you using a static IP?
<BlessJah>
is it normal that I need to run 'automake --add-missing;autoreconf' to generate all missing files?
ckauhaus has quit [Remote host closed the connection]
<catern>
BlessJah: try autoreconf -i
toogley has quit [Ping timeout: 255 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] volth opened pull request #36655: perlPackages: MIMEtools and MIMETools (master...perl-1) https://git.io/vAp62
NixOS_GitHub has left #nixos [#nixos]
toogley has joined #nixos
<BlessJah>
I'm confused right now, without making any change whatsoever first run of automake --add-missing now installs all the files
MercurialAlchemi has quit [Ping timeout: 245 seconds]
xcmw has quit [Ping timeout: 268 seconds]
mounty has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] oxij opened pull request #36657: prepare for a swtich to `libcardiacarrest` (master...pkgs/pre-cardiacarrest) https://git.io/vApMk
<fearlessKim[m]>
when defining a module option, how can I set `type = types.function`
erasmas has joined #nixos
<ottidmes>
kitttn: Just in case you did not know, in the context of double-singly-quoted strings like ''test'' you can quote $ by prepending it with two single quotes, like so: ''''$test''
<ottidmes>
fearlessKim[m]: I do not actually see it being specified in lib/types.nix, but there is a isFunction builtin, so you could easily define one
<ottidmes>
fearlessKim[m]: Probably something like this: function = mkOptionType { name = "function"; description = "function"; check = isFunction; merge = mergeOneOption; };
<fearlessKim[m]>
ottidmes: It works without setting anything but it would be nice from the user/documenntation perspective. Thanks for looking into it. I looked there too but couldn't find it
<Profpatsch>
infinisil: Yeah, I had an implementation somewhere.
<Profpatsch>
I think it even worked with the module system.
sigmundv has quit [Remote host closed the connection]
<kitttn>
from maintaining / packaging point of view - is it ok to clone some org repository for modifying it, and then using fetchgit, pointing to your repo instead?
<kitttn>
Or you should use the original repo and then just apply modifications in .nix file?
<makefu>
kitttn: normally you would apply patches directly to the source
<makefu>
and use the different phases to do the things you would do in your fork
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg opened pull request #36669: [WIP] nix: Replace busybox-sandbox-shell with Bash (master...bash-in-sandbox-shell) https://git.io/vApAk
<makefu>
in parallel you should open an issue for upstream with the things you needed to change ;)
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kitttn>
makefu: yeah, i see. They just use custom installer, which doesn't allow to place patchelf in between.
ckauhaus has quit []
<kitttn>
Btw, can i somehow insert newline while substituting the strings?
<kitttn>
... "replace-this" "with-this \n two-lines" don't work
Myrl-saki has quit [Quit: WeeChat 1.9.1]
detran has quit [Remote host closed the connection]
toogley has quit [Quit: WeeChat 1.9.1]
rogue_koder has joined #nixos
<makefu>
you could use sed instead, newlines are always hard :D or you could create a patch-file from the changes you needed to do and apply this patch via patches = [ ./my.patch ]
ma27 has joined #nixos
<kitttn>
wow, i can do it via patch? *_*
greglearns has joined #nixos
<kitttn>
this will be much easier, thank you!
<greglearns>
Has anyone created an nixpkg for "create-elm-app" (an elm way to make a PWA, Progressive Web App, for deploying webapps to iPhones and Android phones)?
rindvieh has quit [Remote host closed the connection]
<manveru>
greglearns: not that i'm aware of
<manveru>
elm packages are usually a bit tricky...
Faster-Fanboi has quit [Quit: ZNC 1.7.x-git-876-42939c9 - https://znc.in]
<manveru>
but i assume that's yet another npm package
<greglearns>
that's a good point that it's just another NPM module. This is the README doc for using it:npm install create-elm-app -g && create-elm-app my-app && cd my-app/ && elm-app start.
<disasm>
with 18.03 on boot I get filesystem 'zroot/root/tmp' can not be mounted: Read-only file system in the logs (same for /home). I'm using zfsUnstable with encryption on the pool zroot. 17.09 boots fine with identical hardware configuration. It then continues to boot, last thing seen in the logs is Mar 08 23:49:19 sarov systemd[1]: Startup finished in 3.040s (firmware) + 2.299s (loader) + 9.427s (kernel) + 5.179s
<disasm>
(userspace) = 19.947s. No UI or tty comes up and it doesn't respond to anything I've tried except ctrl-alt-del.
ckauhaus has joined #nixos
<disasm>
Thankfully, grub pointing at last 17.09 release works perfectly! (yay nixos for reliable rollbacks)
loonquawl has joined #nixos
orivej has quit [Ping timeout: 260 seconds]
<lejonet>
disasm: yeah, the reliable rollback feature has saved me a few times :P
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master 36fd566 Michael Raskin: Merge pull request #36649 from pbogdan/pingus-fix-build...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 2dfeb6f Piotr Bogdan: pingus: fix build with gcc7
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 2 new commits to master: https://git.io/vAhfw
<NixOS_GitHub>
[nixpkgs] efx opened pull request #36677: tmsu: disable for darwin (master...fix-36346) https://git.io/vAhJx
NixOS_GitHub has left #nixos [#nixos]
sanscoeur has joined #nixos
xcmw has joined #nixos
Lisanna has joined #nixos
<Lisanna>
I'm struggling to get my nix channel working with HTTP authentication. nix-channel --list shows the channel with the https://username:password@example.com URL, but when I do nix-channel --update example, the URL it uses has the auth components stripped out.
<Lisanna>
...and it fails, of course
simukis has quit [Ping timeout: 240 seconds]
fresheyeball has quit [Quit: WeeChat 1.9.1]
<Lisanna>
wtf... if I change the path in the channel with nix-channel --add and do nix-channel --update it starts putting the auth components in the URL, but if I change the path back with nix-channel --add it goes back to stripping them out...
<lejonet>
srhb: Interesting, whereas the other python tools can find cephs own modules (mainly rados) with the workaround I did in postFixup, it would seem like the secondary imports from ceph-mgr don't inherit that for some odd reason
TweyII has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] shlevy closed pull request #1938: keep-paths: keep store paths alive without touching the filesystem. (master...keep-paths) https://git.io/vAy1n
NixOS_GitHub has left #nixos [#nixos]
<TweyII>
Is it safe yet to upgrade to Nix 2.0 on NixOS?
<Lisanna>
it's just hanging and spinning at 100% CPU usage for me :/
ma27 has joined #nixos
<TweyII>
disasm: I just noticed that it's on -unstable already, rendering my question a little unnecessary :þ
troydm has quit [Ping timeout: 256 seconds]
<TweyII>
I wanted to use fetchGit to get a private repository from GitHub, but all I get is ‘repository not found’… I guess I need to provide a username somehow?
spietz has quit [Quit: WeeChat 1.9.1]
<TweyII>
Oh, I need to use ssh://git@github.com/user/repo I guess
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] pbogdan opened pull request #36680: apvlv: fix build with gcc7 (master...apvlv-fix-build) https://git.io/vAhL1
<NixOS_GitHub>
nixpkgs/release-18.03 e06c2d9 Matthew Bauer: network_cmds: fix on darwin...
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 2 new commits to release-18.03: https://git.io/vAhqa
<NixOS_GitHub>
nixpkgs/release-18.03 33a4313 Matthew Bauer: darwin: disable broken packages...
NixOS_GitHub has left #nixos [#nixos]
tomsen has quit [Ping timeout: 240 seconds]
xcmw has quit [Ping timeout: 240 seconds]
<boomshroom>
What would be the consequences of claiming that the local system is different so any atempt to install would be treated as cross-compilation to be preformed on a foregn builder?
<boomshroom>
This is running on my arm7l phone where the "local_system" is spoofed to x86_64 and "cross_system" is set to the actual local system.
hellrazor has quit [Quit: WeeChat 2.0.1]
roberth has quit [Ping timeout: 260 seconds]
troydm has joined #nixos
fragamus has joined #nixos
ma27 has quit [Ping timeout: 240 seconds]
<boomshroom>
When setting foreign builders, how do I specify the port of the builder? Can I use a ~/.ssh/ssh_config alias?
<hakujin>
how do I pass additional arguments to modules intended to be imported via the `imports = [ ./path/here.nix ];` mechanism?
<srid>
Updating to latest nixos unstable allowed linux to access the webcam/ audio/ mic of my Thunderbolt 3 monitor. I wonder what changed ...
ma27 has joined #nixos
<hakujin>
(beyond the default `{ config, lib, pkgs, ... }`)
<boomshroom>
"The hostname may be an alias defined in your ~/.ssh/config." Looks like there's my answer.
<Lisanna>
Figured out my problem with nix-channel and HTTP authentication: if I add the full path to nixexprs.tar.xz, it starts working x_x
<clever>
Lisanna: oh, its the http redir
<clever>
Lisanna: when it follows the redirect, it looses the auth info, because you didnt give it --user and --pass
<clever>
it normally fetches ~2 files from a dir, and to make it atomic, it first follows the redir, then appends the names to that
<Lisanna>
clever does nix-channel support passing in user and password information in any way other than in the URL?
<clever>
and now that nix-channel has been redone in c++, you cant use curl flags directly
<Lisanna>
yeah, I can understand losing the auth information on a redirect
<boomshroom>
`error: cannot add path '/nix/store/3x7dwzq014bblazs7kq20p9hyzz0qh8g-hello-2.10.tar.gz' because it lacks a valid signature` This seems to be one of the changes in 2.0 where it demands a signature but doesn't add one by default.
<clever>
Lisanna: its using libcurl in this file, so it depends on what libcurl reads by default
<clever>
boomshroom: is the daemon 1.11 or 2.0?
chaker has quit [Ping timeout: 245 seconds]
<ottidmes>
boomshroom: You will have to set secret-key-files and trusted-public-keys and generate them via nix-store (see manpage of nix-store or the Nix manual on secret-key-files)
xcmw has joined #nixos
<ottidmes>
boomshroom: And then you have to sign the things already in your store with: nix sign-paths --all --key-file <secret-key-file>
<boomshroom>
The build server (my desktop) is on NixOS with Nix 2.0
<Lisanna>
clever ah, since it's using libcurl, NIX_CURL_FLAGS wouldn't make any sense
<boomshroom>
ottidmes: Thanks. That seems close to what the manual suggests.
<clever>
boomshroom: usually hostname-1, and when you remake the key, it becomes hostname-2
xcmw has quit [Ping timeout: 260 seconds]
<boomshroom>
clever: That's what it suggests for the key name, but it doesn't say anything about the file names.
<boomshroom>
"three arguments expected"
<clever>
boomshroom: did you check the nix-store man page?
<boomshroom>
clever: Yup. It's verbatim the same as the section of the manual and just says "2. The file name where the secret key is to be stored." and "3. The file name where the public key is to be stored."
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ixmatus opened pull request #36684: nix: Make `perl-bindings` an overridable derivation (master...parnell/overridable-perl-bindings) https://git.io/vAhGu
<boomshroom>
I generated a key pair and tried to sign all paths, and `error: you are not privileged to add signatures`. Does this need to be done as root? If so, does that mean that the signatures could be set in configuration.nix?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master e559fa1 Yuri Aisaka: fix compilation on gcc7
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master b441512 Vladimír Čunát: Merge #36644: caffe2: fix compilation on gcc7
<NixOS_GitHub>
[nixpkgs] vcunat pushed 2 new commits to master: https://git.io/vAhCU
ryanartecona has quit [Quit: ryanartecona]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 2 new commits to master: https://git.io/vAhCB
<NixOS_GitHub>
nixpkgs/master 1fedf89 Piotr Bogdan: hexcurse: fix build with gcc7
<NixOS_GitHub>
nixpkgs/master 0ce2f04 Vladimír Čunát: Merge #36663: hexcurse: fix build with gcc7
<boomshroom>
I was able to nix build `nix` and `hello` by spoofing my local system as x86. Now I just need to find a way to do that all packages. I have a similar spoof in config.nix, but it still wants to use an 86_64 bash.
<clever>
boomshroom: i dont think there is any way to set the right flags in config.nix
<clever>
boomshroom: you may need a dummy default,nix in NIX_PATH, that does import <realnixpkgs> { crossSysstem = foo; };
<clever>
so when anything tries to import <nixpkgs> it loads your dummy
<boomshroom>
When building, I can do this `(let systems = (import ./. {}).lib.systems; in (import ./. { crossSystem = systems.examples.armv7l-hf-multiplatform; localSystem = systems.elabor`
<boomshroom>
ate { config = "x86_64-unknown-linux-gnu"; }; }).nixUnstable)
<ottidmes>
clever: Yeah, I got that bit, I already leveraged it in my own modules, but what I am asking is, the default attribute in mkOption, is it safe to refer to the config passed to the module in that attribute? If so, why do most modules define them not in mkOption but via mkDefault in config = { ... }
siva_ has joined #nixos
<clever>
ottidmes: i think its either user-preference or to get around infinite recursion
<clever>
ottidmes: ive also seen some things where they have a generic "config file contents" option, which it then sets (without mkDefault) in the config={} area, based on all the other settings
<ottidmes>
clever: So: group = mkOption { default = "+${toString config.gid}"; ..., but then they define target = mkDefault name; why not define target's default via mkOption
<clever>
and it has a type of types.lines, so if you try to set it, you append
<ottidmes>
clever: Yeah, that lines one is pretty common as well
<siva_>
Newbie here. I was helped yesterday here to install a specific package (as a user) from unstable whereas the machine is configured to use 17.09. I added unstable to the channel as a user and did nix-env -iA nixos-unstable.packagename and it worked. However i the next nix-garbage-collect as a user, that package went away. Is there a way to not garbage collect that package?
<LnL>
ottidmes: I think only mkOption default ends up in the manual, mkDefault doesn't so for conditional things it's better to use that
<__monty__>
Afaik that shouldn't have happened, siva_.
<siva_>
__monty__: user error - It looks like it isn't removed. I'd tried from the KDE menu to run that application and for some reason, that was still pointing to the now uninstalled older version of that application
<LnL>
siva_: how did you install it exactly?
spietz has joined #nixos
<LnL>
ah, that might happen after a gc if things use the absolute store path
spietz has quit [Client Quit]
<boomshroom>
The new interface for 2.0 is very nice to look at.
vidbina has joined #nixos
spietz has joined #nixos
<boomshroom>
My desktop must be going crazy compiling everything.
<siva_>
LnL: In my case, the KDE 'start' menu link is still pointing to the old path. Not sure if a logout/login will help
<LnL>
it should
<siva_>
I'm going to try that. Thanks everyone
loonquawl has quit [Quit: loonquawl]
siva_ has quit [Quit: Page closed]
Neo-- has quit [Ping timeout: 268 seconds]
<boomshroom>
What experience do you guys have with sharing a store between multiple machines or multiple partitions on one machine?
tomsen has joined #nixos
loonquawl has joined #nixos
<boomshroom>
currently building python for armv7l.
<ottidmes>
boomshroom: I have used nix-serve and ssh-substitor-hosts (Nix 1) now I am using substituter with ssh-ng, but it only works on one of my machine (haven't figured out what causes the bugs on the other machines)
drakonis has quit [Read error: Connection reset by peer]
<boomshroom>
ottidmes: I'm thinking of sharing a store between the macOS an NixOS installations on my laptop, but the single user installation on macOS seems to use the global profiles just like root on NixOS.
<ottidmes>
boomshroom: I never use channels or nix-env, and I will never use MacOS if it is up to me, so can't say I share your problems :P But definitely worth a try if you desktop is more powerful. I have setup my desktop and powerful server to do the building
blankhart has quit [Ping timeout: 240 seconds]
<boomshroom>
ottidmes: My desktop is more powerful, but I'm more cocerned about building for my phone since it doesn't have a local compiler. Though it is nice that NixOS on my mac would be able to use my desktop without cross compiling.
<boomshroom>
Unfortunately building nox failed because python wanted to try running it's own output despite cross compiling.
<boomshroom>
No wonder you can't run `/nix/store/yj487vzh75m2a4i7rfk3l3w2976g747q-python3-3.6.4-arm-unknown-linux-gnueabihf/bin/python3.6m`. You're an x86_64 machine and that's an ARM binary.
hiratara has joined #nixos
<ottidmes>
boomshroom: Wait I am confused, do you have a MacBook running MacOS and a NixOS desktop? Or did you mean you run a VM on your MacBook, or do you have one of those Mac all-in-one things when you refer to Mac?
loonquawl has quit [Quit: loonquawl]
<boomshroom>
I have three physical devices: A desktop running NixOS, a Macbook duel booting macOS and NixOS, and a Nexus 4 running Sailfish OS. I want Nix running on all of them.
loonquawl has joined #nixos
<MichaelRaskin>
Duel booting sounds scary. Whatever OS wins the fight gets to boot. And seriously — Nexus is way too old for aarch64, right?
BlessJah has quit [Quit: leaving]
<ottidmes>
boomshroom: Ah, dual boot, that explains. Would indeed be cool if they would! I have NixOS on all my devices, except my laptop, which does not even have Nix, but that thing is so old that tape is holding it together (I had to move some screws to keep the integrity) :P
BlessJah has joined #nixos
alex`` has quit [Ping timeout: 240 seconds]
<boomshroom>
MichaelRaskin: Correct. It has armv7l. Technically supported by Nix. Not officially supported by Nixpkgs. Running it anyways! :D
<boomshroom>
Also I end up using macOS more often because I'm too lazy to reboot and get all the configuration perfect.
<ottidmes>
boomshroom: There is this termux app on Android that is its own little ecosystem with a package manager that has a really small subset of some popular Ubuntu packages, so something similar for Nix should be doable on Android I guess
__monty__ has quit [Quit: leaving]
<ottidmes>
boomshroom: That is why when I moved to NixOS I took the list of all my packages on Arch Linux and made an as simple as possible config that used similar stuff what I was used to on Arch, so I did not have to learn the new distribution and new software
mizu_no_oto has joined #nixos
<boomshroom>
It looks like python-recursive-pth-loader uses the python dependency to build itself. The problem is that the python dependency it gets is the arm version despite being built on an x86_64 machine.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master 5797ba9 Jan Malakhovski: pkgs: tiny OCD fix
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 10 new commits to master: https://git.io/vAhwE
<NixOS_GitHub>
nixpkgs/master 2af121e Jan Malakhovski: libpressureaudio: better descriptions
<NixOS_GitHub>
nixpkgs/master bf44802 Jan Malakhovski: vpnc: fix url
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] veprbl opened pull request #36698: include-what-you-use: enable on darwin (master...include-what-you-use_darwin) https://git.io/vAhwV
NixOS_GitHub has left #nixos [#nixos]
<boomshroom>
ottidmes: When I transitioned from Arch to Nix on my desktop, I didn't bother copying all the packages. I just set up an environment with the essentials. Also, it was my desktop which meant that internet was 1000x easier than on a laptop.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] knedlsepp opened pull request #36699: mpv: fix darwin build (master...fix-mpv-on-darwin) https://git.io/vAhwD
NixOS_GitHub has left #nixos [#nixos]
<ottidmes>
boomshroom: The very first was the essentials, but then I quickly copied over the env I had on Arch, so I would not be tempted to go back
loonquawl has quit [Read error: Connection reset by peer]
loonquawl has joined #nixos
<jmob>
How do I configure a static IP for my box? I'm using networkmanager and I have an address configured, but it only seems to take effect when I do "nixos-rebuild switch".
CrazedProgrammer has quit [Ping timeout: 256 seconds]
CrazedProgrammer has joined #nixos
sdemos has quit [Ping timeout: 256 seconds]
<makefu>
Thanks! i've waited for this for a long time. the PR publish worked in the past probably pretty well but now it is mostly noise
bsima has quit [Ping timeout: 256 seconds]
<gchristensen>
oh, should we just disable the bot altogether?
<cransom>
i'd have no love lost if it didn't come back.
bsima has joined #nixos
sdemos has joined #nixos
sdemos has quit [Changing host]
sdemos has joined #nixos
<ottidmes>
people have to point out that they have done something anyway because most people ignore them I think, then it is just as easy to post a link if it is interesting to others
<samueldr>
maybe a notifications-only channel for public "firehose" access to events?
<gchristensen>
I'd like to challenge everyone paying attention with merge access to review 10 PRs
<makefu>
round-robin PR notification for all maintainers
ancarda has quit [Ping timeout: 256 seconds]
edofic has quit [Ping timeout: 256 seconds]
nand0p has quit [Ping timeout: 256 seconds]
luto has quit [Ping timeout: 256 seconds]
Yaniel has quit [Ping timeout: 256 seconds]
ancarda has joined #nixos
nand0p has joined #nixos
edofic has joined #nixos
Yaniel has joined #nixos
luto has joined #nixos
<MichaelRaskin>
Could all the currently open non-mass-rebuild package updates (this is an automatable condition) be Cthulhu-merged into a branch with this branch built and tested on Hydra (and then merged as a whole)?
<gchristensen>
like bors?
<MichaelRaskin>
I am not sure if it ever Cthulhu-merges.
<gchristensen>
oh god I forgot cthulhu merges were a real thing
blankhart has joined #nixos
<gchristensen>
clever: it completely ignores platforms :)
<LnL>
love that name :p
<gchristensen>
:D
<gchristensen>
maybe my time would be better spent improving ofborg insteead of merging PRs
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cransom>
TIL of cthulhu merges.
<MichaelRaskin>
gchristensen: for example, giving it merge-if-build-succeeds-on ?
<gchristensen>
yeah :|
<gchristensen>
gonna go for a walk and think about that
<gchristensen>
LnL: ^ wishing for erlang right now :)
<mpickering>
I'm still stuck trying to work out why a certain dylib gets loaded which causes a segfault. I just checked all the .so and .dylib files and they all have the correct paths in. Any hints from anyone?
winem__ has joined #nixos
winem_ has quit [Ping timeout: 265 seconds]
<LnL>
gchristensen: :)
<mpickering>
The installer copies the copy of Qt into $out but then later somehow the version of qt in the store gets loaded and causes a segfault
<LnL>
mpickering: can you give some more info
<mpickering>
I'm not sure how to say it properly sorry. Not very experienced with the c++ toolchain
<LnL>
euh, it's copying the dylib?
<mpickering>
yes it appears to be
<mpickering>
then it patches all the executables with install_name_tool
<LnL>
that's a bad idea for a number of reasons...
romildo has joined #nixos
<shlevy>
mpickering: One thing to check would be DYLD_LIBRARY_PATH
knupfer has quit [Ping timeout: 256 seconds]
<LnL>
mpickering: does it patch the install_name of the libraries?
<LnL>
does your build depend on any system frameworks directly
<mpickering>
Here's another data point. If I delete QtCore from the /nix/store then the program appears to work successfully
<mpickering>
so I think there is just one problem
<mpickering>
I'm not sure what you mean sorry
<mpickering>
If I do "strings ..../QGIS | grep qt" then there is one path to the qt store in there which I can't work out where it comes from (/nix/store/r5m4r6mjcdp1s26vlwmgw73kdwjj1xf2-qt-4.8.7/lib/qt4/plugins)
babyflakes has quit [Quit: Connection closed for inactivity]
<clever>
mpickering: have you tried `nix why-depends` yet?
<clever>
that might help
<mpickering>
I haven't updated to nix 2.0 yet. I can do if it might help. I'm a bit out of my depth by now.
<clever>
mpickering: you can use why-depends in a nix-shell i believe
<mpickering>
What is the name of the package
vpost has joined #nixos
vidbina has quit [Ping timeout: 256 seconds]
<obadz>
gchristensen: I merged 20+ on sunday :)
<clever>
mpickering: nix-shell -p nixUnstable
<obadz>
gchristensen: most of them from ryantm
<vpost>
anyone know how to enable h264 and such proprietary codecs for qutebrowser? im trying to read the nix expressions, but qt seems a bit different from other stuff
MP2E has joined #nixos
<mpickering>
thanks clever, hopefully the command terminates eventually :P
spear2 has joined #nixos
blonkhart has joined #nixos
<mpickering>
LnL: Have you ever run into problems with "ditto" whilst packaging things for darwin?
<mpickering>
that was another thing I had to do, replace all uses of ditto by cp
<LnL>
don't think so, not ever sure what package that would be in
<mpickering>
I think it's a default utility? I'd never heard of it before
dbe has joined #nixos
<mpickering>
why-depends seems to have delivered..
<ryantm>
Mic92: I made that change to the PR message.
<Mic92>
ryantm: thanks
vpost has quit [Ping timeout: 260 seconds]
<ryantm>
I also added something linking to the source code of the update tools, because people keep asking about it, and maybe they can complain there if it makes a mistake.
vpost has joined #nixos
LnL has quit [Ping timeout: 256 seconds]
xcmw has joined #nixos
schoppenhauer has quit [Ping timeout: 240 seconds]