gchristensen changed the topic of #nixos to: NixOS 18.03 and Nix 2.0 are released! || 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
Piece_Maker has joined #nixos
Acou_Bass has quit [Ping timeout: 240 seconds]
Piece_Maker is now known as Acou_Bass
patrl has joined #nixos
<clever> foldingcookie: also, unquote the path to the patch
woodson has quit [Ping timeout: 265 seconds]
<foldingcookie> ah, thanks
Acou_Bass has quit [Ping timeout: 240 seconds]
woodson has joined #nixos
johnw has joined #nixos
<drakonis> nkaretnikov, resistance is futile
Acou_Bass has joined #nixos
Guest11810 is now known as spion-
Acou_Bass has quit [Client Quit]
Acou_Bass has joined #nixos
johnw has quit [Ping timeout: 245 seconds]
tzemanovic has quit [Remote host closed the connection]
Mateon1 has quit [Remote host closed the connection]
newhoggy has joined #nixos
Piece_Maker has joined #nixos
Acou_Bass has quit [Ping timeout: 260 seconds]
logzet has quit [Remote host closed the connection]
Piece_Maker is now known as Acou_Bass
johnw has joined #nixos
newhoggy has quit [Ping timeout: 252 seconds]
Acou_Bass has quit [Quit: byeeeeeeeeeeeeeee]
Acou_Bass has joined #nixos
johnw has quit [Client Quit]
sanscoeur has joined #nixos
Lisanna has joined #nixos
Mateon1 has joined #nixos
arbxs has quit [Ping timeout: 252 seconds]
nur0n0 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
arbxs has joined #nixos
sanscoeur has quit [Ping timeout: 245 seconds]
blankhart has joined #nixos
tzemanovic has joined #nixos
woodson has quit [Ping timeout: 252 seconds]
woodson has joined #nixos
ennui has quit [Ping timeout: 240 seconds]
Acou_Bass has quit [Quit: byeeeeeeeeeeeeeee]
Acou_Bass has joined #nixos
johnw has joined #nixos
blankhart has quit [Ping timeout: 252 seconds]
patrl has quit [Ping timeout: 276 seconds]
Acou_Bass has quit [Quit: byeeeeeeeeeeeeeee]
Acou_Bass has joined #nixos
johnw has quit [Ping timeout: 260 seconds]
JasonGrossman has quit [Remote host closed the connection]
JasonGrossman has joined #nixos
olto has quit [Ping timeout: 240 seconds]
olto has joined #nixos
mbrgm has quit [Ping timeout: 252 seconds]
mbrgm has joined #nixos
rodgort has quit [Ping timeout: 264 seconds]
shiver has quit [Read error: Connection reset by peer]
hodapp has quit [Ping timeout: 264 seconds]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shiver has joined #nixos
shiver has quit [Changing host]
shiver has joined #nixos
rodgort has joined #nixos
hodapp has joined #nixos
<nkaretnikov> elvishjerricco: https://github.com/NixOS/nixpkgs/pull/41120#issuecomment-392298454 it seems to work
Lears has quit [Remote host closed the connection]
Lears has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
seafood has joined #nixos
<nkaretnikov> elvishjerricco: https://github.com/NixOS/nixpkgs/issues/40788#issuecomment-392298678 are you sure 80 and 710 supposed to work? also, who can merge the above pull request? and how long would it take to hit the unstable channel?
<Lisanna> I can't seen to get placeholder to work?
<Lisanna> nix-repl> :b runCommand "hello" {} ''out=${placeholder "out"}; mkdir $out;''
<Lisanna> it's evaluating to the string "/1rz4g4znpzjwh1xymhjpm42vipw92pr73vdgl6xs1hycac8kf2n9"
camsbury has joined #nixos
<camsbury> hi there
<camsbury> looking to start xbindkeys when X starts
<camsbury> but unsure of how to do it in a nixy way
<camsbury> I have an .xbinkeysrc
<camsbury> but I have to manually run it currently
<Lisanna> camsbury make a nixos module for it, and use the systemd "After="?
<Lisanna> https://nixos.org/nixos/options.html#systemd.services.%3Cname%3E
<camsbury> thanks I'll try that
lostman has quit [Quit: Connection closed for inactivity]
<Lisanna> or just specify systemd.services.startxbindkeys directly in your nixos configuration, dont need to make a whole module for it I guess
<Lisanna> does placeholder only work in derivation attributes which are text strings?
buhman has quit [Quit: WeeChat 1.9.1]
<camsbury> I'll try that one in my "ui" module
sanscoeur has joined #nixos
sanscoeur has quit [Ping timeout: 264 seconds]
stepcut has quit [Remote host closed the connection]
blankhart has joined #nixos
<nkaretnikov> elvishjerricco: now i'm trying to build the canvas example from http://hangman-profile-56437.bitballoon.com, see above.
<nkaretnikov> elvishjerricco: i've tried adding haskellPackages.ghcjs-dom to executableHaskellDepends, but it complains about missing socket-io attribute for some reason. any idea how to fix this?
<clever> Lisanna: first, try calling it something other then $out, and then echo both placeholder and $out
<Lisanna> clever already did that
<clever> nix-repl> :b runCommand "hello" {} "echo ${placeholder "out"} $out"
<Lisanna> :b runCommand "hello" {} ''theout=${placeholder "out"}; echo $theout; mkdir -p $theout;''
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
<nkaretnikov> elvishjerricco: the error itself is: `error: attribute 'socket-io' missing, at nixpkgs/pkgs/development/haskell-modules/with-packages-wrapper.nix:74:34`
<clever> /1rz4g4znpzjwh1xymhjpm42vipw92pr73vdgl6xs1hycac8kf2n9 /nix/store/zpiylv6am19byxaf6bhr2qffvfj2yqnl-hello
<clever> yeah, thats not what i would expect it to be creating
<Lisanna> maybe it literally only scans the .drv for that string, not files that it references?
<clever> Lisanna: but that string is in the .drv
<clever> at least, it should be
<clever> that gives me an idea
Supersonic112 is now known as Supersonic
<clever> nix-repl> :b runCommand "hello" { foo = placeholder "out"; } "echo vals are $foo $out"
<clever> vals are /nix/store/20x9309p7vkq8gi5w5rqhxrvv3707s0x-hello /nix/store/20x9309p7vkq8gi5w5rqhxrvv3707s0x-hello
<clever> Lisanna: aha, it works when it is definitely an attribute
<clever> Lisanna: i think your right, buildCommand inside runCommand is passed as a file
<nkaretnikov> elvishjerricco: ^ the code in that file
<Lisanna> clever okay, so if I want to do it in a runCommand I just need to make sure I reference it through an attribute
<clever> Lisanna: yeah
<Lisanna> that's a bit limiting unfortunately, but it's okay, I found a different way to do the actual thing I was trying to do
stepcut has joined #nixos
<clever> Lisanna: what are you wanting to do?
woodson has quit [Ping timeout: 260 seconds]
<Lisanna> clever running simics (it's like qemu) in runCommand, trying to get $out into the shell of the virtual host
<clever> Lisanna: ah
<Lisanna> I found an easier way to pass the value tho
drakonis has quit [Ping timeout: 245 seconds]
oltoAltn has joined #nixos
olto has quit [Ping timeout: 240 seconds]
camsbury has quit [Quit: WeeChat 2.0]
kerrhau has left #nixos ["WeeChat 2.1"]
thc202 has quit [Ping timeout: 260 seconds]
lassulus_ has joined #nixos
woodson has joined #nixos
blankhart has quit [Quit: WeeChat 1.9.1]
lassulus has quit [Ping timeout: 252 seconds]
lassulus_ is now known as lassulus
<elvishjerricco> nkaretnikov: Looks like we need to add socket-io to the GHCJS derivation
<nkaretnikov> elvishjerricco: i've also tried reflex-dom and it complains similarly about oldtime
<nkaretnikov> elvishjerricco: i'm now trying the reflex-platform. perhaps it's better
<elvishjerricco> nkaretnikov: reflex-platform is at least stable at the moment
<elvishjerricco> your problems with ghcjs80 and ghcjs710 were because I was dumb and forgot to change the compilers in their package sets from the old names
<elvishjerricco> Will push fixes for both shortly
<nkaretnikov> elvishjerricco: i don't have any library preference and don't really know what's considered best practices in the haskell js world. i just need something with which i can draw shapes on the screen and accept mouse/keyboard events. iiuc, the reflex platform gives me all this in a nice package thanks to the bundled libraries, correct?
blankhart has joined #nixos
<elvishjerricco> nkaretnikov: Yea. reflex-platform is going to pretty much always be in a known-working state. GHCJS in nixpkgs gets much less attention (I don't get notifications for any failures, so I have to anticipate any possible failures or hope to be cc'd on any issues)
fragamus has joined #nixos
<nkaretnikov> elvishjerricco: why is the platform in a separate repo, tho? was there some issue with the upstream?
asuryawanshi has joined #nixos
<nkaretnikov> elvishjerricco: or is it just a way to have some stable environment?
<elvishjerricco> nkaretnikov: reflex-platform is a collection of things that we know are needed for reflex development (such as a checkout of nixpkgs with a working ghcjs). The hope for pretty much everything in there is to be upstreamed eventually, but there's always things that aren't there yet. Plus a number of decisions have to be made about versions of stuff like reflex, so it takes care of pinning those for you
<nkaretnikov> elvishjerricco: the other question i have is can i still use cabal build when inside the reflex shell? will it automagically call ghcjs? the readme page suggests to just use ghcjs --make
<elvishjerricco> nkaretnikov: Ugh. The README in reflex-platform is annoying because people always see that and assume that's how you're supposed to use reflex-platform. I'd rather it just never said that, because later in the README there's a link to "project-development.md", which is the right way to do a realworld project. Yes, it uses cabal in the nix-shell
* nkaretnikov checks
<nkaretnikov> elvishjerricco: okay, this is awesome
<elvishjerricco> nkaretnikov: Yea the `project` stuff is another example of something we need in reflex-platform, but it's so nice that I really want to upstream it somewhere
<elvishjerricco> `project` really simplifies haskell dev with Nix
atondwal has quit [Quit: atondwal]
<nkaretnikov> elvishjerricco: on the development page, there are some references for building mobile apps. does it work by bundling webkit or something?
<{^_^}> [nixpkgs] @grahamc merged pull request #41122 → calibre: 3.23.0 -> 3.24.1 → https://git.io/vhq9H
<{^_^}> [nixpkgs] @grahamc pushed 2 commits to master: https://git.io/vhq7h
<{^_^}> → 681826c0 by R. RyanTM: calibre: 3.23.0 -> 3.24.1
<{^_^}> → 3c98015e by @grahamc: Merge pull request #41122 from r-ryantm/auto-update/calibre
<elvishjerricco> nkaretnikov: It actually cross compiles your Haskell to a native executable for the mobile device that links to the device's native webview library for rendering. The Haskell code uses the `jsaddle`library to shim JS calls over a bridge to the webview
<elvishjerricco> Turns out that bridge is way faster than GHCJS, because GHCJS is slow and native Haskell is very fast :P
<gchristensen> samueldr: ^
<elvishjerricco> It's quite important for mobile Haskell
<nkaretnikov> elvishjerricco: sweet
emmanuelrosa has joined #nixos
JasonGrossman has quit [Remote host closed the connection]
<samueldr> gchristensen: this looks like the previous revision, right?
atondwal has joined #nixos
<gchristensen> yea
<samueldr> could you tell me the deployed commit ID?
<gchristensen> seems I made some rogue patches :$
<elvishjerricco> nkaretnikov: I have to rebuild GHCJS from scratch to test (I let it get GC'd away :P), but once I've confirmed it's working I'll push my fixes (though I kinda recommend reflex-platform anyway :P)
<samueldr> gchristensen: ah, this could explain weirdness :)
sanscoeur has joined #nixos
<nkaretnikov> elvishjerricco: yeah, we'll see. thanks for your help!
<gchristensen> samueldr: mind applying those patches and I can deploy again?
<samueldr> hmm, what's < IRC_QUEUE = "amq.direct"
<samueldr> for?
<samueldr> (I first want to understand the changes :) )
sanscoeur has quit [Ping timeout: 264 seconds]
Fare has joined #nixos
<gchristensen> heh no idea
<samueldr> and i should use `channel.direct("", ...)` instead of `channel.IRC_EXCHANGE("", ...)` if I follow you, right?
<samueldr> (not used to that diff format)
<samueldr> (and I'm not 100% sure which side is which!)
<gchristensen> samueldr: http://ix.io/1bvj
<gchristensen> ^ that is the working version
<samueldr> awesome thanks
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gchristensen> man you even the ugly whitespace changes :D
<nkaretnikov> elvishjerricco++
<{^_^}> elvishjerricco's karma got increased to 1
<nkaretnikov> yay, it works :)
<elvishjerricco> nkaretnikov: Cool :)
<samueldr> gchristensen: as it was (I then made another commit fixing it)
<samueldr> while it adds noise to the log, at least there is a known good commit (hopefully)
<{^_^}> [nixpkgs] @grahamc merged pull request #41101 → riot-web: 0.15.3 -> 0.15.4 → https://git.io/vhq0u
<{^_^}> [nixpkgs] @grahamc pushed 2 commits to master: https://git.io/vhq5P
<nkaretnikov> elvishjerricco: fwiw, the comment was about the bot, the package is still building :)
<samueldr> gchristensen++
<{^_^}> gchristensen's karma got increased to 4
<elvishjerricco> nkaretnikov: Ah, haha. FYI, reflex-platform does have a binary cache you can use to avoid building everything up to reflex-dom
<gchristensen> yay!
michas has joined #nixos
michas_ has quit [Ping timeout: 268 seconds]
fragamus has joined #nixos
sir_guy_carleton has joined #nixos
<sir_guy_carleton> hello
b has joined #nixos
<iqubic> ,karma
<{^_^}> I track users karma points! Use "<nick>++" and I'll add one!
buckley310 has quit [Quit: Bye]
<iqubic> Well, that didn't show me MY karma like I expected.
buckley310 has joined #nixos
<iqubic> Is there a way to check my own karma?
blankhart has quit [Ping timeout: 260 seconds]
<samueldr> hmmm, wouldn't it be against the spirit of karma, to care about karma?
buckley310 has quit [Client Quit]
buckley310 has joined #nixos
<iqubic> Yes, but I think I have negative karma for some reason.
<gchristensen> if you PM the bot with yourownnick++ it'll godown
<iqubic> Don't even have to PM
<iqubic> iqubic++
<{^_^}> iqubic's karma got decreased to -2
<gchristensen> oh :)
<iqubic> Well, I now have -2 karma.
<iqubic> See, it was negative, It is now more negative.
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
emmanuelrosa has left #nixos [#nixos]
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #nixos
{^_^} has quit [Changing host]
{^_^} has joined #nixos
JasonGrossman has joined #nixos
smallville7123 has quit [Quit: rosa]
jasongro` has joined #nixos
sanscoeur has joined #nixos
schoppenhauer has quit [Ping timeout: 245 seconds]
grp has joined #nixos
JasonGrossman has quit [Ping timeout: 264 seconds]
schoppenhauer has joined #nixos
{^_^} has quit [Remote host closed the connection]
sanscoeur has quit [Ping timeout: 264 seconds]
freeman42x]NixOS has quit [Ping timeout: 240 seconds]
{^_^} has joined #nixos
gchristensen has joined #nixos
jasongro` has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @grahamc merged pull request #41117 → insomnia: 5.16.2 -> 5.16.6 → https://git.io/vhq19
<{^_^}> [nixpkgs] @grahamc pushed 2 commits to master: https://git.io/vhqdd
JasonGrossman has joined #nixos
jasongro` has joined #nixos
MP2E has quit [Remote host closed the connection]
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<JasonGrossman> Long shot, but does anybody know an easy way to use stumpish on NixOS? It's meant to be installed as part of a stumpwm installation, but the current Nix derivation for stumpwm doesn't seem to install it.
nallar has joined #nixos
Ross has quit [Ping timeout: 252 seconds]
nallar is now known as Ross
oltoAltn has quit [Quit: ZNC - https://znc.in]
olto has joined #nixos
Joeyo133 has joined #nixos
stepcut has quit [Remote host closed the connection]
semilattice has joined #nixos
<semilattice> anyone have experience with ruby gems?
xy2_ has quit [Ping timeout: 268 seconds]
ray_ has joined #nixos
<ray_> Hello, I'm having a bug where in grub, if I choose "default configuration", the grub background image stays up and covers up the prompt to enter my password to decrypt my ssd. I'm still able to type the password, but it's annoying since I can't see the prompt. But the weird thing is that if I choose "all configurations" then pick any one, this weird behavior doesn't happen and I see the prompt as normal.
<ray_> Another crucial detail is that I'm running libreboot, so I don't have grub installed to the ssd, instead grub.cfg is loaded from libreboot's grub
<mog> i have clearlooks installed and it is working for gtk2 apps but i cant seem to get it working for my gtk3 one
<ray_> I've tried changing the grub configuration so it doesn't have a splash screen, but then libreboot's background image just stays to cover the password prompt
endformationage has quit [Quit: WeeChat 1.9.1]
michas has quit [Ping timeout: 248 seconds]
sanscoeur has joined #nixos
sanscoeur has quit [Ping timeout: 264 seconds]
<JasonGrossman> semilattice: Not me, and ruby generally doesn't seem to get mentioned much here. Sorry.
palo has quit [Quit: ZNC 1.6.5 - http://znc.in]
palo has joined #nixos
palo has quit [Changing host]
palo has joined #nixos
<semilattice> @jasongrossman thanks regardless. I'm just tryiing to sneak an extra step into one of the dependency gems without negating auto generation
<JasonGrossman> ray_: You've accidentally achieved an extra level of security! Harder for anyone else to type your password. :-)
Rusty1_ has quit [Quit: Konversation terminated!]
palo has quit [Quit: ZNC 1.6.5 - http://znc.in]
palo has joined #nixos
fragamus has joined #nixos
robstr has joined #nixos
andymandias has joined #nixos
furon has quit [Quit: Connection closed for inactivity]
ray_ has quit [Quit: leaving]
seafood has quit [Quit: seafood]
liori has quit [Remote host closed the connection]
newhoggy has joined #nixos
sanscoeur has joined #nixos
newhoggy has quit [Remote host closed the connection]
newhoggy has joined #nixos
sanscoeur has quit [Ping timeout: 264 seconds]
jasongro` has quit [Remote host closed the connection]
JasonGrossman has quit [Remote host closed the connection]
JasonGrossman has joined #nixos
newhoggy has quit [Remote host closed the connection]
JasonGrossman has quit [Remote host closed the connection]
JasonGrossman has joined #nixos
sbdchd has quit [Remote host closed the connection]
<cocreature> Hey, if I run “nix-shell -p "llvm_6.overrideAttrs(oldArgs: {debugVersion = true;})" --command "llvm-config --build-mode"” (and wait until the build finishes) I still get “Release” instead of “Debug”. am I doing something wrong here?
Lisanna has quit [Remote host closed the connection]
<cocreature> I also have the LLVMExports-release.cmake file rather than the LLVMExports-debug.cmake file in the store directory pointed to by running `which llvm-config` inside the shell
JasonGrossman has quit [Ping timeout: 245 seconds]
<cocreature> it seems like the debug flag is not being applied but given that it rebuild llvm something™ seems to have been applied
Mateon3 has joined #nixos
JasonGrossman has joined #nixos
andymandias has quit [Quit: ZNC 1.6.5 - http://znc.in]
Mateon1 has quit [Ping timeout: 252 seconds]
Mateon3 is now known as Mateon1
<{^_^}> [nixpkgs] @dtzWill opened pull request #41128 → Revert "sqlite{,-analyzer}: use the same src (#40945)" → https://git.io/vhqbr
sary has quit [Ping timeout: 260 seconds]
andymandias has joined #nixos
<dtz> ^ didn't take all day to chase down why Nix was being super crashing
<dtz> cocreature: ithink debug flag is outdated, I think it's not tied to cmake build type anymore
<dtz> lemme check
dvim has joined #nixos
<dtz> okay well two "problems" -- I got a short bit into the build (using command you provided) and already I'm seeing CMAKE_BUILD_TYPE=Release -- it actually appears twice! :)
<dtz> the other problem is more of a possible problem-- i'm not sure how neatly "override" works given the way we add the manpages output
<dtz> oh you're using overrideAttrs
<dtz> if you use ".override{debugVersion=true;}" that's invoking it right
<dtz> not sure if anyone's tested/maintained that--bug me/file issue if not
<cocreature> dtz: hm if I try nix-shell -p "llvm_6.override(oldArgs: {debugVersion = true;})", I’m still seeing “cmake flags: -DCMAKE_BUILD_TYPE=Release …” in the buld log
<dtz> err
<cocreature> ah it’s overwritten later in the same line
<dtz> nix-shell -p "llvm_6.override{debugVersion = true;}" --command "llvm-config --build-mode"”
<dtz> oh you probably had it right in your shell haha
<dtz> yeah it still has the first one because cmake setup-hook sets that automatically
<cocreature> alright, time to build llvm again :)
<dtz> we should probably tell it we're doing a debug build, not sure. This might work O:).
<cocreature> so I think get why I need override instead of overrideAttrs but I don’t get why using overrideAttrs causes a rebuild. shouldn’t that just be a useless parameter? do those influence the hash?
aszlig has quit [Quit: Kerneling down for reboot NOW!]
<dtz> yes, changed attrs changes hash
<dtz> they're also set as env variables in the build
<dtz> ".override" doesn't change the attrs but changes the values of the function in that file
<cocreature> ah ok, so they’re not unused. that makes sense, thanks!
aszlig has joined #nixos
<dtz> which is something like { stdenv, ...., debugVersion, ... } : stdenv.mkDerivation { <<go go gadget LLVM build as a function of (stdenv, ...., debugVersion, ....)>>};
<dtz> lol
Fare has quit [Ping timeout: 260 seconds]
joehh has joined #nixos
chimay has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
tzemanov_ has joined #nixos
asuryawanshi has joined #nixos
tzemanovic has quit [Ping timeout: 252 seconds]
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
sanscoeur has joined #nixos
grp has quit [Ping timeout: 245 seconds]
joehh has quit [Ping timeout: 260 seconds]
sanscoeur has quit [Ping timeout: 268 seconds]
asuryawanshi has quit [Ping timeout: 268 seconds]
dbe has joined #nixos
grp has joined #nixos
semilattice_ has joined #nixos
semilattice has quit [Ping timeout: 260 seconds]
dottedmag has joined #nixos
dottedmag has quit [Changing host]
dottedmag has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @adisbladis merged pull request #41116 → imagemagick7: 7.0.7-32 -> 7.0.7-35 → https://git.io/vhq1s
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/vhqNW
seafood has joined #nixos
iyzsong has joined #nixos
tzemanov_ has quit [Remote host closed the connection]
ixxie has joined #nixos
dottedmag has quit [Quit: QUIT]
JasonGrossman has quit [Ping timeout: 256 seconds]
JasonGrossman has joined #nixos
JasonGrossman has quit [Remote host closed the connection]
myshoe has joined #nixos
Ariakenom has joined #nixos
seafood has quit [Quit: seafood]
JasonGrossman has joined #nixos
jD91mZM2 has joined #nixos
tmaekawa has joined #nixos
grp has quit [Quit: box shutting down...]
dbe has quit [Ping timeout: 240 seconds]
srl295 has quit [Quit: Connection closed for inactivity]
<ldlework> I've got the following in an installPhase but it doesn't seem to replace @homeManager@ in the installed script:
<ldlework> install -v -D -m755 ${./bin/hm} $out/bin/hm
<ldlework> substituteAllInPlace $out/bin/hm --subst-var-by homeManager ${pkgs.home-manager}/bin/home-manager
tmaekawa has quit [Quit: tmaekawa]
<ldlework> @homeManager@ is still in the script
newhoggy has joined #nixos
tmaekawa has joined #nixos
jD91mZM2_ has joined #nixos
jD91mZM2 has quit [Ping timeout: 245 seconds]
newhoggy has quit [Ping timeout: 268 seconds]
<ldlework> dunno what I'm doing wrong
<sphalerite> tazjin: jD91mZM2_: The thing you suggested yesterday, with creating my channel by pointing it to a github archive, didn't work because the github tarball doesn't contain the symlink nixpkgs -> .
jasongro` has joined #nixos
jD91mZM2 has joined #nixos
newhoggy has joined #nixos
<sphalerite> jD91mZM2: connection problems? :p
<jD91mZM2> sphalerite: You saw! Randomly went out and had to restart networkmanager
<sphalerite> idk if you saw my message to you just a minute ago then :p
<sphalerite> tazjin: jD91mZM2_: The thing you suggested yesterday, with creating my channel by pointing it to a github archive, didn't work because the github tarball doesn't contain the symlink nixpkgs -> .
jD91mZM2_ has quit [Ping timeout: 264 seconds]
<jD91mZM2> Oh yeah I didn't, thanks for resending :)
jasongro` has quit [Remote host closed the connection]
tmaekawa has quit [Quit: tmaekawa]
lostman has joined #nixos
<jD91mZM2> That's actually a really weird symlink
<jD91mZM2> `ls nixpkgs/nixpkgs/nixpkgs/`
<sphalerite> yep
<jD91mZM2> yay recursion
<jD91mZM2> I wonder what happens if I ask find to follow symlinks
<sphalerite> I think it has logic for detecting loops. Not 100% sure though.
<taktoa> I wonder if symlink resolution is turing complete
<jD91mZM2> find: File system loop detected; ‘./nixpkgs’ is part of the same file system loop as ‘.’.
<sphalerite> taktoa: how would it be?
<jD91mZM2> It's also missin programs.sqlite and svn-revision
<jD91mZM2> missing*
tzemanovic has joined #nixos
sanscoeur has joined #nixos
<jD91mZM2> That said, programs.sqlite is only used by command-not-found I think. So maybe you could recreate an old nixpkgs version by just downloading a tarball and adding the symlink
<ldlework> if I installed a package by way of fetchTarball how do I get nixos-rebuild to refetch it?
JasonGrossman has quit [Remote host closed the connection]
JasonGrossman has joined #nixos
JasonGrossman has quit [Read error: Connection reset by peer]
<sphalerite> jD91mZM2: yeah. Hell of a fuss though for just setting the channel to a specific version (that it was at one point at, no less!)
<jD91mZM2> I mean programs where you need old versions you probably want to create a custom expression for either way
<jD91mZM2> Like autoconf264
tmaekawa has joined #nixos
tmaekawa has quit [Client Quit]
sanscoeur has quit [Ping timeout: 276 seconds]
joehh has joined #nixos
nD5Xjz has quit [Ping timeout: 252 seconds]
<sphalerite> I don't want old versions of anything per se, I just want the initial state of the channels on the servers that I deploy to be the same as on the machine I deployed it from :/
<jD91mZM2> I don't see why exactly. Anyway, wouldn't `nix copy` do this?
<sphalerite> what I'm trying to achieve is to have this look like a regular nixos installation as much as possible
<sphalerite> that is, I want to be able to deploy, then ssh in, make some config change, and nixos-rebuild switch
<sphalerite> without having it rebuild a bunch of stuff ebcause the channel state doesn't match
<sphalerite> and also be able to do nixos-rebuild switch --upgrade and have that update stuff
<jD91mZM2> Could you upload some channel files from the host computer?
<sphalerite> hm
<taktoa> sphalerite: naively I expect it wouldn't be but there might be some kind of trick, maybe using broken symlinks or something
<taktoa> unless the kernel has cycle detection
<sphalerite> it doesn't have cycle detection AFAIK, but it does have a hard limit on how many levels of links it will resolve before giving up
<taktoa> I guess the question is how you would ever branch
gonz_ has joined #nixos
seafood has joined #nixos
<taktoa> you'd have to maybe figure out some way to get the kernel to create a file during symlink resolution
<jD91mZM2> sphalerite: /nix/var/nix/profiles/per-user/root/channels/<channel>/
<jD91mZM2> There is programs.sqlite and everything
<jD91mZM2> it's like christmas
<sphalerite> lol
<sphalerite> thing is, that's not necessarily the nixpkgs that the deployment was made from ;/
<sphalerite> but that might
<sphalerite> but that might be too much to ask for, as that's not guaranteed to be a channel version
<jD91mZM2> No?
<sphalerite> no. Because the user can do -I nixpkgs=/path/to/their/nixpkgs
<jD91mZM2> Oh okay. Can't you just get the value of <nixpkgs>?
<sphalerite> yes, but then I still have the same problem as with the github archive
<jD91mZM2> > <nixpkgs>
<{^_^}> /var/lib/nixbot/state/nixpkgs
<sphalerite> I think what I'm trying to do is just not possible
<sphalerite> at least in the very general case that I envision. If we have a guarantee that it's in a channel we're better off
<jD91mZM2> For me <nixpkgs> would work. It returns /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs, which is the right link
<sphalerite> yeah, but with -I nixpkgs=/path/to/checkout/of/nixpkgs it won't
<jD91mZM2> Then it would return /path/to/checkout/of/nixpkgs wouldn't it?
<jD91mZM2> And that's correct, no?
<sphalerite> yes, but that's not something we can use as the channel state
<jD91mZM2> Why not?
<jD91mZM2> (Forgive me if I'm stupid)
<sphalerite> because it doesn't contain the nixpkgs symlink
<jD91mZM2> oh, right
<jD91mZM2> Is it possible to create it?
<sphalerite> also, why does htop default to showing threads…
justanotheruser has quit [Ping timeout: 264 seconds]
thblt has joined #nixos
<sphalerite> if you make a derivation based on what the user has, but ugh. I'll just keep it simple and not bother
thblt has quit [Changing host]
thblt has joined #nixos
coot has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
semilattice_ has quit [Ping timeout: 240 seconds]
<tilpner> jD91mZM2 - sphalerites "very general case" might even include the case where <nixpkgs> is a file, so I agree that it's not easily possible to support all setups
<sphalerite> jD91mZM2: no, I definitely wasn't plannign to go that far, just for valid nixpkgss
<sphalerite> err tilpner ^
woodson has quit [Ping timeout: 240 seconds]
<tilpner> Hey, my <nixpkgs> is definitely valid, just uncommon!
justanotheruser has joined #nixos
<{^_^}> [nixpkgs] @megheaiulian opened pull request #41130 → gitkraken: 3.6.0 -> 3.6.1 → https://git.io/vhqxw
tmaekawa has joined #nixos
Huw has joined #nixos
<tilpner> I partly solved [the problem I think you're having] by automatically symlinking source nixpkgs into NIX_PATH on activation
<tilpner> But that doesn't transfer overlays, or nixpkgs config, nor does it allow updating the nixpkgs version from the server (this last part I'm fine with)
<sphalerite> well overlays and nixpkgs config aren't a problem since they're part of the nixos config which I'm copying over
<tilpner> Are you copying it over automatically?
<Cypi> So, I'm still unable to run teamspeak (cf https://github.com/NixOS/nixpkgs/issues/33274 and https://github.com/NixOS/nixpkgs/issues/36793 for references to the same problem). I have tried to basically upgrade/reinstall basically everything in my systemwide configuration and my user nix-env (at least I think so), and still getting the exact same error. What can I try?
<tilpner> I'm managing all that via git now, but I don't always remember to pull before doing local changes
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<tilpner> Cypi - Do you want to fix the issue upstream, or do you just want to run teamspeak by yourself?
<tilpner> One comment says nixos-18.03 (still?) has a working teamspeak_client
xy2_ has joined #nixos
<Cypi> I would be happy with the latter, as I am very much a novice
<Cypi> Hmm, maybe it's just a matter of upgrading my system actually, it seems my current channel is 17.09
<sphalerite> nix-env -f channel:nixos-18.03 -iA teamspeak_client
<Cypi> let me try that
<tilpner> No!
<tilpner> nix-env -f https://nixos.org/channels/nixos-18.03/nixexprs.tar.xz -iA teamspeak_client
<tilpner> (No because sphalerite was faster, not because it's wrong (it is wrong on Nix < 2))
<Cypi> I'm guessing actually upgrading my whole system to 18.03 and reinstalling teamspeak will do the same?
<sphalerite> lol
<sphalerite> yeah, and it's a good idea generally. 17.09 isn't getting updates anymore.
<tilpner> Cypi - Upgrading to 18.03 would be good in general, but these commands will not update your system
<{^_^}> [nixpkgs] @peti merged pull request #41123 → bind: 9.12.1-P2 -> 9.13.0 → https://git.io/vhqHJ
<{^_^}> [nixpkgs] @peti pushed 2 commits to master: https://git.io/vhqx9
<tilpner> So depending on how much time you have right now, try them first
tzemanovic has quit [Ping timeout: 248 seconds]
<Cypi> I have time now, so I will just upgrade and see x)
<Cypi> thanks
dbe has joined #nixos
<tilpner> Please note that I have not verified if it works on 18.03, so it's possible that you might find a broken client after upgrading too
<tilpner> (But hey, upgraded system)
<Cypi> No problem
orbekk has quit [Quit: WeeChat 2.0]
orbekk has joined #nixos
Huw has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<lostman> Hi folks. I've been trying to find out why libclang pulls in gcc in addition to gcc-lib as dependency (when building docker image). Running strings on libclang.so.6.0 shows /nix/store/cm5znbhvylrh702hhsy9hnad7wk3v7xv-gcc-7.3.0 which as far as I understand has something to do with how nix computes runtime dependencies. Is there anything I can do about it?
newhoggy has quit [Remote host closed the connection]
sanscoeur has joined #nixos
newhoggy has joined #nixos
<{^_^}> [nixpkgs] @megheaiulian opened pull request #41131 → avocode: 2.26.1 -> 2.26.4 → https://git.io/vhqpJ
<tilpner> nix why-depends --all nixpkgs.llvmPackages_6.libclang nixpkgs.gcc-unwrapped confirms your issue :/
<lostman> tilpner: is there some way to override runtime dependencies?
sanscoeur has quit [Ping timeout: 252 seconds]
<tilpner> Sort of. You can set disallowedReferences = [ gcc ]; to make Nix complain about gcc still being referenced, and you can use remove-references to break those references
<tilpner> No idea what will happen after you broke them though. If libclang actually used that path for anything, it will no longer find anything there
Huw has joined #nixos
<Huw> Is there anyone here who could help me with installation on ZFS?
<Huw> Single machine
<Huw> Single disk
<tilpner> I have never used ZFS, but I know people write a wiki entry for it! https://nixos.wiki/wiki/NixOS_on_ZFS
mahalel_ has joined #nixos
<Huw> Yeah, I've followed that quite a few times.
<Huw> I've reached the point where installation says it has succeeded, I set the root password and reboot. And stage 1 works, but stage 2 can't find the root pool
nD5Xjz has joined #nixos
<Huw> (Actually I think stage one says it can't find it which causes stage 2 to panic immediately).
<tilpner> You could wait around a while (and repeat your question every 2 hours), there are some people who use ZFS in here
<Huw> I'm in Australia, but yeah, I can try for a few hours more.
<jD91mZM2> (Pinging adisbladis[m])
hlolli_ has joined #nixos
<Cypi> I'm not sure upgrading my system is working. I get a few "warning: unknown setting 'signed-binary-caches'", then it seems to hang indefinitely after "building the system configuration...". (maybe it's just very long, but it doesn't seem to be doing anything)
thblt has quit [Remote host closed the connection]
<tilpner> Cypi - That warning is expected and Fine™. It'll go away soon
taktoa has quit [Remote host closed the connection]
<Cypi> Oh hey, I just noticed I don't have any program anymore in my nix-env, how did that happen...
<Cypi> I'm such a noob.
hlolli_ has quit [Ping timeout: 276 seconds]
simukis has joined #nixos
<jD91mZM2> Cypi: What do you mean?
<Cypi> I mean that I had stuff installed with `nix-env -i`, and now I have nothing when I do `nix-env -q`. I was meddling to try and get teamspeak working, and somehow I must have...uninstalled everything?
<Cypi> I don't even know how I would do that
xy2_ has quit [Ping timeout: 240 seconds]
<jD91mZM2> Oh crap! Can you rollback?
<Cypi> No idea.
<{^_^}> [nixpkgs] @peti pushed to revert-41123-auto-update/bind « Revert "bind: 9.12.1-P2 -> 9.13.0" »: https://git.io/vhqpV
<{^_^}> [nixpkgs] @peti opened pull request #41132 → Revert "bind: 9.12.1-P2 -> 9.13.0" → https://git.io/vhqpw
<Cypi> I ran `nix-collect-garbage -d` earlier, thinking (probably wrongly) it might cleanup any old version of Qt I had laying around. That command cannot uninstall anything, right?
<{^_^}> [nixpkgs] @peti merged pull request #41132 → Revert "bind: 9.12.1-P2 -> 9.13.0" → https://git.io/vhqpw
<{^_^}> [nixpkgs] @peti pushed 2 commits to master: https://git.io/vhqpo
<{^_^}> [nixpkgs] @peti pushed 0 commits to revert-41123-auto-update/bind: https://git.io/vhqp6
<tilpner> samueldr - Should ^ be posted here? Or only master/staging?
<lostman> tilpner: thanks for the pointers. I think the issue is that clang derivation sets GCC_INSTALL_PREFIX. I wonder if anything there is actually required for libclang though (I'm not using whole clang, just libclang)
<adisbladis[m]> jD91mZM2: Pong
<sphalerite> Cypi: it won't remove anything you have installed in a current version of any profile
<Cypi> Ok. Then I have literally no idea how I managed to do that :/
<tilpner> adisbladis[m] - Huw was having problems with ZFS
<Cypi> (like I said, I wouldn't know how to do it even if I meant to)
<sphalerite> Cypi: it deletes old generations of all profiles, removing the ability to roll back, then deletes anything that nothing depends on anymore. This might mean removing an old version of qt for instance.
<tilpner> (Only deletes from *all* profiles when root)
Lisanna has joined #nixos
* tilpner is being nitpicky today
<sphalerite> all profiles it has permission to modify :)
* sphalerite one-ups nitpickyness
<tilpner> :)
<yurb> What's the licensing policy for packages in nixpkgs? I see Adobe Reader given as an example. Does Nixpkgs allow closed-source software?
* jD91mZM2 always two-ups
<Cypi> I guess I'm done for then. It looks like the numerous ".default-profile-*-link" symlinks in my home are all dead
<Cypi> (why aren't they garbage-collected? :o )
<tilpner> yurb - Yes, there's a bunch of nonfree software in nixpkgs
JasonGrossman has joined #nixos
<MichaelRaskin> jasongrossman: you can just checkout the upstream stumpwm-contrib repository
<tilpner> yurb - But users need to opt-in to unfree software in general (or per-package)
<sphalerite> Cypi: that seems like an odd situation, usually the numbered links should only be in /nix/var/nix/profiles/
<iqubic> Is it possible to run the garbage collect command, but keep the last N generations?
<Huw> Yep I'm back
<sphalerite> Cypi: and there should be a link ~/.nix-profile pointing to /nix/var/nix/profiles/per-user/$username/profile
<MichaelRaskin> iqubic: you can even manually remove exactly the generations you want to delete in /nix/var/nix/profiles
<yurb> tilpner: thanks.
chimay has quit [Ping timeout: 264 seconds]
<sphalerite> iqubic: there isn't a single command for it, but you can use nix-env --delete-generations, or you can use --delete-older-than which allows you to select by age (rather than number of gens)
<Cypi> Hmm, in my home, ~/.nix-profile is pointing to ~/.default-profile, which is pointing to ~/.default-profile-68-link, which is pointing to some /nix/store/blurb-user-environment/
<tilpner> yurb - FWIW, adobe-reader is in nixpkgs already
<Huw> adisbladis[m] I'm getting issues with the root pool not being found on boot
<Cypi> I don't think I've done anything special
<yurb> tilpner: yes, I've noticed it linked in the manual. That's why I was curious.
<tilpner> Oh, okay
<{^_^}> [nixpkgs] @xeji merged pull request #41045 → QmidiNet: 0.5.0 -> 0.5.1 → https://git.io/vhIyU
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « QmidiNet: 0.5.0 -> 0.5.1 (#41045) »: https://git.io/vhqpy
<adisbladis[m]> Huw: What does your configuration.nix look like? What's the output from `zfs list`?
newhoggy has quit [Remote host closed the connection]
chimay has joined #nixos
<adisbladis[m]> hardware-configuration.nix is also interesting
<Huw> At the moment, I'm booted back into my live usb environment. zfs list is currently finding anything
<Huw> And although it worked before I rebooted, mount -t zfs rpool/root/nixos /mnt isn't bringing anything up
<Huw> It says "unable to open the dataset"
<adisbladis[m]> Huw: Try force-importing the pool
<Huw> Shall I start at the beginning and reformat?
<adisbladis[m]> The installer does not export the pool on shutdown
<Huw> I did a `zpool export rpool` before shutdown if that helps
tertle||eltret has quit [Quit: Connection closed for inactivity]
<Huw> Ok, `zpool import rpool -f` gives 0 exitcode
<adisbladis[m]> Ahh, then a simple `zfs import rpool` should suffice
<adisbladis[m]> zpool import I mean
<Huw> That says "no pools available to import"
<Huw> Is this conversation better on the public channel?
joehh has quit [Ping timeout: 245 seconds]
<Huw> I can now mount the root
toby1851 has joined #nixos
<Huw> So should I reboot?
Have-Quick has joined #nixos
b has quit [Quit: Lost terminal]
romildo has joined #nixos
<romildo> I am running NixOS from a VM built with nixos-rebuild build-vm and I want to share the clipboard with the host and the virtual machine. How can it be done?
thblt has joined #nixos
JasonGrossman has quit [Remote host closed the connection]
JasonGrossman has joined #nixos
b has joined #nixos
simukis has quit [Quit: simukis]
newhoggy has joined #nixos
simukis has joined #nixos
joehh has joined #nixos
freusque has joined #nixos
ixxie has quit [Ping timeout: 248 seconds]
seafood has quit [Quit: seafood]
seafood has joined #nixos
aarvar has quit [Ping timeout: 256 seconds]
sanscoeur has joined #nixos
newhoggy has quit [Remote host closed the connection]
seafood has quit [Ping timeout: 268 seconds]
Lisanna has quit [Remote host closed the connection]
sanscoeur has quit [Ping timeout: 264 seconds]
coot has quit [Quit: coot]
<adisbladis[m]> Huw: So what was the issue?
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #41128 → Revert "sqlite{,-analyzer}: use the same src (#40945)" → https://git.io/vhqbr
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to staging: https://git.io/vhqhA
<Huw> From the live usb I can mount import the pool. But the system doesn't find it at stage on.
<adisbladis[m]> Huw: Does your `boot.supportedFilesystems` contain zfs?
<Huw> ^ import and mount
<Huw> Yeah
<adisbladis[m]> Huw: And your hardware-configuration.nix contains what?
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos
thc202 has joined #nixos
tmaekawa has quit [Quit: tmaekawa]
<Huw> Sorry, I'll have to transcribe it. Which part are you interested in?
<Huw> I've got 3 fileSystems.
<sphalerite> curl -F 'f:1=<-' ix.io </etc/nixos/hardware-configuration.nix
<Huw> ."/" = { "rpool/root/nixos"; fsType = "zfs" ; };
<Huw> ."/boot" = { device = "dev/disk/by-uuid/stuff"; fsType = "vfat"; };
<Huw> And home for home as well, with "rpool/home" as the device.
<sphalerite> is the mountpoint for the filesystems (from zfs's perspective) set to legacy?
<Huw> Do I need zfs in boot.initrd.availableKernelModules to include zfs?
<Huw> I'm not sure how to check, but I believe I set them when creating the filesystems
<sphalerite> it should work that out automatically
<sphalerite> `zfs list` should show the mountpoints
taktoa has joined #nixos
jtojnar has quit [Read error: Connection reset by peer]
<Huw> rpool has mountpoint /; rpool/home, legacy; rpool/root, none; rpool/root/nixos, legacy.
tomberek has quit [Quit: Page closed]
<sphalerite> actualy you know what's probably easiest? Try booting the installed system with debug1devices, and run zpool list and friends there to see if it can find the pool
<sphalerite> and the filesystems
Have-Quick has quit [Quit: Have-Quick]
robstr has quit [Quit: WeeChat 1.9.1]
<sphalerite> I don't know if maybe rpool having mountpoint / might confuse it, but you said it's not finding the pool at all?
robstr has joined #nixos
<sphalerite> If that's the case then the mountpoints shouldn't be the problem AFIAK
<Huw> My boot loader doesn't really have any options apart from nixos, efi default loader, and reboot into firmware interface.
__monty__ has joined #nixos
<sphalerite> if you're using systemd-boot or grub (which is probably the case), you can press e to edit a boot entry
jasongro` has joined #nixos
<sphalerite> so select the entry, press e, put boot.debug1devices on the kernel command line, and then boot (enter in systemd-boot, F10 in grub)
<Huw> Got it
JasonGrossman has quit [Ping timeout: 256 seconds]
<Huw> Ok
<Huw> zpool import rpool says it was used by a previous system
<nikivi> What do I do in case where a Python script requires some module to run?
<Huw> But that I can force it
<nikivi> I get this error: ImportError: No module named docopt
<nikivi> So I tried to install `python27Packages.docopt` from nix packages but still can't run the script
<nikivi> I read that you should avoid using pip with Nix
<symphorien> nikivi: see https://nixos.org/nixpkgs/manual/#user-guide : use python.withPackages
<symphorien> in general, don't install libraries with nix, it won't work
<symphorien> !libraries
<symphorien> !library
<{^_^}> Don't install libraries through nix-env or systemPackages. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<nikivi> Am I thinking it wrong that with Nix I can no longer `pip install` things and should write my own nix derivations for everything?
lord| has quit [Ping timeout: 252 seconds]
<nikivi> symphorien Why are libraries placed in nix packages then?
<__monty__> nikivi: Read the faq : )
<__monty__> Patience young grasshopper ; )
jasongro` has quit [Ping timeout: 260 seconds]
<symphorien> you use them with nix-shell
<nikivi> thing is that I have this command in my /bin https://github.com/nikitavoloboev/dotfiles/blob/master/bin/workflow-install#L1
<nikivi> And I want to use it globally like a command but can't now
<nikivi> I don't want to go to nix-shell every time I want to run a command
lord| has joined #nixos
<nikivi> ~/.dotfiles/bin*
<Huw> sphalerite if I force import will fix the last accessed by another system error?
<symphorien> then install python.withPackages(ps:[my pip packages]) instead of python
<symphorien> and regarding pip, pip in a virtualenv is fine
<symphorien> things might get garbage collected at some point, though
mahalel_ has quit [Ping timeout: 276 seconds]
<nikivi> symphorien I am using macOS if that matters
<nikivi> symphorien I don't get this part `python.withPackages(ps:[my pip packages]) `
<nikivi> so I should run `nix-env -iA nixpkgs.python.withPackages(docopt)`~
smallville7123 has joined #nixos
tmaekawa has joined #nixos
<symphorien> see section 9.11.1.1.2.1. of the manual
<symphorien> nix-env need -E or indirection via a file for such complicated expressions
<__monty__> Or, bite the bullet and package your scripts so you can just install them.
tmaekawa has quit [Client Quit]
<nikivi> I read 9.11.1.1.2.1. but I am still confused
<nikivi> how can I make the script runnable as I don't have docopt
michas_ has joined #nixos
<nikivi> It says I have to create some build.nix file
<nikivi> so here together with different programs there should be multiple `build.nix` files? https://github.com/nikitavoloboev/dotfiles/tree/master/bin
<__monty__> nikivi: How much of the manual have you read? Nix definitely needs more upfront effort than most package/dependency managers.
<nikivi> I was reading the PhD theses on Nix now, and only the begging of the manual
<nikivi> probably a bad idea to jump head first into Nix and delete my other packager manager
<symphorien> nikivi: the build.nix file is just a way to have nix-env accept a "complicated command line" . Once you install the content of the file, you can remove it
<symphorien> the content of the file is a python with docopt built-in
<symphorien> so you can't have several
<symphorien> But you can have one python with all the modules you want
<symphorien> if some of your scripts have conflicting deps, then you must either use nix-shell or package your scripts properly as __monty__ said
<nikivi> You mean have python and some module installed globally?
<symphorien> yes the nix-env stuff is to have a global python batteries included
<symphorien> isn't that what you want ?
<nikivi> I want to run this script globally without errors
<Huw> sphalerite I can force import, then ctrl D and get a boot.
<nikivi> Assuming I use nix-shell how can I run it inside nix-shell?
<Huw> But by default it's not booting, still saying can't find the pool
<symphorien> just run exactly the commands of the manual in a regular shell, and then python3 -c "import numpy"
<symphorien> you'll see
<nikivi> python3 -c "import docopt"* you mean
<symphorien> whatever you put in the build.nix
<nikivi> also this is python 2 script but I think I get the ia
<nikivi> idea*
cnu- is now known as cnubidu
<__monty__> nikivi: I'd recommend reading the manual, both nix and nixpkgs before reading the theses (at least I think there's 2). You'll get why you can't just nix-env -i pythonlib if you do.
<nikivi> Is there a hacky way I can use to run this script now and make it work?
Arcaelyx has quit [Ping timeout: 245 seconds]
<__monty__> I'd also have recommended against removing your system's package manager tbh, I'm currently on mac too and for some things I just have to fall back to brew.
<symphorien> nix-shell -p python lib1 lib2 lib3
<nikivi> __monty__ Doesn't using other global package managers defeat the purpose of Nix?
<Huw> I needed to use debug1devices to zfs list; then zpool import rpool; then I can boot the system
simukis has quit [Ping timeout: 248 seconds]
<nikivi> symphorien error: undefined variable 'docopt' at (string):1:103
<symphorien> python27Packages.docopt
<__monty__> nikivi: Nope, that's the beauty of nix. Trust me you'll choose to avoid the others in no time but for some things it's just more convenient.
<nikivi> I tried run: nix-shell -p python docopt
<Huw> But that's not a great workflow for the family
<{^_^}> [nixpkgs] @symphorien opened pull request #41133 → os-prober: fix dependencies for version >= 1.75 → https://git.io/vhmek
<__monty__> nixy: You want pythonPackages.docopt
<__monty__> nixy: Woops, meant nikivi.
<__monty__> nikivi: Easiest solution would be adding these two lines to the top of your script:
<__monty__> #! /usr/bin/env nix-shell
<__monty__> #! nix-shell -i python -p python pythonPackages.docopt
<__monty__> Then make the script executable, put it on your PATH and just call it.
<nikivi> and remove `#!/usr/bin/env python2`?
<__monty__> It's not necessarily what I'd recommend but it's the solution that'll take the least effort.
<symphorien> yes
sanscoeur has joined #nixos
<nikivi> okay wow, that worked, thanks __monty__
<nikivi> will read the manual now, it's soo long :)
PLPD-Bot has quit [Remote host closed the connection]
Plato[m] has quit [Remote host closed the connection]
<nikivi> I do want to understand how to deal with language specific package managers in a painless way though
<nikivi> things like `npm install -g ..`
<__monty__> nikivi: Once you've read both manuals you won't want to ; )
<nikivi> So that I don't have to write nix derivations for all of that and repeat the efforts of people
smallville7123 has quit [Quit: rosa]
<__monty__> nikivi: Your script sounds like an ideal candidate for your first nix package btw.
<nikivi> So if I get this write, even small scripts that you write should be packaged under nix?
<nikivi> right*
<__monty__> You're not repeating efforts, you'll have to put in effort here and there though, that's definitely still necessary if you want to get the most out of nix.
<nikivi> So if I write a small python script. Or only write nix deriviation for it if it tries to call some external libs?
PLPD-Bot has joined #nixos
<__monty__> nikivi: You don't *have* to, you'll want to. Once you've written a couple you'll realize it's no big deal and it'll come in handy while developing.
<nikivi> Also is Nix going to support zsh shell as alternative to bash? Without me having to prefix nix shell like so `nix-shell --run zsh` every time
sanscoeur has quit [Ping timeout: 264 seconds]
smallville7123 has joined #nixos
astrofog has joined #nixos
<tfc[m]> hey there, i want to build something with `makeFlags = [ "SOME_EXTRA_INPUT=${path to file that resides next to my nix expression.txt" ]`
<tfc[m]> how can i transform a local path like `./file.txt` to the full blown absolute path so that the make file of the project can access it?
<Huw> Ahh, ok. It looks like it's taking about 20 seconds before zpool import rpool can work
<Huw> is there some form of race condition with zfs booting?
<freusque> tfc[m]: you're perhaps looking for builtins.toPath
<Huw> ^ sphalerite
sbdchd has joined #nixos
<symphorien> tfc[m]: "${./file}"
Plato[m] has joined #nixos
<freusque> that will not resolve to absolute path, it will put the file in the store
<freusque> Does someone have experience with building haskell libraries with FFI bindings on nixos?
<freusque> i'm running into problems with libHSrts
<freusque> namely,
<freusque> ghc -o libffi-example.so -shared -dynamic -fPIC Example.o wrapper.o -lHSrts
<freusque> /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/ld: /nix/store/1cpfm79phw1n8jrx3aayxgppfyp4766c-ghc-8.2.2/lib/ghc-8.2.2/rts/libHSrts.a(StgStartup.o): relocation R_X86_64_32S against symbol `stg_enter_info' can not be used when making a shared object; recompile with -fPIC
<tfc[m]> symphorien: fresheyeball thx this works! i am currently building a lot of nix expressions to define the setup flow from a lot of scattered dependencies to some running services. and one thing i always stumble over is not finding the right documentation for such simple builtin/library things.... i always have the nixpkgs and nix documentation open and grep for "functionName = " in the nixpkgs repo, but often to no avail. any
<tfc[m]> advise where to find more written help as a newbie who often looks for primitive helpers?
newhoggy has joined #nixos
<freusque> tfc[m]: I think the nix pills are a good starting point
<tfc[m]> sorry i meant to answer to freusque and symphorien not fresheyeball
<tfc[m]> freusque: hm i read those already. when i first read them they confronted me with a lot of things that i was not able to remember immediately when i needed them next. although they helped a lot already.
sbdchd has quit [Ping timeout: 268 seconds]
<freusque> yeah. personally I use https://search.nix.gsc.io and learn by mimetism
jensens has joined #nixos
<tfc[m]> freusque: using that, too. that's sometimes more sometimes less helpful than grepping through the nixpkgs repo. but it also does not find the definitions/docs of builtin functions, does it?
<freusque> no it doesn't
<freusque> unless the comments from the source are helpful
<tfc[m]> hm too bad looks like something to just get through in the beginning.
<freusque> if they exist, they usually are though
<tfc[m]> to bad it's not a statically typed language. that would be so helpful. :D
ixxie has joined #nixos
<ixxie> heya
jmiven has quit [Quit: co'o]
jmiven has joined #nixos
<gonz_> Too bad that it's its own language at all, really
<gonz_> If we're talking about nix
ericsagnes has quit [Read error: Connection reset by peer]
<tfc[m]> gonz_: true. although it makes sense that it's purely functional.
<gonz_> There were already alternatives for that as well
<tfc[m]> however, i have a new problem right now. i wanted to play with builtin functions so i installed `nix-repl` with `nix-env -i nix-repl`. when i start `nix-repl` now i get an error `nix database directory /nix/var/nix/db is not writable: permission denied`
<gonz_> `nix` as a language has no actual reason for existing
<tfc[m]> what could i have made wrong possibly?
<ixxie> well there is Guix if you want a Nix with a general purpose language (scheme)
<sphalerite> tfc[m]: nix-repl is the old thing, the new fancy thing is `nix repl`
<sphalerite> tfc[m]: which comes with nix
<ixxie> but I think there is much to be said for the value of Nix being a DSL
<tfc[m]> oh i see! so i better forget that old one.
<tfc[m]> thank you! :)
<sphalerite> tfc[m]: if you want to use nix-repl rather than nix repl for some reason, you need to set NIX_REMOTE=daemon in the environemtn for it
<tfc[m]> i have no reason to use nix-repl. i did just not know that `nix repl` exists and that works for me now. thank you
<gonz_> ixxie: It could've been a DSL in Haskell. There was already plenty of precedent set, it's obviously the better choice. It might work fine the way it is, but that doesn't mean it was the correct chocie.
<gonz_> s/chocie/choice
<ixxie> gonz_: that would allow a lot more freedom, which has advantage but also great disadvantages
<tfc[m]> btw. does "gonz_" abbreviate gabriel gonzalez? :D
<gonz_> tfc[m]: No
<tfc[m]> ok. it seemed obvious sorry
<ixxie> with that much freedom, Nixpkgs would be a lot more heterogenous
<MichaelRaskin> A DSL in Haskell is not an obviously better choice, because bootstrapping
Huw has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<MichaelRaskin> Apparently even the Perl bits were too much pain
<ixxie> bootstrapping?
<tfc[m]> hm hard to say. i would certainly like it, but i know of sooo many people who would damn much profit from nixOS's selling points and values - but they feel so alienated by the expression language. haskell would also not fix it.
aristid has quit [Quit: WeeChat 2.1]
<ixxie> tfc[m]: I think https://gist.github.com/edolstra/29ce9d8ea399b703a7023073b0dbc00d would go a LONG way towards making Nix more accessable
<ixxie> tfc[m]: also, better documentation (need to get back to working on the Wiki!)
<MichaelRaskin> ixxie: building everything just right for a platform where nobody has built Nix before is sometimes annoying even as it is.
aristid has joined #nixos
<tfc[m]> ixxie: ok that's right. more documentation always helps more. sometimes there _is_ already enough docs already but as a newbie i feel overwhelmed where to look
tzemanovic has joined #nixos
<tfc[m]> btw. when i have a mkOption that is of `types.path` and i want to check if the user provided this at all - how to do that? currently i am at `0 == builtins.stringLength (builtins.toString cfg.foobarPath)`
<tfc[m]> in order to use it in `mkIf`
<ixxie> tfc[m]: I am trying to think about how to structure the Wiki in order to improve the newbie experience
<ixxie> tfc[m]: for example I made this https://nixos.wiki/wiki/Nix_Ecosystem to help orientate newcomers to the ecosystem
arianvp2 has joined #nixos
<tfc[m]> that makes a lot of sense
<arianvp2> Profpatsch: yo, im on the server now to debug the container issue
<arianvp2> inside the container, nix 2.0.2 is running as well
<arianvp2> interestingly, the --version command isn't even working for nix-env
<ixxie> tfc[m]: in the autumn we made some really good headway with the main articles (like https://nixos.wiki/wiki/NixOS and https://nixos.wiki/wiki/Nix )
<ixxie> tfc[m]: but we lost momentum in the winter
tzemanovic has quit [Ping timeout: 252 seconds]
<ixxie> now I am trying to think about how to proceed
<tfc[m]> ixxie: i'd love to participate but currently i must concentrate on learning this myself
<ixxie> of course ^^
<ixxie> I think I feel the same and I have been around for two years
<ixxie> its probably a common blocker for documentation efforts
<ixxie> everybody prioritises coding xD can't blame them! I feel the same
<tfc[m]> i think i measure myself being ready to help when i wrote my first >10lines nix expression without searching 20 minutes of documentation for every single bit of it. :D
<__monty__> MichaelRaskin: Doesn't GHC with LLVM backend make it equivalent to C++ for bootstrapping (at least in theory)?
<tfc[m]> then i would try to take complex existing nix expressions, and tear them apart to comprehensively explain it to readers by example. this is something i learn best from myself.
iqubic` has joined #nixos
<ixxie> MichaelRaskin: how does having our own language help with bootstrapping?
ericsagnes has joined #nixos
<MichaelRaskin> ixxie: once you have C++ — and you likely do have it — building Nix is actually the easy part
<ixxie> tfc[m]: we wanna have tutorials in the wiki but didn't get around to it
Huw has joined #nixos
sanscoeur has joined #nixos
coot has joined #nixos
iqubic has quit [Ping timeout: 260 seconds]
smallville7123 has quit [Quit: rosa]
sanscoeur has quit [Ping timeout: 264 seconds]
joehh has quit [Ping timeout: 252 seconds]
andromeda-galaxy has quit [Ping timeout: 240 seconds]
Ariakenom has quit [Read error: Connection reset by peer]
andromeda-galaxy has joined #nixos
tzemanovic has joined #nixos
rauno has joined #nixos
<ixxie> anybody have any clue as to why the package count as indicated by Repology would have doubled in the last month?
sivteck has joined #nixos
Ariakenom has joined #nixos
<ixxie> if we believe the new numbers over the old, we are now the top package repo if we consider count + freshness
Huw has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
sbdchd has joined #nixos
<{^_^}> [nixpkgs] @DIzFer opened pull request #41134 → tbb: update 2018_U1 -> 2018_U3 → https://git.io/vhmfa
<symphorien> did they add haskell packages ?
sbdchd has quit [Ping timeout: 260 seconds]
<ixxie> symphorien: who?
<symphorien> s/they/someone/
<symphorien> ah apparently yes https://nixos.org/nixos/packages.html#a50
<symphorien> I think in the past haskellPackages where not here
smallville7123 has joined #nixos
smallville7123 has quit [Excess Flood]
ilyaigpetrov has joined #nixos
<ixxie> symphorien: did that happen three days ago?
<ixxie> it seems our package count doubled three days ago
<symphorien> no idea
smallville7123 has joined #nixos
smallville7123 has quit [Excess Flood]
smallville7123 has joined #nixos
<ixxie> but there are apparently 12K haskell packages and our count jumped c.a. 30K
tzemanovic has quit [Remote host closed the connection]
<srk> trying to start weston with openvt -v -c 5 -- weston-launch --tty=/dev/tty5 --user=root -- --log=wat
<srk> but all I'm getting is fatal: environment variable XDG_RUNTIME_DIR is not set.
<srk> although it is set everywhere
<srk> wat.
<symphorien> ixxie: there are 14k rpackages
JasonGrossman has joined #nixos
coot has quit [Read error: Connection reset by peer]
<__monty__> Are the npm packages all in nixpkgs?
<srk> oO, it runs
tzemanovic has joined #nixos
coot has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed to master « tdesktopPackages.preview: 1.2.23 -> 1.2.24 »: https://git.io/vhmJL
fragamus has joined #nixos
logzet has joined #nixos
seafood has joined #nixos
seafood has quit [Client Quit]
raynold has quit [Quit: Connection closed for inactivity]
smallville7123 has quit [Quit: rosa]
otwieracz has joined #nixos
<otwieracz> Hi!
Guanin has joined #nixos
<{^_^}> [nixpkgs] @ryantm opened pull request #41135 → python.bokeh: fix name format → https://git.io/vhmJM
civodul has joined #nixos
simukis has joined #nixos
<otwieracz> Hmm. I've got a software which is looking into LD_LIBRARY_PATH for Libraries.
<otwieracz> This is actually Common Lisp CFFI.
<otwieracz> Ran inside Emacs.
<otwieracz> But my LD_LIBRARY_PATH is just /run/opengl-driver/lib and it is unable to find libssl.
<otwieracz> Is this possible somehow to workaround this?
jasongro` has joined #nixos
sanscoeur has joined #nixos
<otwieracz> To make, in essence, libssl.so available for both Emacs and SBCL compiler runinning as it's subprocess?
JasonGrossman has quit [Ping timeout: 245 seconds]
smallville7123 has joined #nixos
<__monty__> When developing haskell in a nix-shell do you periodically run cabal configure or just the once?
sanscoeur has quit [Ping timeout: 252 seconds]
jasongro` has quit [Ping timeout: 240 seconds]
JasonGrossman has joined #nixos
romildo has quit [Quit: Leaving]
chimay has quit [Quit: WeeChat 2.1]
arianvp2 has quit [Quit: Page closed]
rihards has joined #nixos
sbdchd has joined #nixos
Rusty1_ has joined #nixos
<{^_^}> [nixpkgs] @dotlambda merged pull request #41135 → python.pkgs.bokeh: fix name format → https://git.io/vhmJM
<{^_^}> [nixpkgs] @dotlambda pushed commit from @ryantm to master « python.pkgs.bokeh: fix name format (#41135) »: https://git.io/vhmUX
<gchristensen> ryantm: I like how your tooling is pushing general improvements
sbdchd has quit [Ping timeout: 264 seconds]
jperras has joined #nixos
<Profpatsch> Huh, arianvp2 he left already
ixxie has quit [Ping timeout: 240 seconds]
xy2_ has joined #nixos
chisui has joined #nixos
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/fd72137e68c (from 15 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
r00x has joined #nixos
r00x has left #nixos [#nixos]
chisui has quit [Client Quit]
sivteck has quit [Ping timeout: 260 seconds]
johnw has joined #nixos
troydm has quit [Ping timeout: 268 seconds]
Fare has joined #nixos
philippD has joined #nixos
johnw has quit [Ping timeout: 240 seconds]
stepcut has joined #nixos
troydm has joined #nixos
johnw has joined #nixos
Fare has quit [Ping timeout: 276 seconds]
Fare has joined #nixos
<{^_^}> [nixpkgs] @symphorien opened pull request #41137 → teamspeak_client: fix startup → https://git.io/vhmTo
rain1 has quit [Quit: Leaving]
johnw has quit [Ping timeout: 265 seconds]
troydm has quit [Ping timeout: 276 seconds]
Fare has quit [Ping timeout: 276 seconds]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Arcaelyx has joined #nixos
troydm has joined #nixos
troydm has quit [Ping timeout: 264 seconds]
sanscoeur has joined #nixos
<tfc[m]> what is the correct way to merge 2 configs in a module that can be independent? like `config = (mkIf a { ...}) // (mkIf b {...});`
<Orbstheorem> Hi, I was wondering if there's any reason why there's no source archive like debian which host an a copy of the sources of every packages
<tfc[m]> but that does not work for me
<symphorien> actually, hydra does have a copy of the source of all packages it has ever built
<Orbstheorem> tfc[m]: you could put both in a set with actual names and select the right one wherever you use it
<tfc[m]> Orbstheorem: but this is not an XOR choice but an inclusive or
<tfc[m]> i have 2 very related services and user should be able to decide to run only A, only B, or both.
<symphorien> Orbstheorem: for example https://nixos.org/nixos/packages.html#pdf+shuff the source of this version of psf-shuffler is nowhere to be found on the internet, but it is on hydra.
<tfc[m]> so my `config = ...` expression must be able to also enable both at the same time
<gchristensen> tfc[m]: config = { imports = [ (mkIf a..) (mkIf b..) ]; }
<tfc[m]> oh that is awesome. let me try it, i'll report back asap
johnw has joined #nixos
smallville7123 has quit [Quit: rosa]
sanscoeur has quit [Ping timeout: 264 seconds]
<tfc[m]> gchristensen: it tells me that "imports" does not exist, hm...
<gchristensen> tfc[m]: ohh maybe move `imports` outside of `config` , s instsead of config = { imports = ... just do imports = ...
<tfc[m]> gchristensen: awesome! that works. i do not completely understand it, but it works! thanks man
camsbury has joined #nixos
Guanin has quit [Quit: Leaving]
jasongro` has joined #nixos
<gchristensen> glad to help :)
jasongro` has quit [Remote host closed the connection]
<camsbury> hi all - trying to set up irony-mode for emacs, and it isn't recognizing stdio.h
<camsbury> I have irony-server from nixpkgs
smallville7123 has joined #nixos
<camsbury> and irony-mode, flycheck-irony from melpa stable
newhoggy has quit [Remote host closed the connection]
troydm has joined #nixos
<camsbury> unsure from https://github.com/Sarcasm/irony-mode/issues/469 if adding the .clang_complete is actually supposed to fix the flycheck errors
<camsbury> but there it is
<camsbury> calling all emacs/nixos/C programmers :D
jasongro` has joined #nixos
jasongro` has quit [Remote host closed the connection]
smallville7123 has quit [Client Quit]
JasonGrossman has quit [Ping timeout: 260 seconds]
astrofog has quit [Quit: Quite]
olto has quit [Read error: Connection reset by peer]
JasonGrossman has joined #nixos
jasongro` has joined #nixos
jasongro` has quit [Remote host closed the connection]
olto has joined #nixos
JasonGrossman has quit [Remote host closed the connection]
rain1 has joined #nixos
<aristid> i wonder why nobody has packaged firefox 60.0.1 yet
<aristid> main is still on 59
* aristid gives it a try
<aristid> (but i'm not that good at packaging, so chances are i will fail :D)
<palo> failing is what makes us succeed
fragamus has joined #nixos
<symphorien> aristid: it seems nixos-18.03 is on 60.0.1 https://nixos.org/nixos/packages.html#firefox
<aristid> symphorien: wtf, who updates stuff in 18.03 but not in master?!
sary has joined #nixos
<aristid> i guess "taku0" is not on irc?
tzemanovic has quit [Remote host closed the connection]
<LnL> commit?
<aristid> LnL: quite a few, actually
<aristid> LnL: e.g. 811c411022b69f7f815b5fd09683f98e10f68bf2
<aristid> LnL: because it's so many commits, it's not obvious how to best fix this mess
simukis has quit [Quit: simukis]
<LnL> I'll check in a bit
xy2_ has quit [Ping timeout: 256 seconds]
logzet has quit [Ping timeout: 265 seconds]
logzet has joined #nixos
freeman42x]NixOS has joined #nixos
newhoggy has joined #nixos
xy2_ has joined #nixos
newhoggy has quit [Ping timeout: 245 seconds]
JasonGrossman has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
woodson has joined #nixos
sanscoeur has joined #nixos
<{^_^}> [nixpkgs] @LnL7 pushed 0 commits to staging-stabilization: https://git.io/vhmLB
<{^_^}> [nixpkgs] @LnL7 opened pull request #41138 → staging stabilization → https://git.io/vhmL2
iqubic` has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
sanscoeur has quit [Ping timeout: 252 seconds]
<__monty__> What's the easiest way to make the local hoogle instance available to your lan?
sbdchd has joined #nixos
sivteck has joined #nixos
<{^_^}> [nixpkgs] @LnL7 pushed 35 commits to staging-stabilization: https://git.io/vhmLQ
ryantrinkle has joined #nixos
liori has joined #nixos
<ryantrinkle> so it looks like, when hydra builds a PR, it builds the exact head of the PR branch
<ryantrinkle> is it possible to make it build the merge of the target branch and the PR branch?
<LnL> how are you building it?
<ryantrinkle> i.e. what you would get if you were to click the "Merge pull request" button in github
<ryantrinkle> LnL: is that the right thing?
<LnL> what's info.head.ref
<LnL> can you reference the pr number?
<LnL> ah num
<ryantrinkle> looks like that's coming out of the PR json stuff
<ryantrinkle> (sorry, i didn't write this file myself)
<LnL> "https://github.com/${info.head.repo.owner.login}/${info.head.repo.name}.git refs/pull/${num}/merge"
<ryantrinkle> sweet :)
<LnL> there's also refs/pull/${num}/head if there's some context where you don't know the source branch
patrl has joined #nixos
<LnL> I should really play with declarative jobsets sometime...
johnw has quit [Ping timeout: 260 seconds]
camsbury has quit [Quit: WeeChat 2.0]
taktoa has quit [Ping timeout: 276 seconds]
<mjrosenb> ok, so I'm running into the issue where nothing is working quite as expected on OSX. I'm not 100% clear on the cause, but it may be related to the unstable channel only being turned on for root account. Is there any harm in also adding that to my account?
<ryantrinkle> LnL: hmm, i'm having a bit of an issue with it
<ryantrinkle> how do i get that ref to be available?
newhoggy has joined #nixos
jperras has quit [Quit: WeeChat 2.1]
woodson has quit [Ping timeout: 256 seconds]
benzrf has joined #nixos
<benzrf> hey
<benzrf> does anybody here use ihaskell? i'm having strange issues :|
<mjrosenb> is that the haskell plugin for jupyter?
<benzrf> yeah
newhoggy has quit [Ping timeout: 265 seconds]
<benzrf> i'm having it hang
<benzrf> but under specific circumstances
<benzrf> basically, if it gets invoked with the ghc libdir as the one from the ghcWithPackages that ihaskell is part of, then it hangs
<benzrf> if it's invoked with the libdir for my global user profile, it works
<benzrf> :|
<benzrf> also, this happened fairly suddenly - it was working fine semirecently
lostman has quit [Quit: Connection closed for inactivity]
<benzrf> ;n;
<ryantrinkle> LnL: ah, it looks like by default it's not fetching those refs
simukis has joined #nixos
<ryantrinkle> need to add something like this to the git config: fetch = +refs/pull/*:refs/remotes/origin/pull/*
patrl has quit [Ping timeout: 265 seconds]
johnw has joined #nixos
sbdchd has quit [Remote host closed the connection]
patrl has joined #nixos
atondwal has quit [Ping timeout: 260 seconds]
atondwal has joined #nixos
<mjrosenb> unrelated to that, where should allowUnfree be set?
<mjrosenb> it says .nixpkgs, but that doesn't exist for me. Should that only exist on nixos? or do I have to create it?
<mjrosenb> I also saw something saying it should be in ~/.config/*nix* (exact path not remembered)
FRidh has joined #nixos
<symphorien> ~/.config/nixpkgs/config.nix
johnw has quit [Quit: ZNC - http://znc.in]
johnw has joined #nixos
<{^_^}> [nixpkgs] @Moredread opened pull request #41139 → freecad: 0.16.6712 -> 0.17 → https://git.io/vhmqq
daGrevis has joined #nixos
iyzsong has quit [Quit: ZNC 1.6.5 - http://znc.in]
FRidh has quit [Read error: Connection reset by peer]
FRidh has joined #nixos
patrl has quit [Ping timeout: 268 seconds]
<Aleksejs> Hi, I just got the same error https://github.com/NixOS/nixpkgs/issues/12027 but fix is merged here https://github.com/NixOS/nixpkgs/pull/12059. Is it possible that it's broken again or some other dependency is missing?
sanscoeur has joined #nixos
sanscoeur has quit [Ping timeout: 264 seconds]
sivteck has quit [Ping timeout: 276 seconds]
<ryantrinkle> LnL: this is working great now, thanks :)
<ryantrinkle> does hydra, by default, push all build inputs for what it builds to the cache?
<ryantrinkle> (when pushing to an s3 cache)
<ryantrinkle> or does it just push the runtime deps?
<Myrl-saki> nix-shell -p 'with (import <nixpkgs> { overlays = [ import ./Development/adrianparvin-server/config.nix ]; }); hpkgs.ghcWithPackages (pkgs: with pkgs; [html-parse])'
<Myrl-saki> error: infinite recursion encountered, at undefined position
<symphorien> I think it pushes even the source
<Myrl-saki> ; ~ ;
<LnL> I think everything
<LnL> ryantrinkle: you're using store_uri in the hydra config right?
<ryantrinkle> LnL: yep
<Myrl-saki> Wait what. Apparently, it's the overlays that's making it confused, not the import. Huh.
<Myrl-saki> eErr
<Myrl-saki> not the ghcWithPackages*
<ryantrinkle> LnL: i'm trying to make sure all sources are available
<ryantrinkle> even if the original download URL goes away
<LnL> yeah, the hello tarball is in my cache
<{^_^}> [nixpkgs] @FRidh pushed commit from @vcunat to release-18.03 « python: 2.7.14 -> 2.7.15 (bugfix + security) »: https://git.io/vhmmA
<Myrl-saki> Oh wow.
<LnL> but hydra/nix won't use it by default, I think fetchurl has preferLocalBuild
<Myrl-saki> That was a very stupid bug(on my side). Apparently, what I did was `(import <nixpkgs> {overlays = [ import ];})`
<Myrl-saki> Didn't even know that you can pass `import` as a function..
AluisioASG has quit [Remote host closed the connection]
AluisioASG has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed 542 commits to master: https://git.io/vhmYe
<{^_^}> [nixpkgs] @dotlambda merged pull request #41118 → add dependencies of repology → https://git.io/vhqMT
<{^_^}> [nixpkgs] @dotlambda pushed 4 commits to master: https://git.io/vhmYT
alex`` has quit [Ping timeout: 260 seconds]
<Myrl-saki> Failed to load interface for ‘Control.Monad.Primitive’
<Myrl-saki> Perhaps you haven't installed the "dyn" libraries for package ‘primitive-0.6.2.0’?
<Myrl-saki> Under ghci, with a custom haskellPackages overlay.
woodson has joined #nixos
msgctl has joined #nixos
alex`` has joined #nixos
FRidh has quit [Ping timeout: 245 seconds]
rnkch[m] has joined #nixos
alexteves has quit [Quit: Textual IRC Client: www.textualapp.com]
<{^_^}> [nixpkgs] @LnL7 pushed 35 commits to staging: https://git.io/vhmOU
<{^_^}> [nixpkgs] @LnL7 closed pull request #41138 → staging stabilization → https://git.io/vhmL2
sanscoeur has joined #nixos
sivteck has joined #nixos
sivteck has left #nixos [#nixos]
<{^_^}> [nixpkgs] @bhipple opened pull request #41140 → pythonPackages.keyrings-alt: 2.3 -> 3.1 → https://git.io/vhmOc
sanscoeur has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @bcdarwin opened pull request #41141 → celf: init at 2013-07-25 → https://git.io/vhmOu
woodson has quit [Ping timeout: 245 seconds]
johnw has quit [Ping timeout: 260 seconds]
ryantm has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @bhipple opened pull request #41142 → pythonPackages.keyring: 12.0.2 -> 12.2.1 → https://git.io/vhmO6
ryantm has joined #nixos
benzrf has left #nixos ["WeeChat 2.1"]
<{^_^}> [nixpkgs] @bfortz opened pull request #41143 → minergate-cli: init at 8.2 → https://git.io/vhmOP
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
aminechikhaoui has quit [Ping timeout: 256 seconds]
aminechikhaoui has joined #nixos
<{^_^}> [nixpkgs] @jerith666 opened pull request #41144 → silence warnings about collisions of identical files → https://git.io/vhm3n
thblt has quit [Ping timeout: 256 seconds]
FRidh has joined #nixos
Rusty1_ has quit [Quit: Konversation terminated!]
smallville7123 has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed to staging « busybox: 1.28.3 -> 1.28.4 »: https://git.io/vhm3d
thblt has joined #nixos
<{^_^}> [nixpkgs] @etu opened pull request #41145 → php71: 7.1.17 -> 7.1.18 → https://git.io/vhmsU
<{^_^}> [nixpkgs] @dotlambda merged pull request #41140 → pythonPackages.keyrings-alt: 2.3 -> 3.1 → https://git.io/vhmOc
<{^_^}> [nixpkgs] @dotlambda pushed 3 commits to master: https://git.io/vhms3
smallville7123 has quit [Quit: rosa]
smallville7123 has joined #nixos
fragamus has joined #nixos
sonne has joined #nixos
<sonne> greetings!
<sonne> i'd like to manage vimrc with nixos configuration, for what i can see online i should use home-manager. however it seems that home-manager doesn't only configure stuff but also installs user-contained versions of the packages. isn't there a middle ground?
<adisbladis[m]> sonne: You can manage just files with home-manager
<MichaelRaskin> Well, how do you want to configure vimrc contentx?
Lisanna has joined #nixos
<sonne> adisbladis[m]: how so? i tried "program.vim { enable = true; };" and it installed the package, same for program.git {}
<MichaelRaskin> You can trivially create a package that just copies a file into store, then add it to systemPackages (make sure pathsToLink include its location), then symlink or source it
<sonne> MichaelRaskin: by putting my vimrc contents in some config variable i'd suppose?
<sonne> MichaelRaskin: that sounds hackish
<sonne> (also i just installed nixos 10 minutes ago for the first time)
sanscoeur has joined #nixos
woodson has joined #nixos
<aristid> omg, somebody managed to package gnucash 3.1
<aristid> amazing
* aristid jumped from 2.4 to 3.1 directly for that reason
<aristid> (2.6 was packaged technically, but very broken)
sanscoeur has quit [Ping timeout: 264 seconds]
<adisbladis[m]> sonne: home-manager has a nice abstraction for that: `home.file.".vimrc".source = ./path/to/vimrc;`
ldlework has quit [Quit: ZNC 1.6.5 - http://znc.in]
<sonne> adisbladis[m]: and that's from home-manager, not vanilla?
<{^_^}> [nixpkgs] @dotlambda merged pull request #41142 → pythonPackages.keyring: 12.0.2 -> 12.2.1 → https://git.io/vhmO6
<{^_^}> [nixpkgs] @dotlambda pushed commit from @bhipple to master « pythonPackages.keyring: 12.0.2 -> 12.2.1 (#41142) »: https://git.io/vhmGq
<symphorien> sonne: on nixos, you can do environment.etc.vimrc.source = ./path/to/vimrc, but this is for /etc/vimrc
<manveru> sonne: if you're feeling interested, i manage my vimrc and plugins with nix: https://github.com/manveru/vimrc
<adisbladis[m]> sonne: From home-manager, yes :)
Guest19749 has quit [Quit: :qa!]
<sonne> manveru: i'm afraid i have no idea what to do with that...
reinzelmann has joined #nixos
simukis has quit [Quit: simukis]
simukis has joined #nixos
<sonne> adisbladis[m]: TIL, thanks.
<manveru> sonne: i use it like `imports = [ ../vimrc ];` in my nixos configuration
<sonne> symphorien: i can settle for the global vimrc for what vim is concerned, but home-manager seems to do so much more (e.g. gconf stuff)
<sonne> manveru: i see
<symphorien> sure, I just said that in reaction to "not vanilla"
<symphorien> in case you were looking for a vanilla solution
ldlework has joined #nixos
<sonne> symphorien: ah i see thanks :)
Neo-- has joined #nixos
simukis has quit [Client Quit]
simukis has joined #nixos
<{^_^}> [nixpkgs] @FRidh merged pull request #41085 → python2Packages.supervisor: 3.1.4 -> 3.3.4 → https://git.io/vhtH2
<{^_^}> [nixpkgs] @FRidh pushed 3 commits to master: https://git.io/vhmGC
simukis has quit [Client Quit]
ldlework has quit [Quit: ZNC 1.6.5 - http://znc.in]
ldlework has joined #nixos
Guest84083 is now known as tg
tg is now known as Guest57846
Guest57846 has quit [Quit: Leaving]
alexteves has joined #nixos
semilattice has joined #nixos
tg` has joined #nixos
FRidh has quit [Read error: Connection reset by peer]
blankhart has joined #nixos
<Orbstheorem> Hello, what's the best way to debug this?:
<Orbstheorem> May 27 19:59:31 Triglav kernel: xmonad-x86_64-l[2265]: segfault at 0 ip 00007fb241defcc4 sp 00007ffe07215298 error 4 in libX11.so.6.3.0[7fb241dbd000+139000]
q3k has joined #nixos
woodson has quit [Ping timeout: 240 seconds]
jtojnar has joined #nixos
jtojnar has quit [Remote host closed the connection]
<Orbstheorem> Make a derivarion that produces libX11 with debugging symbols and recompile all my system?
iqubic has joined #nixos
alexteves_ has joined #nixos
<clever> Orbstheorem: you can arrange it to only affect xmonad
woodson has joined #nixos
<Orbstheorem> Also, Is there a decent way to rebuild my configuration with “options”? ie. I'd like to create multiple profiles and do something like nixos-rebuild switch -E 'profile=powersave'. Instead of overriding the environment variable
<clever> not really
<Orbstheorem> :(
* Orbstheorem thinks there should be an option for that
blankhart has quit [Ping timeout: 276 seconds]
<ldlework> Hmm I feel like the ZNC nixpkg options are not ideal
<ldlework> they only allow you to express a single irc user
<ldlework> Like you can only express one user, and the networks they have - but not multiple users.
alexteves has quit [Ping timeout: 240 seconds]
<ldlework> If your nickname is different on oftc, oh well.
<__monty__> That's an annoying limitation...
<clever> Orbstheorem: ok, so the haskell xmonad package depends on the haskell X11 package, which depends on xorg.libX11
<{^_^}> [nixpkgs] @bobvanderlinden opened pull request #41147 → Use Nix-builtin fetchurl where possible → https://git.io/vhmZ7
<clever> haskellPackages.X11.override { libX11 = enableDebugging xorg.libX11; } would create a custom X11 library using a debug build of libX11
woodson has quit [Ping timeout: 240 seconds]
<clever> haskellPackages.xmonad.override { X11 = haskellPackages.X11.override { libX11 = enableDebugging xorg.libX11; }; }
<clever> Orbstheorem: and this should force xmonad to use that version
woodson has joined #nixos
<clever> Orbstheorem: just need to slot that into a config option like services.xmonad.package and i think your done
<Dezgeg> you could try checking the backtrace first to see if it's debuggable without debug symbols
<Orbstheorem> clever: thanks! I'm copying the cfg from services.xserver.windowManager.xmonad into an override
Izorkin_ has joined #nixos
Izorkin has quit [Ping timeout: 252 seconds]
<ldlework> Does // merge attrsets
<clever> ldlework: its non-recursive
<ldlework> clever: is there anyway to invoke the thing the module system is able to do against two attrsets
<clever> > { a=1; b={c=3;d=4;}; e=5; } // { b=2; }
<{^_^}> { a = 1; b = 2; e = 5; }
<clever> ldlework: if you just want to recursively overwrite anything without merging, lib.recursiveUpdate
woodson has quit [Ping timeout: 240 seconds]
<clever> > lib.recursiveUpdate { a=1; b={c=3;d=4;}; e=5; } { f=6; }
<{^_^}> { a = <CODE>; b = <CODE>; e = <CODE>; f = <CODE>; }
sanscoeur has joined #nixos
<clever> > (lib.recursiveUpdate { a=1; b={c=3;d=4;}; e=5; } { b = { f=6;}; }).b
<{^_^}> { c = <CODE>; d = <CODE>; f = <CODE>; }
patrl has joined #nixos
sanscoeur has quit [Ping timeout: 256 seconds]
blankhart has joined #nixos
thblt has quit [Remote host closed the connection]
jD91mZM2 has quit [Quit: WeeChat 2.0]
patrl has quit [Ping timeout: 245 seconds]
alexteves_ has quit [Ping timeout: 245 seconds]
thblt has joined #nixos
alexteves has joined #nixos
<Myrl-saki> Ugh.
alexteves has quit [Remote host closed the connection]
<Myrl-saki> Why is primitive 0.6.2.0 broken for me?
alexteves has joined #nixos
semilattice has quit [Ping timeout: 276 seconds]
<Myrl-saki> nix-shell -p 'with (import <nixpkgs> { }); haskell.packages.ghc802.ghcWithPackages (pkgs: with pkgs; [ (haskell.lib.overrideCabal primitive { version = "0.6.2.0"; sha256 = "1q9a537av81c0lvcdzc8i5hqjx3209f5448d1smkyaz22c1dgs5q";}) ])'
<Myrl-saki> cannot find any of ["libHSprimitive-0.6.2.0-4578caNkWQ54Gt1mxLF2Yh.a","libHSprimitive-0.6.2.0-4578caNkWQ54Gt1mxLF2Yh.p_a","libHSprimitive-0.6.2.0-4578caNkWQ54Gt1mxLF2Yh-ghc8.0.2.so","libHSprimitive-0.6.2.0-4578caNkWQ54Gt1mxLF2Yh-ghc8.0.2.dylib","HSprimitive-0.6.2.0-4578
<Myrl-saki> caNkWQ54Gt1mxLF2Yh-ghc8.0.2.dll"] on library path
<symphorien> is there short way to write if x != null then x else default ?
<clever> symphorien: lib.optional and its friends
<Myrl-saki> myrl@myrl:~/Dev/adrianpar.vin[1▲ master••]$ find /nix/store/60m6x619xpdn35hy3v1wgfwkkk540hgh-primitive-0.6.2.0/lib/ghc-8.0.2/primitive-0.6.2.0 -name 'libHSprimitive-0.6.2.0-4578caNkWQ54Gt1mxLF2Yh.a'
<Myrl-saki> /nix/store/60m6x619xpdn35hy3v1wgfwkkk540hgh-primitive-0.6.2.0/lib/ghc-8.0.2/primitive-0.6.2.0/libHSprimitive-0.6.2.0-4578caNkWQ54Gt1mxLF2Yh.a
<gchristensen> (x ({ x' ? default }: x'))
* joepie91 glares at gchristensen
<Myrl-saki> lmao
<gchristensen> joepie91: huh?
<joepie91> I think I prefer the lib.optional :P
alexteves has quit [Remote host closed the connection]
<gchristensen> you glared faster than I expected possible :D
<joepie91> haha
<joepie91> I type fast
aarvar has joined #nixos
<gchristensen> my example didn't work, anyway.
alexteves has joined #nixos
<__monty__> :bn
<__monty__> Woops.
doyougnu has quit [Quit: WeeChat 1.9.1]
tg` is now known as tg
blob has joined #nixos
alexteves_ has joined #nixos
newhoggy has joined #nixos
alexteves has quit [Ping timeout: 265 seconds]
alexteves_ has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @manveru opened pull request #41148 → Mint-lang: Init at 2018.05.27 → https://git.io/vhmcT
reinzelmann has quit [Quit: Leaving]
<manveru> little PR for adding mint-lang: https://github.com/NixOS/nixpkgs/pull/41148
blonkhart has joined #nixos
semilattice has joined #nixos
<{^_^}> [nixpkgs] @dotlambda opened pull request #41149 → maintainers/scripts/update-python-libraries: support fetchFromGitHub → https://git.io/vhmcL
newhoggy has quit [Ping timeout: 252 seconds]
emmanuelrosa has joined #nixos
dottedmag has joined #nixos
dottedmag has quit [Changing host]
dottedmag has joined #nixos
emmanuelrosa has left #nixos [#nixos]
smallville7123 has quit [Quit: rosa]
<{^_^}> [nixpkgs] @nonfreeblob opened pull request #41150 → ivan: init at 052 → https://git.io/vhmc7
dottedmag has quit [Quit: QUIT]
dottedmag has joined #nixos
dottedmag has quit [Changing host]
dottedmag has joined #nixos
<ryantrinkle> how can I debug githubstatus for hydra?
<ryantrinkle> I've gotten it to work, i think, on one PR ever
<ryantrinkle> but it seems to be silently failing on all subsequent PRs
<ryantrinkle> (just not sending anything)
<clever> ryantrinkle: `journalctl -f -u hydra-queue-runner`
<iqubic> Is it just me or did videos stop working in the latest version of FireFox?
<ryantrinkle> clever: what output should i expect?
<ryantrinkle> i was seeing some errors in there before, when i had some permissions wrong
<steveeJ> can someone recommend a screencast utility that's packaged in nixpgks?
<clever> ryantrinkle: you can also manually run `hydra-notify build-finished 63657` or swap in build-started (as `sudo -u hydra -i`) to manually claim something has happened and update github
<clever> ryantrinkle: grab an actual build# from the hydra UI
<manveru> steveeJ: i used recordmydesktop
<ryantrinkle> clever: do i run that as a particular user?
<ryantrinkle> oh sorry, i see that nwo
contrapumpkin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<michas_> Hi, what is the difference between `nix-build` and `nix build`. The output of `nix` refers to the man page, but it looks like there is none. :/
patrl has joined #nixos
<steveeJ> manveru: I'll give that a try, thanks!
<ryantrinkle> clever: that ostensibly finished successfully (0 exit code)
<MichaelRaskin> I remember once using xvidcap
<ryantrinkle> maybe my regex is off?
<clever> ryantrinkle: that runs thru the same regex
<ryantrinkle> right; it didn't appear to do anything
<MichaelRaskin> steveeJ: that was long ago, though
<ryantrinkle> and then exited successfully
<clever> ryantrinkle: ah, can you paste your regex and your job name?
<manveru> given something like `{x = drv; y = drv;}`, is there an easy way to make a derivation that combines the outputs into symlinks in a directory with the key as directory name?
iqubic has quit [Remote host closed the connection]
<ryantrinkle> jobs = obelisk:obelisk-pr.*
<ryantrinkle> obelisk-pr-29
<clever> Build 205 of job obelisk:obelisk-pr-29:built-skeleton
<clever> yeah, that should match
<clever> what about the inputs field?
<ryantrinkle> it's `obelisk`
<clever> ryantrinkle: do you have several githubstatus blocks?
<ryantrinkle> yes, 4 of them
<ryantrinkle> this one is 4th
<clever> ryantrinkle: the first one to match stops all others
<ryantrinkle> matching based on `jobs`?
<clever> yeah
<ryantrinkle> all the others have quite different prefixes
<ryantrinkle> reflex-platform:reflex-platform-develop.*
<ryantrinkle> etc.
<ryantrinkle> obelisk:obelisk-master.* is the closest
<clever> try running `strace -ff -o logfiles -e execve -s 500 hydra-notify build-started 205`
<clever> then check all of the logfiles it generates to to see what is being ran
<ryantrinkle> execve("/run/current-system/sw/bin/hydra-notify", ["hydra-notify", "build-started", "205"], 0x7ffc6f207528 /* 55 vars */) = 0
<ryantrinkle> execve("/nix/store/8ljzcfivayhnf324aap9kx53y18vi7zg-hydra-2017-09-14/bin/.hydra-notify-wrapped", ["/run/current-system/sw/bin/hydra-notify", "build-started", "205"], 0x1bb7008 /* 56 vars */) = 0
<ryantrinkle> +++ exited with 0 +++
<ryantrinkle> that's it
<ryantrinkle> do i not even have this plugin loaded at all?
<clever> ryantrinkle: its always loaded
<ryantrinkle> ah
sanscoeur has joined #nixos
<clever> ryantrinkle: copy .hydra-notify-wrapped to a tmpdir and also copy the path like `/nix/store/8dxcx2jv168c3f6a31fag1a3qwkps170-hydra-2017-11-21/libexec/hydra/lib` to a tmpdir (read the hydra-notify script), and copy hydra-notify as well
<clever> ryantrinkle: then modify hydra-notify to use the copy of -wrapped, and the copy of lib
<clever> then start adding prints to it
iqubic has joined #nixos
vaninwagen has joined #nixos
<clever> libexec/hydra/lib/Hydra/Plugin/GithubStatus.pm is where the PR status is handled
jensens has quit [Ping timeout: 245 seconds]
blob has quit [Quit: Leaving]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
simukis has joined #nixos
<{^_^}> [nixpkgs] @Moredread opened pull request #41151 → slic3r-prusa3d: 1.39.2 -> 1.40.0-alpha1 → https://git.io/vhmCc
ixxie has joined #nixos
asuryawanshi has joined #nixos
sanscoeur has quit [Ping timeout: 264 seconds]
<ryantrinkle> clever: how can i get it to load the plugins from my directory?
<ryantrinkle> it's getting them using Hydra::Plugin->instantiate
<ryantrinkle> but i can't see how that determines the path
<ryantrinkle> i did manage to print out every plugin name, so it's definitely instantiating them
<clever> ryantrinkle: i think its $PERL5LIB in the hydra-notify bash wrapper
<clever> or possibly $HYDRA_HOME
<ixxie> niksnut: congratulations!
<ryantrinkle> oh nvm, it is loading mine
<Orbstheorem> Hi, can you please give me a hand writing my override?: https://paste.gnugen.ch/raw/RAEI
<Orbstheorem> clever ? :)
Rusty1_ has joined #nixos
* Orbstheorem is slow :(
<clever> Orbstheorem: i think your problem is at ghcWithPackages = haskellPackages.ghcWithPackages.override
<niksnut> ixxie: with what?
<clever> ah, i see the issue
<ixxie> niksnut: Nixpkgs is now by some measure the worlds leading package repository
<ixxie> three days ago we had half the packages but now haskellPackages and rPackages were added to the namespace and that doubled our package count
<clever> Orbstheorem: you want (haskellPackages.override { overrides = self: super: { xmonad = super.xmonad.override { X11 = super.X11.override {libX11 = enableDebugging xorg.libX11;}; }; }; }).ghcWithPackages i think
<manveru> isn't AUR still leading?
<LnL> heh
woodson has joined #nixos
<clever> Orbstheorem: that uses the haskell overrides to replace xmonad and X11, then gets a .ghcWithPackages from the modified set
<ixxie> manveru: by raw count yes, but not if you look at the freshness too
<ixxie> which is important!
<manveru> :)
<ixxie> and repology considers it important enough to be the primary statistics
<manveru> true, still feels like cheating
<manveru> but i guess packages are packages, not applications
<ixxie> well how many package managers support both applications and language specific packages? its quite rare and very cool ^^
<manveru> ;)
<MichaelRaskin> Approximately all of them?
InstantGratifica has joined #nixos
<ixxie> anyways congratulations to all the contributers
<manveru> i just improved my crystal2nix wrapper btw
<MichaelRaskin> Which repositories is a better question
<ixxie> right
<ixxie> s/support/have a rich count of/
<bhipple[m]> I'd like to make a stdenv/glibc overlay that ads `sssd` as a dependency, so that user lookups with libnss_sss.so work as expected. I've tried the naive thing of trying to just override propagatedBuildInputs but am having some issues; is there a standard way to do this?
<ixxie> but yeah of course it doesn't say how good the coverage is in what area
asuryawanshi has quit [Remote host closed the connection]
<ixxie> I hope at some point this summer to get around to doing some nixpkgs data science crawl, hooking into repology and doing some topic modeling to figure out what categories of packages are well covered / badly covered in nixpkgs
<ryantrinkle> clever: ah! i changed it so that hydra was running on refs/pull/$num/merge
<iqubic> How does one use NixOS to change the default browser? I specifically want the default to be qutebrowser.
<manveru> ixxie: do they have data dumps?
Mic92 has quit [Quit: WeeChat 2.1]
<manveru> iqubic: set the BROWSER env variable
<ryantrinkle> but apparently statuses are supposed to be reported against the head of the PR
<clever> ryantrinkle: yeah
<ixxie> manveru: better - an API
<clever> ryantrinkle: the status is reported on a specific revision
<ryantrinkle> clever: yeah, that makes sense, but why do i care what the status of the head is?
<clever> ryantrinkle: and that special fake-merge commit doesnt show up in the PR page
<manveru> ixxie: i'd rather have a pg db dump like rubygems does :)
<Orbstheorem> clever: Thanks, that seems to have worked!
<ryantrinkle> i care what will happen if someone mashes the "merge" button
<ryantrinkle> isn't that what pull/$num/merge represents?
<ixxie> manveru: well you can make a simple script to get a dump; its not that complex really
<clever> ryantrinkle: yeah, but hydra doesnt know to post the status back to the head commit, and github cant show the status of the merge commit
<ryantrinkle> clever: i see
<ryantrinkle> bizarre
<clever> ryantrinkle: hydra would have to be improved to know about head vs merge internally, and test merge but post to head
<manveru> damn, does ofborg still not support fetchGit?
<ixxie> anyway I am hoping to be able to use some NLP/ML magic to classify our packages; would that be of use / interest to anybody?
<__monty__> manveru: Missed opportunity to call it onix ; )
<Orbstheorem> So, why am I overriding haskellpackages and then getting ghcWithPackages instead of overriding ghcwithpackages directly? Is it because gwp is a function that resolves a package set?
<LnL> manveru: why would it support that?
* manveru silently weeps
<clever> Orbstheorem: i think think ghcWithPackages accepts .override at all
<clever> Orbstheorem: so you have to override the whole packageset it came from
<Orbstheorem> Alright ^^
<Orbstheorem> Thanks!
<clever> yep
<manveru> __monty__: what?
<__monty__> manveru: Crystal and nix.
<manveru> __monty__: well, it's not set in stone yet ;)
<__monty__> You got me interested in crystal just because of the pun potential now.
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
myshoe has quit [Quit: Lost terminal]
<clever> Orbstheorem: also, now that we have switched to using a proper haskell override, you can just override X11, and it will affect xmonad automatically
sbdchd has joined #nixos
<iqubic> Is there a way to find the location of an executable I have installed?
<clever> iqubic: run type or which on it, then realpath on that path
<iqubic> I installed it via system.environmentPackages.
<iqubic> Why do I have to run realpath?
<clever> iqubic: type/which give a path like /run/current-system/sw/bin/foo
<clever> which is a symlink to the real binary
<clever> if you need realpath or not, depends on what you want to do
<iqubic> I see.
sbdchd has quit [Ping timeout: 268 seconds]
simukis has quit [Read error: Connection reset by peer]
<ryantrinkle> clever: hmm, now i changed it to pull/${num}/head, but the job won't reevaluate
Adluc has quit [Ping timeout: 245 seconds]
<ryantrinkle> it doesn't seem to realize that anything has changed
<clever> ryantrinkle: thats a cached eval
<ryantrinkle> when i force re-evaluation it doesn't seem to do anything :-/
<clever> ryantrinkle: the new git rev is giving effectively the same nix expressions, so it doesnt need a new eval
<ryantrinkle> got it; but shouldn't it still update the github status?
<clever> a force re-eval doesnt help if its the same derivations in the end
<clever> and it updates the rev that first made the eval
<clever> not the last
<nkaretnikov> i'm having an issue with the reflex-platform
<clever> ryantrinkle: youll need to make a new commit on the PR that actually causes a nix level rebuild
<nkaretnikov> ryantrinkle, elvishjerricco: see above
mahalel_ has joined #nixos
<nkaretnikov> that's when i tried running try-reflex with your binary cache
<ryantrinkle> nkaretnikov: looking
<nkaretnikov> could it be because i tried without the cache beforehand and aborted that?
<ryantrinkle> clever: ah, what about if someone's just changing random stuff?
<elvishjerricco> nkaretnikov: Ah, that's an annoying one. Your store is corrupted because you built some of the Haskell derivations and downloaded others
Mic92 has joined #nixos
<ryantrinkle> nkaretnikov: yes, it could be
<elvishjerricco> Haskell derivations are unfortunately nondeterministic
woodson has quit [Ping timeout: 252 seconds]
ariutta has joined #nixos
<{^_^}> [nixpkgs] @7c6f434c pushed to master « libftdi1: fix build when docs are enabled »: https://git.io/vhmW8
qewzee has joined #nixos
<nkaretnikov> are you sure the cache works? if i run collect garbage, it'll take days to catch up
<elvishjerricco> So if you download a Haskell derivation, the ones it depends on must also have been downloaded from the same place
<elvishjerricco> nkaretnikov: Yes, the cache is fine
<nkaretnikov> okay, let me collect some garbage then
Adluc has joined #nixos
<ryantrinkle> clever: by which i mean, say someone changes README.md only; will their PR not get marked as OK?
<clever> ryantrinkle: depends on if you have a src = ./. that reads that file
<ryantrinkle> clever: ah, should i just add that?
<clever> also, the reval caching is within a jobset
<ryantrinkle> that seems silly, but hey, if it makes this work, it's fine by me :P
<clever> so the PR will always get a first eval when opened
<ryantrinkle> ah, ok
<{^_^}> [nixpkgs] @7c6f434c pushed to master « pythonPackages.pathlib2: fix build by removing obsolete test removal »: https://git.io/vhmWg
alexteves has joined #nixos
Lisanna has quit [Ping timeout: 252 seconds]
<nh2[m]> aszlig: on your Hetzners what are the network interfaces called? I'm having a problem right now with on a new server eth0 being named eno1 instead. But since `usePredictableInterfaceNames` is true by default, I'm wondering why on all my other Hetzners the interface is called eth0
<nkaretnikov> ryantrinkle, elvishjerricco: do you know that the tutorial link on the reflex homepage points to the homepage itself? is it on purpose?
rihards has quit [Quit: rihards]
<ryantrinkle> nkaretnikov: i believe those links are broken at the moment
<ryantrinkle> gonna hopefully get that fixed today :)
<elvishjerricco> ryantrinkle: You see my PR about the homepage in reflex-platforM?
<ryantrinkle> elvishjerricco: yeah, the one that brings it all in-tree?
<ryantrinkle> it's an interesting idea :)
<elvishjerricco> ryantrinkle: Yea
<ryantrinkle> i haven't thought through the consequences yet, haha
<ryantrinkle> just trying to get hydra to behave
<ryantrinkle> though i've just learned that github's status checks stuff is fundamentally broken
<elvishjerricco> ryantrinkle: ?
sanscoeur has joined #nixos
<ryantrinkle> it wants you to check the unmerged head of the PR, not the thing you'll get when you merge it
<aszlig> nh2[m]: there is a udev rule for setting that interface persistent
<ryantrinkle> so, e.g., pushing to master doesn't invalidate the status checks
<ryantrinkle> even of things that are meant to be merged to master
patrl has quit [Ping timeout: 256 seconds]
woodson has joined #nixos
<elvishjerricco> ryantrinkle: Yea. But pretty much all CIs check the actual branch, not the merged version, right? Hydra does I believe.
<aszlig> nh2[m]: see _get_udev_rule_for() in HetznerState
T_S_ has joined #nixos
<ryantrinkle> elvishjerricco: i mean, regardless of whether that's what they do, it seems blatantly incorrect
<ryantrinkle> who cares whether the unmerged branch works? the thing we're trying to guarantee is that when someone mashes the "merge" button, the resulting thing works
<ryantrinkle> also, i did read that travis tests the merged branch
<ryantrinkle> but then reports it to the head on github
<ryantrinkle> which seems like about the best you can do with the current API
<nh2[m]> aszlig: you are right, I can see it. And it's in /etc/udev/rules.d/99-local.rules on my server. Yet it's called eno1. Let' me have some more look or try trigger it manually ...
<clever> ryantrinkle: the metadata on an eval has to be improved to track both head and merge, and then the github status plugin has to use that metadata, then it might be as smart as travis
<ryantrinkle> clever: yeah, that makes sense
<ryantrinkle> clever: i think i'm not understanding how to add ./. to my results
<nh2[m]> aszlig: yeah ok the mac address is wrong. I think something went wrong with this server, it also had a wrong IP in its physical spec, the one of a different server of mine. Maybe I swapped some IPs accidentally on creation, I'll recreate it
<clever> ryantrinkle: it would also be nice if hydra could do both head and merge builds, to confirm both pass
<ryantrinkle> clever: agreed
<nh2[m]> aszlig: thanks for the quick pointer!
<clever> ryantrinkle: the ./. is just a question of if changing readme.md causes a rebuild, and id usualy try to avoid that
Ariakenom has quit [Quit: Leaving]
<clever> ryantrinkle: the contents of readme.md dont affect if things pass or fail
sanscoeur has quit [Ping timeout: 252 seconds]
<ryantrinkle> clever: hmm, ok; maybe i'm ok without that, for future builds
<aszlig> nh2[m]: although it would be nice if there would be a way to regenerate the physical spec, for example when you got a hardware replacement without disks and thus the MAC has changed
<{^_^}> [nixpkgs] @baracoder opened pull request #41153 → spring: Fixed compiling and version bump → https://git.io/vhmWN
pyrtsa has joined #nixos
<nh2[m]> aszlig: yeah right now I fixed the IP with `sqlitebrowser`, but forgot to update the mac
<nh2[m]> aszlig: I think the most important thing will be to write it in the manual so it's clear what is where
Guanin has joined #nixos
<ldlework> Am I doing nixlang abstractions right? should I be using callPackage for parametric modules? https://gist.github.com/dustinlacewell/368de07fdf4568e2ba1ed01584050400
<ariutta> Hello! I've got my custom vim installing pretty well with Nix on macOS.
<ariutta> But I can't get the python formatter "black" to work quite right: https://github.com/ambv/black#vim
<ariutta> I need to specify "custom.black" and "custom.vim" in here, when I'd like to just specify "custom.vim": https://github.com/ariutta/dotfiles/blob/master/common.nix#L18
patrl has joined #nixos
<ariutta> Shouldn't this line put "black" on the PATH? https://github.com/ariutta/dotfiles/blob/master/custom/vim/default.nix#L97
alexteves has quit [Read error: Connection reset by peer]
alexteves has joined #nixos
<ldlework> sphalerite what do you think
ixxie has quit [Ping timeout: 264 seconds]
patrl has quit [Ping timeout: 260 seconds]
newhoggy has joined #nixos
Ianulus has joined #nixos
newhoggy has quit [Read error: Connection reset by peer]
alexteves_ has joined #nixos
alexteves_ has quit [Remote host closed the connection]
alexteves has quit [Read error: Connection reset by peer]
simukis has joined #nixos
semilattice has quit [Quit: No Ping reply in 180 seconds.]
alexteves has joined #nixos
alexteves_ has joined #nixos
semilattice has joined #nixos
<{^_^}> [nixpkgs] @zimbatm pushed 0 commits to staging-stabilization: https://git.io/vhm8Y
<Orbstheorem> clever: So, I ran this derivation: https://paste.gnugen.ch/raw/AXIk, which made a new closure for libX11. However, when I gdb the ldd target of xmonad it says there are no debugging symbols :( : https://paste.gnugen.ch/raw/fZCt
woodson has quit [Ping timeout: 268 seconds]
<clever> Orbstheorem: run `file` on the before and after libX11.so and confirm if the enableDebug override did anything
simukis has quit [Ping timeout: 260 seconds]
<Orbstheorem> Both say “dynamically linked, not stripped”
<Orbstheorem> (elfread shows no debugging information)
<Orbstheorem> readelf**
<clever> Orbstheorem: if you do `nix-store --query --deriver FOO` on the storepath for the overridden libX11, you should get a .drv path
<clever> then run `nix show-derivation BAR` on that, does it show several outputs?
alexteves__ has joined #nixos
patrl has joined #nixos
<Orbstheorem> yeah, dev, man et out
<clever> no debug output?
<Orbstheorem> env.condifureFlags is empty
<Orbstheorem> no debug output
<clever> sounds like the override didnt work right
<clever> let me double-check the source
alexteves_ has quit [Ping timeout: 248 seconds]
<clever> 386 enableDebugging = pkg: pkg.override { stdenv = stdenvAdapters.keepDebugInfo pkg.stdenv; };
asuryawanshi has joined #nixos
<clever> yeah, it should have worked the way i typed it
<clever> testing in a repl...
<clever> /nix/store/rka40nki4bxwiyy090q6xbp8xfraiajs-libX11-1.6.5/lib/libX11.so.6.3.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, with debug_info, not stripped
hiratara has quit [Ping timeout: 245 seconds]
blankhart has quit [Ping timeout: 248 seconds]
<clever> Orbstheorem: what was your call to xmonad-with-plugins?
tzemanovic has joined #nixos
tzemanovic has quit [Client Quit]
<Orbstheorem> clever: https://paste.gnugen.ch/raw/AXIk
<clever> Orbstheorem: the overrideAttrs in there has no effect
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<clever> testing something on this end...
<Orbstheorem> the X11 haskell package definition has inherit (pkgs.xorg) libX11 (pkgs/development/haskell-modules/hackage-packages.nix: 19564)
<clever> that inherit is in the default args via callPackage
<clever> so its changed via .override
hiratara has joined #nixos
joachifm has quit [Remote host closed the connection]
<Orbstheorem> Oh, okay ^^
philippD has joined #nixos
sanscoeur has joined #nixos
blankhart has joined #nixos
<clever> Orbstheorem: i built it locally with the overrides, and i see 2 libX11's in the dep tree, with and wihtout debug
<ldlework> Where is it documented on how to create and configure new systemd services? Do I just look at the nixpkg or that options search page?
<ldlework> I wanna try my hand at a "copy these file to disk" service.
<clever> Orbstheorem: ah, libXrandr and other things
<Orbstheorem> when you ldd xmonad, which one do you get?
<clever> let me improve the override
sanscoeur has quit [Ping timeout: 264 seconds]
<Orbstheorem> ^^
lor|d has joined #nixos
lord| has quit [Read error: Connection reset by peer]
<clever> Orbstheorem: pkgs.xorg is fairly old, and lacks a proper way to override
<clever> so libXrandr always refers to the original libX11
<clever> oh crap
<clever> its not even using callPackage
<clever> there is basically no way to override libX11
<clever> you must edit nixpkgs
<clever> or use LD_LIBRARY_PATH
<Orbstheorem> oh
<clever> nix-build -E 'with import <nixpkgs> {}; enableDebugging xorg.libX11'
<Orbstheorem> so I can just add dontStip in the xlib definition?
<clever> Orbstheorem: take the lib dir from this, shove it into LD_LIBRARY_PATH, then run gdb+xmonad under that
<Orbstheorem> xD
lor|d is now known as lord|
<{^_^}> [nixpkgs] @Mic92 merged pull request #39482 → meguca: init at 2018-05-17 → https://git.io/vpcTk
<{^_^}> [nixpkgs] @Mic92 pushed 8 commits to master: https://git.io/vhm42
woodson has joined #nixos
<Orbstheorem> clever: the thing is that I'm trying to debug segfault I don't know how to trigger. It has happened multiple times over the last couple of weeks. I was planning to run on debuggable libs and when it crashes recover the coredump and then study it. But in the meanwhile, continue using my system
<clever> Orbstheorem: one min
judson has joined #nixos
michas_ has quit [Read error: Connection reset by peer]
<clever> Orbstheorem: in your override-xmonad\ \(1\).nix file, just strip out all of the overrides, and run `LD_LIBRARY_PATH=${pkgs.enableDebugging pkgs.xorg.libX11}/lib ${xmonad/bin/xmonad &`
<{^_^}> [nixpkgs] @dotlambda pushed to master « python.pkgs.transitions: 0.6.5 -> 0.6.8 »: https://git.io/vhm4F
<clever> Orbstheorem: then the main xmonad will always use that debug build
<clever> Orbstheorem: then you need one other small change
<judson> Tangential but: how would you set up dnscrypt-proxy to work within a corporate VPN? The challenge is that there are names that only exist in the VPN DNS servers.
<judson> Bonus points if internal names don't leak to the dnscrypt servers.
newhoggy has joined #nixos
<clever> Orbstheorem: systemd.coredump = { enable = true; };
<clever> Orbstheorem: that will tell systemd to save coredumps every time a fault happens anywhere in the system
<clever> Orbstheorem: you may also need a `ulimit -c unlimited` before you start xmonad
<Dezgeg> that should be the default
<Dezgeg> if you enable that option
Joeyo133 has quit [Ping timeout: 260 seconds]
<Orbstheorem> why ulimit?
freusque has quit [Quit: WeeChat 2.0]
<clever> Orbstheorem: that tells the kernel that it can make coredumps, which might be needed, not sure
<{^_^}> [nixpkgs] @dotlambda pushed to master « python.pkgs.moto: fix build »: https://git.io/vhmBT
<clever> Orbstheorem: running ulimit before you start xmonad will handle what this is descripting
<MichaelRaskin> Hm. I cannot make Nix trust an extra public key from command line… How do I do this (as root)? nix-serve seems to sign the cache so I hope I did succeed in generating keys
ryantrinkle has left #nixos [#nixos]
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/30ff9ca1958 (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/5b468ea6b1d (from 3 days ago, history: https://channels.nix.gsc.io/nixos-unstable)
Rusty1_ has quit [Quit: Konversation terminated!]
<clever> bbl
<Orbstheorem> clever: I don't think that worked. I switched, restart display-manager and gdb attach to the pid of the running instance and no lib has debugging symbols
<Orbstheorem> Anyway, thank you very much
<Orbstheorem> I have an exam tomorrow morning and it's almost 1am, I should be sleeping :P
<Orbstheorem> Thanks!
sbdchd has joined #nixos
hiratara has quit [Quit: ZNC - http://znc.in]
<{^_^}> [nixpkgs] @globin merged pull request #40188 → minikube fixes and hyperkit driver → https://git.io/vpiup
<{^_^}> [nixpkgs] @globin pushed 3 commits to master: https://git.io/vhmBV
hiratara has joined #nixos
tzemanovic has joined #nixos
<kandinski> my nixos-rebuild fails and it looks this is the culprit: http://paste.debian.net/1026839/ any suggestion? I'm on 18.03
sbdchd has quit [Ping timeout: 256 seconds]
xy2_ has quit [Ping timeout: 240 seconds]
srdqty has quit [Quit: WeeChat 1.9.1]
sigmundv has joined #nixos
<kandinski> kandinski: is there anything I can do to go around this issue?
alexteves__ has quit [Remote host closed the connection]
<MichaelRaskin> ARGH
alexteves_ has joined #nixos
<MichaelRaskin> Turns out it has cached in ~/.cache/nix that the binary cache didn't provide a signature, so the configuration changes were not seen even if I deleted the cache in /nix/var/nix/
alexteves_ has quit [Remote host closed the connection]
aarvar has quit [Quit: Leaving.]
alexteves_ has joined #nixos
steell has joined #nixos
sbdchd has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace opened pull request #41155 → wire-desktop: gnome2 cleanup → https://git.io/vhmRB
MP2E has joined #nixos
<MichaelRaskin> Hm. It looks like nix-serve doesn't stream the NAR, it creates it in advance…
newhoggy has quit [Ping timeout: 260 seconds]
vaninwagen has quit [Quit: WeeChat 2.1]
johnsonav has joined #nixos
johnsonav has left #nixos [#nixos]
sbdchd has quit [Remote host closed the connection]
<sphalerite> ldlework: why not a module that creates more options?
sanscoeur has joined #nixos
Tobba has quit [Quit: Leaving]
joehh has joined #nixos
Tobba has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace opened pull request #41156 → signal-desktop: gnome2 cleanup → https://git.io/vhmR9
sanscoeur has quit [Ping timeout: 252 seconds]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
contrapumpkin has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace opened pull request #41157 → franz: gnome2 cleanup → https://git.io/vhm0m
mkoenig has quit [Ping timeout: 252 seconds]
newhoggy has joined #nixos
mkoenig has joined #nixos
palo_ has joined #nixos
palo_ has quit [Changing host]
palo_ has joined #nixos
joehh has quit [Ping timeout: 248 seconds]
palo has quit [Ping timeout: 260 seconds]
<ldlework> sphalerite: just seems like two steps instead of one
<ldlework> like defining some options just to set them
<Myrl-saki> Uhhh
<Myrl-saki> how do you update fetchGit?
patrl has quit [Ping timeout: 256 seconds]
<Myrl-saki> Apparently by adding a custom revision.
thc202 has quit [Ping timeout: 260 seconds]
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<Myrl-saki> Uhhh
iqubic has quit [Remote host closed the connection]
<Myrl-saki> Why does ghcjs have a propagated-uild-inputs?
<Myrl-saki> Oh, uh, is it for the Node version?
hamishmack has joined #nixos
spear2 has joined #nixos
coot has quit [Quit: coot]
tertle||eltret has joined #nixos
vidbina has joined #nixos
__monty__ has quit [Quit: leaving]
fragamus has joined #nixos
palo_ is now known as palo
blankhart has quit [Ping timeout: 256 seconds]
ericsagnes has quit [Ping timeout: 256 seconds]
maingo has quit [Quit: Connection closed for inactivity]
coot has joined #nixos
blankhart has joined #nixos
<judson> How do I tell a NixOps logical server what its IP address is?
sanscoeur has joined #nixos
<judson> In this case, I want the literal IP address, so the /etc/hosts trick won't help me.
coot has quit [Quit: coot]