gchristensen changed the topic of #nixos to: NixCon 2018 CfP is now open! https://nixcon2018.org/ || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon
d1rewolf_ has quit [Ping timeout: 256 seconds]
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/ab3eeb4c9cc (from 9 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
Cale has joined #nixos
mekeor has quit [Ping timeout: 265 seconds]
sbdchd has quit [Remote host closed the connection]
ris has quit [Ping timeout: 240 seconds]
sir_guy_carleton has quit [Quit: WeeChat 2.0]
sbdchd has joined #nixos
sir_guy_carleton has joined #nixos
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]
aanderse-laptop has joined #nixos
<{^_^}> [nix-mode] @matthewbauer opened pull request #46 → Develop branch → https://git.io/fN2WH
troydm has joined #nixos
<Orbstheorem> Hi, I'm trying to package a toolchain that uses `gcc -print-file-name=...` to vefiry if the libs are there: (https://paste.gnugen.ch/raw/iyqE). However libreries specified in buildInputs do not appear in stdenv's gcc default search path. Am I missing something or is upstream doing something wrong?
jperras has joined #nixos
wpcarro has joined #nixos
phreedom has quit [Ping timeout: 250 seconds]
phreedom has joined #nixos
biopandemic has quit [Quit: Quit.]
biopandemic has joined #nixos
thc202 has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « linux: 4.18-rc6 -> 4.18-rc7 »: https://git.io/fN2l3
wpcarro has quit [Ping timeout: 244 seconds]
aarvar has quit [Ping timeout: 264 seconds]
aanderse-laptop has quit [Ping timeout: 265 seconds]
mroutis has left #nixos [#nixos]
<zgrep> On NixOS, if I install something with nix-env, or I change my configuration.nix to add a package and do nixos-rebuild switch, $XDG_DATA_DIRS doesn't seem to change for my currently running WM/DE/etc. I was wondering if there was a recommended way to do things, or if I should just log out and log back in for changes to take effect.
<zgrep> I guess for nix-env, I could add on ~/.nix-profile/share/applications to my $XDG_DATA_DIRS.
andymandias has quit [Ping timeout: 260 seconds]
ericsagnes has joined #nixos
sbdchd has quit [Remote host closed the connection]
worldofpeace has quit [Remote host closed the connection]
andymandias has joined #nixos
andreabedini has joined #nixos
wpcarro has joined #nixos
worldofpeace has joined #nixos
unshackled has quit [Ping timeout: 245 seconds]
tusj has joined #nixos
nuncanada2 has joined #nixos
d1rewolf_ has joined #nixos
sigmundv_ has quit [Ping timeout: 248 seconds]
nuncanada has quit [Ping timeout: 240 seconds]
wpcarro has quit [Ping timeout: 268 seconds]
wpcarro has joined #nixos
<clever> zgrep: for xfce, there is `xfce4-panel --restart` which will restart the panels, which then re-scan the original $XDG_DATA_DIRS
<clever> the issue, is that it doesnt notice changes to old paths
sam__ has joined #nixos
wpcarro has quit [Ping timeout: 256 seconds]
sbdchd has joined #nixos
<zgrep> Looking at what I currently have for $XDG_DATA_DIRS, it'd need to load the new one for changes to take effect. :(
instantepiphany has joined #nixos
<zgrep> (And, uh, I don't use xfce, but that's not as important.)
<clever> your DE may have its own reload option
<instantepiphany> Quick question - inside a nix-shell, what is the best way to see all available shared libraries? $LD_LIBRARY_PATH doesn't show everything I think should be there.
<samueldr> the libraries are made available to compiled software through their RPATH AFAIUI
<samueldr> if you used nix-shell -p some -p attributes, $buildInputs will contain those
<clever> the gcc wrapper uses $NIX_LDFLAGS to inject -L flags
<clever> and yeah, $buildInputs will be all inputs
n0qqe has joined #nixos
<clever> $NIX_CFLAGS_COMPILE is used to inject -I flags
<instantepiphany> $buildInputs lists a path that contains `/lib/pkgconfig/libcurl.pc` which is the library I want, but how do I know that was linked in RPATH correctly? I don't remember what tool to use to inspect the binary
<clever> instantepiphany: $NIX_LDFLAGS also sets gcc flags to configure the rpath for binaries it produces
d1rewolf_ has quit [Ping timeout: 256 seconds]
<instantepiphany> If this helps I have packaged sciter which is a UI library, and I am using a rust binding for that in a new project. When I build/run the rust binary, a modal window appears saying libcurl could not be found. pkgs.libcurl is in my nix expression, and I can see it in my $buildInputs but I don't really know where to go from here.
<instantepiphany> I'll have a look clever.
noqqe has quit [Ping timeout: 268 seconds]
n0qqe is now known as noqqe
<instantepiphany> Yep `-L/nix/store/8d06cnyqpl7x91danmfaa76rr2cb2asb-curl-7.61.0/lib` is inside `$NIX_LDFLAGS`
<instantepiphany> I also have `pkgconfig` in my buildinputs for the nix expression.
<clever> the buildInputs stuff only handles compile-time linkage
<clever> if you load things at runtime with dlopen, then you need to do custom stuff
wpcarro has joined #nixos
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
blonkhart has quit [Ping timeout: 260 seconds]
<instantepiphany> It might be using dlopen. Has some legend written anything on figuring out what "custom stuff" to do with packaging in general? I realise you can't write a guide for every package or you may as well just write every package, but any generic articles? Happy to google if not!
<clever> instantepiphany: you need to generate paths yourself, and either re-add them to RPATH in postFixup, or wrapProgram with LD_LIBRARY_PATH
<clever> > lib.makeLibraryPath [ curl ]
<{^_^}> "/nix/store/9gnndwx7jyyaisk35wcgz4xlf94khmnz-curl-7.60.0/lib"
<clever> it accepts a list and will give you a : seperated string
<instantepiphany> Yeah I was about so say, I am sure I have already tried using `LD_LIBRARY_PATH` inline in my terminal
<instantepiphany> Didn't know about `lib.makeLibraryPath [ pkgname ]`, thanks!
<clever> the default fixupPhase will run patchelf --shrink-rpath
wpcarro has quit [Ping timeout: 264 seconds]
<clever> which looks over everything in the DT_NEEDED field, and strips rpath entries you dont need
<clever> but its not aware of dlopen
<clever> oh, patchelf also lets you inject things into DT_NEEDED
blonkhart has joined #nixos
<instantepiphany> Just solved it - I was loading an old html file that loaded a JS script from the internet, which then attempted to run an XHR call, which caused it to complain about missing libcurl as the UI isn't supposed to be used that way.
<instantepiphany> Which is good because nix/nixos is reliable, and I learned more about dynamic libraries. Thanks guys!
<clever> gentoo has also helped me learn similar things due to bugs years ago
<instantepiphany> Thats a great way to spin gentoo! haha
<clever> due to its flexibility, i was able to have a system without curl installed at all (though nix is better, because curl can be installed yet not exist)
<clever> and the flash plugin in firefox opens curl with dlopen
<clever> but, flash doesnt check for null pointers, and just segfaults all of chrome when it fails :P
<instantepiphany> Lovely!
<clever> and funnily enough, the "install script" just ran curl to download a naked .so file, and copied it to the right dir
<clever> i lacked curl, so i used wget, and then it broke :P
<instantepiphany> thats flash for you. I still enjoy coming across posts complaining "this game needs this library, this program needs another version of and setting `LD_LIBRARY_PATH` each time is annoying"
<clever> and forum posts showed people installing curl, re-running the script, and being confused as to why curl gives a different binary then wget
<instantepiphany> nixos makes that so easy. so would nix I guess.
<instantepiphany> That's non-deterministic builds for you!
<clever> curl and wget gave identical binaries
<clever> the act of installing curl is what fixed it :P
<clever> but nobody thought of that, and i was the only one to debug it far enough to figure that out
nuncanada2 has quit [Quit: Leaving]
<instantepiphany> Nice work! Some of us are definitely more driven than others haha
instantepiphany has quit [Remote host closed the connection]
<clever> a few months ago, i was building the opengl in /run/opengl-drivers from a custom checkout, and adding print statements to track down a segfault :P
unshackled has joined #nixos
jperras has quit [Quit: WeeChat 2.2]
<andreabedini> https://github.com/NixOS/nixpkgs/pull/43972 broke the aws-sam-cli which relies on aws-sam-translator == 1.6.0 (which the PR updates to 1.6.1). I contributed the initial derivation for aws-sam-clie, how should I fix this now?
<{^_^}> #43972 (by FRidh, merged): Python packages: major updates
Izorkin has quit [Ping timeout: 260 seconds]
Anton-Latukha has quit [Ping timeout: 264 seconds]
wpcarro has joined #nixos
<{^_^}> [nixpkgs] @samueldr closed pull request #44209 → nix-top: init at 0.1.0 → https://git.io/fN2Y2
<samueldr> uh oops!
lassulus_ has joined #nixos
wpcarro has quit [Ping timeout: 244 seconds]
lassulus has quit [Ping timeout: 248 seconds]
lassulus_ is now known as lassulus
tusj has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @samueldr reopened pull request #44209 → nix-top: init at 0.1.0 -> 0.2.0 → https://git.io/fN2Y2
Izorkin has joined #nixos
sam__ has quit [Quit: sam__]
wpcarro has joined #nixos
Izorkin_ has joined #nixos
igo95862 has joined #nixos
blonkhart is now known as blepharospasm
blepharospasm is now known as blonkhart
Izorkin has quit [Ping timeout: 260 seconds]
luketopia has quit [Ping timeout: 240 seconds]
wpcarro has quit [Ping timeout: 248 seconds]
Izorkin has joined #nixos
Izorkin_ has quit [Ping timeout: 260 seconds]
wpcarro has joined #nixos
wpcarro has quit [Ping timeout: 244 seconds]
wpcarro has joined #nixos
drakonis has quit [Remote host closed the connection]
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wpcarro has quit [Ping timeout: 240 seconds]
b has quit [Quit: Lost terminal]
wpcarro has joined #nixos
<hyper_ch> nixos unstable (and small) still haven't had channel advancement
<hyper_ch> what's wrong?
wpcarro has quit [Ping timeout: 244 seconds]
worldofpeace has quit [Ping timeout: 240 seconds]
<clever> hyper_ch: same thing that was wrong yesterday
blonkhart has quit [Quit: WeeChat 1.9.1]
worldofpeace has joined #nixos
<hyper_ch> :(
<hyper_ch> imho it should advance :(
<p_l> hi. Does anyone have an example of how to append to a postInstall string in a package without copying the whole thing?
<clever> p_l: when you do .overrideAttrs (old: { ...
<clever> p_l: old contains the old attributes, so you can do old.postInstall
<p_l> oh, ok, that makes sense
<{^_^}> [nixpkgs] @roconnor opened pull request #44214 → Update Bitcoin and its MiniUPnPc dependency → https://git.io/fN2Bw
wpcarro has joined #nixos
worldofpeace has quit [Quit: worldofpeace]
andreabedini has joined #nixos
andreabedini has quit [Client Quit]
andreabedini has joined #nixos
wpcarro has quit [Ping timeout: 248 seconds]
drakonis has joined #nixos
hiroshi- has joined #nixos
hiroshi has quit [Ping timeout: 240 seconds]
hiroshi- is now known as hiroshi
worldofpeace has joined #nixos
sbdchd has quit [Remote host closed the connection]
<p_l> clever: when I want to include my modified derivation (the original one was depended on by service... module), what should I do? (nix noob here)
dbmikus has quit [Ping timeout: 256 seconds]
<clever> p_l: you want to use nixpkgs.config.packageOverrides to overwrite the package
blankhart has quit [Read error: Connection reset by peer]
blankhart has joined #nixos
igo95862 has quit [Quit: igo95862]
dbmikus has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
<p_l> let's see if it will work
igo95862 has joined #nixos
<hyper_ch> what could possibly go wrong :)
worldofpeace has quit [Remote host closed the connection]
wpcarro has joined #nixos
worldofpeace has joined #nixos
wpcarro has quit [Ping timeout: 256 seconds]
<p_l> infinite recursion ;)
<p_l> doesn't look like I got anything working
<p_l> this is what I ended up with
<p_l> it doesn't fail with infinite recursion
<angerman> how does nix-shell -p translate into nix-shell -E?
iqubic has joined #nixos
<iqubic> Is it possible to have two different versions of the same package installed in NixOS at the same time?
<clever> angerman: one min
<{^_^}> nix#726 (by copumpkin, open): nix-shell -p is too magical
<clever> angerman: it will basically just jam together "with import <nixpkgs> { }; (pkgs.runCommandCC or pkgs.runCommand) \"shell\" { buildInputs = [ ", the args of -p (wrapped in parens) and then a }; }
<clever> and then eval it
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/233b28285f7 (from 9 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<angerman> thanks.
<worldofpeace> ugh i did all the inital deployments and not it can't connect over ssh for nixops :(
sir_guy_carleton has quit [Quit: WeeChat 2.0]
noefk_ has quit [Ping timeout: 264 seconds]
simukis has joined #nixos
trylist has joined #nixos
noefk has joined #nixos
wpcarro has joined #nixos
<elvishjerricco> angerman: These days I prefer `nix run` to `nix-shell -p`. It's still considered experimental, so it may change in the future. But it's been a lot more convenient.
wpcarro has quit [Ping timeout: 244 seconds]
<worldofpeace> clever: Could nixops not work when not using port 22 for ssh?
jb55 has joined #nixos
<iqubic> Is it possible to have two different versions of the same package installed in NixOS at the same time?
<angerman> elvishjerricco: I've just tried to pin nix-shell to specific nixpkgs version because it kept breaking on macOS. quite annoying.
worldofpeace has quit [Quit: worldofpeace]
<elvishjerricco> angerman: That sounds annoying. Never had such problems myself.
<angerman> guess what I really want is to be able to set NIXPKGS_REV=<github.com/nixos/nixpkgs commit> and have all tools just accept that.
<angerman> (unless they explicitly override it)
<elvishjerricco> iqubic: It is. If you install two versions of e.g. GHC via `nix-env`, it will think it's an update, and will overwrite the old one. But you can freely put multiple versions of GHC in `environment.systemPackages` and it won't erase any of them. If you want to do it with `nix-env`, you'd just use `buildEnv { name = "ghcs"; paths = [...ghcs...]; }` and install that expression instead
<elvishjerricco> angerman: That's actually pretty easy
<iqubic> Nice
<elvishjerricco> nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/REV.tar.gz ...
<elvishjerricco> Or you can put that `nixpkgs=...` into the `NIX_PATH` environment variable
simukis has quit [Quit: simukis]
worldofpeace has joined #nixos
<iqubic> How hard is it to switch from Systemd-boot to Grub2 on NixOS?
phreedom has quit [Quit: No Ping reply in 180 seconds.]
<clever> worldofpeace: ive only ever used it on port 22
UnAmazing has joined #nixos
<worldofpeace> iqubic: should be trivial, just change your configuration carefully
phreedom has joined #nixos
<iqubic> Do I want to switch from one boot loader to the other? Is that considered wise?
<angerman> elvishjerricco: hmm can I use that with #!nix-shell as well?
<elvishjerricco> angerman: Hm. Probably. On the `#! nix-shell -i` like, you can probably add `-I nixpkgs=...`
<elvishjerricco> s/like/line/
<angerman> hmm. I might give that a try
<clever> elvishjerricco: i would prefer using -E or a shell.nix with nix-shell, then i can just import a fixed version directly
<clever> and not care about NIX_PATH at all
<worldofpeace> clever: To bootstrap it just added another authorized public key for root on the machines. I should just use the nixops key now right?
<clever> angerman: fetchNixpkgs.nix, when working right, allows you to just `unset NIX_PATH`, then it has to be pure
<elvishjerricco> clever: That breaks down when you import expressions that depend on `<nixpkgs>`. Such expressions are an annoyance, but they do exits
<clever> elvishjerricco: which is why i unset NIX_PATH to audit the source for such mistakes
<clever> worldofpeace: yeah
<elvishjerricco> fetchNixpkgs.nix always struck me as a big hammer. I much prefer to just say you need Nix 2.0 and use builtins.fetchTarball :P
<worldofpeace> clever: * It should just
<clever> elvishjerricco: fetchNixpkgs.nix is just an if statement to deal with nix 1.0 stuff
<elvishjerricco> clever: Yea
<elvishjerricco> But I don't like checking in the same copy pasted code in every project
<clever> if you decide to abandon nix1, you can just use fetchTarball directly
<elvishjerricco> yep
<worldofpeace> clever: nixops automates the key generation and authorization so I shouldn't have to do anything right?
<clever> worldofpeace: correct
<worldofpeace> clever: So when I remove the throwaway key from the config it should use the nixops key no problem
<clever> worldofpeace: when nixops asks the "none" backend to create a vm, it will generate a new key: https://github.com/NixOS/nixops/blob/master/nixops/backends/none.py#L50-L63
<clever> worldofpeace: and line 83 sets up the ssh -i flag to load the private
<clever> worldofpeace: i would keep your own key as an extra backdoor, either set via configuration.nix extraUsers.root.authroized keys, or directly in /root/.ssh/authorized
wpcarro has joined #nixos
<worldofpeace> clever: Yeah that makes sense to keep it. but I don't the ssh flags are there because the output with `nixops ssh blah -v` it's looking in my .ssh. Maybe it not being on port 22 is breaking it?
<clever> worldofpeace: ive not tried changing the port, but you could abuse ~/.ssh/config to change the default port of that hostname
<worldofpeace> clever: I guess this might actually be a thing https://github.com/NixOS/nixops/pull/845
<{^_^}> nixops#845 (by P-E-Meunier, open): Testing port 22 if the targetPort fails
<worldofpeace> clever: maybe
Ariakenom has joined #nixos
wpcarro has quit [Ping timeout: 248 seconds]
<clever> worldofpeace: looks like its better to configure the port within nixops
<clever> nixops tries to connect to the port without ssh (and wont read ~/.ssh/config) to test if its booted or not
andymandias has quit [Ping timeout: 264 seconds]
<clever> worldofpeace: oh, i hadnt seen the privateKey option before: https://github.com/NixOS/nixops/blob/4bbceb294fc50146a4fd47352fba786ee1af6654/nix/ssh-tunnel.nix#L25-L36
<clever> ah, thats something diff
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever> worldofpeace: oh, neat, line 157
Guanin has quit [Ping timeout: 240 seconds]
<clever> worldofpeace: it will automatically read the nixos sshd config!
andymandias has joined #nixos
<{^_^}> [nixpkgs] @dotlambda opened pull request #44216 → python3.pkgs.cheroot: fix build → https://git.io/fN2EZ
freeman42x]NixOS has quit [Ping timeout: 240 seconds]
Guanin has joined #nixos
<worldofpeace> clever: hmm, I'm using targetPort. There's `deployment.keys`. But I think I fried my brain silly over this so I'm not so clear what to do :P
andreabedini has joined #nixos
fragamus has joined #nixos
andreabedini has quit [Client Quit]
<worldofpeace> clever: I can see not that it's connecting on the right port but it's just looking in .ssh and obviously it won't find what it's looking for there
rodarmor_ is now known as rodarmor
<clever> worldofpeace: try `nixops ssh -v`
<worldofpeace> clever: * looking .ssh for the keys
<worldofpeace> clever: that's how I found that out :D
<clever> worldofpeace: check the cli args to the ssh process in `ps aux`
iqubic has left #nixos [#nixos]
andreabedini has joined #nixos
<worldofpeace> clever: as expected no flags
fresheyeball has joined #nixos
<fresheyeball> how can I delete a specific drv from the nix-store?
<fresheyeball> actually
<fresheyeball> got it
<clever> fresheyeball: nix-store --delete
<fresheyeball> ack nope
<fresheyeball> it says its alive
<clever> nix-store --query --roots
<clever> what roots its finds will determine the next step
<fresheyeball> /var/lib/jenkins/workspace/r_more-rational-than-before-DICLYYW4EAAV7L5HNWZ7WYJJ2OYPRGXGLQ56TWLSELJ62JPU3KQA/result
<fresheyeball> it gave a path that is not in the nix-store
<fresheyeball> I guess I can just rm it
<clever> thats an indirect root, from nix-build
<clever> so delete the result symlink and try again
MP2E has quit [Remote host closed the connection]
smolboye has joined #nixos
<{^_^}> [nixpkgs] @jameysharp opened pull request #44217 → package GNOME Builder → https://git.io/fN2EQ
<fresheyeball> clever: worked
<fresheyeball> thank you
mariatsji has joined #nixos
<{^_^}> [nixpkgs] @jameysharp closed pull request #44187 → Fix gobject-introspection, and package gnome-builder and dependencies → https://git.io/fNgS5
`_ has joined #nixos
m0rphism has joined #nixos
lassulus has quit [Ping timeout: 240 seconds]
fragamus has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
mariatsji has quit [Remote host closed the connection]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
worldofpeace has quit [Remote host closed the connection]
Coyin has joined #nixos
Ariakenom has quit [Quit: Leaving]
igo95862 has quit [Remote host closed the connection]
worldofpeace has joined #nixos
smolboye has quit [Ping timeout: 256 seconds]
igo95862 has joined #nixos
<{^_^}> [nixpkgs] @dotlambda merged pull request #44216 → python3.pkgs.cheroot: fix build → https://git.io/fN2EZ
<{^_^}> [nixpkgs] @dotlambda pushed to master « python3.pkgs.cheroot: fix build (#44216) »: https://git.io/fN2ug
reinzelmann has joined #nixos
<Shados> I've been looking at the chromium expression to try and find out if I can override the src for flash without just pointing to a nixpkgs w/ that done. Unfortunately, it looks like it's nested away inside its own little let expressions instead of being passed in, so I'm guessing I'm SOL on that front?
<manveru> anyone wanna merge https://github.com/NixOS/nixpkgs/pull/44205 ? :)
<{^_^}> #44205 (by manveru, open): golangci-lint: init at 1.9.2
mariatsji has joined #nixos
periklis has joined #nixos
lassulus has joined #nixos
hyper_ch2 has joined #nixos
`_ has quit [Quit: WeeChat 2.1]
smolboye has joined #nixos
mariatsji has quit [Remote host closed the connection]
Ariakenom has joined #nixos
<manveru> i guess there's still no way to fetchGit and keeping the .git :|
<clever> manveru: what about switching to pkgs.fetchgit ?
dbmikus has quit [Ping timeout: 256 seconds]
<manveru> I wanted to use it via ./. so it honours the gitignore
smolboye has quit [Ping timeout: 245 seconds]
<manveru> Guess it's back to filtering
<clever> manveru: ah, why do you need to keep the .git?
<manveru> I'd like to run a linter that checks for violations since the last commit
<clever> ah
<manveru> Trying to get Scylla to handle testing and linting as well as building
<Orbstheorem> Anyone has an idea for my question? :) (~6h ago)
mariatsji has joined #nixos
<manveru> Maybe ask again? ;)
koisell has joined #nixos
<Orbstheorem> Hi, I'm trying to package a toolchain that uses `gcc -print-file-name=...` to vefiry if the libs are there: (https://paste.gnugen.ch/raw/iyqE). However libreries specified in buildInputs do not appear in stdenv's gcc default search path. Am I missing something or is upstream doing something wrong?
agander has joined #nixos
<Orbstheorem> s/vefiry/verify; s/libreries/libraries
<clever> Orbstheorem: nix uses a bash script called gcc to wrap the real compiler, and will add -L flags from $NIX_LDFLAGS to gcc's command line
<clever> Orbstheorem: so the buildInputs are never in the default search path, just the args passed to gcc
<{^_^}> [nixpkgs] @andreabedini opened pull request #44219 → aws-sam-cli: 0.4.0 -> 0.5.0 → https://git.io/fN2zu
iqubic has joined #nixos
Aexoden has quit [Quit: No Ping reply in 180 seconds.]
<Orbstheorem> clever: Should I patch upstream's configure file then?
Aexoden has joined #nixos
<Orbstheorem> Or is there a better solution?
<clever> Orbstheorem: i would just patch the configure script to try linking a binary that uses a symbol from the library
<clever> Orbstheorem: compile a .c file that calls a single function in the library, and run gcc -lfoo bar.c -o test
<clever> thats how most configure scripts work
periklis has quit [Ping timeout: 244 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/bd05e877dc0 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<iqubic> Isn't there a linux command "Patch"?
<Orbstheorem> Well, the configure script uses a generic function to check all libs, I'd rather not modify every library check :c
<clever> hyper_ch: unstable finally updated!
<clever> iqubic: lowercase patch
<etu> clever: Small though
* etu is still hoping for unstable not small
<clever> etu: that was also hung for some reason
<etu> :)
<Orbstheorem> clever: But thanks, I'll see if I can come up with something generic
tzemanovic has quit []
Tucky has joined #nixos
Ariakenom has quit [Quit: Leaving]
Ariakenom has joined #nixos
instantepiphany has joined #nixos
periklis has joined #nixos
<instantepiphany> I am installing vim-racer, a vim plugin for racer, which is a completion/syntax engine for rust-lang. Part of the installation is adding a line to the vim config that points to the racer executable. I have racer listed as build input in a nix expression which I use with `nix-shell`. In my user overlays, I modify vim to use extra plugins, and thats
<instantepiphany> where I need to specify the path to the racer binary. Am I doing this the wrong way? How do get the path for racer which may not even currently be in the nix-store?
igo95862 has quit [Remote host closed the connection]
igo95862 has joined #nixos
<manveru> instantepiphany: i build my vim config with nix :)
<manveru> don't use racer myself, but that'd also solve this issue
cdepillabout has joined #nixos
<instantepiphany> If you mean your config is embedded in the expression mine is too - I am just still not sure how to pull that path from wherever. Wouldn't I have to specify racer as a dependency in my neovim override?
<instantepiphany> I am trying to figure out how to do that now manveru.
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdepillabout has quit [Quit: Leaving]
andreabedini has joined #nixos
<Enzime> gchristensen: is it possible to make OfBorg comment that it won't build a certain platform if it's building some other platforms
<Enzime> e.g. https://github.com/NixOS/nixpkgs/pull/43977 it was not obvious this wasn't tested/built on Darwin
<{^_^}> #43977 (by dywedir, merged): mpv: 0.28.2 -> 0.29.0
andreabedini has quit [Client Quit]
demize has joined #nixos
<neonfuz> How do I disable systemd services in nixos?
<neonfuz> declaratively that is
<clever> neonfuz: systemd.services.name.enable = false;
<neonfuz> Can I not have it not be enabled, but stay installed?
<neonfuz> I would like to have it be installed and be ready to enable, but not on by default
<clever> neonfuz: you can also do systemd.services.name.wantedBy = lib.mkForce [];
<neonfuz> will that make it install?
<clever> it has to be installed seperately, by enabling the right entry under services.something.enable
thc202 has joined #nixos
mariatsji has quit []
<{^_^}> [nixpkgs] @vbgl opened pull request #44220 → ocamlPackages.{uunf,uucp,uuseg}: 10.0 -> 11.0.0 → https://git.io/fN22X
smolboye has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed 6 commits to staging: https://git.io/fN221
igo95862 has quit [Remote host closed the connection]
stanibanani has joined #nixos
stanibanani has left #nixos [#nixos]
<{^_^}> [nixpkgs] @vcunat merged pull request #43378 → mesa: free up floating point textures (patents expired), 8.1.2 -> 8.1.4 → https://git.io/fNIWB
hyper_ch2_ has joined #nixos
igo95862 has joined #nixos
hyper_ch2 has quit [Ping timeout: 252 seconds]
andymandias has quit [Ping timeout: 264 seconds]
markus1199 has quit [Ping timeout: 264 seconds]
palo_ has joined #nixos
palo_ has quit [Changing host]
palo_ has joined #nixos
palo has quit [Ping timeout: 268 seconds]
goibhniu has joined #nixos
andymandias has joined #nixos
betaboon has joined #nixos
wpcarro has joined #nixos
jensens has joined #nixos
wpcarro has quit [Ping timeout: 256 seconds]
tusj has joined #nixos
<elvishjerricco> Anyone here familiar with typescript?
exadeci_ has joined #nixos
exadeci_ is now known as exadeci
smolboye has quit [Quit: WeeChat 2.0]
<{^_^}> [nixpkgs] @eddyb opened pull request #44221 → Use the default for NIX_CXXSTDLIB_COMPILE even if defined (but empty). → https://git.io/fN2VU
<eddyb> so that was a fun investigation :P
<eddyb> (using clang through nix-shell broke again so someone suggested nix run, which works fine for C code, but can't find C++ headers)
<clever> eddyb: what about nix-shell -E 'with import <nixpkgs> {}; clangStdenv.mkDerivation { name = "name"; }'
periklis has quit [Remote host closed the connection]
periklis has joined #nixos
<eddyb> clever: that does make clang work
<eddyb> clever: but I have a pretty complex setup and I threw away the nix-shell bits :(
<clever> any time you want to use clang in nix, you need to use clangStdenv.mkDerivation instead of the normal stdenv
<eddyb> maybe I should run nix-shell under nix run or something
<clever> that deals with fixing all of the problems
<clever> nix run shouldnt be used during development
<eddyb> well
<eddyb> this is complicated because I can't use a proper default.nix for it
<clever> nix run is designed to skip all of the development based scripts that fix things
<clever> why not?
Tiez has joined #nixos
<eddyb> or hmm maaybe I could
<clever> for most packages, you can use the same default.nix for both nix-shell and nix-build
<eddyb> clever: I sort of need a combination, where I use nix run to get a session on the server to get some tools and then nix-shell to actually do some of the building
<eddyb> clever: the thing is that this is not a Nix package or anything remotely resembling one
ersran9 has joined #nixos
ersran9 has quit [Changing host]
ersran9 has joined #nixos
<eddyb> this is me hacking on a project with a convoluted setup using git snapshots to a NixOS server
<eddyb> it's very convenient because I can keep all the dependencies in one (long and ugly) command in my text editor
<eddyb> but it breaks from time to time
<clever> any time you change your nixpkgs version, the path to all of those deps will change
<eddyb> I've used default.nix files for smaller projects, especially those where OpenGL is involved
<clever> and then everything breaks
<clever> you need to use the env vars that nix-shell sets up to make sure it always works
periklis has quit [Ping timeout: 256 seconds]
<eddyb> clever: I haven't had issues of that nature in ages, for me it's more "now I need this weird env var to unbreak things"
<clever> and you should probably do a `make clean` any time nixpkgs updates
<eddyb> or "this package got renamed/split/etc"
<eddyb> clever: if it doesn't work with an inline nix-shell for clangStdenv I'll try to craft a default.nix and see how far that gets me
<eddyb> for a while I had CC=clang CXX=clang++ and it seemed to work
<clever> nix-shell will set those for you when using clangStdenv
* eddyb is not sure what changed recently, but some libc includes were broken when using stdenv+clang+CC=clang
ThatDocsLady has joined #nixos
<eddyb> clever: I don't plan on waiting for https://github.com/NixOS/nixpkgs/pull/44221 either way since I've been delayed a lot as-is, but I'll keep it open even if I find some solution that doesn't require it
<{^_^}> #44221 (by eddyb, open): Use the default for NIX_CXXSTDLIB_COMPILE even if defined (but empty).
obadz has quit [Quit: WeeChat 2.1]
igo95862 has quit [Quit: igo95862]
__Sander__ has joined #nixos
obadz has joined #nixos
raynold has quit [Quit: Connection closed for inactivity]
trylist has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @nlewo opened pull request #44222 → skopeo: 0.1.30 -> 0.1.31 → https://git.io/fN2wD
fleaz has joined #nixos
instantepiphany has quit [Ping timeout: 264 seconds]
wpcarro has joined #nixos
wpcarro has quit [Ping timeout: 268 seconds]
hyper_ch2_ has quit [Quit: Page closed]
cryptopsy has joined #nixos
<cryptopsy> how do i install nixos in a VM ? never used it before
<cryptopsy> just testing
<tilpner> cryptopsy - Maybe you would prefer to download the virtualbox appliance directly? https://nixos.org/nixos/download.html
<ldlework> Has anyone written a haskell tooling guide for NixOS?
alex`` has joined #nixos
<ldlework> thanks
i-am-the-slime has joined #nixos
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/408bd2b80ed (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
Anton-Latukha has joined #nixos
agander has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #43985 → lesspipe: add missing dependency on 'file' → https://git.io/fNl07
<{^_^}> [nixpkgs] @Mic92 pushed 4 commits to master: https://git.io/fN2ot
<{^_^}> [nixpkgs] @edolstra pushed to master « Revert "release/metrics: drop requiredSystemFeatures" »: https://git.io/fN2oY
__Sander__ has quit [Ping timeout: 245 seconds]
__Sander__ has joined #nixos
hph^ has quit [Read error: No route to host]
smolboye has joined #nixos
<ldlework> lol "Actually, this convention causes trouble with packages like 3dmodels and 4Blocks, because these names are invalid identifiers in the Nix language. The issue of how to deal with these rare corner cases is currently unresolved.)"
<smolboye> helo ok um
hph^ has joined #nixos
hph^ has quit [Max SendQ exceeded]
<smolboye> my udev rule isnt working. can anyone help me out?
hph^ has joined #nixos
hph^ has quit [Max SendQ exceeded]
iqubic` has joined #nixos
hph^ has joined #nixos
hph^ has quit [Max SendQ exceeded]
hph^ has joined #nixos
hph^ has quit [Max SendQ exceeded]
hph^ has joined #nixos
iqubic has quit [Ping timeout: 260 seconds]
<ldlework> On NixOS, for example, Nixpkgs does not exist in the top-level namespace by default. To figure out the proper attribute path, it’s easiest to query for the path of a well-known Nixpkgs package, i.e.: If your system responds like that (most NixOS installations will), then the attribute path to haskellPackages is nixos.haskellPackages. Thus, if you want to use nix-env without giving an explicit -f flag, then
<ldlework> that’s the way to do it:
<tilpner> smolboye - I have no idea if I can or want to help you, that depends on the issue you have. Generally it's better to ask your question instead of asking to ask the question.
<ldlework> i will probably never understand nixpkgs completely
<smolboye> im sorry i got busy
<smolboye> i will post in a minute
i-am-the-slime has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @nlewo merged pull request #44222 → skopeo: 0.1.30 -> 0.1.31 → https://git.io/fN2wD
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/fN2Kv
smolboye has quit [Quit: WeeChat 2.0]
<{^_^}> [nixos-org-configurations] @edolstra pushed to master « Add t2m/t2a »: https://git.io/fN2KU
smolboye has joined #nixos
jrolfs has joined #nixos
<ldlework> the docs explain you can use nix-env -iA nixos.haskellPackages.cabal-install
<ldlework> but don't explain how to accomplish the same with nix-shell
<ldlework> doing nix-shell -p nixos.haskellPackages.cabal-install for example says "undefined variable nixos"
<manveru> try it without the nixos. part?
<ldlework> how am i supposed to reason about that
<ldlework> its like git all over :)
<manveru> :D
<the-kenny-w> Is there something like `wrapProgram` as a derivation? I have a bunch of scripts I need to wrap for dependencies and don't want to write a full derivation for each.
lutzmor has joined #nixos
<manveru> ldlework: not much related to `nix-env` is super easy to understand, unfortunately :(
kiloreux has quit [Ping timeout: 264 seconds]
<manveru> i generally don't use it much anyway... but for some reason it seems to be the first thing shown to newbiews
<ldlework> I feel like nix-env and nix-shell should have the same ui except for the parts they diverge or whatever
<{^_^}> [nixpkgs] @Mic92 merged pull request #44209 → nix-top: init at 0.1.0 -> 0.2.0 → https://git.io/fN2Y2
<{^_^}> [nixpkgs] @Mic92 pushed 4 commits to master: https://git.io/fN2Kz
<ldlework> i wonder if everytime you build ghc with different libraries if you accumulate multiple copies of unused ghc packages (which are huge)
<manveru> shouldn't be the case, unless you build with a different ghc everytime
<manveru> since ghc is an input into the library, the output hash of the library would differ
<ldlework> everytime you do ghcWithPackages isn't it a completely new derivation?
<eddyb> clever: welp, I'm back at this: /nix/store/lyd89mv72m8a0aw1a4idfimyi0rb2b13-glibc-2.27-dev/include/bits/stdlib.h:90:3: error: "Assumed value of MB_LEN_MAX wrong"
<ldlework> so if you do it with package-foo first, then again with package-foo and package-bar don't you have two ghc builds in your store?
<eddyb> clever: I got past that before by using nix run with no nix-shell (or at least I thought I did)
<manveru> ldlework: well, you can try it, do you have a package-foo and package-bar to test with?
<ldlework> the need to configure your system with package overrides just to specify libraries seems like not great ui as well
wpcarro has joined #nixos
<manveru> true
<ldlework> which means you better understand how packageOverrides work, which means you understand a lot about the module system and nixpkgs
<manveru> not gonna defend haskell, since i don't even use it :P
<ldlework> nix's complexity is off the charts
<{^_^}> #26334 (by nagisa, open): Assumed value of MB_LEN_MAX wrong with clang
<eddyb> how have I not hit that before?!
<manveru> ldlework: i think it was rather sane when i tried it with stack, and i ignored the prebuilt haskellPackages
<ldlework> manveru: so you tried haskell but didn't stick with it
<manveru> yeah
jrolfs_ has joined #nixos
<manveru> i still think the whole system of sticking every known haskell package into nixpkgs isn't exactly working out well
jrolfs has quit [Ping timeout: 245 seconds]
<manveru> plus the maintainer for that package collection just retired as well, so i'm not sure who'll keep it going
<ldlework> :3
<tilpner> ldlework - This might seem like nitpicking to you, but nix itself has okay user-facing complexity, it's nixpkgs that's hard to approach
<ldlework> tilpner: i'm trying to use nix to use haskell and nixpkgs is thrown in my face
<manveru> i understand the benefit of having haskell stuff being built by hydra, since building anything in haskell takes years :P
wpcarro has quit [Ping timeout: 244 seconds]
<manveru> but well...
<ldlework> ah well, the F# support is even worse
<tilpner> ldlework - I mostly agree with your point, I just want you to blame nixpkgs, not nix :)
<ldlework> heh
<manveru> true :)
<eddyb> clever: okay I can't repro it in isolation, that's weird
<ldlework> manveru: what language do you enjoy
<{^_^}> Channel nixos-18.03 advanced to https://github.com/NixOS/nixpkgs/commit/6115f477703 (from 10 days ago, history: https://channels.nix.gsc.io/nixos-18.03)
<manveru> ldlework: ruby, crystal, go, tcl...
<ldlework> :(
<ldlework> i don't know what to pursue
kiloreux has joined #nixos
<ldlework> i'm in love with F#'s take on OCaml/ML, an absurdly beautiful language but it is so hard to run anywhere but windows
<ldlework> and that toolchain, ugh
<manveru> hmm
<ldlework> F# on Erlang VM
<ldlework> unghhh
<manveru> it runs on BEAM?
<manveru> since... when?
<ldlework> manveru: no i wish
<manveru> lol ok
<ldlework> i'm denoting my ideal language ha
<manveru> i like elixir too, just their dialyzer wasn't really good when i tried last time
<ldlework> elixir seems cool but it also seems like a pathetic ml
<ldlework> no currying
<ldlework> |> pipes to first arg?
<ldlework> wtf
<ldlework> do end
<ldlework> kill me
<ekleog> my ideal language would be the guarantees of f*, the ease of writing of python, the redundancy-capability of erlang, and the low-levelness of rust
<ekleog> … oh wait
<ldlework> what is f*?!
<tilpner> Yeah, uhm, don't wait for that, ekleog
<ldlework> ah
<manveru> a dialect of f# ofc :)
<manveru> why do programming language names become worse and worse...
<ldlework> cool, but it still requires F# toolchain
<eddyb> clever: so this errors, but if I replace nix-shell with nix run it works: echo -e '#include <limits.h>\n#include <stdlib.h>' | nix-shell -E 'with import <nixpkgs> {}; clangStdenv.mkDerivation { name = "name"; }' --run 'clang -ffreestanding -x c -'
<ekleog> tilpner: Oh? I thought it was coming tomorrow 😇
<manveru> eddyb: does it work with --pure in nix-shell?
<eddyb> manveru: nope
<ldlework> ekleog: do you use F* with nixos?
<andi-> f* already has too many operators in their first example.. at least for my taste.. I still like C.
<ldlework> ML's are all about those operators
<ekleog> ldlework: not yet, that's somewhere on my todo-list
<ekleog> haven't used F* with anything, btw, just something that looks just so cool
<andi-> ldlework: It always feels like some failing ASCII-Art-Artist ;)
<ekleog> (hello HACL*)
<ldlework> my favorite programming book is Concurrent Programming in ML by John Reppy: https://www.amazon.com/Concurrent-Programming-ML-John-Reppy/dp/0521714729
<ldlework> which uses the concurrent extenstion to SML, and builds up all the concurrency abstractions we know from scratch primitives
<ekleog> Also, I seem to remember being told that Low* (a subset of F*) can be extracted to C without the whole F# toolchain, but not sure about that
<ldlework> i ported half the examples to F# using an CML library called Hopac
* manveru is still waiting for the revival of Smalltalk
<manveru> which is also a PITA to package with nix...
mmercier has joined #nixos
<ldlework> the ways that operators can express concurrency and monadic operations is really nice
hyper_ch2 has joined #nixos
orivej has joined #nixos
<ldlework> you can create tiny little servers which do impressive feats with just a couple lines, or even one line in some cases
mmercier has quit [Client Quit]
<ldlework> elixir should've emulated CML *sigh*
mmercier has joined #nixos
<manveru> what about the other languages targeting BEAM?
<eddyb> manveru, clever: wait, what on earth, I can't find anything relevant in the env vars o_O
<eddyb> env NIX_CFLAGS_COMPILE="" clang -ffreestanding -x c - doesn't help
<ldlework> a true CML/F#-like on BEAM would be a dream
<{^_^}> [nixpkgs] @Mic92 merged pull request #44112 → nextcloud: 13.04 -> 13.05 → https://git.io/fN0dH
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fN2PE
<tilpner> ldlework, ekleog, manveru - Maybe this should be in #nixos-chat
<ldlework> sorry
smolboye has quit [Quit: WeeChat 2.0]
<eddyb> echo -e '#include <limits.h>\n#include <stdlib.h>' | nix-shell -E 'with import <nixpkgs> {}; clangStdenv.mkDerivation { name = "name"; }' --run 'env -i '(which clang)' -ffreestanding -x c -'
<eddyb> haha it is something in the environment
<eddyb> now to figure out exactly what
<eddyb> oh it's NIX_CC_WRAPPER_x86_64_unknown_linux_gnu_TARGET_HOST
ng0 has joined #nixos
<hyper_ch2> why is git so awesome?
<{^_^}> [nixpkgs] @offlinehacker closed pull request #28921 → spice-vdagent module: start in foreground so logs are visible → https://git.io/v50Mu
<{^_^}> [nixpkgs] @offlinehacker closed pull request #28935 → docker module: add support for docker lvm plugin → https://git.io/v507S
<hyper_ch2> clever: unstable small got updated :)
<eddyb> clever, manveru: it was NIX_HARDENING_ENABLE UGHHH
johnw has quit [Ping timeout: 265 seconds]
<hyper_ch2> question: on github I forked nixpkgs... now my fork is like many commits behind.... how can I update my github fork to latest nixpkgs one?
freeze_ has joined #nixos
<freeze_> hi, I am playing with a local package and am able to add it direclty in my config using callPackage (or an overlay), but I would like to also add a custom/local module and can't figure how to achieve this (without cloning the nixpkgs repository and adding it in the tree)
sigmundv_ has joined #nixos
nckx has quit [Ping timeout: 265 seconds]
nckx has joined #nixos
iceychris has joined #nixos
sigmundv has quit [Disconnected by services]
sigmundv_ is now known as sigmundv
sigmundv_ has joined #nixos
simukis has joined #nixos
<ldlework> The specified SDK version [2.1.4] from global.json [/home/ldlework/src/Fable/global.json] not found; install specified SDK version
<ldlework> The latest version of dotnet-sdk is 2.0.3. How would I got about updating https://github.com/NixOS/nixpkgs-channels/blob/nixos-unstable/pkgs/development/compilers/dotnet/sdk/default.nix#L16
<ldlework> such that i could try to build the new version and get it installed?
asymmetric has quit [Ping timeout: 240 seconds]
<freeze_> ldlework: why not use an overlay ?
Anton-Latukha has quit [Ping timeout: 244 seconds]
ericsagnes has quit [Ping timeout: 256 seconds]
<{^_^}> [nixos-hardware] @Mic92 merged pull request #60 → Add basic support for 6th-gen X1 → https://git.io/vhZjL
<{^_^}> [nixos-hardware] @Mic92 pushed 13 commits to master: https://git.io/fN2yb
__monty__ has joined #nixos
stanibanani has joined #nixos
stanibanani has left #nixos [#nixos]
andymandias has quit [Ping timeout: 248 seconds]
wpcarro has joined #nixos
toby1851 has quit [Ping timeout: 248 seconds]
wpcarro has quit [Ping timeout: 248 seconds]
andymandias has joined #nixos
Anton-Latukha has joined #nixos
knupfer has joined #nixos
Tobba has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #44103 → Add Home option to Hoogle Server → https://git.io/fN0C5
<{^_^}> [nixpkgs] @Mic92 pushed commit from @Fresheyeball to master « nixos/hoogle: add home option (#44103) »: https://git.io/fN29K
asymmetric has joined #nixos
alex`` has quit [Quit: WeeChat 2.2]
orivej has quit [Ping timeout: 264 seconds]
<{^_^}> [nixos-hardware] @azazel75 opened pull request #69 → Link X1 6th gen to the README → https://git.io/fN2Hq
periklis has joined #nixos
<{^_^}> [nixpkgs] @srhb opened pull request #44225 → chromium: Increase build timout to two days → https://git.io/fN2Hm
Tobba has joined #nixos
<srhb> I wonder if we could have some meta attribute that instructs Hydra to consider a certain derivation to be consuming more jobs...
<srhb> Re chromium above.
<{^_^}> [nixpkgs] @Mic92 merged pull request #44161 → Nginx modules → https://git.io/fNz6R
<{^_^}> [nixpkgs] @Mic92 pushed 5 commits to master: https://git.io/fN2Hu
<etu> srhb: I will probably be in Malmö/Copenhagen around 9-10th of August:)
exadeci has quit [Quit: Connection closed for inactivity]
<srhb> etu: Oh cool!
<etu> If the car doesn't break down or so :p
<etu> It should be fine
<srhb> Hrm, those are work days for me, and I work evening. q_q I'll see if I can make time somehow.
<etu> Hmm
hiro_p has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #44210 → beegfs: 6.18 -> 7.0 → https://git.io/fN2O3
<{^_^}> [nixpkgs] @xeji pushed commit from @markuskowa to master « beegfs: 6.18 -> 7.0 (#44210) »: https://git.io/fN2Hy
Coyin has quit [Ping timeout: 248 seconds]
<etu> srhb: My friends in Malmö work during the days and want to hang out in the evenings. I don't know about your schedules but I'm free during the days. And I'm not a big fan of beers so I can eat food and drink tea. And I don't come alone since it's vacation with my Wife:)
<{^_^}> [nixpkgs] @Mic92 merged pull request #44088 → yed: version update to 3.18.1 → https://git.io/fNRiq
<{^_^}> [nixpkgs] @Mic92 pushed commit from @ua74e3dqka to master « yed: 3.17.2 -> 3.18.1 (#44088) »: https://git.io/fN2HQ
<srhb> etu: I see. :) Well, I just thought it would be fun to meet a fellow Nixer. Might be a bit tricky this time around, as my schedule is usually 14-22 ish for work. Meh!
<etu> srhb: May stay until Saturday even, we'll see. We don't have a fix plan of days yet. Don't know if it helps though:)
jrolfs_ has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fN2Qm
<{^_^}> [nixpkgs] @Mic92 merged pull request #44030 → exim: add optional support for MySQL and the Dovecot authenticator → https://git.io/fN8pX
Neo-- has joined #nixos
<{^_^}> [nixpkgs] @yrashk opened pull request #44226 → astroid: 0.11.1 -> 0.13 → https://git.io/fN2Q3
jrolfs_ has joined #nixos
<{^_^}> [nixpkgs] @dywedir opened pull request #44227 → rdedup: 2.0.0 -> 3.0.1 → https://git.io/fN2Qo
mmercier has quit [Quit: mmercier]
init_6 has joined #nixos
aarvar has joined #nixos
jrolfs has joined #nixos
jrolfs_ has quit [Ping timeout: 256 seconds]
rembo10 has quit [Quit: ZNC 1.7.0 - https://znc.in]
orivej has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #44215 → python.pkgs.pytest-flake8: 1.0.1 -> 1.0.2 → https://git.io/fN20z
<{^_^}> [nixpkgs] @xeji pushed commit from @dotlambda to master « python.pkgs.pytest-flake8: 1.0.1 -> 1.0.2 (#44215) »: https://git.io/fN272
<asymmetric> hey, i'm trying to package a rofi plugin, that normally would end up in /usr/lib/rofi and be found by rofi
ericsagnes has joined #nixos
<asymmetric> i thought i could use makeWrapper --add-args to invoke rofi with a custom plugin path, but the plugin itself is not an executable, so makeWrapper doesn't work, right?
rembo10 has joined #nixos
<srhb> asymmetric: I don't see why not. The usual pattern is something like rofiWithPlugins [ ... ] where [ ... ] gets built into a symlink forest of all the plugins needed, and then the wrapper just adds --plugin-path that points at that forest.
<asymmetric> srhb: is there an example i could look at?
<asymmetric> srhb: do you mean that rofiWithPlugins would be an argument to the rofi expression? right now what i'm doing is creating a separate expression for the plugin, but maybe that's the wrong approach?
<srhb> asymmetric: I don't know what the simplest example is, but both python.withPlugins, haskellPackages.ghcWithPackages, vim_configurable and terraform do something similar to this
<srhb> asymmetric: I'd probably consider it a separate derivation entirely
<srhb> asymmetric: But if you want to just keep it contained, then add a plugins argument to rofi itself, yeah.
<srhb> asymmetric: And then the user of the derivation would use.. myRofiWithPlugins = rofi.overrideAttrs (oa: { plugins = [ ... ]; });
<Thra11> In nixpkgs, is there a preferred style w.r.t. (!(a || b)) vs (!a && !b)?
tzemanovic has joined #nixos
asymmetric_ has joined #nixos
ng0 has quit [Quit: Alexa, when is the end of world?]
freeze_ has quit [Quit: Page closed]
asymmetric has quit [Ping timeout: 265 seconds]
ericsagnes has quit [Ping timeout: 264 seconds]
agander has joined #nixos
mmercier has joined #nixos
metalrain__ has joined #nixos
<asymmetric_> srhb: i wonder if i could just use writeScriptBin and run `rofi -plugins-path` there, and somehow drop script that in $out
asymmetric_ is now known as asymmetric
Coyin has joined #nixos
orivej has quit [Ping timeout: 244 seconds]
<hyper_ch2> how can I determine what packages are in a given channel and what version of the packages?
ericsagnes has joined #nixos
periklis has quit [Ping timeout: 265 seconds]
knupfer has quit [Ping timeout: 240 seconds]
<Ashy> $ man nixos-container
<Ashy> No manual entry for nixos-container
Tiez has quit [Quit: WeeChat 2.2]
<Ashy> do i need to install an explicit docs package?
<gchristensen> Enzime please open an isse on nixos/ofborg
<{^_^}> [nixpkgs] @Mic92 merged pull request #44227 → rdedup: 2.0.0 -> 3.0.1 → https://git.io/fN2Qo
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fN2Nt
<srhb> asymmetric: You still need to assemble the plugin path, but yes :)
<srhb> Does anyone know if max-free only affects automatic (triggered because < min_free) or every garbage collection?
<{^_^}> [nixos-hardware] @garbas closed pull request #62 → thinkpad x1 gen6 → https://git.io/f4NL0
<gchristensen> srhb: just auto I think
<srhb> Mokay. That's good.
hux has joined #nixos
<hux> Heyy guys :) !
<srhb> gchristensen: The globals.hh description seems a little misleading.
<hux> Can someone help me with Haskell stuff in Nixos
periklis has joined #nixos
<srhb> hux: Please state your actual question, if someone can help you they will respond :)
<hux> I would like to use a newer version of GHC for my project
<hux> But I want to use an older package for a dependency (which is available in ghc822)
<hux> atomic-primops
phreedom has quit [Ping timeout: 250 seconds]
phreedom has joined #nixos
<hux> When doing my nix-shell, It says that atomic-primops cannot be found (when rebuilding dependencies)
<srhb> hux: Instead of trying to override the compiler, use the specific compiler set and override just the package
<hux> srhb: can you give an example ? i want to override the compiler + one package (streamly here)
<srhb> hux: Are you on a channel that doesn't actually have haskell.packages.ghc843 ? Just wondering why you need to override the compiler.
<hux> srhb: I do have haskell.packages.ghc843
orivej has joined #nixos
<hux> srhb: By default haskellPackage will compile with ghc822
<srhb> hux: See section 9.5.4.2 in the manual on how to override a specific set instead :)
<hux> srhb: thanks :)
<hux> srhb: I may be wrong but this section is explaining how to change or override the compiler for the current user ?
Mateon3 has joined #nixos
<srhb> hux: 9.5.4.2 is specifically about overriding packages in a specific compiler package set.
<srhb> hux: For you, that means overriding packages in the ghc843 set.
<srhb> That is, you will not be using haskellPackages at all, but haskell.packages.ghc843
Mateon1 has quit [Ping timeout: 264 seconds]
Mateon3 is now known as Mateon1
<hux> did you checked the link gave ^^?
<hux> I've overridden the compiler package set here
<srhb> Oh, ehm, I thought I did, but clearly not very well. :)
<srhb> Sorry about that.
<hux> it's okay
<hux> the probleme here is with atomic-primops package
<hux> As you can see hes available in ghc822 (i need this exact one)
<hux> When compilling, nix is actually rebuilding some dependencies (that needs atomic-primops)
<hux> But they can't find it
<hux> atomic-primops = pkgs.haskellPackages.atomic-primops;
<hux> this is what i'm not sure abount
<srhb> I'm not sure it makes sense grabbing it from haskellPackages like that...
<srhb> Yeah
<srhb> Exactly...
<hux> with pkgs.haskell.packages.ghc842.atomic...
<hux> not working aswell :/
<hux> 822*
<srhb> If you just need a certain version of the _package_ maybe you could use callHackage?
<asymmetric> how can i get the path of the current package i'm building inside a writeScriptBin? the equivalent of $out
<srhb> hux: I realize it's a wrapper over some GHC functionality these days, so I'm not sure how much it can be safely overridenn.
<hux> srhb: will check callHackage
<hux> thanks anyway :))
jrolfs has quit [Ping timeout: 240 seconds]
<srhb> hux: Small example of its usage: http://nixpaste.lbr.uno/kiJ8moqn?nix
<{^_^}> [nixpkgs] @Profpatsch opened pull request #44228 → jq fix darwin build → https://git.io/fN2xt
UnAmazing has quit [Ping timeout: 265 seconds]
rardiol1 has joined #nixos
<hyper_ch2> srhb: how can you find out if a given commit is already in a given channel (unstable small) or waht the current version of a packge is in a given channel?
<srhb> hyper_ch2: For the latter: nix eval -f channel:nixos-18.03 hello.version
<srhb> For the former it's a bit more tricky since backports change hash.
periklis has quit [Ping timeout: 256 seconds]
mmercier has quit [Read error: Connection reset by peer]
<hyper_ch2> srhb: I will try
<srhb> hello.version was a bad example, since it does not have a version attribute. hello.name will do it. :)
wpcarro has joined #nixos
<hyper_ch2> srhb: do you also get 2.14.9? nix eval -f channel:nixos-unstable-small flexget.name
mmercier has joined #nixos
<hux> srhb: working nicely with callHackage :) thanks
<srhb> hyper_ch2: Yes.
<srhb> hux: Great :)
<hyper_ch2> yey... wasn't sure if it still listed from the local repo :)
<hyper_ch2> time to update server then :)
<hyper_ch2> I think I should make that a nix-expression
<srhb> hyper_ch2: I'm not sure exactly which rules fire to decide if we haven't checked for channel updates recently. Probably the binary cache sqlite.
<hyper_ch2> what should I name it :(
wpcarro has quit [Ping timeout: 244 seconds]
alex`` has joined #nixos
<hyper_ch2> something like this could work https://paste.simplylinux.ch/view/raw/031fbdb7
<hyper_ch2> symphorien: :) can't run that from cli
<samueldr> symphorien: this listing sometimes become a bit stale for the record
<{^_^}> [nixpkgs] @FRidh merged pull request #44219 → aws-sam-cli: 0.4.0 -> 0.5.0 → https://git.io/fN2zu
<{^_^}> [nixpkgs] @FRidh pushed 2 commits to master: https://git.io/fN2pr
agander_ has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #44229 → rr: enable on 32bit x86 → https://git.io/fN2py
nschoe has joined #nixos
hamishmack has joined #nixos
joehh has joined #nixos
agander has quit [Ping timeout: 268 seconds]
wpcarro has joined #nixos
orivej has quit [Ping timeout: 260 seconds]
ThatDocsLady has quit [Remote host closed the connection]
<{^_^}> [nixos-hardware] @Mic92 merged pull request #69 → Link X1 6th gen to the README → https://git.io/fN2Hq
<{^_^}> [nixos-hardware] @Mic92 pushed commit from @azazel75 to master « Link X1 6th gen to the README (#69) »: https://git.io/fN2hc
ThatDocsLady has joined #nixos
<hyper_ch2> few more fixes and it works :)
<hyper_ch2> I could try to auto-guess the channel by using channel --list
wpcarro has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @NeQuissimus pushed 3 commits to release-18.03: https://git.io/fN2hX
<{^_^}> [nixpkgs] @samueldr opened pull request #44231 → dbeaver: 5.1.3 -> 5.1.4 → https://git.io/fN2h7
<{^_^}> [nixpkgs] @samueldr opened pull request #44232 → dbeaver: 5.1.3 -> 5.1.4 (18.03) → https://git.io/fN2hd
<{^_^}> [nixpkgs] @Mic92 merged pull request #44205 → golangci-lint: init at 1.9.2 → https://git.io/fN2Ti
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fN2jk
<{^_^}> [nixpkgs] @Mic92 merged pull request #44202 → journald: set rateLimitInterval and rateLimitBurst to upstream defaults → https://git.io/fN2Jb
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fN2jn
UnAmazing has joined #nixos
<hyper_ch2> how can I test as user what channel NixOS is on in general (systemwide)?
<hyper_ch2> if I run nix-channel --list as normal user I don't get any result... if run as root I do get according entries
<samueldr> nix-info does it
<hyper_ch2> system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.0.4, channels(hyper): "", channels(root): "nixos", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos
<hyper_ch2> doesn't stay
periklis has joined #nixos
<samueldr> (I was talking in a general sense, that looking at the source may help)
<samueldr> looks like cat /nix/var/nix/profiles/per-user/root/channels/manifest.nix
Neo-- has quit [Remote host closed the connection]
<hyper_ch2> I should get "nixos-unstable-small" somehow :(
Neo-- has joined #nixos
<samueldr> I think this doesn't update if you just add/remove, you could need to update the channels
<hyper_ch2> samueldr: so question remains: how do I get to learn as normal user that the system is currently using the nixos-unstable-small channel?
<samueldr> I don't know if it's 100% possible
<hyper_ch2> ok, then I'll make it different... user should just enter 1 .. xx to select channel then :)
phdoerfler has joined #nixos
vdemeester` is now known as vdemeester
<samueldr> you can, though, get the commit ID from the current NIX_PATH nixpkgs IIRC
<samueldr> though I don't remember how off the top of my head
Anton-Latukha has quit [Quit: Leaving.]
<gchristensen> iirc .git-revision
Anton-Latukha has joined #nixos
blankhart has quit [Ping timeout: 240 seconds]
Thra11 has quit [Ping timeout: 240 seconds]
periklis has quit [Ping timeout: 240 seconds]
wpcarro has joined #nixos
ggp0647 has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #44231 → dbeaver: 5.1.3 -> 5.1.4 → https://git.io/fN2h7
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNaf0
<{^_^}> [nixpkgs] @Mic92 merged pull request #44232 → dbeaver: 5.1.3 -> 5.1.4 (18.03) → https://git.io/fN2hd
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to release-18.03: https://git.io/fNafE
<{^_^}> [nixpkgs] @Mic92 merged pull request #44229 → rr: enable on 32bit x86 → https://git.io/fN2py
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNaf2
wpcarro has quit [Ping timeout: 264 seconds]
tusj has quit [Ping timeout: 260 seconds]
Thra11 has joined #nixos
knupfer has joined #nixos
ThatDocsLady_ has joined #nixos
ThatDocsLady has quit [Read error: Connection reset by peer]
jdnavarro has quit [Remote host closed the connection]
<samueldr> I'm only intersted when you'll be able to do $nextYear-03 and $nextYear-09 ;)
<hyper_ch2> fixed it already :)
<hyper_ch2> ah...
<hyper_ch2> well, fixed xx-yy to xx.yy :)
<samueldr> pretty sure it's impossible :D
<hyper_ch2> give me a tardis and I'll make it possible - just for you
<hyper_ch2> also, I just assumed - out of laziness - that it'll be 09 and 03 releases
<samueldr> hyper_ch2: don't know if it could be useful to you curl https://nixos.org/channels/ | grep 'nixos-[^-]\+"' | sed -e 's/.*href="//' -e 's/".*//'
hux has quit [Quit: Page closed]
<samueldr> nixos-[^-]\+ to ignore all -small
<samueldr> you could | tail -n4
<samueldr> (and not sure if there's a more appropriate API endpoint)
<hyper_ch2> there's also the -small channel for 18.xx
<hyper_ch2> samueldr: feel free to make a PR :)
jperras has joined #nixos
jdnavarro has joined #nixos
<nschoe> Hi everyone, when I launch my Qt app from inside a nix-shell, I've got a warning on the console: "No XVisualInfo for format QSurfaceFormat(....)". And at the end, it talks about OpenGL. Does anyoen know how to fix this? Thanks!
<samueldr> nschoe: a --pure nix-shell?
rardiol1 has quit [Ping timeout: 268 seconds]
rardiol1 has joined #nixos
Thra11 has quit [Ping timeout: 248 seconds]
ggp0647 has joined #nixos
knupfer has quit [Ping timeout: 268 seconds]
blankhart has joined #nixos
worldofpeace has quit [Quit: worldofpeace]
frem has joined #nixos
tusj has joined #nixos
worldofpeace has joined #nixos
joehh has quit [Ping timeout: 244 seconds]
tusj has quit [Ping timeout: 268 seconds]
derped has joined #nixos
Denommus has joined #nixos
<Denommus> hey
nly has joined #nixos
<Denommus> I'm looking for the documentation on how to use a fork of nixpkgs in my NixOS configuration, but I can't find it
<Denommus> can anyone help me?
tusj has joined #nixos
<andi-> Denommus: nixos-rebuild switch -I nixpkgs=/home/Denommus/nixpkgs ;)
<nly> hi where can i find more about NIXOS-IPFS (https://github.com/NixOS/nix/issues/859)
<{^_^}> nix#859 (by vcunat, open): Nix and IPFS
<Denommus> andi-: isn't there an option that I can use in my configuration file?
<Enzime> andi-: probably not the best way to do it if he wants it to be permanent
reinzelmann has quit [Quit: Leaving]
<Denommus> I want it to be used with NixOps
<nly> i see that Vcunat is logged in on freenode but i don't see him in this channel
<hyper_ch2> nly: this happens
<hyper_ch2> I bug him way too often when he's in here :)
<nly> haha i was gonna bug him some more :P
<nly> I am not a great programmer but i was interested in the "hash conversion" part of the issue
<Enzime> Denommus: check out: https://nixos.org/nixos/options.html#nixpath
<hyper_ch2> nly: I bug him about Turris Omnia
<Enzime> you can override nixpkgs in your configuration.nix
wpcarro has joined #nixos
<Denommus> Enzime: thanks, I'll check
rardiol1 has quit [Quit: Leaving.]
wpcarro has quit [Remote host closed the connection]
<nly> cool stuff hyper_ch2, does mguentner hang out on IRC? he has made a workable solution for ipfs-nixos.
<hyper_ch2> don't know that nickname
<Denommus> Enzime: it's still not clear to me if that could be used with nixops
<Enzime> Denommus: I'm not familiar with NixOps so I'm not sure either
ersran9 has quit [Ping timeout: 260 seconds]
<Denommus> maybe I should just override the specific package/service I need
<azazel> sorry guys, nix newbie here... I'm trying to find out how to late-define the python version while learning how to do python packaging and I stumbled upon this "with self;" usage in the code example here: https://nixos.org/nixpkgs/manual/#handling-dependencies
<azazel> anyone knows what this is? what is really referencing?
<azazel> It doesn't seem part of an overlay, which is usually called with self: super:
<d1rewolf__> anyone here running thelounge for irc?
thelounge13 has joined #nixos
thelounge13 has quit [Client Quit]
<hyper_ch2> no
<thefloweringash[> azazel:
Cale has quit [Remote host closed the connection]
rardiol1 has joined #nixos
<thefloweringash[> azazel: I went spelunking, it looks like it's referring to https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/python-packages.nix#L18
<Denommus> if I add an imports = [ ./something.nix ]; that defines modules that are already defined in nixpkgs, are the modules overriden?
cryptomonoid has joined #nixos
<azazel> Denommus: what purpose would serve re-importing modules that already are in nixpkgs?
<thefloweringash[> There's a bit in the manual about that. To replace a module disable the built-in one with "disabledModules". See https://nixos.org/nixos/manual/index.html#sec-replace-modules
rardiol1 has quit [Quit: Leaving.]
erasmas has joined #nixos
biopandemic has quit [Quit: Quit.]
biopandemic has joined #nixos
<azazel> thefloweringash[: thank for the link, I immagine that it is something a circurlar reference to the set itself... that i fail to understand how it's setup
dbmikus has joined #nixos
<biopandemic> Does anyone know of an example of (somewhat sanely) recursively mapping an attrset of options for output to something like a file/json? Trying to export options to documentation. I know there isnt a sane way to do it with packages :( (unless I'm wrong??)
Dedalo has joined #nixos
rardiol1 has joined #nixos
Dedalo has left #nixos ["Textual IRC Client: www.textualapp.com"]
Dedalo has joined #nixos
<biopandemic> My attempts so far haven't worked as expected
<d1rewolf__> any of you tried irccloud at all?
<manveru> d1rewolf__: sure
dbmikus_ has joined #nixos
<azazel> biopandemic: It's not clear to me what you mean
blankhart has quit [Read error: Connection reset by peer]
tusj has quit [Ping timeout: 265 seconds]
<d1rewolf__> manveru, you're using irccloud? do you like it ok? trying to decide between it or self-hosting with thelounge, but I have so many other things to worry about than another self-hosted service ;)
<manveru> d1rewolf__: "trying" it for the past 4 years or so (at least that's how long i've been paying for it)
blankhart has joined #nixos
<d1rewolf__> manveru, ah, cool. if I used it, I'd have to use the pay-version as well, as I'd like to avoid timing out.
<biopandemic> manveru: Ideally, I'd like to produce a JSON object with my custom options, their descriptions and perhaps their defaults.
<d1rewolf__> any caveats/drawbacks you know of?
<thefloweringash[> @azazel: there's a call to `fix' (extends overrides packages)` at the bottom of the python packages file, and a general explanation of the technique at http://r6.ca/blog/20140422T142911Z.html
wpcarro has joined #nixos
cryptomonoid has quit [Ping timeout: 245 seconds]
dbmikus has quit [Ping timeout: 244 seconds]
<worldofpeace> ugh, no matter what I do nixops just won't use its ssh keypair for my machines. I've literally gone as far as taking the keys out of the .nixops file and putting them in .ssh/ because it only looks there for the keys.
<manveru> d1rewolf__: well, you can't connect your own irc client to it really, so unless you better like their web interface
<d1rewolf__> manveru, ok. I can probably handle that if it keeps me productive. thx :)
<manveru> i love their android app :)
d1rewolf_ has joined #nixos
<manveru> oh, also, searching logs isn't really a thing, you have to download the logs of the whole channel and search that
<d1rewolf_> manveru: what...really? wow. that is sorta a killer feature
<manveru> which might take a few minutes
<d1rewolf_> so I had two wishes: 1. stay connected, and 2. easily search past messages :(
<manveru> yeah, it's something i need once or twice a year, so not a big deal for me
<azazel> thefloweringash[: oh, thanks so much for the reference!
<d1rewolf_> manveru: if I stay connectedwith a pay account, can I search the scrollback easily? or would i have to download those logs as well?
<manveru> but i can also imagine having a full-text index for every user might be expensive
<samueldr> d1rewolf_: forget about quassel, it has the same issue, searches only through loaded scrollback
<d1rewolf_> samueldr: :(
<manveru> d1rewolf_: no, it unloads scrollback after some time
wpcarro has quit [Ping timeout: 256 seconds]
<samueldr> (but in every other aspects I love quassel)
<manveru> otherwise your browser would leak
<samueldr> I semi-fixed my issues by providing public logs for the channels :)
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/fNasl
<manveru> you can scroll back manually as many days as you want, and search that, but well :P
<d1rewolf__> manveru, oh well, better than nothing.
<d1rewolf__> samueldr, once I have nixops down I might replace irccloud with a nixos+quassel server, but for now, I'd prefer to avoid another vm I have to manually manage
<d1rewolf__> i'm looking forward to learning nixops more ;)
<manveru> hehe
<manveru> i decided on irccloud after accidentally deleting 10 years of irc logs or so ...
<d1rewolf__> manveru, ouch...
agander_ has quit [Ping timeout: 265 seconds]
<manveru> many are still hosted elsewhere, but still hurts
hakujin1 has joined #nixos
<d1rewolf__> manveru, I hear you. I'd be lost without some of my old logs
<d1rewolf__> well, at least, a little disoriented ;)
<d1rewolf__> manveru, done...I'm a customer ;)
<d1rewolf__> thanks
<biopandemic> azazel: Oops, I tagged the wrong person (sorry manveru, I was rushing :P). Ideally, I'd like to produce a JSON object with my custom options, their descriptions and perhaps their defaults.
d1rewolf__ has quit [Quit: Leaving]
<biopandemic> I was hoping somebody might have a more intelligent way to do it than what I've tried
<manveru> biopandemic: well, it might help to see what you've tried :)
<manveru> i've done a fair amount of JSON handling in Nix
<manveru> but i gotta head out now
<azazel> biopandemic: as i said in the query, using pkgs.lib.toJSON your_options doesn't work?
d1rewolf is now known as Guest49672
d1rewolf_ has quit []
d1rewolf_ has joined #nixos
<biopandemic> azazel: didnt see the Q reply :( builtins.toJSON? I found it complained about a bunch of things including some values of `pkgs`
hyper_ch2 has quit [Quit: Page closed]
d1rewolf_ has quit [Client Quit]
d1rewolf_ has joined #nixos
Twey has joined #nixos
<azazel> thefloweringash[: my brain grips reading that post :-)
<Twey> I'm trying to build an application that uses GLFW. I have a Nix shell for it, but it doesn't match my driver version and I get segfaults when it starts up. On the other hand, it uses pkgconfig to find GLFW, so if I build it in my nix-env, it doesn't find GLFW. And if I build it in an impure shell with GLFW it links GLFW against the wrong libGL.
<Twey> What do :(
<Yaniel> do you have pkgsconfig in your nix-shell env
<Yaniel> you also might need some xorg libs
<Yaniel> can't remember which ones exactly
<Twey> Yaniel: Yes
<Twey> I have all the dependencies I need in the shell, but the shell has a pinned version of libGL which is apparently incompatible with mine
<Twey> (from a pinned nixpkgs)
<Twey> Yaniel: So I can build it in the shell, but then it crashes at runtime due to driver mismatch
worldofpeace has quit [Quit: worldofpeace]
<Twey> Yaniel: And I can't build it outside the shell because nix-env and pkgconfig don't like each other
drbrule has joined #nixos
tusj has joined #nixos
wpcarro has joined #nixos
<d1rewolf_> anyone managing vs code plugins with nix?
<drbrule> I am attempting to get `nix build` to actually output all Haskell Spec tests.
<drbrule> Anyone know how that might be feasible?
worldofpeace has joined #nixos
kiloreux has quit [Remote host closed the connection]
Ariakenom has quit [Ping timeout: 244 seconds]
tzemanovic has quit [Remote host closed the connection]
halfbit has joined #nixos
Twey has quit [Ping timeout: 248 seconds]
<coconnor> morning all!
<drbrule> coconnor: good morning!
drakonis has joined #nixos
Tobba_ has joined #nixos
Twey has joined #nixos
ersran9 has joined #nixos
ersran9 has quit [Changing host]
ersran9 has joined #nixos
<d1rewolf_> coconnor: morning ;)
<coconnor> so.. QT_PLUGIN_PATH...
Tobba has quit [Ping timeout: 264 seconds]
<coconnor> ;)
jrolfs has joined #nixos
<coconnor> I have a fix for a bug. Tho now I'm curious about QT_PLUGIN_PATH and wanted to pick somebodies brain
<infinisil> ,qt
<{^_^}> A common error, and known issue, is how the Qt integration with nixpkgs fails under some circumstances to provide proper plugin paths, leading to Qt failing to load Qt platform plugin "xcb". // See https://github.com/NixOS/nixpkgs/pull/44047 for a hopefully persistent fix. Meanwhile, install Qt apps from only one channel (and update accordingly)
<infinisil> coconnor: samueldr is the person working on this ^^
<worldofpeace> infinisil: You use nixops right with the none backend right?
<nly> hey how does nix-env decide which path to pull? locally or by querying the cache?
<infinisil> worldofpeace: yup
<samueldr> coconnor: is your particular issue with a python-based qt app?
<worldofpeace> infinisil: It just uses the key it automatically provisioned for your network correct? Because it's not for me :(
<samueldr> (I have to investigate the behaviour of some of them which may exacerbate the issues)
<coconnor> infinisil: excellent! I think that would cover this
phdoerfler has quit [Quit: Leaving.]
<coconnor> haha awesome
<coconnor> in my case it's kcm_pulseaudio. Looks like same cause tho
<infinisil> worldofpeace: yeah it should
rihards has joined #nixos
<nly> got it
<worldofpeace> infinisil: Any ideas on what stupid thing a person(possibly me) could have done to break that?
<infinisil> worldofpeace: nixops has a debug flag where it shows which modules it adds on its own (/tmp/...physical.nix or so), maybe check that. Or check the --export output
<coconnor> samueldr: I'll give those changes a try. thanks!
<samueldr> coconnor: I also have a hack for platform plugin issues
Ariakenom has joined #nixos
drakonis has quit [Quit: Leaving]
betaboon has quit [Quit: WeeChat 2.1]
drakonis has joined #nixos
drakonis has quit [Remote host closed the connection]
<worldofpeace> infinisil: I see public keys and private keys with `--export`. But for example I do `nixops ssh * -v` I can see it traversing .ssh for keys. And the process has no special flags when looking in like htop
drakonis has joined #nixos
__monty__ has quit [Quit: leaving]
<ejpcmac> Hi! I can view system updates progress doing `nix build --no-link -f '<nixpkgs/nixos>' config.system.build.toplevel && nixos-rebuild switch`, but how could I do the same for `nix-env -u` or `home-manager switch`?
<infinisil> worldofpeace: Hmm not sure..
wpcarro has quit [Remote host closed the connection]
wpcarro has joined #nixos
orivej has joined #nixos
phreedom has quit [Ping timeout: 250 seconds]
phreedom has joined #nixos
<coconnor> samueldr: cool! looking through those patches. Seems like a bulk of the nixpkgs code wrapping executables to set QT_PLUGIN_PATH would then become redundant.
<samueldr> I hope it will be if the approach is deemed right
<samueldr> it will need a bit more nudging for some things like dynamic languages using Qt (python)
<coconnor> makes sense
<samueldr> (right now the patch results in having no effect, positive or negative, when compared to the original behaviour)
wpcarro has quit [Ping timeout: 248 seconds]
<coconnor> what is this? Proper refactoring? ;)
<coconnor> haha that's great. I'll give them a try
__Sander__ has quit [Quit: Konversation terminated!]
worldofpeace has quit [Quit: worldofpeace]
<drbrule> ok, so my solution is: `nix-shell --command "runhaskell Setup.hs configure --enable-tests; runhaskell Setup.hs build; runhaskell Setup.hs test"`
Tucky has quit [Remote host closed the connection]
wpcarro has joined #nixos
worldofpeace has joined #nixos
tusj has quit [Ping timeout: 244 seconds]
devx has quit [Quit: . .. ...]
devx has joined #nixos
<{^_^}> [nixpkgs] @domenkozar pushed to release-18.03 « haskell: move yaml overrides to configuration-nix »: https://git.io/fNalw
Coyin has quit [Ping timeout: 260 seconds]
revskill has quit [Ping timeout: 276 seconds]
worldofpeace has quit [Remote host closed the connection]
iceychris has left #nixos [#nixos]
Twey has quit [Ping timeout: 240 seconds]
wpcarro has quit [Remote host closed the connection]
wpcarro has joined #nixos
humanoyd has joined #nixos
revskill has joined #nixos
worldofpeace has joined #nixos
Twey has joined #nixos
selfsymmetric-pa has joined #nixos
mmercier has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @dotlambda pushed to master « home-assistant: 0.74.0 -> 0.74.2 »: https://git.io/fNa8X
wpcarro has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @jfrankenau opened pull request #44233 → nixos/networkd: add missing options → https://git.io/fNa4L
jperras has quit [Quit: WeeChat 2.2]
wpcarro has joined #nixos
halfbit has quit [Ping timeout: 256 seconds]
contrapumpkin has joined #nixos
wpcarro has quit [Remote host closed the connection]
wpcarro has joined #nixos
copumpkin has quit [Ping timeout: 240 seconds]
Cale has joined #nixos
Twey has quit [Ping timeout: 260 seconds]
wpcarro has quit [Remote host closed the connection]
jrolfs has quit [Ping timeout: 255 seconds]
wpcarro has joined #nixos
Twey has joined #nixos
agander_ has joined #nixos
wpcarro has quit [Remote host closed the connection]
wpcarro has joined #nixos
nly has quit [Quit: Leaving]
dvim has joined #nixos
LnL has quit [Ping timeout: 265 seconds]
asymmetric has quit [Ping timeout: 256 seconds]
Thra11 has joined #nixos
hotfuzz has joined #nixos
<{^_^}> [nixpkgs] @MP2E pushed commit from @Chiiruno to master « dolphinEmuMaster: 2018-07-02 -> 2018-07-22 »: https://git.io/fNaRg
<{^_^}> [nixpkgs] @MP2E closed pull request #44072 → dolphinEmuMaster: 2018-07-02 -> 2018-07-22 → https://git.io/fNRUJ
hotfuzz_ has quit [Ping timeout: 248 seconds]
drbrule has quit [Ping timeout: 244 seconds]
<catern> huh, one of my packages is broken (doesn't build) in Nixpkgs master
davenpcm has joined #nixos
<catern> because one of its dependencies was bumped in version
<catern> how did it happen that the dependency was bumped in version without the package being rebuilt and the push being stopped?
freeman42x]NixOS has joined #nixos
<catern> I guess someone just ignored gchristenbot or something?
jrolfs has joined #nixos
jensens has quit [Ping timeout: 245 seconds]
<manveru> catern: which package?
<catern> python36Packages.contextvars
koisell has quit [Quit: WeeChat 2.0.1]
<sphalerite> catern: ofborg only builds the package itself, not its dependents
<catern> huh
<catern> so how do we prevent build breakage from happening?
<sphalerite> hydra
<sphalerite> on master, we don't
<catern> I see, I see
LnL has joined #nixos
<catern> not on nixpkgs-unstable either I guess?
<sphalerite> well tbh not on nixos-* either, unless it's part of the test set
tzemanovic has joined #nixos
halfbit has joined #nixos
<{^_^}> [nixpkgs] @catern opened pull request #44234 → pythonPackages.contextvars: 2.2 -> 2.3 → https://git.io/fNa0g
<catern> that's a bit disappointing
<catern> but I guess it's fine
<catern> so should I have been monitoring Hydra? Or is Hydra able to like, send me an email when packages I maintain start breaking?
<sphalerite> It does normally but after an incident back in March I think it was deactivated
<sphalerite> an incident where all the maintainers got spammed by hydra
<sphalerite> not sure what the state of that situation is now.
Sonarpulse has joined #nixos
<catern> mmm, maybe I could opt in?
<{^_^}> [nixpkgs] @dotlambda pushed to master « python.pkgs.libusb1: fix tests »: https://git.io/fNa09
<woffs> or setup your own buildbot ...
tzemanovic has quit [Ping timeout: 256 seconds]
drbrule has joined #nixos
<catern> there's not much point in having my own buildbot if Hydra is already building it :)
<sphalerite> This may also be good to ask about in #nixos-dev
raynold has joined #nixos
<drakonis> there's no NUR package querying yet, right?
MP2E has joined #nixos
<cryptopsy> tilpner: i want to build the whole nixos from source in a vm
<cryptopsy> or it can be a chroot not a vm
<cryptopsy> gentoo user here for over a decade
<drakonis> but why?
ThatDocsLady_ has quit [Ping timeout: 268 seconds]
init_6 has quit [Ping timeout: 255 seconds]
<drakonis> cryptopsy, what's the benefit?
<{^_^}> [nixpkgs] @vcunat opened pull request #44235 → add various lua modules → https://git.io/fNaEF
<{^_^}> [nixpkgs] @bjornfor pushed 5 commits to release-18.03: https://git.io/fNaEA
mkoenig has quit [Remote host closed the connection]
agander_ is now known as agander
mkoenig has joined #nixos
mkoenig has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @ngortheone opened pull request #44236 → Pypi fluent-logger package → https://git.io/fNaui
mkoenig has joined #nixos
asymmetric has joined #nixos
Twey has quit [Ping timeout: 240 seconds]
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/4c10f6fe2d6 (from 72 minutes ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<manveru> cryptopsy: if you always want to build everything from source, you can probably change your /nix path to something like /gentnix :)
Twey has joined #nixos
<manveru> will make you feel right at home
Judson has joined #nixos
<manveru> plus your home will feel warm
Judson is now known as Guest66821
dvim has quit [Quit: WeeChat 2.2]
<cryptopsy> just for testing
<cryptopsy> if i change that variable will it install strictly to that dir?
Sonarpulse has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @dotlambda merged pull request #44234 → pythonPackages.contextvars: 2.2 -> 2.3 → https://git.io/fNa0g
<{^_^}> [nixpkgs] @dotlambda pushed commit from @catern to master « pythonPackages.contextvars: 2.2 -> 2.3 (#44234) »: https://git.io/fNazq
<manveru> cryptopsy: yeah
<cryptopsy> cool
<cryptopsy> how do get started?
<manveru> according to https://nixos.org/nix/manual/ you need to recompile nix
<manveru> i think other option would be to simply turn off caching
<manveru> if you remove cache.nixos.org from the substituters in nix.conf
<manveru> i dunno... usually people try to avoid building stuff, so there's not a lot of info about forcing nix to rebuild things it already did...
Twey has quit [Quit: WeeChat 2.1]
wpcarro has quit [Remote host closed the connection]
wpcarro has joined #nixos
halfbit has quit [Ping timeout: 256 seconds]
drakonis has quit [Remote host closed the connection]
smolboye has joined #nixos
logzet has joined #nixos
jrolfs has quit [Ping timeout: 245 seconds]
Twey has joined #nixos
<{^_^}> [nixpkgs] @globin merged pull request #41495 → Various nixos/gitlab fixes → https://git.io/vhBpk
<{^_^}> [nixpkgs] @globin pushed 3 commits to master: https://git.io/fNa2B
halfbit has joined #nixos
smolboye has quit [Quit: WeeChat 2.1]
borisbabic has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus closed pull request #29216 → [WIP] linux_custom: Allow custom modDirVersion → https://git.io/v5PY8
<{^_^}> [nixpkgs] @NeQuissimus closed pull request #31610 → linux: Automatic modDirVersion / branch → https://git.io/vFocN
<{^_^}> [nixpkgs] @NeQuissimus closed pull request #36233 → Update scripts → https://git.io/vASd0
nschoe has quit [Quit: Program. Terminated.]
<borisbabic> I want to add a python cli program to nixpkgs. It depends on some modules that aren't in nixpkgs. Should I make separate pull requests for each module and the cli program or should I put it all in one pull request?
asymmetric has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @peti pushed to master « hledger-lib: patch code to work around a regression in version 0.10 »: https://git.io/fNaav
<infinisil> borisbabic: One PR, separate commits
alex`` has quit [Ping timeout: 256 seconds]
cryptomonoid has joined #nixos
<elvishjerricco> cryptopsy: you probably just have to set substituters to nothing in nix.conf. I *think* that will cause everything to build from source.
<borisbabic> infinisil: that seems sensible, thanks
<elvishjerricco> Rebuilding everything you've already got is probably harder though
<elvishjerricco> Actually that's probably pretty doable with a non NixOS VM.
<elvishjerricco> Just install nix on some other Linux distro, set substituters to nothing, then build NixOS.
<elvishjerricco> Oh you can even do it on your existing NixOS system with --store, now that I think of it
ris has joined #nixos
<elvishjerricco> But overwriting existing paths that are in use by the current system with new builds may be hard
andymandias has quit [Ping timeout: 240 seconds]
dbmikus_ has quit [Ping timeout: 260 seconds]
dbmikus__ has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed 2 commits to master: https://git.io/fNaax
agander_ has joined #nixos
smolboye has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed to release-18.03 « Merge #44225: chromium: Increase build timout to two days »: https://git.io/fNaVJ
sigmundv has quit [Ping timeout: 240 seconds]
<smolboye> helo
agander has quit [Ping timeout: 245 seconds]
<smolboye> i have a question
<{^_^}> [nix] @kyrias opened pull request #2317 → manual: installation: Add --daemon flag note → https://git.io/fNaVR
<smolboye> i added the unstable channel for a package, and i installed it with nix-env -iA unstable.<package>
<smolboye> but while installing the package it was copying a lot of things, especially package upgrades
<{^_^}> [nixpkgs] @vcunat merged pull request #44225 → chromium: Increase build timout to two days → https://git.io/fN2Hm
<smolboye> what exactly is it "copying"
<srhb> smolboye: Dependencies. They'll coexist with the versions depended on for your other channel.
<smolboye> ah
<srhb> So it's not really "upgrades" (most likely)
<smolboye> thanks
humanoyd has quit [Quit: WeeChat 2.2]
<smolboye> makes sense
<smolboye> also is it worth enabling useSandbox
phdoerfler has joined #nixos
<srhb> Emphatically yes.
andymandias has joined #nixos
<smolboye> alright thanks a ton
<srhb> Might not be doable on OS X though, I don't recall exactly.
<smolboye> im using nixos
reinzelmann has joined #nixos
<smolboye> not darwin
hyper_ch has quit [Remote host closed the connection]
<srhb> I'd say yes then.
<smolboye> alright thanks gonna do that now
jperras has joined #nixos
cryptomonoid has quit [Ping timeout: 240 seconds]
<Denommus> is there a buildInput I should add in order to be able to use uname?
hyper_ch has joined #nixos
<srhb> Denommus: Quick and dirty way to determine: On your system where you have uname, readlink -e $(which uname)
<srhb> Denommus: Notice the part of the name after the store hash
<srhb> Denommus: There are also other tools like nix-locate
<srhb> ,locate uname
<{^_^}> Found in packages: tet, bash, cheat, klibc, gnulib, busybox, coreutils, and 1 more
<srhb> coreutils is usually what you want for that.
<srhb> But it sounds wrong that you need it during the build.
<srhb> (Consider: Is it an impurity?)
<samueldr> srhb: use `,locate bin ___` for more magic around binaries
<srhb> samueldr: Neat.
<srhb> ,locate bin coreutils
<{^_^}> Found in packages: coreutils
<srhb> :)
<srhb> samueldr: Does it just smack bin/ in front?
<samueldr> probably not much more
<Denommus> srhb: it's not my package, I'm trying to deploy gitlab
jrolfs has joined #nixos
<borisbabic> I'm adding the python module aspy.yaml which is awkwardly named with the .
<borisbabic> Should I keep the name or change the . to a _ or something else?
halfbit has quit [Ping timeout: 256 seconds]
<cryptopsy> how do i set up nix to compile from the start?
tusj has joined #nixos
<cryptopsy> i want it to compile enough stuff so i can chroot into it
<Denommus> I added coreutils as a buildInput and during runtime I still get no such file or directory - uname
<Denommus> what should I be doing instead?
<cryptopsy> it says i should not run as root when doing bash <(curl https://nixos.org/nix/install) but what happens if i do?
<{^_^}> [nixpkgs] @manveru opened pull request #44237 → crystal: 0.25.0 -> 0.25.1; mint 0.1.0 -> 0.2.0 → https://git.io/fNarI
<{^_^}> [nixpkgs] @xeji merged pull request #44211 → php71: 7.1.19 -> 7.1.20 → https://git.io/fN2Op
<{^_^}> [nixpkgs] @xeji pushed commit from @etu to master « php71: 7.1.19 -> 7.1.20 (#44211) »: https://git.io/fNarq
orivej has quit [Ping timeout: 248 seconds]
<catern> Denommus: I assume you added it to the buildInputs list? try using nix-instantiate to make sure it shows up it buildInputs, maybe
<catern> cryptopsy: what do you mean by "compile from the start"? what do you want to compile, the Nix tool itself? and why?
<cryptopsy> i want to compile my packages
<cryptopsy> instead of grabbing precompiled ones
<cocreature> Denommus: at runtime? buildInputs won’t help here. that’s for build dependencies
<catern> cryptopsy: yes, that is quite straightforward. with an existing Nix installation, you can just set the "binary-caches" setting in nix.conf, to nothing, so that Nix won't use pre-compiled binaries
<cryptopsy> i dont have an existing installation
<{^_^}> [nixpkgs] @jfrankenau opened pull request #44238 → nixos/samba: allow dummy conf file to be overriden → https://git.io/fNar0
<catern> cryptopsy: you can get a Nix installation using the script on nixos.org, or by just compiling Nix itself from source
<catern> compiling Nix itself from source is like compiling anything else from source, just clone it and run the build system
<smolboye> what is the "right way" to install python on nixos
tmaekawa has joined #nixos
halfbit has joined #nixos
<goibhniu> smolboye: you have a few options, so it depends on what you want to use it for
<goibhniu> smolboye: for development, you probably want to use nix-shell
tstat has joined #nixos
<smolboye> i really dont get it
reinzelmann has quit [Quit: Leaving]
<d1rewolf_> smolboye: use the Python section in the nixpkgs manual
<smolboye> ive seen the wiki, im unsure what i want
<smolboye> yeah im on there
<d1rewolf_> that's the definitive source
<d1rewolf_> no, don't use the wiki
<d1rewolf_> us the python section of the nixpkgs manual
<smolboye> yes thats where i am
<goibhniu> smolboye: what do you want to use it for?
<d1rewolf_> the wiki is confusing and incomplete
<smolboye> it has multiple options
<smolboye> i want it for writing some python scripts
raynold has quit [Quit: brb]
<smolboye> so basically programming
<smolboye> this is where i am
<d1rewolf_> smolboye: did you try adding "python" to systemPackages?
<{^_^}> [nixpkgs] @xeji pushed commit from @etu to release-18.03 « php71: 7.1.19 -> 7.1.20 (#44211) »: https://git.io/fNaok
sir_guy_carleton has joined #nixos
<smolboye> but i need packages from pip
tmaekawa has quit [Client Quit]
<smolboye> and can i rather use it as a user package more than a system package?
<smolboye> also, it says to create a separate nix file for it which i can install using nix-env later
<smolboye> i understand it, but where do i put this nix file?
<smolboye> wherever i want?
<goibhniu> yeah, you can keep it with your code
<smolboye> and if i do so, will it install as a user package?
<hyper_ch> how can I find out what packages need a given package? becuase reportlab isn't building and I don't know what requires it
<smolboye> like will it update with me updating all the user packages or do i have to run the script over again every time
<smolboye> im sorry if im confusing you, possibly because im confused for myself
<goibhniu> smolboye: I'd say start off with nix-shell and get a feel for it
<smolboye> i actually need something permanent
<goibhniu> it will drop you into an environment with whatever requirements you specify
pikajude has quit [Remote host closed the connection]
<smolboye> yes
<d1rewolf_> it sounds like you are where I was a few weeks ago. you'll do yourself a real favor to go through and read the entire nix manual first
<smolboye> ive tried that
<d1rewolf_> it'll save you a lot of time
<d1rewolf_> and questions ;)
<smolboye> d1rewolf_: im actually on it lol, it will take me some time.
iqubic` is now known as iqubic
pikajude has joined #nixos
<smolboye> thought about saving some because i need to work
* d1rewolf_ nods
<smolboye> and im stuck with this as my only os
<goibhniu> cool, so you can then also install it into a user profile or system profile
<d1rewolf_> smolboye: I'd recommend installing it as a vm first, but...
<d1rewolf_> too late i guess ;)
<smolboye> eh its a fun adventure for me tbh
<smolboye> id do anything as long as i get to learn
Twey has quit [Ping timeout: 256 seconds]
<smolboye> so i guess ill go ahead with creating a nix file with all the packages in it. thanks a ton :)
<goibhniu> that's a fine way to do it
<iqubic> Should I switch away from NixOS to GuixSD?
<smolboye> thanks, i also do have a weechat question. so the only way to actually install plugin dependencies is to override weechat?
<smolboye> weechat.override that is
<goibhniu> iqubic: try it out! it has some lovely features
<iqubic> goibhniu: In a vm or on bare metal?
<smolboye> guixsd is just scheme instead of nix right
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « sbt: 1.1.6 -> 1.2.0 »: https://git.io/fNaKO
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.03 « sbt: 1.1.6 -> 1.2.0 »: https://git.io/fNaKs
<{^_^}> [nixpkgs] @borisbabic opened pull request #44239 → Init pre-commit → https://git.io/fNaKG
<goibhniu> iqubic: if your intention is to run it as your main OS, you should probably test it on your hardware. I don't think it supports unfree blobs at all, so that might be a blocker (or a feature)
<iqubic> Well, yes. But I feel that switching will be a pain.
<iqubic> How do I create a VM in NixOS?
vcunat has joined #nixos
<{^_^}> [nixpkgs] @myguidingstar opened pull request #44240 → clojure: 1.9.0.381 -> 1.9.0.391 → https://git.io/fNaKz
agander__ has joined #nixos
<catern> smolboye: essentially, plus most C++ components and most bash scripts are also written in scheme instead of C++/bash
<smolboye> ah
<{^_^}> [nixpkgs] @xeji merged pull request #43748 → mate.mate-control-center: 1.20.3 -> 1.21.0 → https://git.io/fNZlf
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « mate.mate-control-center: 1.20.3 -> 1.21.0 (#43748) »: https://git.io/fNaK7
<smolboye> im gonna stick my ass to nix for a while
<smolboye> seems really cool tbh
agander__ is now known as agander
agander has quit [Client Quit]
<{^_^}> [nixpkgs] @Profpatsch merged pull request #44200 → jq: fix darwin build → https://git.io/fN2JE
<{^_^}> [nixpkgs] @Profpatsch pushed commit from @LnL7 to master « jq: fix tests on darwin »: https://git.io/fNaKj
<d1rewolf_> iqubic: the main drawbacks of Guix as I understand them: no non-free software...even the kernel is a forked very vanilla linux kernel, no systemd, everything written in scheme
borisbabic has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @Profpatsch closed pull request #44228 → jq fix darwin build → https://git.io/fN2xt
<d1rewolf_> I like the idea of scheme over nix (potentially), but i'm looking for a "just works" experience, not "just pure"
<d1rewolf_> nixos so far just works
<{^_^}> [nixpkgs] @xeji merged pull request #43739 → ptex: 2.1.33 -> 2.3.0 → https://git.io/fNZta
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « ptex: 2.1.33 -> 2.3.0 (#43739) »: https://git.io/fNa6k
<iqubic> I think I'm going to try out Guix.
<manveru> i'll stick to whichever side has steam :)
<iqubic> How hard is it to create a VM on Nix?
<smolboye> nixos is actually a really good idea. and i think its more of a poc of what can be done with systems
<iqubic> *NixOS.
agander_ has quit [Ping timeout: 264 seconds]
<manveru> iqubic: just start qemu?
<smolboye> iqubic: i dont think that should be any differebnt from other distros?
<gchristensen> smolboye: tell that to the numerous production deployments out there :)
<smolboye> lol true
<gchristensen> iqubic: `nixos-rebuild test` will make a VM for you of your system config
<smolboye> na he wants to run guixsd in a vm
<manveru> anyone wanna merge https://github.com/NixOS/nixpkgs/pull/44237 ?
<{^_^}> #44237 (by manveru, open): crystal: 0.25.0 -> 0.25.1; mint 0.1.0 -> 0.2.0
<nbathum> woo I built one of the packages from my work... finally figured out that I had to disable the "bindnow" hardening in the cc wrapper
<manveru> iqubic: you want to create a vm with guixsd on nixos? or just run it?
<manveru> because they have a few big fat downloads for VMs here: https://www.gnu.org/software/guix/download/
<d1rewolf_> smolboye: why would nixos be a PoC any more than Guix would be?
<smolboye> im not implying that tho
<d1rewolf_> I personally wish the folks behind nixos.org would list those commercial users...it'd really help the story (gchristensen ;-)
<smolboye> im saying nixos is just a poc for what can be done in the future
<d1rewolf_> smolboye: k, i misunderstood you
<gchristensen> it is real life implementation of what _is_ being done _now_ though
mizu_no__ has joined #nixos
<smolboye> yeah but i bet theres a lot more to it than we have right now
<iqubic> I want to create a VM and install GuixSD on it.
<smolboye> iqubic: just install qemu and run guixsd in it?
<catern> iqubic: I like virt-manager, try that perhaps
<smolboye> lol
<smolboye> use whatever it should be really similar to the other distros tbh
<gchristensen> maybe take this chat to #nixos-chat though
<iqubic> I will.
<Denommus> I give up on gitlab. Damn
<iqubic> Denommus: Why?
tzemanovic has joined #nixos
<infinisil> Denommus: Why that?
halfbit has quit [Ping timeout: 245 seconds]
<smolboye> im gonna run weechat on my pi instead of on nixos i guess.
<gchristensen> why so?
Sonarpulse has joined #nixos
<smolboye> well i want to use irc on the go as well so i guess running it in screen is easier for me overall
<gchristensen> sure
<infinisil> I feel like half my reviews on nixpkgs is telling people to use the commit message convention and to squash/rebase changes
tzemanovic has quit [Ping timeout: 264 seconds]
<joepie91> infinisil: this is why customer service departments have canned messages :D
<infinisil> Good point
<samueldr> github has the canned messages feature btw
biopandemic has quit [Quit: Quit.]
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
polyzen is now known as dmc
<gchristensen> does a nix-shell shebang not work with python.withPackages (p: ...)?
<infinisil> gchristensen: I think just using python, pythonPackages.foo, pythonPackages.bar works
<gchristensen> waaat
frank87 has joined #nixos
<gchristensen> <3 infinisil lifesaver!
<infinisil> :)
<{^_^}> [nixpkgs] @Izorkin opened pull request #44241 → [WIP] mariadb: add v10.3.8 → https://git.io/fNaPu
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/044a807a45e (from 53 minutes ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
wpcarro has quit [Remote host closed the connection]
selfsymmetric-pa has quit [Remote host closed the connection]
wpcarro has joined #nixos
Dedalo has joined #nixos
david3 has joined #nixos
david3 is now known as DeltaEvo
wpcarro has quit [Ping timeout: 260 seconds]
<Denommus> iqubic: infinisil: I had plenty of work in order for the deployment to be successful, now, even that it is successful, I'm getting connection refused
<Denommus> I have no idea why
<Denommus> but then, Hydra is also hard to setup
cryptomonoid has joined #nixos
keith_analog has joined #nixos
<{^_^}> [nixpkgs] @xplat opened pull request #44242 → stdenv/build-support: support .tbz and .txz tarballs → https://git.io/fNaX1
<Denommus> I'm getting an JSON parsing error because /var/lib/nixos/uid-map is empty and it shouldn't be
<keith_analog> Hi All, I'm curious to know if there's a command or nix package that can easily manage adding a new user in a multi user nix package manager installation. Thanks!
<DeltaEvo> Hello, is there a channel for Nixos on Arm (armv7) ?
<DeltaEvo> (Or should i ask my questions here ?)
lutzmor_ has joined #nixos
<srhb> DeltaEvo: There's nixos-aarch64 (which I don't know whether is the same as armv7?) but your question is probably fine here as well
smolboye has quit [Quit: WeeChat 2.1]
smolboye has joined #nixos
smolboye has quit [Client Quit]
mizu_no__ has quit [Quit: Computer has gone to sleep.]
smolboye has joined #nixos
d1rewolf_ is now known as d1rewolf
<DeltaEvo> srhb: No it's not but, I will ask it here then, thanks
<lutzmor_> evining :) is there someone how use 2bwm with nixos and can enlight me how to get my own config.h in there :D. Tried nearly everything in my configuration.nix but totaly lost (quite new to nixos)
<{^_^}> [nixpkgs] @d3rped opened pull request #44243 → mpv: add lcms2 support → https://git.io/fNa1B
smolboye has quit [Client Quit]
smolboye has joined #nixos
smolboye has quit [Client Quit]
Neo-- has quit [Ping timeout: 256 seconds]
smolboye has joined #nixos
__monty__ has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 pushed 151 commits to staging: https://git.io/fNaMe
cryptomonoid has quit [Ping timeout: 244 seconds]
ersran9 has quit [Ping timeout: 260 seconds]
smolboye has quit [Quit: WeeChat 1.6]
<DeltaEvo> So, i'm trying to use Nixos on my Odroid HC1 (It's like an XU4), after debugging uboot, the kernel, now it's the turn of systemd to crash, well it's not systemd directly, it's when i load udev rules, it make the whole system crash and so uboot reboot it, I activated debug on systemd and systemd-udevd but i don't see nothing usefull on the debug logs (I think my serial conection don't show the interesting part
<DeltaEvo> because logs are truncated and sometime droped). I'm using the nixos install armv7l image by Dezgeg. Here are the logs https://hastebin.com/duyamakume.makefile (I think there's a lot missing).
<DeltaEvo> (Sorry for my bad english :( )
<Drakonis[m]> is this postmarketos?
wpcarro has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/67e2de195a4 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<Drakonis[m]> ok what is the point of compiling all of your packages?
phdoerfler has quit [Quit: Leaving.]
phdoerfler has joined #nixos
hakujin1 has quit [Ping timeout: 248 seconds]
<infinisil> Drakonis[m]: Huh?
<infinisil> Not sure why anybody would want to do that
<Drakonis[m]> someone earlier asked about it
<Drakonis[m]> about a couple hours ago, someone asked about compiling all of their packages
smolboye has joined #nixos
klntsky has quit [Ping timeout: 250 seconds]
phdoerfler has quit [Quit: Leaving.]
smolboye has quit [Client Quit]
smolboye has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #44242 → stdenv/build-support: support .tbz and .txz tarballs → https://git.io/fNaX1
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to staging: https://git.io/fNayI
koisell_ has joined #nixos
<takeda> How can I build x86_64-linux binaries on OS X? Basically I'm trying to generate docker image using dockerTools, but a proper docker image should contain Linux executables, how can I do cross compiling. I looked at nixpkgs manual but I'm still confused.
alex`` has joined #nixos
<samueldr> takeda: I believe this is one of the use case for this: https://github.com/nix-community/linuxkit-builder
lutzmor_ has quit [Ping timeout: 252 seconds]
<kalbasit> samueldr: do you know of any derivation that embeds a node app within another derivation? The case I'm looking for is a Go derivation that embeds a node app
<samueldr> sorry kalbasit, no idea
wpcarro has quit [Remote host closed the connection]
<samueldr> maybe you can make a derivation for the node app, and use it in another derivation for the go app?
<samueldr> (they could even share the src through import?)
<samueldr> (or a passthru)
<kalbasit> samueldr: I'm probably going to build the node derivation in a `let` statement
wpcarro has joined #nixos
<samueldr> I would bet that's the sane way to do it; have it handled as if it was its own thing
cryptopsy has quit [Quit: WeeChat 2.1]
<samueldr> it just happens to be shipped alongside something else
klntsky has joined #nixos
<kalbasit> yea I've seen examples but none that builds nodePackage so I have to look more
<kalbasit> samueldr: I don't really want it to be installed separately because it ends up getting embedded in the binary anyway
jrolfs_ has joined #nixos
jrolfs has quit [Ping timeout: 268 seconds]
phdoerfler has joined #nixos
wpcarro has quit [Ping timeout: 256 seconds]
smolboye has quit [Quit: WeeChat 2.2]
<MasseR> I'm trying to copy a closure to a machine that has a multi-user nix set up (not nixos). nix-copy-closure complains about the store not being writable, what should I change?
smolboye has joined #nixos
<sphalerite> MasseR: since the destination machine doesn't do any authentication of the stuff that's being copied over, you need to be a trusted-user to copy stuff in
<sphalerite> MasseR: note that trusted-user access is mostly equivalent to root
keith_analog has quit [Quit: Konversation terminated!]
smolboye has quit [Client Quit]
smolboye has joined #nixos
<MasseR> So somehow getting 'NIX_REMOTE=daemon' wouldn't help?
drakonis has joined #nixos
infinisil has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
infinisil has joined #nixos
<clever> MasseR: and NIX_REMOTE has to be set on the remote end, possibly via ~/.bashrc
worldofpeace has quit [Ping timeout: 240 seconds]
jrolfs has joined #nixos
<smolboye> ok so i set my pi up to run weechat
<smolboye> this is nice
wpcarro has joined #nixos
jrolfs_ has quit [Ping timeout: 264 seconds]
wpcarro has quit [Remote host closed the connection]
wpcarro has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #43917 → proselint: 0.8.0 -> 0.9.0 → https://git.io/fNWQK
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « proselint: 0.8.0 -> 0.9.0 (#43917) »: https://git.io/fNaQT
<kalbasit> can anyone `ping cache.nixos.org` ?
<gchristensen> sure can, 4ms ping
<{^_^}> [nixpkgs] @xeji merged pull request #43950 → bcftools: 1.8 -> 1.9 → https://git.io/fNWjy
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « bcftools: 1.8 -> 1.9 (#43950) »: https://git.io/fNaQi
worldofpeace has joined #nixos
orivej has joined #nixos
kyren has joined #nixos
<Denommus> ok, I finally managed to deploy gitlab
<Denommus> it was hard, but not impossible
<ldlework> Denommus: link to your article please.
<ldlework> :)
<{^_^}> [nixpkgs] @dotlambda merged pull request #44236 → pythonPackages.fluent-logger: init at 0.9.3 → https://git.io/fNaui
<{^_^}> [nixpkgs] @dotlambda pushed commit from @ngortheone to master « pythonPackages.fluent-logger: init at 0.9.3 (#44236) »: https://git.io/fNa5J
<drakonis> words are cheap
<Denommus> ldlework: haha, I'll write one, definitely
hakujin1 has joined #nixos
pie_ has quit [Ping timeout: 268 seconds]
rihards has quit [Quit: rihards]
phdoerfler1 has joined #nixos
phdoerfler has quit [Ping timeout: 240 seconds]
halfbit has joined #nixos
logzet has quit [Remote host closed the connection]
<sphalerite> MasseR: no, NIX_REMOTE=daemon wouldn't help — with 2.0 NIX_REMOTE doesn't need to be set anyway and it will use the daemon as appropriate anyway
<kalbasit> gchristensen: weird, it keeps coming on/off on my side, probably a CF issue
<ldlework> is there a place in the docs that explain all the parts that can be in ~/.config/nixpkgs ?
jluttine has quit [Ping timeout: 264 seconds]
jmeredith has quit [Ping timeout: 256 seconds]
<ldlework> nm i'll grep
jmeredith has joined #nixos
<sphalerite> ldlework: there is not. \o/
<ldlework> hi sphalerite
<{^_^}> [nixpkgs] @kalbasit opened pull request #44244 → reportlab: remove test files that require network for the tests to pass → https://git.io/fNadF
<{^_^}> [nixpkgs] @xeji merged pull request #42940 → xapian: 1.4.5 -> 1.4.7 → https://git.io/f5Sfv
<{^_^}> [nixpkgs] @xeji pushed 4 commits to master: https://git.io/fNadb
<sphalerite> hi ldlework
<sphalerite> (completely random: did I ever tell you I misread your name as "idlework" with a capital I for a long long time after first encountering you?)
davenpcm has quit [Quit: Textual IRC Client: www.textualapp.com]
<samueldr> you're not the first one, and not the first time :) https://logs.nix.samueldr.com/nixos/search?q=idlework
<sphalerite> lol nice
<DeltaEvo> exit
DeltaEvo has quit [Quit: WeeChat 2.1]
<{^_^}> [nixpkgs] @Infinisil opened pull request #44245 → bukubrow: Init at 2.4.0 → https://git.io/fNaFR
frank87 has quit [Read error: Connection reset by peer]
frank87_ has joined #nixos
pie_ has joined #nixos
simukis has quit [Ping timeout: 240 seconds]
<Denommus> question
<Denommus> how can I pass $HOME to builtins.readFile?
<infinisil> > ~
<{^_^}> error: syntax error, unexpected $undefined, at (string):162:1
<gchristensen> scary stuff
<infinisil> > ~/.
<sphalerit> Denommus: you can use ~ in paths
<{^_^}> /var/lib/nixbot/.
<sphalerit> More generally you can use builtins.getEnv
<sphalerit> But both are not recommendable because they're impure
<gchristensen> I wont rest until we have self-modifying nix exprs
<maurer> That sounds terrible
<maurer> Isn't dynamic typing enough corruption?
<Denommus> sphalerit: ~ didn't work, getEnv worked, thanks
binaryphile has quit [Ping timeout: 256 seconds]
binaryphile has joined #nixos
<Denommus> sphalerit: what would be the recommended way to read from secrets, then?
<clever> Denommus: what about ~/secret.txt ?
<infinisil> Actually, getEnv doesn't work in restricted eval, while ~ does
<infinisil> > builtins.getEnv "HOME"
<{^_^}> ""
<sphalerit> Denommus: not at all. Nix isn't any good for handling secrets
sigmundv has joined #nixos
<Denommus> I'm going to try ~ again as soon as gitlab finishes restarting
<Denommus> sphalerit: would that require an impure scape hatch or something?
<ldlework> Are people working on the problem with secrets?
<sphalerit> Denommus: no, typically you'd just have applications handle secrets themselves
cryptomonoid has joined #nixos
<sphalerit> Oh yeah for gitlab... srhb was doing something to improve the secret handling there
<Denommus> if I could at least set a PGP secret key in my ~/.nixpkgs/config.nix LOTS of things could be solved
<sphalerit> Not sure if that got merged
<sphalerit> Anyway I need to sleep now. Gnight folks
<srhb> sphalerit: It did not. We shall never speak of it again.
<Denommus> good night
tzemanovic has joined #nixos
<srhb> :-)
<srhb> (G'night)
<{^_^}> [nixpkgs] @dotlambda opened pull request #44246 → pythonPackages: remove unmaintained graphite-related stuff → https://git.io/fNabN
clementd has joined #nixos
<Denommus> error: string '~/.gitlab/databasePassword' doesn't represent an absolute path, at /home/<user>/Projetos/gitlab-nixops/gitlab.nix:41:26
<Denommus> that's what I get when I try to use ~
<clever> Denommus: what did you put in the nix file?
tzemanovic has quit [Ping timeout: 248 seconds]
<infinisil> You can't use "~/foo/bar", you need ~/foo/bar
<infinisil> > { a = "~/."; b = ~/.; }
<{^_^}> { a = "~/."; b = /var/lib/nixbot/.; }
jluttine has joined #nixos
<clementd> hi, I'm looking for a step-by-step explanation of how to package something for nixos / how to test it locally. I've read the nix pills articles a few times, but I can't follow along with nix-repl, I get permissions errors when I try to run it
<Denommus> infinisil: oh
<infinisil> ,nix-repl clementd
<{^_^}> clementd: To use nix-repl with Nix 2.0, either use the new `nix repl` or `NIX_REMOTE=daemon nix-repl`. Just using `nix-repl` gives an error because it is linked to Nix 1.x which requires NIX-REMOTE to be set correctly, while Nix 2.0 doesn't (and unfortunately it wasn't kept for backwards compatibility)
<clementd> oh.
<clementd> will try then
<clementd> thanks
<Denommus> infinisil: thanks!
<clementd> I'm having a real hard time to go past basic nix-shell and nix-env use. I see there's a lot of material, but I just don't know where / how to start
<infinisil> clementd: Anything specific?
<clementd> infinisil: that's the issue, I don't really know what I want / where to go next
<infinisil> Well I don't even know what you want to do/what you have tried, can't help much without knowing that :)
<clementd> yeah, that's the issue
revskill_ has joined #nixos
<clementd> it's a chicken-and-egg problem: I don't know nix enough to know where to go next
knupfer has joined #nixos
<clementd> and by not knowing what to do, i have a hard time learning new things
<infinisil> Huh, you must have an objective to struggle with it, because if you weren't having one you wouldn't be struggling with it
<clementd> the two concrete use cases I'm looking for right now:
wpcarro has quit [Remote host closed the connection]
revskill has quit [Ping timeout: 265 seconds]
<clementd> one of the packages I use is a bit out of date, I'd like to try to override the package and use a more recent version
wpcarro has joined #nixos
<infinisil> Usually you'd override it like this: `hello.overrideAttrs (drv: { src = fetchurl { url = "..."; sha256 = "..."; }; })` to get a new version, fetched from that url.
<clementd> another thing I'd like to do is to not have to list all the packages I use in /etc/configuration.nix (I'd like them to be user-only)
<clementd> infinisil: what I lack is more concrete context: in which file to put it, which commands to run
cryptomonoid has quit [Ping timeout: 248 seconds]
<infinisil> How are you installing packages right now?
<clementd> infinisil: core packages are listed in /etc/configuration.nix
<clementd> the rest is installed with nix-env -iA
_rvl has quit [Quit: ZNC 1.6.5 - http://znc.in]
<clementd> I'd like to put the list of user-only packages under version control
<infinisil> You can use such an override like this in configuration.nix: `environment.systemPackages = [ (hello.overrideAttrs (drv: { ... })) ];`
hakujin2 has joined #nixos
<clementd> infinisil: and for user-only config?
wpcarro has quit [Ping timeout: 264 seconds]
<infinisil> Oh, an overlay might be better, will work for both configuration.nix and nix-env
wpcarro has joined #nixos
<infinisil> ,overlay clementd
<{^_^}> clementd: Overlays look like `self: super: { foo = ...; }`. Use the self argument to get dependencies, super for overriding things and library functions (including callPackage). More info: https://nixos.org/nixpkgs/manual/#sec-overlays-install
<symphorien> clementd: use home manager for example
<infinisil> ,home-manager
<{^_^}> home-manager allows you to manage your per-user configuration similarly to NixOS' configuration.nix: https://nixos.wiki/wiki/Home_Manager
<infinisil> ,nix-env-r
<{^_^}> A simple way to install all your packages declaratively is to use `nix-env -ir default.nix` with the file of the form `with import <nixpkgs> {}; { inherit hello; }` to install hello. Note that with the -r switch this removes all your previously installed packages
<clementd> overlays look like a good solution, again, I kind of don't know where to start.
<infinisil> clementd: Read the linked manual section
hakujin1 has quit [Ping timeout: 265 seconds]
<ldlework> clementd: i'm trying to figure out overlays atm too :)
<infinisil> clementd: I guess it's a bit too pragmatic, you really just need to put a file with `self: super: { kakoune = super.kakoune.overrideAttrs (drv: { src = super.fetchFromGitHub { ... }; }); }` in ~/.config/nixpkgs/overlays/kakoune.nix
<drakonis> what happened that home-manager wasn't updated in a while?
<infinisil> drakonis: It's not meant to be used from nixpkgs
<drakonis> i don't get it
<drakonis> that doesn't quite answer the question
<ldlework> lol
<{^_^}> [nixpkgs] @matthewbauer merged pull request #44089 → nixos/release: use real paths of netboot files → https://git.io/fNRP3
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fNaAF
<infinisil> It has a fast development cycle, it would be inconvenient to always make PR's for changes
<drakonis> what no
<drakonis> the last update on the repo was months ago
<infinisil> Oh hah, I guess it slowed down a bit
<infinisil> That was the original reasoning
<drakonis> february 16
<ldlework> I mean, I'm not sure what work needs to be done to home-manager
<ldlework> The work needed is to integrate it into nixos as a first-class thing
<infinisil> drakonis: Most people just use it from the repo, not nixpkgs
<drakonis> ohhh
<drakonis> rip
<drakonis> its still updating
<{^_^}> [nixpkgs] @dotlambda opened pull request #44247 → seafile-client: 6.2.2 -> 6.2.3 → https://git.io/fNaAh
<drakonis> it just pulled in an old commit
<drakonis> well fine, i'm a fool
<ldlework> infinisil: sure but that doesn't help new users
<ldlework> and it isn't in the docs
<infinisil> Yeah..
<ldlework> isn't part of the new user experience and so on
<drakonis> tbf
<{^_^}> [nixpkgs] @LnL7 opened pull request #44248 → doc: add darwin installCheckTarget example → https://git.io/fNaxU
<infinisil> Only missing thing is docs though, it works well already
<ldlework> Nix-* is going to need to eventually refactor its stuff and dumb it down a little
<drakonis> so much gotta be upgraded
<drakonis> tack some abstractions on top of it
<infinisil> ldlework: "its stuff"?
<ldlework> things are very spartan right now. i'm willing to drudge through it, but because i believe i understand the value-add
frank87_ has quit [Remote host closed the connection]
<ldlework> but consider the masses
<drakonis> the advice i have is to have an simpler GUI that builds on top of the complex tooling
<clementd> okay, so I've created a ~/.config/nixpkgs/overlays.nix (https://gist.github.com/divarvel/8232415ae932334b5e078d293c1788d3)
<ldlework> drakonis: good point. do users need to write nix? can't we generate nix?
<infinisil> Nix is required if you need anything non-trivial..
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinisil> Any GUI would constrain you in a way (unless you create a full-blown AST editor)
<drakonis> its not that simple to "generate" nix
<ldlework> infinisil: most people just want to install packages and use their computer
<clever> clementd: environment.systemPackages doesnt work in an overlay file
<drakonis> have the easy frontend for the common folks and retain the complex implementation
<drakonis> the advanced tooling
<drakonis> whatever you can call it.
<clementd> clever: okay, can I declare a list of pkgs to be added?
<clever> clementd: you can make a set of packages to be added
<drakonis> its a small price to pay
<clementd> the nixos doc on overlays only talks about overriding packages
<infinisil> ldlework: Hmm yeah. Maybe a simple GUI would work. and when they need more power they can switch to manual editing mode
<clementd> clever: cool
<ldlework> drakonis: right. it kinda feels like nix ecosystem is so proud of the accomplishments of its design, that it exports the implementation straight to the end user
<clever> clementd: setname = { inherit (self) pwgen); };
<ldlework> I'm not sure that is nessecary
<clever> clementd: then you can nix-env -iA nixos.setname
<drakonis> want to work with something more complex, time to drudge out the docs
<clever> clementd: setname = { inherit (self) pwgen; }; fixed a typo
rardiol1 has quit [Remote host closed the connection]
<drakonis> oh i know what should be done
<drakonis> an condensed version of the package manager, with the regular operations
<drakonis> less operationally complex than nix 2.0
<infinisil> ldlework: I think it's more of a "nobody bothered to make it yet", because it's not trivial to make something like that
<drakonis> there's that ^
<ldlework> sure
<infinisil> We can talk a whole lot about how to improve Nix, but nothing's gonna happen unless somebody actually does the work :)
<ldlework> just judging the state of things
<drakonis> there's so much stuff that can be done to improve the general state of things
<ldlework> i feel like i keep relearning and relearning
<clementd> clever: I get "error: value is a function while a list was expected"
<infinisil> I think a priority for now should be to improve the docs
<infinisil> The nixos wiki as a good effort for that (https://nixos.wiki/)
<drakonis> i do feel that it should be clarified that running any channels other than nixos-<x> leads to complaining about the search path
<drakonis> speaking of improving docs
<clever> clementd: when running the exact command i gave?, can you gist the new overlays.nix ?
<drakonis> shouldn't the wiki be the manual at this point?
<drakonis> move the various guides on the main page into the wiki
knupfer has quit [Ping timeout: 256 seconds]
<clementd> clever: to be sure "setname" can be something else, right?
<clever> clementd: yes
<clever> clementd: i see the problem, the overlay has to be in ~/.config/nixpkgs/overlays/name.nix
<clever> clementd: ~/.config/nixpkgs/overlays.nix is the alternate way, and should contain a list of all overlays
<clever> while the overlays directory can just contain multiple overlay files
<clementd> clever: indeed
<clementd> thanks!
koisell_ has quit [Ping timeout: 240 seconds]
<infinisil> drakonis: that can't be the reason for it complaining about the search path
<drakonis> i have nixos-unstable-small on root
<drakonis> it complains about the search path
<drakonis> warning: Nix search path entry '$HOME/.nix-defexpr/channels' does not exist, ignoring
<clever> drakonis: run `nix-channel --update` without root
<drakonis> oh?
<drakonis> no dice
<clever> drakonis: what command is giving the above warning?
<drakonis> rebuilding
<clementd> clever: is there a more concise way to list packages than repeating `inherit (self)` before each package name?
<clever> clementd: inherit (self) package1 package2 package3;
<clementd> I had extra semicolons indeed
<drakonis> the last time i asked about it, i was running nixpkgs as my default channel
<clementd> clever: thanks!
<drakonis> the answer i got was that it is supposed to mean that nixpkgs isn't supposed to be the default channel?
<clementd> now I'll try overriding packages
revskill_ has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #44221 → Use the default for NIX_CXXSTDLIB_COMPILE even if defined (but empty). → https://git.io/fN2VU
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fNapc
<drakonis> clever, my current setup is nixos-unstable-small on global
<clever> drakonis: the warning is less about what your channels are called, and more that your non-root user has never ran nix-channel, so it lacks a channels directory
<drakonis> oh hmm
<clever> hence, running nix-channel --update
<clever> even if you have zero channels on the user
<drakonis> i ran it btw
<drakonis> let's try this again
kyren_ has joined #nixos
<{^_^}> [nixpkgs] @dotlambda merged pull request #44244 → pythonPackages.reportlab: remove test files that require network for the tests to pass → https://git.io/fNadF
<{^_^}> [nixpkgs] @dotlambda pushed commit from @kalbasit to master « pythonPackages.reportlab: remove test files that require network for the tests to pass (#44244) »: https://git.io/fNapE
sven_ has joined #nixos
<{^_^}> [nixpkgs] @dotlambda merged pull request #44247 → seafile-client: 6.2.2 -> 6.2.3 → https://git.io/fNaAh
<{^_^}> [nixpkgs] @dotlambda pushed 3 commits to master: https://git.io/fNapg
<drakonis> yeah actually that isn't working out with root
tzemanovic has joined #nixos
<drakonis> root doesn't have it
sven_ is now known as sheyll
<infinisil> clever: Yeah I actually never saw that command fix the problem
<drakonis> rebuilding needs root, root never actually creates the channel data
kyren has quit [Ping timeout: 255 seconds]
<clever> drakonis: what is your normal user?
<drakonis> its drakonis
<drakonis> duh
<clever> drakonis: ls -lh /home/drakonis/.nix-defexpr/
<clever> what does this print?
<drakonis> it exists
<drakonis> a pair of symlinks
<clever> what do they point to?
<drakonis> one to my username and another to root
<drakonis> lrwxrwxrwx 1 drakonis users 48 Jul 30 19:13 channels -> /nix/var/nix/profiles/per-user/drakonis/channels
<drakonis> lrwxrwxrwx 1 drakonis users 44 Jul 30 01:55 channels_root -> /nix/var/nix/profiles/per-user/root/channels
<clever> can you paste both?
hakujin3 has joined #nixos
<drakonis> yeah?
<Mic92> dtz[m]: what do you think of a code generator that insert code like this: https://gist.github.com/Mic92/bbc883220a7b43867dec32d39fa183aa#file-main-cpp-L7
blankhart has quit [Ping timeout: 244 seconds]
<clever> and do those also exist?, ls -lh /nix/var/nix/profiles/per-user/drakonis/channels/ /nix/var/nix/profiles/per-user/root/channels/
<drakonis> yes
tzemanovic has quit [Ping timeout: 256 seconds]
<drakonis> lrwxrwxrwx 1 root root 90 Dec 31 1969 binary-caches -> /nix/store/zlymk48nv9arxivfdnmmwg3c2yad1mi1-nixos-18.09pre147682.67e2de195a4/binary-caches
<drakonis> lrwxrwxrwx 1 root root 60 Dec 31 1969 manifest.nix -> /nix/store/nvwxd82abkinl42awf4x1mwx490i1i2c-env-manifest.nix
<drakonis> lrwxrwxrwx 1 root root 82 Dec 31 1969 nixos -> /nix/store/zlymk48nv9arxivfdnmmwg3c2yad1mi1-nixos-18.09pre147682.67e2de195a4/nixos
<clever> drakonis: which shell are you using and what command causes the warning?
<drakonis> deez dates
<drakonis> bash
<drakonis> its sudo nixos-rebuild boot
<drakonis> switch also does that
<clever> and what about just `sudo -i` followed by `nixos-rebuild boot` ?
<{^_^}> [nixpkgs] @xeji merged pull request #43929 → mercurialFull: 4.5.2 -> 4.6.2 → https://git.io/fNWbJ
<{^_^}> [nixpkgs] @xeji pushed 3 commits to master: https://git.io/fNahe
<drakonis> running as root works fine but under sudo it breaks
hakujin2 has quit [Ping timeout: 256 seconds]
<drakonis> oh boy
<clever> drakonis: echo $NIX_PATH ?
<drakonis> piles of collisions instead
<drakonis> /root/.nix-defexpr/channels:nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels
alex`` has quit [Ping timeout: 260 seconds]
<drakonis> instead i get collisions, ain't that wonderful
<clever> drakonis: sudo sh -c 'echo $NIX_PATH'
<clever> using this, i can see a bare $HOME inside $NIX_PATH
<drakonis> $HOME/.nix-defexpr/channels:nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels
<clever> so the problem is that the scripts setting up $NIX_PATH dont eval $HOME correctly when ran via sudo
jrolfs has quit [Ping timeout: 240 seconds]
<drakonis> yes
<drakonis> now i made the mistake of running nix-update as root
<drakonis> now it is giving me piles of collisions
wpcarro has quit [Remote host closed the connection]
<clever> you can use `nix-channel --rollback` to undo the last update
jrolfs has joined #nixos
wpcarro has joined #nixos
<drakonis> huh neat.
<drakonis> nope, collisions stuck around
<clever> nix-env, nix-channel and nixos-rebuild all have rollback options to undo things
<clever> its more likely that your config is to blame them, what is colliding?
<drakonis> virtualbox, i gotta clear things up though
<drakonis> i got a bunch of stuff i'm not using that could go away
<clever> do you have virtualbox in your systemPackages?
erasmas has quit [Quit: leaving]
jperras_ has joined #nixos
joehh has joined #nixos
<drakonis> probably
<clever> try removing that
<{^_^}> [nixpkgs] @xeji merged pull request #43941 → gp2c: 0.0.10pl1 -> 0.0.11 → https://git.io/fNWxp
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « gp2c: 0.0.10pl1 -> 0.0.11 (#43941) »: https://git.io/fNah7
jperras has quit [Ping timeout: 264 seconds]
<drakonis> virtualbox is colliding with itself lmao
<clever> yeah
hamishmack has joined #nixos
phdoerfler1 has quit [Quit: Leaving.]
wpcarro has quit [Ping timeout: 244 seconds]
jrolfs has quit [Ping timeout: 260 seconds]
jrolfs has joined #nixos
andymandias has quit [Ping timeout: 256 seconds]
dbmikus__ has quit [Ping timeout: 240 seconds]
andymandias has joined #nixos
<clementd> clever: I've tried to override a package in my overlay, it looks like only the name and version are overriden https://gist.github.com/divarvel/8232415ae932334b5e078d293c1788d3
<clever> clementd: there is rarely any point in overriding the version
<clementd> clever: it was for debugging purposes
<clever> clementd: and you dont need the rec on line 4 either
<clever> what command did you use to install it afterwards?
<clementd> oops, leftover
<clementd> clever: nix-env -iA nixos.kakoune
<clever> is that the correct hash for it?
jrolfs has quit [Ping timeout: 260 seconds]
<clementd> in the logs I have installing 'kakoune-perso'
<{^_^}> [nixpkgs] @xeji merged pull request #43932 → rdkafka: 0.11.4 -> 0.11.5 → https://git.io/fNWbi
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « rdkafka: 0.11.4 -> 0.11.5 (#43932) »: https://git.io/fNVeF
<clever> you appear to have not changed the sha256 field
<clever> so youve told nix that the source is identical to before
<{^_^}> [nixos-hardware] @Mic92 merged pull request #68 → apple/macbookpro/11-5: init → https://git.io/fNlwl
<{^_^}> [nixos-hardware] @Mic92 pushed 6 commits to master: https://git.io/fNVeb
<clementd> clever: oh i thought it was just a check
<clementd> I expected it to fail
<clementd> it uses the checksum as cache as well?
<clever> yeah
<clever> i typically put my editor into replace mode, and overwrite a few digits with 0's
<clever> then it will fail, and tell me the correct hash
<clementd> yeah that's what I've just done
<clementd> I didn't expect the hash field to be used as caching key
joehh has quit [Ping timeout: 244 seconds]
<clementd> clever: thanks! I've learnt a lot
__monty__ has quit [Quit: leaving]
<clever> yep
<clementd> reading specs and references without something concrete does not work well for me
<drakonis> kakoune has new packages?
<clementd> drakonis: I'm running on master + a pending PR
<drakonis> actually, is it up to date now?
jrolfs has joined #nixos
<clever> 10 owner = "mawww";
<clever> 11 rev = "878d2a4bdb674a5e7703a66e530520f48efba641";
blankhart has joined #nixos
<clever> drakonis: my copy of nixpkgs has it from a different owner on github
<drakonis> https://github.com/mawww/kakoune/releases this is the source
<drakonis> there's a tag from april
Anton-Latukha has quit [Ping timeout: 240 seconds]
<drakonis> oh its up to date
<drakonis> a newer tag's available, not that new but it does the trick
<drakonis> okay i'll be back soon, gotta fix something that went wrong with windows
<clementd> last release is april 13th iirc
<drakonis> yeah
<drakonis> mawww decided to release some tags
<drakonis> so folks would go and package kakoune
<drakonis> its fine to use recent tags though
<clementd> i hope there will be a new release soon, there's been lot of breakage recently
drakonis has quit [Read error: Connection reset by peer]
<clementd> and lsp support expects a recent version
alexteves has quit [Remote host closed the connection]
tzemanovic has joined #nixos
Denommus has quit [Remote host closed the connection]
jrolfs has quit [Ping timeout: 256 seconds]
jrolfs has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #43928 → mopidy-gmusic: 2.0.0 -> 3.0.0 → https://git.io/fNWF2
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « mopidy-gmusic: 2.0.0 -> 3.0.0 (#43928) »: https://git.io/fNVvM
revskill has joined #nixos
drakonis has joined #nixos
<drakonis> ok cool its fixed now
<drakonis> well, seems like a bunch of pain points have been improved
Ariakenom has quit [Quit: Leaving]
clementd has quit [Ping timeout: 255 seconds]
d1rewolf_ has joined #nixos
numerobis has quit [Ping timeout: 260 seconds]
d1rewolf_ has quit [Remote host closed the connection]
<drakonis> hmm
<{^_^}> [nixpkgs] @thoughtpolice pushed to master « nixos/manual: fix inclusion of FoundationDB documentation »: https://git.io/fNVJ0
<ldlework> I'm trying to use an overlay to increase the version of the dotnet-sdk but I'm getting this error: https://gist.github.com/dustinlacewell/fb21cfe705ef7996220ebec836c65074
<clever> ldlework: you want .overrideAttrs
UnAmazing has quit [Ping timeout: 276 seconds]
<ldlework> clever: now I get error: attempt to call something which is not a function but a set, at /nix/store/g26fs0jbfbvbcghr3vawi7ynpl5h3gaw-nixos-18.03.132405.ee80654b526/nixos/pkgs/stdenv/generic/make-derivation.nix:251:55
drakonis has quit [Remote host closed the connection]
<clever> ldlework: .overrideAttrs expects a function
<clever> (oldAttrs: { ... })
vcunat has quit [Ping timeout: 256 seconds]
<ldlework> hmm, it seems to have still installed 2.0.3 strange
<clever> that override wont change the name
<clever> so you will have a new version, with the old name
<clever> add name = "something"; to your override
<ldlework> hmm, that indeed changed the name but i still suspect it is installing an older version
<ldlework> ./sdk/2.0.3-servicing-007037/Sdks/Microsoft.NET.Sdk.Web/
<ldlework> is an example of a thing that flew buy during install
<clever> ldlework: did you change the sha256?
<ldlework> no. but i thought it would balk that the changed url doesn't match
<ldlework> does it look the up the sha256 before downloading and then not even look at the url if it found a cache of it or something
<clever> you told it that the hash hasnt changed, and it has a copy of the old source
<clever> so its just using it directly, without even checking the url
* ldlework nods
<ldlework> makes sense
<clever> if you didnt have the old source in your store, it would download the new url, and then notice the failure
<clever> ldlework: also, i literally just explained this (oh, an hour ago), and its still visible on my screen without scrolling up
<clever> how was that an hour ago? lol
cryptomonoid has joined #nixos
<ldlework> holy crap
<ldlework> fable is building
<ldlework> it is crazy when computers work
<pie_> ldlework, \o/
<pie_> the game?
<ldlework> pie_: F# -> Javascript compiler
<pie_> ah.
<ldlework> :( it failed
<pie_> aw :(
ericsagnes has quit [Ping timeout: 240 seconds]
<ldlework> oh looks like maybe just some tests failed
hakujin3 has quit [Ping timeout: 265 seconds]
sheyll has quit [Quit: sheyll]
sheyll has joined #nixos
<{^_^}> [nixpkgs] @bjornfor merged pull request #36621 → rapid-photo-downloader: init at 0.9.9 → https://git.io/vApTa
<{^_^}> [nixpkgs] @bjornfor pushed 7 commits to master: https://git.io/fNVU7