zimbatm changed the topic of #nixos to: NixCon 2018 - 25-27 Oct in London https://nixcon2018.org/ || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon
graphene has joined #nixos
blahdodo has quit [Ping timeout: 252 seconds]
<colemickens> It seems like it was actually just that I needed to tell it to UPDATESETARTUPTTY. setting GPG_TTY on its own wasn't enough.
kyren has joined #nixos
lingeeal has joined #nixos
<lingeeal> hi, im following this tutorial https://github.com/Gabriel439/haskell-nix/tree/master/project0. Running "nix-shell --attr env release0.nix" I would like to be able to use ghcid. I can't find anywhere online how I should approach this.
carlosdagos has joined #nixos
<wpcarro> Has anyone figured out a way to get an iMessage client on NixOS? I've ported just about everything else from my OSX workflow to my new NixOS machine.
snajpa has joined #nixos
Mateon2 has joined #nixos
<elvishjerricco> wpcarro: I tried to find something for that a while ago and came to the conclusion that we're just never gonna have iMessage on Linux. There used to be some CLI iMessage clients for macOS, which would have been great since I could just use those over ssh in Linux. But they don't seem to work anymore
<elvishjerricco> Please let me know if you find anything :)
Mateon1 has quit [Ping timeout: 244 seconds]
Mateon2 is now known as Mateon1
<wpcarro> elvishjerricco: will do! Thanks for sharing your experience
* jasom is not aware of any iMessage clients that work that aren't written by a company whose name rhymes with "grapple"
<jasom> elvishjerricco: if you have a mac, you can remote into a mac from linux
phreedom_ has joined #nixos
<elvishjerricco> jasom: You mean like VNC?
<jasom> elvishjerricco: yeah
<elvishjerricco> That's a sad solution :P
<elvishjerricco> I've just started trying to get everyone I know to use Signal lol
<wpcarro> I've been looking around for example configs using i3 on top of KDE. Anyone here have one they're willing to share?
<wpcarro> I've been able to get just i3 and I *believe* KDE is handling my Login Screen..? My understanding is fuzzy, but I'm trying to recreate a config that I found online. Doesn't use NixOS though :/
phreedom has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #47636 → WIP nixos/nix-daemon: Organize buildMachine options with a submodule → https://git.io/fxTTB
<wpcarro> Or maybe it's SDDM that's handling my login screen. Oy I have a lot to learn
<jasongrossman> wpcarro: You're right that the login screen is separate from the window manager ...
<wpcarro> jasongrossman: yeah that was my hunch. I also have two lines in my NixOS config that enable SDDM and Plasma
<jasongrossman> wpcarro: In NixOS's options, the login screen is called the displayManager.
<jasongrossman> Right.
<wpcarro> jasongrossman: that's great. That would confirm that SDDM is my Login Mgr then...
<wpcarro> that's good to know
<jasongrossman> You can have any of the displayManager options together with either or both of a windowManager and a desktopManager.
<__red__> Thanks gchristianson
nuncanada has joined #nixos
<jasongrossman> Although not all combinations of windowManager and desktopManager work well together, and anyway if you like i3 then you probably don't want a desktopManager.
<__red__> er, gchristensen - sorry, thanks :-)
<gchristensen> common mistake :)
<wpcarro> jasongrossman: that's reassuring. I have all three options set. It seems to me like i3 is preventing KDE from booting up. You're right though that i3 covers a lot of what I want from KDE
<jasongrossman> You might find that KDE programs are available, even if KDE is not running as the window manager.
<wpcarro> I have seen some examples of i3 integrating with Plasma though that look pretty cool to me, so I'm on a quest to get that working
<jasongrossman> OK, cool. I don't remember whether I've tried that combination! Certainly not recently.
<elvishjerricco> wpcarro: Beware, a lot of screen lockers are completely stupid and just put you a different tty. Pressing ctrl-alt-F7 often brings you back to the session without having to authenticate. I switched to light-locker, and it solves this by putting a black window over the regular session that can't be closed, and auto-switching you back to the login tty if you switch to F7
<wpcarro> jasongrossman: Ok great. And do you have any tips for introspecting the configuration options? Do you recommend that I use a nix-repl?
<elvishjerricco> I really wanted to use physlock, but had trouble getting it to work exactly right.
<wpcarro> elvishjerricco: I'll definitely check out light-locker then, since I currently don't have any strong opinions about Login Managers
<jasongrossman> I use physlock.
<wpcarro> which I guess is synonymous with a screen locker as well..?
<elvishjerricco> wpcarro: I think light-locker might be specific to lightdm though
<jasongrossman> wpcarro: https://nixos.org/nixos/options.html
<elvishjerricco> jasongrossman: Do you have issues with the display not being allowed to go to sleep?
<wpcarro> thank you, jasongrossman
<jasongrossman> wpcarro: If you need tighter integration between i3 and plasma than those options give you then you're on your own! There might be things you want to configure inside plasma but I have no idea how.
<jasongrossman> elvishjerricco: No BUT I don't actually launch it very often so I can't say I've tested it well.
<wpcarro> this is a great start!
<wpcarro> thanks so much
<jasongrossman> wpcarro: If all you need is i3 managing your windows and KDE programs available to run then you should already have that, I believe.
<jasongrossman> wpcarro: :-)
andreabedini has joined #nixos
blahdodo has joined #nixos
<wpcarro> jasongrossman: if you're interested in where I'm coming from, I was seduced by this: https://github.com/avivace/dotfiles
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fxTkq
wpcarro has quit [Remote host closed the connection]
jasongrossman has quit [Ping timeout: 245 seconds]
acarrico has quit [Ping timeout: 246 seconds]
jasongrossman has joined #nixos
jperras has quit [Quit: WeeChat 2.2]
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
Judson1 has quit [Ping timeout: 268 seconds]
blahdodo has quit [Ping timeout: 252 seconds]
<CMCDragonkai> Wouldn't it be cool if nix-shell had a `exitScript`? That would run cleanup operations on exit?
<gchristensen> you could do that with shellHook and traps
Rusty1 has quit [Quit: Konversation terminated!]
lingeeal has quit [Remote host closed the connection]
<CMCDragonkai> Just something first-class so I don't have to remember how to write a trap.
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<CMCDragonkai> And deliberate on which signals I should trap on.
<gchristensen> I go to my browser bar, type "bash robust" and it auto-completes http://redsymbol.net/articles/bash-exit-traps/ and then I copy
<cransom> you want to remember something new and different that a tool you already use can do?
<gchristensen> ...the second example.
wpcarro has joined #nixos
<__red__> umm, so I just changed the 'rev' in a fetchFromGithub, but my nix-build -A packagename --check doesn't seem to be downloading the new code.
<__red__> Is there any way to force it? (because it's currently lying)
blahdodo has joined #nixos
<cransom> it's probably building from the channel rather than your checkout
<__red__> it's not in a channel as my stuff hasn't been accepted yet (it's a new add)
<cransom> add a -I nixpkgs=yourpathhere and it will switch
<gchristensen> it may be because it is content addressed and you're notchanging the sha256 so it doesn't know it changed
andreabedini has joined #nixos
<cransom> and that woudl be the other reason.
<__red__> lemme mod the sha256 and see if that causes it to re-pull
nuncanada has quit [Ping timeout: 246 seconds]
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/10eec001313 (from 9 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
<__red__> hmm
<__red__> I see the issue - I was bound to master (which for a distro based on repeatability, I figured would be an issue) ;-)
<__red__> so I tried to specify that one rev, and I get this: https://github.com/redvers/OpenSpin/archive/f3a587ed3e4f6a50b3c8d2022bbec5676afecedb.tar.gz
sir_guy_carleton has joined #nixos
<__red__> so I guess I have to work out how to get github to make that rev available
<__red__> ?
<gchristensen> that rev should just automatically be availabel
<__red__> it's 404
<gchristensen> works for me
wpcarro has quit [Quit: leaving]
<cransom> wfm too.
<__red__> hah. now it does
<__red__> I guess I tried too fast
sigmundv has quit [Ping timeout: 272 seconds]
blahdodo has quit [Ping timeout: 244 seconds]
acarrico has joined #nixos
lassulus_ has joined #nixos
<__red__> gchristensen: could you throw another rebuilt on #46753 for me please?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/46753 (by redvers, 2 weeks ago, open): openspin: init at 2018-10-01
<__red__> assuming this is good, I'm hoping that jtojnar will be happy :-)
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
silver has quit [Read error: Connection reset by peer]
lassulus has quit [Ping timeout: 252 seconds]
lassulus_ is now known as lassulus
<{^_^}> [nixpkgs] @catern opened pull request #47638 → pythonPackages.trio: 0.6.0 -> 0.7.0 → https://git.io/fxTLh
<{^_^}> [nixpkgs] @volth opened pull request #47639 → cpan2nix updates → https://git.io/fxTte
<slabity> Does anyone else have issues running steam? I recently started getting `glxChooseVisual failed` whenever I run it
drakonis_ has joined #nixos
iyzsong has joined #nixos
<__red__> I need to work out why minecraft is broken for my daughter - it broke with the latest update
blahdodo has joined #nixos
<ivan> https://github.com/NixOS/nixpkgs/pull/43774 was the last minecraft thing
<{^_^}> #43774 (by Infinisil, 10 weeks ago, merged): minecraft: clean and fix up
<__red__> I'll try it again, just in case
<__red__> sec
ProofTechnique has joined #nixos
<ProofTechnique> Is there a way to ghc-pkg hide/show packages from within a nix?
<ivan> sometimes strace can point to something useful, or maybe it'll work better if you clear its download cache, or maybe this is a new issue you need to file
<ProofTechnique> *within nix
nuncanada has joined #nixos
nuncanada has quit [Remote host closed the connection]
ProofTechnique has quit [Client Quit]
<Lisanna> Trying to set a nix option with a remote-store (--store). Tried ssh-ng://root@example.com?max-jobs=5 as the value for --store but Nix is complaining with: "warning: unknown setting 'max-jobs'"
blahdodo has quit [Ping timeout: 244 seconds]
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/66fd61163a8 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
sevanspowell has joined #nixos
<sevanspowell> Heya, Nix question. I want to build my project with a specific version of amazonka.
<sevanspowell> Usually I'd do something like this: https://gist.github.com/sevanspowell/2a8c68e1ce12c145565e510f8840cd3b
<sevanspowell> But amazonka is a stack project and so doesn't have a nix file. What would be the way to proceed?
<__red__> ivan: crashed again - I'll see if I can work out what the issue it
<__red__> err, is
<elvishjerricco> sevanspowell: Are you using `haskell.lib.packageSourceOverrides` or something?
<sevanspowell> Likely will use something like `nixpkgs.haskellPackages.override`
sigmundv__ has quit [Ping timeout: 260 seconds]
blahdodo has joined #nixos
<sevanspowell> Anything that will let me override the version of amazonka used in the particular pin of nixpkgs I'm using.
<jasom> hunspell can't seep to find any dictionaries, even though I installed nixos.hunspellDicts.en-us any suggestions?
<elvishjerricco> sevanspowell: However you would normally do it with fetchFromGitHub, you'll have to do the same thing but once per sub-package in the amazonka repo, using `amazonka-ec2 = "${amazonka}/amazonka-ec2";`
zemm has quit [Ping timeout: 268 seconds]
<sevanspowell> Ah, thanks. Maybe that was the piece I was missing.
<elvishjerricco> sevanspowell: This is a bit like how I usually extend haskellPackages: https://gist.github.com/ElvishJerricco/248736bfa127d307b42cb7eb9517cc4f
<__red__> well dang ivan - he fixed it! ;-D
<sevanspowell> Cool, so use this extend mechanism instead of override.
<sevanspowell> Is that for these reasons? https://github.com/NixOS/nixpkgs/issues/25887
<{^_^}> #25887 (by ocharles, 1 year ago, closed): Overriding (Haskell) packages repeatedly is surprising and non-modular
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/66fd61163a8 (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<drakonis_> 1.0 at last
<elvishjerricco> sevanspowell: `extend` is technically worse than `override`. I only use `extend` when I don't really care, because it's easier to type and read. But when I'm being responsible I always use `override`. See: https://github.com/NixOS/nixpkgs/issues/26561#issuecomment-397350884
blahdodo has quit [Ping timeout: 245 seconds]
<sevanspowell> elvishjerricco: Gotcha. Thanks for your help. Where do overlays fit in this picture?
<elvishjerricco> sevanspowell: overlays are to <nixpkgs> as overrides are to haskellPackages
<sevanspowell> elvishjerricco: Haha thanks, no wonder I was confused.
nD5Xjz_ has quit [Ping timeout: 260 seconds]
<elvishjerricco> sevanspowell: The syntax is slightly different though. The whole thing is kinda a mess :P
nD5Xjz has joined #nixos
<sevanspowell> elvishjerricco: A link to that issue is definitely going in the codebase :)
blahdodo has joined #nixos
wpcarro has joined #nixos
<wpcarro> Does anyone here use Dropbox declaratively with NixOS? I've been able to download the client with systemPackages, but I don't think it's syncing properly
<wpcarro> I've seen workarounds online, but not sure if that's stale. Decided someone here may know
mayhewluke has quit [Ping timeout: 245 seconds]
mayhewluke has joined #nixos
<__red__> haha, I switched the repo to mine since I dind't expect upstream to commit my PR for a while
blahdodo has quit [Ping timeout: 268 seconds]
<__red__> they committed it in 38 minutes - not bad for a project that'd been idle for months ;-)
wpcarro has quit [Remote host closed the connection]
blahdodo has joined #nixos
georges-duperon has quit [Quit: Leaving]
<sevanspowell> wpcarro: I wouldn't mind know this too, haven't had it working for a while.
<sevanspowell> *knowing
Ralith_ has quit [Remote host closed the connection]
worldofpeace has joined #nixos
blahdodo has quit [Ping timeout: 252 seconds]
tnks has joined #nixos
hellrazor has quit [Ping timeout: 244 seconds]
<tnks> I see usages of lndir in Nixpkgs, but as I understand it, I don't think this creates efficient symlink trees. Is there a function in Nixpkgs that does?
<tnks> (by efficient, I mean links of parent directories where possible).
blahdodo has joined #nixos
<tnks> I see that buildenv uses a Perl script, I believe to implement the logic I was trying to avoid handrolling.
worldofpeace has quit [Quit: worldofpeace]
<tnks> that code says that it's a "fork of the buildEnv in the Nix distribution"... where is that exactly?
<tnks> In the meantime, I think this is what I want.
<Myrl-saki> How does setupHook work?
<{^_^}> [nixpkgs] @thoughtpolice pushed 7 commits to master: https://git.io/fxTYb
hiroshi has quit [Ping timeout: 252 seconds]
hiroshi has joined #nixos
blahdodo has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @romildo opened pull request #47641 → onestepback: 0.98 -> 0.991 → https://git.io/fxTOE
blahdodo has joined #nixos
<elvishjerricco> is there anything for converting PKGBUILD files to Nix expressions?
<{^_^}> [nixpkgs] @lionello opened pull request #47642 → xcodeenv.buildApp: inherit meta → https://git.io/fxTs5
drakonis_ has quit [Read error: Connection reset by peer]
blahdodo has quit [Ping timeout: 268 seconds]
phreedom has joined #nixos
<{^_^}> [nixpkgs] @yrashk opened pull request #47643 → sit: 0.4.0 -> 0.4.1 → https://git.io/fxTGV
blahdodo has joined #nixos
phreedom_ has quit [Ping timeout: 256 seconds]
masterdonx has quit [Quit: ZNC - http://znc.in]
masterdonx has joined #nixos
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nixos
jasongrossman has quit [Ping timeout: 252 seconds]
jasongrossman has joined #nixos
<{^_^}> [nixpkgs] @thoughtpolice pushed 7 commits to release-18.09: https://git.io/fxTZs
graphene has quit [Ping timeout: 252 seconds]
blahdodo has quit [Ping timeout: 244 seconds]
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #47644 → ghc-8.2.2: Fix which hsc2hs is installed on cross → https://git.io/fxTnI
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
phreedom_ has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #47645 → ghc-8.2.2: Fix which hsc2hs is installed on cross for 18.09 → https://git.io/fxTnY
phreedom has quit [Ping timeout: 256 seconds]
blahdodo has joined #nixos
iyzsong has quit [Read error: Connection reset by peer]
andreabedini has joined #nixos
freeman42x has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #47644 → ghc-8.2.2: Fix which hsc2hs is installed on cross → https://git.io/fxTnI
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/fxTce
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #47645 → ghc-8.2.2: Fix which hsc2hs is installed on cross for 18.09 → https://git.io/fxTnY
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to release-18.09: https://git.io/fxTcf
blahdodo has quit [Ping timeout: 244 seconds]
endformationage has quit [Quit: WeeChat 1.9.1]
Ariakenom has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg merged pull request #47166 → crystal: 0.26.1 and introduce 0.25.1 → https://git.io/fAdEl
<{^_^}> [nixpkgs] @peterhoeg pushed 5 commits to master: https://git.io/fxTCU
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/7b05874c1b9 (from 64 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
blahdodo has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer merged pull request #47642 → xcodeenv.buildApp: inherit meta → https://git.io/fxTs5
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fxTCF
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #47646 → ghc-8.2.2: Oops, added adjacent patch the one I wanted → https://git.io/fxTWZ
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #47646 → ghc-8.2.2: Oops, added adjacent patch the one I wanted → https://git.io/fxTWZ
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to release-18.09: https://git.io/fxTW4
dmc has quit [Quit: WeeChat 2.2]
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #47647 → ghc-8.2.2: Oops, added adjacent patch to the one I wanted for master → https://git.io/fxTWR
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #47647 → ghc-8.2.2: Oops, added adjacent patch to the one I wanted for master → https://git.io/fxTWR
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/fxTWu
worldofpeace has joined #nixos
worldofpeace has quit [Client Quit]
dmc has joined #nixos
blahdodo has quit [Ping timeout: 252 seconds]
hyper_ch2 has joined #nixos
blahdodo has joined #nixos
siel has quit [Ping timeout: 252 seconds]
Ariakenom has quit [Read error: Connection reset by peer]
siers has quit [Ping timeout: 276 seconds]
mayhewluke has quit [Ping timeout: 268 seconds]
mayhewluke has joined #nixos
blahdodo has quit [Ping timeout: 264 seconds]
Izorkin has joined #nixos
siel has joined #nixos
<{^_^}> [nixpkgs] @andir opened pull request #47649 → rustc: 1.29.0 -> 1.29.1 → https://git.io/fxT8I
Butterfly^ has quit [Changing host]
Butterfly^ has joined #nixos
Butterfly^ has joined #nixos
owickstrom has joined #nixos
freeman42x has quit [Read error: Connection reset by peer]
freeman42x has joined #nixos
blahdodo has joined #nixos
siel has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @globin pushed commit from @WilliButz to release-18.09 « nvtop: use version-independent libnvidia-ml.so symlink »: https://git.io/fxT8X
<{^_^}> [nixpkgs] @globin merged pull request #47629 → nvtop: use version-independent libnvidia-ml.so symlink (backport) → https://git.io/fxUbh
hamishmack has joined #nixos
hellrazo1 has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/e1605d9b21b (from 57 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @Ekleog opened pull request #47650 → jetbrains.idea-community: add IntelliJ keyword to the longDescription → https://git.io/fxT8d
patrl has joined #nixos
hellrazo1 has quit [Quit: WeeChat 2.2]
Ariakenom_ has joined #nixos
blahdodo has quit [Ping timeout: 246 seconds]
siel has joined #nixos
agander has joined #nixos
owickstrom has quit [Quit: Leaving]
reardencode has quit [Ping timeout: 244 seconds]
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/3e55299b414 (from 79 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<{^_^}> [nixpkgs] @srhb merged pull request #47641 → onestepback: 0.98 -> 0.991 → https://git.io/fxTOE
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fxT4H
blahdodo has joined #nixos
<{^_^}> [nixpkgs] @srhb merged pull request #47565 → gdal: 2.3.1 -> 2.3.2 → https://git.io/fxJIC
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fxT4p
<{^_^}> [nixpkgs] @srhb pushed commit from @mpickering to release-18.09 « gdal: 2.3.1 -> 2.3.2 »: https://git.io/fxT4j
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/3e55299b414 (from 89 minutes ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
reinzelmann has joined #nixos
jasongrossman has quit [Ping timeout: 268 seconds]
patrl has quit [Quit: WeeChat 2.2]
patrl has joined #nixos
thc202 has joined #nixos
<teto> tnks: there is sthg like symlinkJoin maybe that could help ?
agander has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @avh4 opened pull request #47651 → elm-format: 0.8.0 -> 0.8.1 → https://git.io/fxTRs
<colemickens> elvishjerricco: that would be really fantastic actually. I wonder how hard that would be to implement.
<adisbladis> The answer is probably "Very"
sir_guy_carleton has quit [Ping timeout: 244 seconds]
<adisbladis> But maybe something that just does "mechanical work" would not be too hard
<adisbladis> Though large parts of a PKGBUILD are not applicable
jasongrossman has joined #nixos
fendor__ has joined #nixos
fendor__ has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @nyanloutre opened pull request #47652 → jackett: 0.10.198 -> 0.10.250 → https://git.io/fxT06
<sphalerite> tnks: yep buildEnv does seem to be what you want
<sphalerite> teto: symlinkJoin uses lndir
agander has joined #nixos
goibhniu has joined #nixos
voiceftp has joined #nixos
periklis has joined #nixos
<teto> arf sry xD
andreabedini has quit [Quit: Textual IRC Client: www.textualapp.com]
FireFly is now known as FaerieFly
Boomerang has joined #nixos
cmacrae has joined #nixos
johanot has joined #nixos
civodul has joined #nixos
Anton-Latukha has joined #nixos
kai_w has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #45320 → nwjs-sdk: init at 0.33.4 → https://git.io/fAvf4
<{^_^}> [nixpkgs] @xeji pushed commit from @yrashk to master « nwjs-sdk: init at 0.33.4 (#45320) »: https://git.io/fxTzC
ThatDocsLady has joined #nixos
Butterfly^ is now known as badumtss
badumtss is now known as Butterfly^
agander has quit [Read error: Connection reset by peer]
<joko> Hey, any news on releasing 18.09?
agander has joined #nixos
Butterfly^ has quit [Changing host]
Butterfly^ has joined #nixos
Butterfly^ has joined #nixos
betaboon has joined #nixos
Butterfly^ has quit [Changing host]
Butterfly^ has joined #nixos
Butterfly^ has joined #nixos
patrl has quit [Ping timeout: 252 seconds]
Zajcev has quit [Ping timeout: 272 seconds]
<srhb> joko: Not yet. :)
<{^_^}> [nixpkgs] @nyanloutre opened pull request #47653 → youtube-dl: 2018.09.18 -> 2018.09.26 → https://git.io/fxTgr
<betaboon> how can i prevent `nixops ssh` from using ~/.ssh/id_rsa ?
<aminechikhaoui> _deepfire: about nixops#1013 I think Rob can review that
<{^_^}> https://github.com/NixOS/nixops/issues/1013 (by deepfire, 3 days ago, open): Route53: `deployment.route53.hostName` case-sensitive and breaks
b1000101 has joined #nixos
<b1000101> hi! has anybody managed to get displaylink working on NixOS? I managed to get it installed, or at least I think I did, by adding services.xserver.videoDrivers = [ "displaylink" ]; to my configuration and doing rebuild-switch. I can use any device connected to the USB hub but the monitors. They don't get recognized in Displays (plasma5)
cmacrae has quit [Ping timeout: 252 seconds]
<sphalerite> b1000101: videoDrivers is for graphics cards
LysergicDreams has quit [Ping timeout: 246 seconds]
<sphalerite> b1000101: displaylink won't actually be a valid value for it. Whether and how this works depends on what graphics card you have and, uh, stuff
iyzsong has joined #nixos
<sphalerite> b1000101: have you got it working on another linux distro?
LysergicDreams has joined #nixos
<b1000101> sphalerite: it seems to be supported on Ubuntu, but no, I did not. However, few of my colleagues just got the same hub and are running Mint so I think I will have to try it on their machines as well :).
<sphalerite> b1000101: it's probably more a matter of the machine that you're plugging it into than the hub
Cale has quit [Remote host closed the connection]
pie__ has joined #nixos
<{^_^}> [nixpkgs] @backuitist opened pull request #47654 → autorandr: 1.6 -> 1.7 → https://git.io/fxT2h
<b1000101> sphalerite: hmmm, any advices on what might I try? When I did add the line to the config, it updated my udev rules. It gets stuck on startup (waiting on udev) for 3mins, then boots. So I guess I got the wrong end of the stick
<sphalerite> yes, almost certainly. What kind of graphics chip do you have in your computer
<sphalerite> ?
__monty__ has joined #nixos
<b1000101> sphalerite: intel uhd graphics 620
<sphalerite> hm right. Intel graphics should be uncomplicated for this sort of thing, and AFAIK should work out of the box :/
pie_ has quit [Ping timeout: 260 seconds]
<b1000101> sphalerite: :(
<b1000101> should be, I know... BTW when tested on precisely the same hardware, Linux Mint / Ubuntu doesn't work out of the box either.
<sphalerite> yeah ok. If they find a way to get it working there, #nixos can probbaly help you adapt that to nixos
<{^_^}> [nixpkgs] @Vskilet opened pull request #47655 → nixos/roundcube: add roundcube module → https://git.io/fxTa8
<sphalerite> but I really don't know anything else to add, except maybe show what the journal says when you plug it in (run journalctl -f, then plug it in)
<clever> sphalerite: and also `udevadm monitor`
<sphalerite> b1000101: ^
* clever returns to bed
sigmundv__ has joined #nixos
sigmundv__ is now known as sigmundv
Cale has joined #nixos
<b1000101> sphalerite: Loads of stuff but I cant see anything related to HDMI / DVI https://pastebin.com/UeKfNkRB https://pastebin.com/gVrTec9b ...sorry for spamming thing like these, I know it's not an NixOS issue so I should probably seek help elsewhere.
philippD has joined #nixos
<{^_^}> [nixpkgs] @edolstra pushed to master « nix: 2.1.2 -> 2.1.3 »: https://git.io/fxTVt
<{^_^}> [nixos-homepage] @edolstra pushed to master « Nix 2.1.3 released »: https://git.io/fxTVq
<{^_^}> [nix] @edolstra pushed 0 commits to refs/tags/2.1.3: https://git.io/fxTVc
<clever> b1000101: i can see the usb keyboard and some kind of receiver, but no trace of the display
<b1000101> clever: Yeap, that's exactly what's happening. Mouse and keyboard are working properly. HDMI nor DVI are read. Even the NIC is working fine.
<b1000101> clever: *HDMI and DVI are dead
patrl has joined #nixos
<b1000101> clever: but when I connect the HDMI straight to the laptop, it works correctly. So I know the monitor is working properly.
<b1000101> clever: hmmm, there's actually something going on when I disconnect/connect the DVI ...
<b1000101> clever: but the udevadm monitor is silent https://pastebin.com/psnut37x
<{^_^}> [nixpkgs] @vcunat pushed to staging-next « ffmpeg: unbreak build of older versions after #46078 »: https://git.io/fxTrd
<clever> b1000101: for my desktop, the xserver locks up solid if i unplug any monitor without warning
<clever> but if i disable it in xfce, its safe
<clever> however, it also enables itself upon plugging in, and then you cant unplug it until you manually disable it!
<b1000101> clever: I've got similar issues in Mint but it's working flawlessly in NixOS in my case
Twey has joined #nixos
carlosdagos has quit [Quit: Connection closed for inactivity]
eliasp has joined #nixos
orivej has joined #nixos
jackdk has quit [Ping timeout: 252 seconds]
seanparsons has quit [Ping timeout: 272 seconds]
ZaraChimera has left #nixos ["No boundaries on the net!"]
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/66fd61163a8 (from 11 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
<philippD> Is there a way to lookup packages by files they provide yet? Everything I could find on that topic are at least two year old threads where the answer was no.
mayhewluke has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @pmiddend opened pull request #47656 → jetbrains: add libnotify to wrapper to enable notifications → https://git.io/fxT6F
seanparsons has joined #nixos
mayhewluke has joined #nixos
<aminechikhaoui> philippD: you mean something like nix-locate ?
<philippD> aminechikhaui: pretty much :D
<philippD> aminechikhaoui: ^
<{^_^}> [nixpkgs] @smaret opened pull request #47657 → gildas: 20180901_a -> 20181001_a → https://git.io/fxTiq
<aminechikhaoui> I think it's also available through a bot in this irc channel
<aminechikhaoui> ,locate libc.so.6
<{^_^}> Found in packages: glibc, clblas, glibc_multi, glibc_memusage, mentorToolchains.armLinuxGnuEabi
<aminechikhaoui> ah nice :D
<philippD> ,locate lmodern.sty
<{^_^}> Found in packages: tetex, lmodern
<aminechikhaoui> you're awesome {^_^}
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
philippD has joined #nixos
<Myrl-saki> TIL nix-locate.
tertl3 has quit [Quit: Connection closed for inactivity]
<Myrl-saki> Oh cool.
blahdodo has quit [Ping timeout: 252 seconds]
<tobiasBora> Hello,
agander has quit [Ping timeout: 268 seconds]
blahdodo has joined #nixos
<tobiasBora> I'm still trying to understand what's wrong with KDE's desktop update. Basically when I install a new program, I can't find the application in the menu, even after a reboot. But if I run kbuildsycoca5, it appears. I was thinking that nixos didn't run kbuildsyscoca5, hence the bug... However it does run it: "sudo nixos-rebuild switch [...] kbuildsycoca5 running... [...]"
<tobiasBora> Any idea what's wrong with that?
<hyper_ch2> ,locate bottle-websocket
<{^_^}> Couldn't find in any packages
<philippD> Hm, it seems nix-locate isn't quite what I want for my usecase. I want to create tool that creates nix expressions that build pdfs from a tex files. The main point is that the expression should also use a minimal texlive package (Since texlive-combined-full is way to big in some contexts). So I need to find out what I have to pass to `texlive.combi
<philippD> ne`
<Mic92> tobiasBora: I remember that I had to delete ~/.data/mime because it contained paths relative to my nix profile
<srhb> philippD: That way more complex, because you could build arbitrarily complex expressions from functions like that.
<philippD> but nix-locate doesn't find `texlive.lm` when searching for `lmodern.sty`
<Mic92> tobiasBora: and I moved kde packages to /etc/nixos/configuration.nix.
<srhb> philippD: Right, it's probably not built by Hydra.
<Mic92> this kde/qt profile fiasco ist still a problem
<tobiasBora> Mic92: all my conf is done from this file already
<tobiasBora> Mic92: and I don't have any .data folder
<philippD> srhb: So I have to index all texlive packages myself -.-
<srhb> philippD: Afraid so, yes.
<srhb> philippD: At least, *someone* has to do the work.
<srhb> philippD: We have no way of knowing in advance what files a given expression produces.
<philippD> srhb: right, but all expressions for texlive packages have the same structure
<srhb> philippD: Yes. There's no fundamental reason that we couldn't build them all on Hydra (except it's a lot of work)
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/0a198954beb (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<philippD> srhb: can you point me to a source that indexes nix packages? So, I don't have to write that stuff from scratch.
<srhb> philippD: nix-locate is probably your best bet to get started, though I believe it's hardcoded to check Hydra for the files.
<srhb> philippD: essentially you'll have to build every package in texlive, wich should be so hard (conceptually combine with each of them, and search the resulting out path)
<srhb> iow indexing is as simple as using "find" on every result symlink that you get from building every texlive package.
<srhb> philippD: You could also possibly just look at the symlinks from building one giant texlive combination.
<hyper_ch2> hmmm, can I point in a python3 project as build input python27 package?
<Myrl-saki> I saw this gem in python-packages.nix
<Myrl-saki> isPy3k = strings.substring 0 1 python.pythonVersion == "3";
<{^_^}> [nixpkgs] @nyanloutre opened pull request #47659 → WIP emby: 3.5.2.0 -> 3.5.3.0 and migration from mono to dotnet → https://git.io/fxT1p
<hyper_ch2> Myrl-saki: I don't know what that does
<Myrl-saki> hyper_ch2: It checks if it's Python 3.0 by getting the first character in the version.
<philippD> srhb: looking at the texlive nix expressions in nixpkgs I could also just pull down all of the tarballs manually and inspect them. Might be faster then combining with each package
<Myrl-saki> hyper_ch2: Also, that wasn't meant as a reply to you. :P
<Myrl-saki> Just in case.
<hyper_ch2> Myrl-saki: ah ok :)
<hyper_ch2> trying to update deda...it now comes with a gui and one of the deps is only packaged at 2.7 :(
<srhb> philippD: Indeed, it might. :)
<Myrl-saki> hyper_ch2: Just a little bit of history. Windows 10 went from 8 to 10, because there are programs that check for Windows 95/98 by checking if the first character is "9"
<Myrl-saki> hyper_ch2: Just thought that it's funny to see the same thing in Nixpkgs.
<hyper_ch2> Myrl-saki: :)
<Myrl-saki> # Convert derivation to a Python module.
<Myrl-saki> What does this mean?
simukis has joined #nixos
<srhb> Myrl-saki: It looks pretty clear. It adds a number of things to passthru that are expected for python modules, apparently.
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<Myrl-saki> srhb: FWIW, I don't write Python.
<Myrl-saki> Well, I don't manage Python projects, at the very least. I can at least write Python.
<srhb> Myrl-saki: I don't think it has anything to do with a "module" in the python sense. It's a python module in the sense that nixpkgs views a python module (apparently) as something that has those attributes.
<Myrl-saki> srhb: Ah, thanks. I did a quick search and also found "module" in Python's manual.
<Myrl-saki> But I wasn't sure how passthru was related.
<srhb> Right, it's just something we're using internally. search for pythonModule in the same file for instance
reinzelmann has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @globin merged pull request #47654 → autorandr: 1.6 -> 1.7 → https://git.io/fxT2h
<{^_^}> [nixpkgs] @globin pushed commit from @backuitist to master « autorandr: 1.6 -> 1.7 »: https://git.io/fxTDf
johanot has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @globin merged pull request #47653 → youtube-dl: 2018.09.18 -> 2018.09.26 → https://git.io/fxTgr
<{^_^}> [nixpkgs] @globin pushed commit from @nyanloutre to master « youtube-dl: 2018.09.18 -> 2018.09.26 »: https://git.io/fxTDT
<{^_^}> [nixpkgs] @globin merged pull request #47652 → jackett: 0.10.198 -> 0.10.250 → https://git.io/fxT06
<{^_^}> [nixpkgs] @globin pushed commit from @nyanloutre to master « jackett: 0.10.198 -> 0.10.250 »: https://git.io/fxTDL
agander has joined #nixos
johanot has joined #nixos
philippD has joined #nixos
philippD has quit [Client Quit]
<colemickens> I need to install a newer version of the rtl8152 driver than is in the mainline kernel right now.
<colemickens> If I make a package for it, I get a collision error during the package build, if I use another rtl package as a rough template.
<colemickens> Any tips?
philippD has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed to staging-next « firefox: drop patch that's applied already »: https://git.io/fxTyE
<etu> colemickens: Maybe you have to disable the one that the kernel ship?
johanot has quit [Ping timeout: 252 seconds]
johanot has joined #nixos
<colemickens> That seems like it would work. I'd love to avoid having to rebuild the kernel though.
<{^_^}> [nixpkgs] @vdemeester opened pull request #47660 → traefik: 1.7.0 -> 1.7.1 → https://git.io/fxTyM
<colemickens> plus, if I go that route, I'd probably just replace the one in the kernel tree directly anyway rather than make another package to include
<{^_^}> [nixpkgs] @xeji merged pull request #47633 → gen-oath-safe: 2017-06-30 -> 0.11.0 → https://git.io/fxUjn
<{^_^}> [nixpkgs] @xeji pushed commit from @makefu to master « gen-oath-safe: 2017-06-30 -> 0.11.0 (#47633) »: https://git.io/fxTy7
<colemickens> It's weird. The realtek driver in tree is authored by Realtek but they haven't submitted the updated version I guess?
<colemickens> Looks like it needs udev rules too. I might be a bit out of my depth. Might open an issue.
<{^_^}> [nixpkgs] @xeji merged pull request #47657 → gildas: 20180901_a -> 20181001_a → https://git.io/fxTiq
<{^_^}> [nixpkgs] @xeji pushed commit from @smaret to master « gildas: 20180901_a -> 20181001_a (#47657) »: https://git.io/fxTyp
kiloreux has quit [Ping timeout: 268 seconds]
Kelppo has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #47638 → pythonPackages.trio: 0.6.0 -> 0.7.0 → https://git.io/fxTLh
<{^_^}> [nixpkgs] @xeji pushed commit from @catern to master « pythonPackages.trio: 0.6.0 -> 0.7.0 (#47638) »: https://git.io/fxTS8
<{^_^}> [nixpkgs] @xeji merged pull request #47634 → libcanberra: fix darwin build → https://git.io/fxTvm
<{^_^}> [nixpkgs] @xeji pushed commit from @knedlsepp to master « libcanberra: fix darwin build (#47634) »: https://git.io/fxTS1
<{^_^}> [nixpkgs] @xeji pushed commit from @knedlsepp to release-18.09 « libcanberra: fix darwin build (#47634) »: https://git.io/fxTSS
blahdodo has quit [Ping timeout: 260 seconds]
kiloreux has joined #nixos
silver has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/2c9265c9507 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @romildo opened pull request #47661 → theme-obsidian2: fix theme name in index.theme → https://git.io/fxT9R
patrl has quit [Ping timeout: 252 seconds]
blahdodo has joined #nixos
iyzsong has quit [Ping timeout: 268 seconds]
b1000101 has quit [Ping timeout: 256 seconds]
<teto> I wanna write a test that makes sure a certain expression asserts . is that possible in nixpkgs?
<LnL> you can use builtins.tryEval
<Myrl-saki> nix-repl> builtins.tryEval "[] + 1"
<Myrl-saki> { success = true; value = "[] + 1"; }
reinzelmann has joined #nixos
Zajcev_ has joined #nixos
<gchristensen> > builtins.tryEval ([] + 1)
<{^_^}> cannot coerce a list to a string, at (string):196:19
fendor__ has joined #nixos
<gchristensen> since nix is lazy, the rhs won't be evaluated until it is forced, which tryEval will do
<{^_^}> [nixpkgs] @peti pushed to master « nixos: include system-level dconf resources in GDM's profile »: https://git.io/fxTQl
<Myrl-saki> gchristensen: Ohh
<Taneb> > builtins.tryEval (assert false; 0)
<{^_^}> { success = false; value = false; }
<Taneb> > builtins.tryEval (assert true; 0)
<{^_^}> { success = true; value = 0; }
<Profpatsch> Since I still haven’t found out yet: What’s the best way to advance a commit pin of nixpkgs?
blahdodo has quit [Ping timeout: 252 seconds]
<Mic92> Profpatsch: not sure if it is the best, but there is a tool called nix-pin, never tried it however.
<Profpatsch> It should be around a commit C that contains the features I need and have the property that it has full hydra.nixos.org binary caches for Darwin and Linux.
<Profpatsch> Maybe cc aszlig ^
<manveru> i usually just get the latest nixpkgs-unstable...
<gchristensen> oh cool, my blog post on docker layer optimisation is on the frontpage of HN
<__red__>  gratz gchristensen
<manveru> the ways of HN are mysterious
<manveru> but it somehow got 54 points :D
Phillemann has joined #nixos
<gchristensen> manveru: I got an email yesterday afternoon saying a moderater saw my post, thought it was pretty great, and put it in a "re-up" pool which automatically throws it on the front page randomly in the next 48hrs.
<Phillemann> I'm getting "Unknown distribution option: 'console_scripts'" when I execute "python setup.py build"
<manveru> sweet
<Phillemann> Did anything change wrt. Python packaging?
<gchristensen> yeah, was nice -- it fell off /new within like 30min yesterday
<__red__> gchristensen: "Or to use a real example, Nix itself can render a graph of a package’s dependencies"
<__red__> so I knew that nix was a graph, but I didn't know I could get a graphviz visualization of it
<__red__> is there a command that does this already?
Phillemann has left #nixos ["WeeChat 2.2"]
<aminechikhaoui> __red__: man nix-store should have some examples I think
smolboye has quit [Ping timeout: 240 seconds]
<__red__> thanks
<jasongrossman> gchristensen: Great!
<jasongrossman> gchristensen: It's number 15 on the front page now.
sevanspowell has quit [Ping timeout: 256 seconds]
<shreyansh_k> guys, what is the difference between firefox, firefoxWrapper and firefox-wrapper? Which one should I install?
<symphorien> they are (legacy ?) aliases of one another
<symphorien> use firefox :)
<Yaniel> IIRC firefox is built from source, firefoxWrapper is a wrapper around the binary from mozilla
<Yaniel> or was
<symphorien> I thought this was firefox-bin
<Yaniel> hm, might be
<symphorien> the wrapper is for native plugins (for extensions of flash)
kreetx has joined #nixos
<symphorien> s/of/or/
<kreetx> on the new macOS I get this error: dyld: "Symbol not found: ___CFObjCIsCollectable Referenced from: /nix/store/79x43vkf7r0hhyd7h6xy7kipyv9j5kj8-libsecurity_utilities-osx-10.7.5/lib/libsecurity_utilities.0.dylib
<kreetx> Expected in: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
<kreetx> in /nix/store/79x43vkf7r0hhyd7h6xy7kipyv9j5kj8-libsecurity_utilities-osx-10.7.5/lib/libsecurity_utilities.0.dylib
<kreetx> "
<kreetx> I reinstalled nix yesterday, and also found a "tarball" :) on github here https://github.com/NixOS/nix/issues/2244, but haven't tried that yet
<{^_^}> nix#2244 (by bemeurer, 14 weeks ago, closed): Installing on macOS Mojave fails
<shreyansh_k> any pointers on how can I install plugins with firefox? like plasma-browser-extension or flash.
<kreetx> I have been able to use nix on my system, it's only an http requst I do from wreq in haskell that brings this up
<kreetx> so I would guess something it uses from macOS is not available there
<manveru> kreetx: was that after the upgrade to mojave?
<kreetx> yes
<manveru> you might get more answers in #nix-darwin :)
<Myrl-saki> Okay, this is weird.
<manveru> but i think you have to upgrade nix before upgrading the OS
<Myrl-saki> I can ping 8.8.8.8, but cant' seem to dns lookup with it.
<kreetx> manveru: after installing mojave and discovering that things don't work I completely wiped and reinstalled nix
<kreetx> it mostly works, I get my cabal new-repl running and all
<Myrl-saki> So, the way this goes is
<Myrl-saki> Laptop -> Router -> Desktop -> Phone -> WAN
<Mic92> shreyansh_k: something like `config.firefox.enableAdobeFlash = true;` in ~/.config/nixpkgs/config.nix
<kreetx> but thanks manveru -- will try the other channel!
<clever> Myrl-saki: how are you testing dns lookup?
<Myrl-saki> `dig`
<Myrl-saki> [myrl@myrl-lappy:~]$ dig google.com
<Myrl-saki> I used networking.nat on my desktop.
<Mic92> dig google.com @8.8.8.8
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<Mic92> and then checkout the actual resolver in /etc/resolv.conf
<Myrl-saki> And can confirm that I am connected to WAN on my laptop because I'm SSHing to my VPS on my laptop.
<Myrl-saki> ; <<>> DiG 9.12.2 <<>> google.com @8.8.8.8
<Myrl-saki> ;; global options: +cmd
<Myrl-saki> ;; connection timed out; no servers could be reached
<Myrl-saki> Okay, huh.
<clever> Myrl-saki: use tcpdump pn port 53 of the NAT box, on both interfaces
<clever> see what comes in, and goes out, and if a reply comes in, and goes out
<Mic92> tcpdump -i any port 53 -n
<Myrl-saki> Thanks. Never used that before.
<clever> i prefer 2 tcpdumps with seperate -i's, so i know which interface a given packet is on
blahdodo has joined #nixos
<Myrl-saki> Nothing on my LAN.
<Myrl-saki> Is it possible that my router is gobbling it?
<clever> maybe
<Myrl-saki> [myrl@myrl-lappy:~]$ sudo ip route
<Myrl-saki> [sudo] password for myrl:
<Myrl-saki> default via 192.168.2.101 dev wlp2s0
<clever> `ip route` doesnt need root
<Mic92> ip route get 8.8.8.8
<clever> run the tcpdump on every interface along the path, and see where the packet gets lost
<Myrl-saki> 8.8.8.8 via 192.168.2.101 dev wlp2s0 src 192.168.2.102 uid 0
<Mic92> can you ping 192.168.2.101 ?
<clever> what is .2.101?
<Mic92> `ip neigh` shows where your computer thinks 2.101 is.
<Mic92> lladdr should be the mac address of your router's network interface
<Myrl-saki> 2.101 is my desktop.
<Myrl-saki> At least in theory.
<clever> Myrl-saki: does `ip neigh` agree with that theory?
<clever> `ip addr` will show the mac
<Myrl-saki> `ip neigh` on my laptop `and ip link` on my desktop agrees.
<Mic92> ok. then can you see the packets on your desktop?
<Mic92> and is forwarding enabled there?
<Myrl-saki> What port is `ping`?
<clever> Myrl-saki: its not tcp or udp
<Mic92> Myrl-saki: it is icmp
<clever> just use `icmp` in the filter for tcpdump
<Myrl-saki> sudo tcpdump -i enp3s0 icmp -n ?
<Mic92> correct
<Myrl-saki> Okay, I did the ping, and it shows on tcpdump.
<Myrl-saki> I think it's pretty safe to say that it's my router.
<Mic92> well does the desktop also fowards it?
<Mic92> you should see incoming packets and outgoing ones.
<clever> tcpdump the lan and wan interfaces of the desktop, and ping something it should forward
<Myrl-saki> Yeah, I see "request/reply" on the tcpdump output.
<clever> and confirm its forwarding
<clever> ping an external addr and check that next
<Myrl-saki> Yep, I went straight to external.
<Myrl-saki> [myrl@myrl-lappy:~]$ ping 8.8.8.8
<clever> now try again with dig, and set the filter to `port 53` and see if it does the same thing
<Myrl-saki> Nope.
<clever> can you pastebin all of the tcpdump outputs?
<Myrl-saki> On the phone link, I could actually see my desktop's DNS requests, so there's that.
patrl has joined #nixos
<Myrl-saki> clever: Literally no output, except for info.
<Myrl-saki> tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
<Myrl-saki> listening on enp3s0, link-type EN10MB (Ethernet), capture size 262144 bytes
<clever> Myrl-saki: can you confirm the 53 is going out on the machine that ran dig?
orivej has quit [Ping timeout: 252 seconds]
<Myrl-saki> Yep.
lingeeal has joined #nixos
<clever> Myrl-saki: do that tcpdump with -v and then paste the line it shows
<Myrl-saki> 0:11:52.107542 IP (tos 0x0, ttl 64, id 25336, offset 0, flags [none], proto UDP (17), length 79)
<Myrl-saki> 192.168.2.102.49863 > 8.8.8.8.53: 18469+ [1au] A? google.com. (51)
<clever> double checking the man pages...
<clever> we wanted -e, not -v
<Myrl-saki> 20:13:19.429582 Out 60:6d:c7:c7:c5:f1 ethertype IPv4 (0x0800), length 95: 192.168.2.102.33017 > 8.8.8.8.53: 15881+ [1au] A? google.com. (51)
<clever> and which machine has the mac 60:6d:c7:c7:c5:f1 ?
<Myrl-saki> My laptop.
<clever> was that cmd ran on the laptop?
<Myrl-saki> Yep.
<clever> that tcpdump output doesnt look entirely right
<clever> 09:12:56.455398 40:16:7e:b3:32:48 > 00:30:48:c5:d2:df, ethertype IPv4 (0x0800), length 93: 192.168.2.15.43266 > 192.168.2.1.53: 16612+ [1au] A? google.com. (51)
<clever> mine shows 2 macs
<clever> [root@amd-nixos:~]# tcpdump --version
<clever> tcpdump version 4.9.2
<Myrl-saki> [myrl@myrl:~]$ tcpdump --version
<Myrl-saki> tcpdump version 4.9.2
<Myrl-saki> Hm.
<clever> i used `tcpdump -i enp3s0 -p -n port 53 -e`
<Myrl-saki> Should we try netcat?
<teto> LnL: awesome thanks !
<clever> netcat wont shows macs
<Myrl-saki> Right, but it will tell us if I can connect to port 53 on my desktop from my laptop.
<clever> 53 is udp, netcat is mostly tcp
<Myrl-saki> Anyways, with the same flags, I get two MAC addresses. Posting.
<tobiasBora> Hum... I tried to install source-code-pro, and to update fonts using "sudo fc-cache -fv", but this font isn't detected by spacemacs... Any idea what's going wrong?
<Myrl-saki> 20:16:54.600570 60:6d:c7:c7:c5:f1 > 9c:5c:8e:87:a2:17, ethertype IPv4 (0x0800), length 93: 192.168.2.102.36781 > 8.8.8.8.53: 47393+ [1au] A? google.com. (51)
blahdodo has quit [Ping timeout: 252 seconds]
<clever> Myrl-saki: and which machine is 9c:5c:8e:87:a2:17 ?
<Myrl-saki> 192.168.2.101 dev wlp2s0 lladdr 9c:5c:8e:87:a2:17 REACHABLE
<Myrl-saki> So my desktop.
<clever> now run a similiar tcpdump on wlp2s0 of the desktop
<clever> does it see the packet coming in?
<Myrl-saki> Nope.
seanparsons has quit [Ping timeout: 244 seconds]
<Myrl-saki> FWIW, this goes through 2 machines physically.
<Myrl-saki> Laptop -> Router -> WAN router(which currently has no WAN) -> Desktop
<clever> Myrl-saki: oh, this might be anti-wardriving tech
<Myrl-saki> I have SSH connection to router.
<clever> Myrl-saki: none of your machines are allowed to talk to eachother, because the router thinks any one of them is an attacker on the street
<Myrl-saki> Let me check if it has tcpdump.
<clever> my ISP router refuses to let wifi machines talk to wired machines
<clever> so nfs and ssh are useless
<Myrl-saki> clever: They can SSH though.
<Myrl-saki> I think they just can't DNS specifically.
<clever> not sure then
<clever> the router may be doing funky things with port 53
<clever> this is why i never use routers i cant control
<Myrl-saki> Yeah, that's also my guess.
<clever> #nixos-on-your-router !
<clever> (thats a real irc channel)
<Myrl-saki> And lol, I was going to say that.
<Myrl-saki> clever: FWIW, I'm looking at SBCs for a router right now. :)
hellrazor has joined #nixos
<__red__> speaking of nixos in fun places - anyone here gotten nixos to run on an odroid HC-2?
<Myrl-saki> Okay...
<__red__> it's my favorite SBC by a mile
<Myrl-saki> The SSH option on my router just went missing.
<Myrl-saki> Wat
<Myrl-saki> Oh, found it.
<__red__> I have 24Tb of storage attached to my cluster of them :-)
<Myrl-saki> clever: admin@RT-N12+:/tmp/home/root# tcpdump
<Myrl-saki> -sh: tcpdump: not found
<Myrl-saki> clever: I guess this is where it ends. :P
seanparsons has joined #nixos
<clever> Myrl-saki: what about `iptables-save` ?
<clever> which may need root
<Myrl-saki> admin@RT-N12+:/tmp/home/root# iptables
<Myrl-saki> iptables v1.4.12.1: no command specified
<Myrl-saki> And yeah, iptables-save also exists.
<clever> what does it output?
<Myrl-saki> No curl on my router. Wow.
<clever> `ssh root@router iptables-save | curl ...`
<Myrl-saki> ssh is also dead.
<Myrl-saki> (That's telnet)
<Myrl-saki> Oh. Found it lol
<Myrl-saki> -A PREROUTING -p udp -m udp --dport 53 -j DNAT --to-destination 192.168.2.2:53
<Myrl-saki> http://ix.io/1o6m
<Myrl-saki> God, why.
<clever> thats in the nat table, so it should only take effect when doing nat
<Myrl-saki> Hm.
<clever> but you can still try removing it, `iptables -t nat -D PREROUTING -p udp -m udp --dport 53 -j DNAT --to-destination 192.168.2.2:53` i think
<Myrl-saki> Yeah, still doesn't work. I thought I figured it out. :c
smolboye has joined #nixos
<Myrl-saki> Welps.
<Myrl-saki> It's okay.
<Myrl-saki> Not really keen on trying to get this fixed.
<Baughn> clever: How's the NixOS container code doing lately? Is it more robust than it used to be?
<Baughn> (It used to not restart them on system upgrades.)
<clever> Baughn: havent done much with it lately, i heard it does now
<Baughn> I should give it a poke, then. Looking for some way to isolate a K8s node that isn't qemu.
seanparsons has quit [Ping timeout: 252 seconds]
<Baughn> Hmm. That's assuming iptables works. ... Well, worth a shot.
<lingeeal> can I somehow install a package and also automatically add to configuration.nix? similar to npm i pkg --save which add the package to packages.json
<lingeeal> I want to install this package nix-env -iA nixpkgs.haskellPackages.ghcid for example
Kelppo has quit []
<clever> lingeeal: just add pkgs.haskellPackages.ghcid to the systemPackages and nixos-rebuild switch
agander has quit [Read error: Connection reset by peer]
Thra11 has joined #nixos
agander has joined #nixos
<lingeeal> thanks clever
fendor__ has quit [Remote host closed the connection]
fendor__ has joined #nixos
Rusty1 has joined #nixos
nico202 has joined #nixos
<nico202> I broke NixOS .-. my user isn't anymore in sudoers. I added it with a liveusb, sudo nixos-rebuild switch gives `the group 'nixbld' specified in 'build-users-group' does not exist`
fendor__ has quit [Ping timeout: 240 seconds]
<nico202> I think I need to reinstall from live, or anybody knows what to do?
<symphorien> nico202: do you have any old generations you can boot from ?
wucke13 has joined #nixos
<symphorien> (where you are in sudoers)
<wucke13> Hello, I'm writing a package for a nwjs application, which has a lot of npm dependencies. How can I get all the needed dependencies there?
Maxdamantus has quit [Ping timeout: 260 seconds]
Maxdamantus has joined #nixos
<nico202> symphorien: It happened after installing another system on another partition, I thought I just damaged the drive so I've not tried older generations. But yeah I should try, I also have `system.copySystemConfiguration = true` so I might be safe.. Let's try thanks
nico202 has quit [Quit: Leaving]
iyzsong has joined #nixos
<symphorien> to check the drive you can (as root) run nix-store --verify --check-contents iirc
agander has quit [Ping timeout: 245 seconds]
blahdodo has joined #nixos
agander has joined #nixos
nico202 has joined #nixos
<nico202> nope, no generation works
<symphorien> does not work as in ?
<clever> nico202: you can use e in grub to edit the init= and change it to init=/bin/sh and then it will just give you a root shell without any login
<nico202> clever: yes but then how do I fix it? Should I use useradd?
fendor__ has joined #nixos
<nico202> I have root access to this partition files from the other system, but even adding me to sudoers was useless because I still cannot rebuild it
<nico202> (without nixbld)
<clever> nico202: edit configuration.nix and nixos-rebuild
<clever> nico202: also check `nix-store --verify --check-contents`
seanparsons has joined #nixos
<nico202> thanks I'll try, but I don't think it's a problem in the configuration since I did just small changes this week
<clever> nico202: every time nixos boots, it will re-sync /etc/passwd and /etc/group with the current config
<clever> so a reinstall isnt really needed
<betaboon> what is required to configure a nixos-machine to be truly headles (no x-dependencies etc) ?
<nico202> I'll wait for `nix-store --verify --check-contents`
<betaboon> clever: what about those nixpkgs/nixos/modules/profiles/{minimal,headless}.nix ?
<betaboon> i can't find any documentation on those it seems ?
asymmetric has joined #nixos
hellrazor has quit [Quit: WeeChat 2.2]
Itkovian has joined #nixos
<clever> betaboon: those are just collections of options you may want to enable
<clever> betaboon: you can add <nixpkgs/nixos/modules/profiles/headless.nix> to your imports for ex
<betaboon> was just about to as for that :D
<betaboon> would it be advicable to include both minimal and headless (eg for ec2 nodes) ?
<clever> betaboon: should be fine to enable both
<betaboon> ah and noxlib is not being built by cache.nixos.org's hydra, huh ?
<clever> correct
jD91mZM2 has joined #nixos
<betaboon> well i guess i gonna wait until i have hydra setup then :D
<betaboon> thanks for the input thu
<betaboon> *tho
mayhewluke has quit [Ping timeout: 268 seconds]
blahdodo has quit [Ping timeout: 244 seconds]
mayhewluke has joined #nixos
<asymmetric> hey! does anyone know if the nixpkgs-mozilla overlay can be used to stay up-to-date with firefox nightly?
kiloreux has quit [Ping timeout: 268 seconds]
kiloreux has joined #nixos
Twey has quit [Ping timeout: 268 seconds]
<{^_^}> [nix] @Profpatsch opened pull request #2464 → manual: add XML IDs to all builtin list entries → https://git.io/fxkU9
Twey has joined #nixos
Ariakenom_ is now known as Ariakenom
nckx has joined #nixos
<{^_^}> [nix] @edolstra pushed 2 commits to master: https://git.io/fxkTo
<{^_^}> [nix] @edolstra merged pull request #2464 → manual: add XML IDs to all builtin list entries → https://git.io/fxkU9
patrl has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #47661 → theme-obsidian2: fix theme name in index.theme → https://git.io/fxT9R
<{^_^}> [nixpkgs] @xeji pushed commit from @romildo to master « theme-obsidian2: fix theme name in index.theme (#47661) »: https://git.io/fxkk0
<{^_^}> [nixpkgs] @xeji merged pull request #47635 → csv2svn: 2.4.0 -> 2.5.0 → https://git.io/fxTJM
<{^_^}> [nixpkgs] @xeji pushed commit from @makefu to master « csv2svn: 2.4.0 -> 2.5.0 (#47635) »: https://git.io/fxkka
fendor__ is now known as fendor
ThatDocsLady has quit [Remote host closed the connection]
<fendor> how can i see documentation of nix functions?
<fendor> such as fetchGit?
ThatDocsLady has joined #nixos
ajs124 has quit [Quit: Gateway shutdown]
<{^_^}> [nixpkgs] @xeji merged pull request #47639 → cpan2nix updates → https://git.io/fxTte
<{^_^}> [nixpkgs] @xeji pushed 47 commits to staging: https://git.io/fxkIe
ajs124 has joined #nixos
<Myrl-saki> clever: I forgot that tcpdump was running for like 1h30m. Unsurprisingly, there were still no packets.
<clever> heh
<clever> ive discovered a tcpdump i left running for 3 months, and it was writing to disk
<Myrl-saki> lol
<{^_^}> [nixpkgs] @xeji merged pull request #47660 → traefik: 1.7.0 -> 1.7.1 → https://git.io/fxTyM
<{^_^}> [nixpkgs] @xeji pushed commit from @vdemeester to master « traefik: 1.7.0 -> 1.7.1 (#47660) »: https://git.io/fxkI4
<Myrl-saki> clever: Like, `tcpdump ... > foo`?
<clever> tcpdump -w file
<Myrl-saki> clever: What was the file size by the end of it?
<clever> 20 or 30gig
<Myrl-saki> lol
<Myrl-saki> clever: Was this under ZFS('cuz compression and stuff)
<clever> ext4
<Myrl-saki> clever: Now I want to generate a 30 GB lorem ipsum on ZFS, then --apparent-size.
<Myrl-saki> Give me a few.
<jD91mZM2> fendor: I don't think there is documentation for all functions like that. Best you can get is `man configuration.nix`... I think
<{^_^}> [nixpkgs] @xeji merged pull request #47650 → jetbrains.idea-community: add IntelliJ keyword to the longDescription → https://git.io/fxT8d
<{^_^}> [nixpkgs] @xeji pushed commit from @Ekleog to master « jetbrains.idea-community: add IntelliJ keyword to the longDescription (#47650) »: https://git.io/fxkLJ
<jD91mZM2> I'll eat my words, just remembered that fetchGit is a builtin: https://nixos.org/nix/manual/#ssec-builtins
<fendor> so, there is only a documentation for builtin function?
<{^_^}> [nixpkgs] @xeji pushed commit from @Ekleog to release-18.09 « jetbrains.idea-community: add IntelliJ keyword to the longDescription (#47650) »: https://git.io/fxkLW
<fendor> can i not document my expressions somehow?
<fendor> like parameters, e.g.?
<clever> fendor: commends work in nix expressions, #
agander_ has joined #nixos
<fendor> clever, then i can read the file, but i can not generate some kind of documentation nor in the repl read the signature or something like that
<clever> yeah, nothing like that
<{^_^}> [nixpkgs] @Synthetica9 opened pull request #47662 → wmfocus: init at 1.0.2 → https://git.io/fxkt2
agander has quit [Ping timeout: 252 seconds]
agander_ is now known as agander
<fendor> i think something like that would make sense to ease the entry barrier for beginners learning the language.
agander_ has joined #nixos
agander has quit [Ping timeout: 268 seconds]
jperras has joined #nixos
keks has joined #nixos
blahdodo has joined #nixos
<keks> hi all. I've run into https://github.com/NixOS/nixpkgs/issues/40706. As far as I can see, nix doesn't really allow using cmake for Qt development at the moment? Or do you see a workaround?
<{^_^}> #40706 (by lucas8, 19 weeks ago, open): Broken cmake file with Qt5.10 full
<keks> the issue is that cmake tries to find all qt plugins in the tree of qtbase, instead of the respecive plugin's tree
Friedem has joined #nixos
<Friedem> Hi guys! I am trying to figure out if Nix is a good solution for an issue we are having and wondering if anyone here could help
agander__ has joined #nixos
<symphorien> please ask :)
<Friedem> I want to set up a reproducible/isolated build environment to crosscompile targeting i586
<Myrl-saki> Friedem: i586?
<Friedem> And my final build output actually needs to be the file system of the built binaries as well as libraries
<Myrl-saki> Friedem: Got a specific CPU model in mind?
agander_ has quit [Ping timeout: 268 seconds]
erasmas has joined #nixos
<symphorien> there has been a lot of work on cross compilation lately, see https://matthewbauer.us/blog/beginners-guide-to-cross.html
<symphorien> and there is a function in nixpkgs to make a squashfs out of a list of derivations https://github.com/NixOS/nixpkgs/blob/5f5905e30e86db1ac72b98f41873f63606418cfa/nixos/lib/make-squashfs.nix
<Friedem> I'm not sure the exact CPU model
iyzsong has quit [Ping timeout: 268 seconds]
<symphorien> so it seems reasonnable to try to use nix to do this
<Myrl-saki> Friedem: I may have done something wrong, but I cross compiled a static i686 binary and it didn't run on jslinux.
<Myrl-saki> Let me go try it out again.
<Friedem> is it possible to say "pull a version of git which targets i586"
<symphorien> I guess you will have to define a cross compilation target
<Myrl-saki> Friedem: FWIW, Nixpkgs uses i686 for x86_32, I'm not sure if that actually matters.
blahdodo has quit [Ping timeout: 252 seconds]
<symphorien> there is only i686 by default
<Myrl-saki> (But it did for me.)
<Friedem> i686 has some instructions which are not supported in i586 :(
<manveru> Friedem: i think as mentioned in the blog post above, you can set your own llvm triple
<Dezgeg> i586? really?
<manveru> does anyone still make i586? that's like over 20 years ago?
<symphorien> the real problem is that it is mostly undocumented territory
<Dezgeg> I guess it could be the intel galileo
<manveru> hm, `error: Unknown CPU type: i586`
<Myrl-saki> Ugh, I forgot how to properly enable static on nixpkgs.
<Myrl-saki> nix-build -E '(import <nixpkgs> {}).pkgsi686Linux.hello.overrideAttrs (_: { dontDisableStatic = true; })'
<Friedem> Well at least we moved on from i486... lol
<Myrl-saki> Is there a stdenv adapter for this?
<Myrl-saki> There's makeStaticBinaries.
<manveru> `makeStaticLibraries stdenv`
fendor has quit [Ping timeout: 252 seconds]
<Myrl-saki> manveru: Yes, but how?
<Myrl-saki> I'm currently trying this out.
<Myrl-saki> nix-build -E '(let pkgs = import <nixpkgs> { config.overridePackages = { stdenv = null; }; }; in pkgs).pkgsi686Linux.hello.overrideAttrs (_: { dontDisableStatic = true; })'
<manveru> setting `stdenv` to that in an overlay maybe?
<manveru> also... who on earth named `dontDisableStatic`... :P
<Myrl-saki> I have no idea.
<Dezgeg> well for i686 no cross compilation needed, just pass --argstr system i686-linux
<Myrl-saki> manveru: It does have the advantage of starting with a `do` though.
<Myrl-saki> manveru: For consistency with build-time flags.
<Myrl-saki> with other*
<manveru> `doEnableStatic` :)
<Myrl-saki> Yeah, that's also what I was thinking, but that's also kinda funny. :P
<manveru> double negatives make my brain hurt
<Myrl-saki> manveru: Even better if someone asks a negative question. You don't know whether to answer negatively or positively. :P
aanderse has joined #nixos
<manveru> usually i just rephrase the question positive then :)
<Myrl-saki> What the fuck. I just realized I didn't have to do the fix magic, because packageOverrides provides `pkgs` either way.
<Myrl-saki> error: infinite recursion encountered, at (string):1:73
<Myrl-saki> By doing '(let pkgs = import <nixpkgs> { config.packageOverrides = (_: { inherit (pkgs) stdenv; }); }; in pkgs).pkgsi686Linux.hello.overrideAttrs (_: { dontDisableStatic = true; })'
<Myrl-saki> But _: is pkgs:
<aanderse> i'm trying to make a nixos package. the contents of the package can be downloaded via a zip file, but the zip file contains another zip file with the binaries. i'm trying to think the best way to go about this. the unpackCmd?
<Myrl-saki> Where's dontDisableStatic though.
<Myrl-saki> Er, wait, I'm stupid. I mixed things up.
<Myrl-saki> nix-build -E '(import <nixpkgs> { config.packageOverrides = (pkgs: { stdenv = pkgs.makeStaticBinaries pkgs.stdenv; }); }).pkgsi686Linux.hello'
<Myrl-saki> Going with this.
<Myrl-saki> And it doesn't work.
<Myrl-saki> checking whether the C compiler works... no
<Myrl-saki> configure: error: in `/build/hello-2.10':
<Myrl-saki> configure: error: C compiler cannot create executables
<Myrl-saki> Welps.
<Myrl-saki> TBF.
<Myrl-saki> nix run nixpkgs.pkgsCross.musl32.hello
<Myrl-saki> musl has better cross compilation support anyway.
<Dezgeg> why do you think so?
<Myrl-saki> s/cross/static/
<Myrl-saki> Dezgeg: I meant static, sorry.
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/0d8c62c15c9 (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
Friedem has quit [Ping timeout: 256 seconds]
<tilpner> And yet... file $(nip pkgsCross.musl64.hello)/bin/hello => "dynamically linked"
<Myrl-saki> tilpner: lol
<Myrl-saki> I guess the pragmatically correct way is to follow the buildInputs, changing them to all enable static.
<symphorien> packageOverrides = pkgs: mapAttrs enableStatic pkgs ?
<Myrl-saki> symphorien: Hm
<symphorien> this would break at least because of non derivation attrs
<clever> and curl
<Myrl-saki> symphorien: The problem with that is that also interferes with
<Myrl-saki> Yeah.
<Myrl-saki> And gcc.
<clever> curl has to use a bootpkgs curl, to be able to fetch itself
<Myrl-saki> stdenv is too... used.
<Myrl-saki> :x
<Myrl-saki> And not all packages know the difference between buildInputs and nativeBuildInputs.
<Myrl-saki> Wait, when was nativeBuildInputs introduced?
<manveru> oh damn, friedem is gone already :(
<Myrl-saki> manveru: He got scared away.
<manveru> oh well
<manveru> had a patch to add i586 support, not sure if it's totally correct though
<Myrl-saki> FWIW, is there anything that we couldn't represent without pkgsCross?
<{^_^}> [nixpkgs] @thoughtpolice merged pull request #46946 → verilator: 3.926 -> 4.002 → https://git.io/fAHje
<{^_^}> [nixpkgs] @thoughtpolice pushed commit from @r-ryantm to master « verilator: 3.926 -> 4.002 »: https://git.io/fxkGh
<Myrl-saki> Just curious. I'm 100% okay with it as a QoL, but want to know if it's more than just that.
<Myrl-saki> I guess technically, you can now do `buildInputs = [ pkgsCross.... ]`
<Myrl-saki> Without having to reimport nixpkgs.
Friedem has joined #nixos
<Myrl-saki> manveru: He's back.
<Friedem> Haha, my internet disappeared on me for a minute
<Friedem> Did I miss any action?
<gchristensen> oops
<Myrl-saki> Friedem: I was afraid that me trying to do static copmpilation scared you away.
<gchristensen> 14:53 <manveru> oh damn, friedem is gone already :(
hyper_ch2 has quit [Quit: Page closed]
<symphorien> the url for logs is in the topic, just in case
<{^_^}> [nixpkgs] @thoughtpolice pushed commit from @r-ryantm to release-18.09 « verilator: 3.926 -> 4.002 »: https://git.io/fxkZO
<manveru> heh
periklis has quit [Ping timeout: 252 seconds]
<Myrl-saki> manveru: FWIW, what does this change in terms of building?
<manveru> god knows :)
<manveru> i'm trying it atm
<Myrl-saki> Does the "i586" get passed somewhere at all?
<manveru> but it's... slow
<Myrl-saki> I guess the answer is yes. :P
<manveru> `nix build --show-trace -f . --arg crossSystem '{ config = "i586-pc-linux-gnu"; }' lsof` uses that
<manveru> just want to try if it makes the correct binary
<Myrl-saki> manveru: Try cross or something.
<Myrl-saki> crossPlatform?
<Myrl-saki> Yeah.
agander__ has quit [Ping timeout: 252 seconds]
rcherrueau has joined #nixos
<Friedem> manveru: thanks!
<Myrl-saki> Friedem: If I may ask, what's this for?
<{^_^}> [nix] @edolstra pushed commit from @Profpatsch to 2.1-maintenance « manual: add XML IDs to all builtin list entries »: https://git.io/fxknI
<{^_^}> [nix] @edolstra pushed to 2.1-maintenance « Bump version »: https://git.io/fxknq
<Friedem> manveru: its a fiber optics network security system
* gchristensen perks up
<manveru> i thought fiber needs a bit... faster speeds
<Myrl-saki> Same.
ravloony has joined #nixos
<Friedem> layer 1 security, so its just detecting if the fiber moves
<manveru> also, if you want to use MMX, you might have to modify my patch
<Myrl-saki> I'm guessing they're doing real-time something here.
<Myrl-saki> Oh.
<Friedem> not processing any of the data on the line
wucke13 has quit [Ping timeout: 252 seconds]
<Friedem> mostly just pounding out FFTs
<manveru> ok, so it's just a ton of old boxes that don't need upgrades :)
<gchristensen> Friedem: yes, it is a good use case for this :)
* manveru really wants a new CPU so building that kernel wouldn't take forever
endformationage has joined #nixos
* gchristensen resists being a shill
<tnks> I'm double-checking something that's annoyed me before. I know with configuration arguments coming into an import of nixpkgs you can specify overlays, and you can have many of these. But once I've got the instance of nixpkgs, can I layer on more overlays?
<gchristensen> no, tnks
<tnks> gchristensen: well, good to know I wasn't wrong before in that assessment.
<gchristensen> you can reimport nixpkgs with overlays, but you can't get the list of overlays from when nixpkgs was first imported, so you have to know at eachi mport location everything you want
<gchristensen> (import "${pkgs.path}" { ... })
<tnks> gchristensen: yeah, that's in line with what I saw before (and still see).
<tnks> cool, well too bad that I can't do what I wanted... good that I wasn't wrong.
<manveru> gchristensen: i'm still on i7-4771 (haswell), which i think is now 5 years or so...
<tnks> gchristensen: thanks for confirmation. Nixpkgs is a pretty big codebase, and I always find I'm second-guessing whether I actually know what's in it.
<manveru> Friedem: `./result/bin/lsof: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /nix/store/iabdx190fajjc5w7gpmi7s1xr0gdfic0-glibc-2.27-i586-pc-linux-gnu/lib/ld-linux.so.2, for GNU/Linux 2.6.32, not stripped` it works :)
<gchristensen> tnks: same? :) manveru: my desktop here is from ~'09, not great for building. I rent big builders hourly when I have something which is longer than 30min
<ravloony> Hi all, trying to get a ruby app updated and working. I ran bundix -l with the Gemfile and Gemfile.lock from the project (staytus), and it all looks good, but when deployed, commands fail with `Could not find annotate-2.6.7 in any of the sources`. Annotate is the only development dependency.
<manveru> yeah... if i had more than 200KB/s upload speed, i might consider that too
<manveru> ravloony: add `groups = ["default" "development"];` to your bundlerEnv`
<Myrl-saki> gchristensen: Specs, ifI may ask?
<manveru> i thought using all groups was the standard though...
johanot has quit [Quit: WeeChat 2.0]
<gchristensen> Myrl-saki: for what I rent?
<Myrl-saki> gchristensen: For your local machine.
<gchristensen> manveru: aahhh yeah, when I build big disk images, I realize the drv here, nix-copy-closure to a build server, build there, and then `scp` from that builder to the image-hosting server.
<gchristensen> Myrl-saki: my destop is https://www.newegg.com/Product/Product.aspx?Item=N82E16819106008 + 16g ram, but it sort of limps along due to various hardware failures. my laptop is a dell xps 9560.
<Myrl-saki> A 09 computer with 16 GB of RAM. ._.
<Friedem> manveru: so would I need to "nixify" our whole application to use this? or can I just set up a shell with the crossSystem arg and run make from in there?
<gchristensen> I guess it was from late '10 or early '11
<manveru> Friedem: using a nix-shell might work for starters
<Myrl-saki> gchristensen: Yeah, same thought, but 16 GB of RAM is still amazing.
<gchristensen> Myrl-saki: I put all my money in to the RAM, and then matched it with a 30gb ssd :D
<manveru> Friedem: just add all your build deps to it and `make` should work
<Myrl-saki> gchristensen: lol. Pretty much same thing. People wondered how I built an i5 + SSD + 16 GB of RAM under $400. The secret is no graphics.
<gchristensen> also same :D
<manveru> Friedem: the outputs won't go into the /nix/store though, but if you compile static binaries it doesn't matter too much
<ravloony> manveru: looks like it worked :-)
EarlDeLaWarr has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @oxij opened pull request #47663 → maintainers/maintainer-list.nix: add PGP/GPG fingerprints → https://git.io/fxkCa
<manveru> oh well, back to work :)
<ravloony> thanks!
<rcherrueau> Hi there! I have a question about `buildInputs' of `mkDerivation' function. The docs says that the `buildInputs' attribute ensures that `include' sub-directories of its packages are searched by the C compiler. But, what happens when the package contains a "dev" output, in addition to the traditional "out", such as in ImageMagick
<rcherrueau> https://github.com/NixOS/nixpkgs/blob/1af8f3a980bb8ac92f5c09ac23cca4781571bcd1/pkgs/applications/graphics/ImageMagick/default.nix#L47? Is the `include' sub-directory of `imagemagick.dev' is also searched by the C compiler if I go with something like `buildInputs = [pkgs.imagemagick ];'?
<Myrl-saki> rcherrueau: There used to be a problem related to that w.r.t. zlib, IIRC.
fendor has joined #nixos
<tnks> I need a mnemonic to remember "self: super:" and not "super: self:"
blahdodo has joined #nixos
<tnks> I guess lexical sort will do.
fendor has quit [Remote host closed the connection]
betaboon has quit [Quit: WeeChat 2.0]
<rcherrueau> Myrl-saki: I did some tests and it appears I have to go with `buildInputs = [ pkgs.imagemagick.dev ]'
<rcherrueau> So, any suggestion about handling dev dependencies? I mean, is it better to include `pkgs.imagemagick.dev' in buildInputs or export `{pkgs.imagemagick.dev}/lib' and `{pkgs.imagemagick.dev}/include' in preConfigure?
<Myrl-saki> rcherrueau: The former, IMO.
<rcherrueau> Myrl-saki: thanks a lot
<d1rewolf> how can one prevent things like "nix search" from using a pager?
<srhb> d1rewolf: NIX_PAGER= nix search foo
<d1rewolf> srhb: so I should be able to put NIX_PAGER= in my shell's rc file to make that permanent?
<d1rewolf> srhb: that should be obvious to me, so ignore that question ;)
Twey has quit [Ping timeout: 272 seconds]
Twey has joined #nixos
<Friedem> manveru: I'm using https://gist.github.com/Friede80/4546cb6c123e1c876f0b3df043f76c90 but running make still tries to compile 64 bit
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<manveru> Friedem: you need to pass the `crossSystem = { config = "i586-pc-linux-gnu"; };` to nixpkgs
<manveru> and also select the nixpkgs with my patch
wpcarro has joined #nixos
<Friedem> manveru: like so: with import <nixpkgs> {crossSystem = { config = "i586-pc-linux-gnu"; };};?
blahdodo has quit [Ping timeout: 252 seconds]
<Myrl-saki> That seems to be correct. Might need parentheses though.
<wpcarro> Hey I remember reading about installing packages from nix that weren't part of your <nixpkgs> but are part of say "unstable". Is overriding attrs the recommended way to do this? Or is there another, preferred way
<Myrl-saki> Alternatively, `crossSystem.config`
<Myrl-saki> wpcarro: `nix-build -f channel:...`?
<Myrl-saki> Friedem: Same to you too.
<Myrl-saki> Wait.
<wpcarro> Myrl-saki: from inside of a configuration.nix file? I only need *one* package from unstable
<Friedem> manveru: how do I point to your version of nixpkgs?
<Myrl-saki> nix-build '<nixpkgs>' -I 'nixpkgs=https://github.com/manveru/nixpkgs/archive/i586-support.tar.gz' -A hello
<Myrl-saki> Seems to work.
<Myrl-saki> Now you just need to put your crossSystem.
jperras_ has joined #nixos
<wpcarro> hmm I was hoping to define it in the configuration.nix level instead of an ad-hoc install
kreetx has quit [Ping timeout: 252 seconds]
<Myrl-saki> wpcarro: You can still do it that way, with `(import (fetchTarball https://github.com/...) {}).foo` or something of the like.
<wpcarro> Myrl-saki: interesting... I'll look into that route
jperras has quit [Ping timeout: 240 seconds]
<Myrl-saki> Friedem: nix-build -I 'nixpkgs=https://github.com/manveru/nixpkgs/archive/i586-support.tar.gz' -E '(import <nixpkgs> { crossSystem.config = "i586-pc-linux-gnu"; }).hello'
<Myrl-saki> I'm trying to build it right now.
<teto> gchristensen: definitely looking forward https://github.com/NixOS/nix/pull/2037 :) !
<{^_^}> nix#2037 (by grahamc, 26 weeks ago, open): List the features a derivation requires when it cannot be built locally
<wpcarro> So to get something like this: I'd do `(impot (fetchTarball SHA).pkgs.applications.misc.1password)`?
Ariakenom has quit [Ping timeout: 252 seconds]
<Myrl-saki> wpcarro: Not the SHA but the URL itself.
<ravloony> I'm trying to do a deterministic nixops deploy with this: https://nixos.wiki/wiki/How_to_fetch_Nixpkgs_with_an_empty_NIX_PATH, so I've prefixed my nixops config with a `let nixpkgs = fetchTarball ...`, but it still complains about the service (which is only declared on the fetched nixpkgs) being missing.. Full paste is here: https://pastebin.com/zd6CaA13
<wpcarro> Myrl-saki: right, but everything else looks reasonable?
<Myrl-saki> wpcarro: Seems so.
<Myrl-saki> wpcarro: Except for pkgs.
<wpcarro> that's so cool... thank you
<Myrl-saki> Wait.
<d1rewolf> should AppImage files work on nixos by default? I'm trying to get https://tel.red/linux/sky-latest-x86_64.AppImage working, but when executing I get "no such file or directory"
<Myrl-saki> wpcarro: That actually doesn't seem correct.
<ravloony> and error is here https://pastebin.com/CD2EWg3j
<wpcarro> Yeah I'm getting an error: "value is a string with context while a set was expected"
<Myrl-saki> wpcarro: It's correct in the sense that that's proper Nix.
<wpcarro> syntax = good; semantics = bad
<wpcarro> yes
<Myrl-saki> wpcarro: Oh right, that should also be `(import (fetchTarball ...) {})`
<Myrl-saki> Since nixpkgs is a function.
<wpcarro> ah bc that invokes the function?
<Myrl-saki> Yep.
Sigyn has quit [Quit: People always have such a hard time believing that robots could do bad things.]
<Myrl-saki> wpcarro: FWIW, I think you already have 1password.
<wpcarro> Myrl-saki: not on 18.03 I don't think
<Myrl-saki> wpcarro: Try _1password.
lassulus has quit [Ping timeout: 252 seconds]
<wpcarro> ah... interesting... is that the convention?
<Myrl-saki> Because you can't start with a number on variables.
<d1rewolf> even though it's there and executable. In the past, iirc, this occurs when the exe is looking for something like /lib that's not there
lassulus_ has joined #nixos
<d1rewolf> really wish you could get better errors when that happens
<Myrl-saki> wpcarro: Not the convention, but technical limitations.
<wpcarro> Myrl-saki: still getting "undefined variable _1password"
<tilpner> d1rewolf - Try appimage-run
lassulus_ is now known as lassulus
<d1rewolf> here's an strace: https://pastebin.com/E5XLr6pR
<{^_^}> [nixpkgs] @erikarvstedt opened pull request #47664 → initrd.network: support predictable interface names → https://git.io/fxk47
Sigyn has joined #nixos
Thra11 has quit [Quit: IRC for Sailfish 0.9]
<d1rewolf> tilpner: will do. thank you
<Myrl-saki> wpcarro: 1password was intialized 5 months ago, true.
<wpcarro> I think I just need to get it from 18.09, which is fine. I need the practice anyways
<Myrl-saki> wpcarro: `(import (fetchTarball ...) {})._1password` should be enough.
<Myrl-saki> wpcarro: Because pkgs is just a self reference.
<d1rewolf> tilpner: holy cow that's a lot of dependencies
<Myrl-saki> wpcarro: I have no idea why though! :P
<jluttine> how to bump a pull request so that it would be reviewed/merged? https://github.com/NixOS/nixpkgs/pull/46770
<{^_^}> #46770 (by jluttine, 2 weeks ago, open): carp: init at unstable-2018-09-15
<wpcarro> a self-reference... eh?
<Myrl-saki> wpcarro: Yep. `nixpkgs.pkgs == nixpkgs`
<wpcarro> haha ok... interesting
<Myrl-saki> I think.
* Myrl-saki shrug
<wpcarro> I'm still learning... I'd like to be writing derivations by the month's end, though
<wpcarro> just got NixOS setup Sunday
<d1rewolf> tilpner: that gives me this: https://pastebin.com/nF6YEdMX
<Myrl-saki> wpcarro: Yeah, Nix is honestly one of the languages I'm glad I've learned.
<infinisil> There are very minor differences with overlays and such i think
<tilpner> d1rewolf - Try a newer version
<infinisil> Between pkgs and pkgs.pkgs
<{^_^}> [nixpkgs] @erikarvstedt opened pull request #47665 → Minor initrd improvements → https://git.io/fxkBs
<Myrl-saki> infinisil: How about pkgs.pkgs.pkgs?
<infinisil> Welllll
<Myrl-saki> (Somewhat serious question.)
<infinisil> In the sam way probably
<d1rewolf> tilpner: ok...updating from unstable and will rebuild and report back. thx
<Myrl-saki> It'd be kinda interesting if .pkgs is idempotent.
<infinisil> But i don't know exactly in which way to begin with
<samueldr> ,pr jluttine
<{^_^}> jluttine: 0. Sorry. 1. If you complain about PR being in limbo, always provide a number («I have an unmerged PR (#23924)…»), bot will print PR title and it might bring you an impulse-merge. 2. Please look up who commits similar work and ping these people (or request-review), keeping up with all the PRs is not really possible.
<{^_^}> [nixpkgs] @xeji merged pull request #47662 → wmfocus: init at 1.0.2 → https://git.io/fxkt2
<{^_^}> [nixpkgs] @xeji pushed commit from @Synthetica9 to master « wmfocus: init at 1.0.2 (#47662) »: https://git.io/fxkBB
<samueldr> so yeah, jluttine, asking this way is the way to go, sorry :)
<samueldr> (point 0 is important here)
<infinisil> Myrl-saki: overlays that override pkgs would probably make it non-idempotent for sure
<Myrl-saki> infinisil: Ah, true.
<Myrl-saki> infinisil: OTOH, why would you do that. :c
Boomerang has quit [Quit: WeeChat 2.2]
<infinisil> No idea, maybe there's somehing else too though
<Myrl-saki> infinisil: On that topic, overlays + attrset shorthand notation is very fun.
<wpcarro> Myrl-saki: looks like it works. Had to pass `{ config.allowUnfree = true; }` into the function, but yeah. Great!
<Myrl-saki> infinisil: overlaying with { pkgs.foo = ...; } will obliterate your pkgs. \o/
<infinisil> I think there's this `packageOverrides = super: let self = super.pkgs; in { ... }` which used .pkgs to avoid inf recursion (unconfirmed)
<infinisil> s/which/trick which
<infinisil> s/used/uses
<Myrl-saki> infinisil: Yeah, I think you're right.
<Myrl-saki> infinisil: It's not necessary though, but IIRC, you need like 3 lets to avoid inf recursion.
<Myrl-saki> I've seen a package do that, but forgot which one.
<Myrl-saki> I think it was mesa.
<Myrl-saki> Yep, I'm correct.
lassulus_ has joined #nixos
<{^_^}> [nixpkgs] @pmiddend opened pull request #47666 → jshint: depend on phantomjs2 → https://git.io/fxkRG
lassulus has quit [Ping timeout: 252 seconds]
lassulus_ is now known as lassulus
<infinisil> Myrl-saki: eh, that can be written with just 1
<Myrl-saki> infinisil: Oh. :P
<infinisil> I think every multiple let in's can be written in one
rcherrueau has quit [Remote host closed the connection]
<d1rewolf> hi guys. I run nixos+i3+3 monitors. almost every reboot, only one of those monitors will work. the others appear to have no signal
<d1rewolf> I've been able to fix this sometimes by manually running xrandr again (my i3 config already does this at login), but today that won't even work
<d1rewolf> any ideas what could cause this? i'm using sddm as the login manager
<d1rewolf> xrandr --current shows the three monitors are connected
wpcarro has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @jluttine opened pull request #47667 → nano-wallet: 16.0 -> 16.1 → https://git.io/fxk0C
<Myrl-saki> d1rewolf: Just curious, what GPU are you using?
<d1rewolf> Myrl-saki: NVIDIA Corporation GM107GLM [Quadro M1200 Mobile]
<Myrl-saki> Mkay. That's all, was just curious. :P
<d1rewolf> on ubuntu, I used to use prime-select to switch between the NVIDIA gpu and the built-in intel gpu. not sure that command exists for nixos
<d1rewolf> command-not-found prime-select doesn't seem to show anything
<{^_^}> [nixpkgs] @jluttine opened pull request #47668 → syncthing: 0.14.50 -> 0.14.51 → https://git.io/fxk05
<{^_^}> [nixpkgs] @FRidh merged pull request #47604 → Staging next → https://git.io/fxUzr
<{^_^}> [nixpkgs] @FRidh pushed 170 commits to master: https://git.io/fxk0A
<{^_^}> [nixpkgs] @FRidh pushed 464 commits to staging: https://git.io/fxkEf
<{^_^}> [nixpkgs] @FRidh pushed 156 commits to staging-next: https://git.io/fxkEt
LysergicDreams has quit [Ping timeout: 268 seconds]
lassulus_ has joined #nixos
lassulus has quit [Ping timeout: 252 seconds]
lassulus_ is now known as lassulus
LysergicDreams has joined #nixos
FRidh has joined #nixos
joncfoo has quit [Quit: ZNC 1.6.5 - http://znc.in]
joncfoo has joined #nixos
patrl has joined #nixos
sigmundv has quit [Ping timeout: 252 seconds]
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/18749a72b7c (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
selfsymmetric-pa has joined #nixos
selfsymmetric-pa has quit [Disconnected by services]
selfsymmetric-pa has joined #nixos
<selfsymmetric-pa> Hello! I'm having a really hard time with package overrides. https://gist.github.com/matthew-piziak/4c4bbbe6fb085b43075ea8805bbd5648
<selfsymmetric-pa> I want to have three regular package install, two from unstable, and one from unstable with a custom modification.
<selfsymmetric-pa> NixOS doesn't throw any syntax errors, but I don't get the versions I want either.
<selfsymmetric-pa> Can somebody take a look at my gist and give me a sanity check? I'm sure I'm making a silly mistake somewhere.
<FRidh> selfsymmetric-pa: I recommend using an overlay
<selfsymmetric-pa> Overlays confuse me. Are they supposed to be user-specific? I'd rather have the same setup for all users.
<{^_^}> [nixpkgs] @primeos opened pull request #47669 → nixos/networking: Add an option whether to use a local DNS resolver → https://git.io/fxkgf
<{^_^}> [nixpkgs] @jluttine opened pull request #47670 → pythonPackages.txtorcon: 18.0.2 -> 18.1.0 → https://git.io/fxkgt
<FRidh> selfsymmetric-pa: from the docs, use the first solution: First, if an overlays argument to the nixpkgs function itself is given, then that is used.
<selfsymmetric-pa> Looking at the manual...It looks like overlays are maybe a new and more general way of doing packageOverride?
<FRidh> correct
<sphalerite> yes, they are
<selfsymmetric-pa> I can't find any examples of using them in a `configuration.nix`
<selfsymmetric-pa> Do you have one?
<sphalerite> selfsymmetric-pa: I don't think you actually need to use an overlay nor packageOverrides for this
<selfsymmetric-pa> I think I'm missing some basic point of nix expressions. Because there's this mental block where I see an overlay but I don't know how to integrate it into my setup.
<sphalerite> you can do environment.systemPackages = let unstablePkgs = import <unstable> {}; in [ pkgs.awscli unstablePkgs.circleci-cli pkgs.google-cloud-sdk … ];
<selfsymmetric-pa> It's frustrating though because there is an _expression_ called "pkgs". That I get. And there's a _subexpression_ called, say "src", and I feel like I should be able to override it but for some reason it's not that simple.
<disasm> selfsymmetric-pa: `nixpkgs.overlays = [];` I think is what you want
<FRidh> let nixpkgs = import <nixpkgs> { overlays = [ self: super: { inherit (import (fetchTarball "channel:nixos-unstable") {}) kubectl } ]; } in ...
Ariakenom has joined #nixos
<sphalerite> selfsymmetric-pa: are you trying to replace any packages within the dependency tree as opposed to just using unstable ones in your systemPackages? If not, you don't need packageOverrides or an overlay.
<keks> hi all. I've run into https://github.com/NixOS/nixpkgs/issues/40706. As far as I can see, nix doesn't really allow using cmake for Qt development at the moment? Or do you see a workaround?
<{^_^}> #40706 (by lucas8, 19 weeks ago, open): Broken cmake file with Qt5.10 full
<keks> the issue is that cmake tries to find all qt plugins in the tree of qtbase, instead of the respecive plugin's tree
<selfsymmetric-pa> sphalerite: That solution works well for everything but `kubernetes-helm` here, which needs to have some attributes overridden relative to the unstable version.
<sphalerite> keks: a whole lot of packages in nixpkgs are already built with cmake
<selfsymmetric-pa> FRidh: Why am I doing `let nixpkgs` when `nixpkgs` isn't part of any other subexpression. Is that hidden? Am I overriding something global?
<selfsymmetric-pa> This seems super weird.
<sphalerite> keks: I think you might need to use a different mkDerivation for it though and add extra-cmake-modules to the nativeBuildInputs. I'm not sure of the exact details.
<FRidh> I'll likely made a mistake in my example. Note there is no need to use fetchTarball, I just typically use it instead of a nix-channel
slack1256 has joined #nixos
<sphalerite> selfsymmetric-pa: even there packageOverrides/overlays is orthogonal to what you're trying to achieve
<keks> sphalerite: I tried to get inspiration from sqlitebrowser, which uses qt and cmake, but i can't find a difference
mayhewluke has quit [Ping timeout: 252 seconds]
<selfsymmetric-pa> sphalerite: I think that's true.
<FRidh> selfsymmetric-pa: nixpkgs is now the whole package set, so nixpkgs.kubectl will now have the old kubectl
<slack1256> This is non-nixos specific. How do I launch a program such that stderr isn't shown on the terminal but on the systemd-journal?
<sphalerite> selfsymmetric-pa: instead, you can put in the systemPackages list (unstablePkgs.kubernetes-helm.overrideAttrs (orig: { name = "kubernetes-helm-2.11.0"; src = …;}))
<selfsymmetric-pa> Super weird. I have this thing, `(import <unstable> {}).kubernetes-helm`. So I should be able to say `my-kubernetes-helm = (import <unstable> {}).kubernetes-helm.plusSomeOtherStuff{etc.}`.
<sphalerite> selfsymmetric-pa: note overrideAttrs, which changes what's passed to mkDerivation, as opposed to .override, which replaces what's passed to the package function
<selfsymmetric-pa> I hate this idea of overriding a global variable so that I can use a part of it later.
<selfsymmetric-pa> I would much prefer to immutably create a `my-kubernetes-helm` package.
<keks> sphalerite: here is what I have right now: https://github.com/keks/nixpkgs/pull/1/files
<selfsymmetric-pa> sphalerite: oh that looks pretty good
<sphalerite> slack1256: I think foobarbaz 2> >(systemd-cat) ought to work
jlou2u has joined #nixos
mayhewluke has joined #nixos
<slack1256> sphalerite: Nice
<sphalerite> keks: I believe the CMAKE_BUILD_TYPE is redundant, since it's passed by the cmake build hook anyway. That aside, maybe extra-cmake-modules is some sort of magic potion that will fix it — libsForQt5's callPackage should provide it
<{^_^}> [nixpkgs] @jluttine opened pull request #47671 → pythonPackages.pvlib: 0.5.2 -> 0.6.0 → https://git.io/fxk23
ThatDocsLady has quit [Ping timeout: 252 seconds]
<sphalerite> selfsymmetric-pa: that's one of the reasons I want to deprecate packageOverrides (#43560) — there are too many things with override in their names and it leads to a blurring of what's there for which purpose
<{^_^}> https://github.com/NixOS/nixpkgs/pull/43560 (by lheckemann, 11 weeks ago, open): [WIP] Deprecate packageOverrides
<selfsymmetric-pa> a man after my own heart
<sphalerite> it's fine once you've understood it but it's such a barrier to understanding
<selfsymmetric-pa> Unfortunately now I get "The option value `environment.systemPackages.[definition 12-entry 6]' is not of type `package'."
<sphalerite> you need some extra parentheses
<selfsymmetric-pa> Ah good.
<sphalerite> it parses that as two list elements — the first is unstablePkgs.kubernetes-helm.overrideAttrs and the second is the function passed to that
<sphalerite> that's supposed to be passed to that*
<selfsymmetric-pa> Awesome, now I'm just getting "attribute 'fetchurl' missing".
<sphalerite> pkgs.fetchurl :)
<{^_^}> [nixpkgs] @jluttine opened pull request #47672 → pythonPackages.XlsxWriter: 1.0.9 -> 1.1.1 → https://git.io/fxk21
<selfsymmetric-pa> And yeah, I totally agree. Now that you've shown me the `overrideAttrs` version it makes much more sense. It's all local modification, less dark magic.
<sphalerite> you could of course add back the `with pkgs;` but what's nice about not using it is that it's very clear that some stuff is from unstable and some isn't
<selfsymmetric-pa> Yeah, once I get it working it's just refactoring. :)
<selfsymmetric-pa> I like this setup so much better .
<sphalerite> \o/
wucke13 has joined #nixos
wucke13 has quit [Client Quit]
<sphalerite> overlays are only necessary when you want to modify the composition, e.g. if you want to replace libcurl with an overridden version for everything that depends on it
<selfsymmetric-pa> Oh, interesting.
<sphalerite> but a lot of modifications can be done at the point of use
<selfsymmetric-pa> I'll definitely have to learn them properly at some point.
<selfsymmetric-pa> I just bounced off them the first time.
<sphalerite> :)
goibhniu has quit [Ping timeout: 252 seconds]
<sphalerite> and packageOverrides are the less powerful predecessor of overlays
agander__ has joined #nixos
agander__ is now known as agander
reinzelmann has quit [Quit: Leaving]
nico202 has quit [Quit: Leaving]
<selfsymmetric-pa> I am a huge fan of overrideAttrs.
<selfsymmetric-pa> Will probably use it for almost everything I need to modify.
<Zajcev_> guys ... what does it meen? ... libz.so.1 => not found ... libgmp.so.10 => not found
<selfsymmetric-pa> I think there's a deficiency in the documentation since https://nixos.org/nixpkgs/manual/#sec-pkg-overrideAttrs and https://nixos.wiki/wiki/Nixpkgs/Modifying_Packages both lack an example of installing a package in your `configuration.nix` with modified attributes. But for many NixOS users this is a standard operation. The docs make too many assumptions about background knowledge.
<selfsymmetric-pa> I think I'd like to improve that. sphalerite if you agree, where should I contribute that example?
jperras_ has quit [Ping timeout: 252 seconds]
<sphalerite> selfsymmetric-pa: yes, I absolutely agree for the wiki article — a similar approach can be taken with nix-env as well
<nbp> infinisil: I will do the review of setFunctionArgs this week-end
<sphalerite> selfsymmetric-pa: as for the manual section, I'm not so sure, since the manual section is about packageOverrides specifically
<keks> sphalerite: hmm, unfortunately extra-cmake modules didn't help
<sphalerite> but for the wiki just edit it as you do with wikis, and if you want to improve the manual it's in the doc/ tree in hte nixpkgs repo
<sphalerite> keks: aw, that's a shame. I'm not sure what else to try, but maybe whatever you're trying to package does it wrong?
<keks> i know someone on a non-nix system and they just followed the build instructions. same commit hash
<keks> and the instructions are basically cmake . && make
<{^_^}> [nixpkgs] @dysinger opened pull request #47673 → added dysinger as a maintainer → https://git.io/fxkVg
<keks> sphalerite: forgot to mention you ^^^
<sphalerite> keks: https://github.com/beam-mw/beam/blob/bc977b4851a88263615b1e0467f4ede3c72f02b9/ui/quazip/CMakeLists.txt yep, it assumes that all of qt lives in the same prefix as qt-core. This is not nix's fault but beam's
<keks> uhh, i thought that file was in gt5.full
<keks> okay, thanks. I'll try to take if from here :D
<{^_^}> [rfcs] @Synthetica9 opened pull request #35 → Default `name` from `pname` → https://git.io/fxkVD
<sphalerite> keks: actually not 100% sure about what I just said, since it doesn't seem to mention QT_ROOT anywhere other than in that file
<sphalerite> and QT_ROOT is only used to find zlib on non-unix systems
mkoenig has quit [Read error: Connection reset by peer]
PLPD-Bot has quit [Remote host closed the connection]
<sphalerite> anyway, I'm off now. Good luck!
mkoenig has joined #nixos
<Friedem> so I'm in a nix-shell with pcre-cpp in my buildInputs, I can see library in /nix/store/, but it's failing to link during a build
<Friedem> did nix somehow fail to set up the proper symlinks?
blahdodo has joined #nixos
<slack1256> Is it possible to annotate generations?
<slack1256> To say for example, this generation was used with per-user generation X and system generation Y
<symphorien> Friedem: it is more a question of environment than symlink
<symphorien> Do you compile with nix's GCC ?
<symphorien> *gcc
<Friedem> yes
<symphorien> Then you can export NIX_DEBUG=1 to see the hidden flags nix passes to the compiler to find libraries
Synthetica has joined #nixos
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kreisys has joined #nixos
Twey has quit [Ping timeout: 252 seconds]
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/3e44d2f2b52 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<Friedem> looks like the only extra library paths are various /nix/store/XXXX-gcc-X-X/lib
<Friedem> is it supposed to pass the paths to my "buildInputs" packages?
<__red__> I think I need to find another package to work on integrating into nix. I've just gone from excited to dispondent on this one.
<symphorien> Friedem: can you paste your nix file and shell commands ?
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/624b5c14c0c (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<Friedem> calling with: nix-shell -I 'nixpkgs=https://github.com/manveru/nixpkgs/archive/i586-support.tar.gz'
<Friedem> then just running make all
<{^_^}> [nixpkgs] @Synthetica9 opened pull request #47674 → i3lock-color: 2.11-c -> 2.12.c → https://git.io/fxk6P
shabius has quit [Remote host closed the connection]
shabius has joined #nixos
<symphorien> mmh there is too much to build for me to test
<__red__> workflow question. If a reviewer opens a review and I reply with a comment - do they get notified?
blahdodo has quit [Ping timeout: 252 seconds]
<__red__> For all the other observations I made changes so re-published and "resolved"
<__red__> I'm guessing if I'm not making the requested modifications and I'm commenting instead I shouldn't resolve it... and somehow they get notified?
<infinisil> nbp: Cool :)
<symphorien> Friedem: in a non-cross nix-shell I got to build a hello world with g++ -lpcrecpp a.cpp but I had to remove glibc from target_packages
<symphorien> glibc is provided by the stdenv, so you don't need it, and if you include it apparently it messes with the c++ stdlib
<Friedem> hmm, I don't get anythihg different when taking out glibc
<symphorien> can you link against pcrecpp on a toy example file ?
d-fish has joined #nixos
<catern> woah
<catern> latrace is cool
<catern> and not packaged in Nixpkgs
<jonge> hey there. with "nix-store -q --size /nix/store/foobar" i can print the runtime-needed closure size, right? how do i print the size of the compile time closure?
<symphorien> for the size, I don't know, but for just the closure nix-store -qR on the .drv I think
<{^_^}> [nixpkgs] @kalbasit opened pull request #47675 → twa: 1.3.1 -> 1.5.1 → https://git.io/fxkXc
<Friedem> symphorien: my hello world with g++ also failed to find -lpcrecpp
blahdodo has joined #nixos
<symphorien> can you paste the error ?
orivej has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer opened pull request #47676 → haskell: fix x509-system on mojave → https://git.io/fxkXF
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/3e44d2f2b52 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<Friedem> "/nix/store/ipv82kisciii2a6vldnn6r1lkjmsj3qc-gcc-wrapper-7.3.0/bin/g++ -lpcrecpp test.cpp /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/ld: cannot find -lpcrecpp collect2: error: ld returned 1 exit status"
agander has quit [Ping timeout: 252 seconds]
agander has joined #nixos
<symphorien> what does NIX_LDFLAGS contain ?
orivej has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #47563 → Replace several activation script snippets with declarative configuration → https://git.io/fxJfi
<{^_^}> [nixpkgs] @Mic92 pushed 9 commits to master: https://git.io/fxk1z
<Synthetica> What's the reccomended way of initializing a haskell project using Nix?
<Friedem> symphorien: ooo, that does contain the path to pcrecpp
<infinisil> Synthetica: I just use cabal init
<infinisil> (is there another way?)
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxk1F
<{^_^}> [nixpkgs] @Mic92 merged pull request #47666 → jshint: depend on phantomjs2 → https://git.io/fxkRG
<Synthetica> I wasn't sure, so I figured I'd ask
<infinisil> I also copy some well working default.nix and shell.nix files from other haskell projects to get the nix part going
<Synthetica> Any particular examples (not new to either haskell or nix, but never used them in conjunction)
<Friedem> so it just seems that NIX_LDFLAGS aren't making it to the linker?
<jonge> symphorien: ok this way i get the list of derivations and patches etc. etc. needed to build this, but from here, would i have to translate the derivation paths back to the result paths and count their sizes or something like that?
blahdodo has quit [Ping timeout: 252 seconds]
<symphorien> Friedem: run nix-shell with --pure
<infinisil> I use a patch from #46453 to get shellFor working correctly (it's useful if you have multiple packages)
<{^_^}> https://github.com/NixOS/nixpkgs/pull/46453 (by Infinisil, 3 weeks ago, open): haskellPackages.shellFor: Fix ghc calls
<symphorien> gcc should even not be in the path
<symphorien> there is only the cross-prefixed gcc
<infinisil> Synthetica: And can put hackage modifications into the extends in default.nix
<infinisil> build with `nix-build -A hashsearch`
slack1256 has quit [Ping timeout: 268 seconds]
<Friedem> symphorien: I am running the shell with --pure
<{^_^}> [nixpkgs] @Mic92 pushed commit from @pmiddend to release-18.09 « jshint: depend on phantomjs2 »: https://git.io/fxkMj
<symphorien> Friedem: then g++ should not be in the $APTH
<symphorien> /nix/store/ipv82kisciii2a6vldnn6r1lkjmsj3qc-gcc-wrapper-7.3.0/bin/g++ is the wrong compiler
<kalbasit[m]> can someone with Mac build access on borg (trusted user) please build my PR on Mac? https://github.com/NixOS/nixpkgs/pull/47675 cc: clever infinisil gchristensen
<{^_^}> #47675 (by kalbasit, 24 minutes ago, open): twa: 1.3.1 -> 1.5.1
Mateon1 has quit [Ping timeout: 252 seconds]
<infinisil> kalbasit[m]: Will do
<kalbasit[m]> infinisil: thank you!
<Friedem> symphorien: hmmm, how does it select what compiler to use?
<symphorien> echo $CC
<Friedem> i586-pc-linux-gnu-gcc
samrose has joined #nixos
<Friedem> which is what I want
<kalbasit[m]> looks like it passed, awesome thx infinisil
<infinisil> Yup :D
<symphorien> this compiler should be able to compile your toy example
<symphorien> (well $CXX)
<Friedem> ahh, that did work
<infinisil> Nooooooo
<infinisil> Steam fails to start :(
<Friedem> so my cmake is grabbing that other compiler somehow...
<infinisil> "glXChooseVisual failedMain.cpp (326) : Assertion Failed: Fatal Error: glXChooseVisual failed"
<symphorien> then if the toy example links and not real thing, it is probably because of the build system. Possible culprits: ignoring $CC, hardcoding /usr/bin/gcc and so on
kiloreux has quit [Ping timeout: 252 seconds]
pie__ has quit [Ping timeout: 252 seconds]
<symphorien> also not passing down environment variables like NIX_LDFLAGS
<samrose> samueldr: sometime in the next 2 months 18.09 will be the "stable" release of nixos is that right-ish?
<Friedem> symphorien: It must be, I will look into that. Thanks for your help!
<symphorien> :)
<infinisil> samrose: Should be stable in just a bit!
<capisce> what do you use for screen locking?
jperras_ has joined #nixos
kiloreux has joined #nixos
<samrose> infinisil: ah ok thanks. I just took a chance and moved my project forward from 18.03 to 18.09, and the upgrade worked without an issue. Since my project is so young, I am just going to roll with it
FRidh has quit [Quit: Konversation terminated!]
<samrose> even building custom channels in my hydra instance, and autoUpgrade on running nodes worked
acowley has joined #nixos
<samrose> pretty amazing to see that work without one error on the first attempt
kiloreux has quit [Ping timeout: 245 seconds]
<acowley> Would it be okay to PR the nixos-rocm overlay packages into nixpkgs proper? They are primarily for AMD GPUs, so that's limited, but worse, they involve at least two builds of LLVM.
<infinisil> samrose: Awesome!
<acowley> My trouble is that the builds take a couple hours, so having users perform them is a pain. But perhaps that's also too much load to dump on hydra.
<infinisil> acowley: What does it change?
<acowley> infinisil: It amounts to three compilers at the moment: OpenCL, HCC, and HIP
<infinisil> Wait, overlay packages? So it's not an overlay or..?
kiloreux has joined #nixos
<acowley> I also have some machine learning libraries that build on HCC that I could add. Hopefully getting tensorflow building from source against those compilers, too.
<symphorien> acowley: for users, maybe use cachix ?
<acowley> infinisil: Right now it's structured as an overlay, but it's just a handful of packages at the end of the day.
<samrose> infinisil: frankly, given how the upgrade of an operating system usually goes (full of errors) this really still blows me away :)
<acowley> symphorien: I've been thinking about that, but I don't know how to track nixpkgs versions with cachix and couldn't find much information on that.
<symphorien> I don't understand
<acowley> symphorien: I suspect it is I who doesn't understand.
<infinisil> acowley: I mean, we can't stop submitting packages to hydra just because it does so much already, but i see your point
<infinisil> I'd go for it
<acowley> symphorien: A build of one of these compilers would depend upon a particular nixpkgs commit, so it's not clear to me how this works with cachix if a user is tracking nixos-unstable themselves.
<symphorien> ah they would have to use the same revision as yours I guess
<symphorien> but if you pin your overlay to something which is known to be in cachix
<acowley> symphorien: I don't think cachix supports overlays atm (there's an issue tracking this), so pinning nixpkgs across a set of packages is a bit awkward.
<infinisil> Oh yeah that's a problem then
<acowley> But I had trouble finding much information at all on how using cachix works, so I don't know how or if people are already dealing with this.
<infinisil> acowley: You could just submit the packages to NUR I guess
<catern> how do I turn off -Werror=format-security for building a Nix package?
<infinisil> Not sure what you mean by cachix doesn't support overlays. Overlays are on the nix language level and don't have anything to do with caching derivations
<{^_^}> cachix#17 (by domenkozar, 17 weeks ago, open): Overlays integration
<acowley> I'll let domen speak for himself
<symphorien> catern: hardeningDisable = [ "format" ]
<selfsymmetric-pa> How can I suggest a contribution to the NixOS Wiki?
<selfsymmetric-pa> I want to add an example to this page: https://nixos.wiki/wiki/Nixpkgs/Modifying_Packages
<symphorien> a github account is enough to contribute
<selfsymmetric-pa> Oh I see it. Thanks!
<infinisil> acowley: Huh, I have no idea what domenkozar means with that. Especially what this has to do with nixpkgs overlays
<{^_^}> [nixpkgs] @xeji merged pull request #47674 → i3lock-color: 2.11-c -> 2.12.c → https://git.io/fxk6P
<{^_^}> [nixpkgs] @xeji pushed commit from @Synthetica9 to master « i3lock-color: 2.11-c -> 2.12.c (#47674) »: https://git.io/fxk98
joepie91_to_go_ has joined #nixos
patrl has quit [Quit: WeeChat 2.2]
<joepie91_to_go_> ,locate libstdc++.so.6
<{^_^}> Found in packages: clblas, robomongo, gcc-unwrapped.lib, mentorToolchains.armLinuxGnuEabi
fendor has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #47675 → twa: 1.3.1 -> 1.5.1 → https://git.io/fxkXc
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fxk9A
<infinisil> acowley: Oh I see now, he wants to make that command download the overlay into ~/.config/nixpkgs/overlays and add caching for the overlays new derivations
<{^_^}> [nixpkgs] @peti pushed 7 commits to haskell-updates: https://git.io/fxkHJ
<infinisil> Which means you can just run that command, then install a projects packages with `nix-env -iA nixpkgs.thenewderivation`
<acowley> infinisil: Yes, that's my understanding
<{^_^}> [nixpkgs] @peti pushed 4 commits to haskell-updates: https://git.io/fxkHL
<{^_^}> [nixpkgs] @peti pushed 5 commits to master: https://git.io/fxkHm
<samueldr> samrose: two blocking issues, one I'm directly in charge of and will finish this evening, #47602 , the other I'm not sure what is going on there, and how much of an issue it is, #47577
<{^_^}> https://github.com/NixOS/nixpkgs/issues/47602 (by samueldr, 1 day ago, open): Tracking issue for partitioning instructions issues
<{^_^}> https://github.com/NixOS/nixpkgs/issues/47577 (by peterhoeg, 1 day ago, open): Boot hangs with encrypted home and plasma
<{^_^}> [nixpkgs] @Mic92 merged pull request #47673 → added dysinger as a maintainer → https://git.io/fxkVg
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxkH8
LysergicDreams has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #47656 → jetbrains: add libnotify to wrapper to enable notifications → https://git.io/fxT6F
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxkHu
<{^_^}> [nixpkgs] @Mic92 pushed commit from @pmiddend to release-18.09 « jetbrains: add libnotify to wrapper to enable notifications »: https://git.io/fxkH2
<samueldr> (the documentation update took longer to implement, but I'll be pretty pleased with it, about 90% done, most of what's left is to actively try the updated guide)
LysergicDreams has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « haskell-semigroupoids: update to latest version for ghc-8.6.x »: https://git.io/fxkH9
agander_ has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #47668 → syncthing: 0.14.50 -> 0.14.51 → https://git.io/fxk05
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxkQu
agander has quit [Ping timeout: 245 seconds]
freepotion has joined #nixos
<{^_^}> [nixpkgs] @dysinger opened pull request #47677 → Feature/fldigi → https://git.io/fxkQH
<{^_^}> [nixpkgs] @peti pushed 4 commits to haskell-updates: https://git.io/fxkQd
<{^_^}> [nixpkgs] @peti merged pull request #46453 → haskellPackages.shellFor: Fix ghc calls → https://git.io/fAacf
pie__ has joined #nixos
<freepotion> Hey guys! Could you consider to merge my pull request https://github.com/NixOS/nixpkgs/pull/47381?
<{^_^}> #47381 (by freepotion, 6 days ago, open): boohu: init at 0.10.0
<{^_^}> [nixpkgs] @matthewbauer opened pull request #47678 → [wip] Darwinland updates → https://git.io/fxk7v
freepotion has quit [Quit: Leaving]
jD91mZM2 has quit [Quit: WeeChat 2.0]
agander_ has quit [Quit: Leaving]
sigmundv has joined #nixos
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kreisys has joined #nixos
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
philippD has joined #nixos
Itkovian has joined #nixos
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/3e44d2f2b52 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
blahdodo has joined #nixos
<d1rewolf> guys, I'm trying to get the TelRed skype client appimage (https://tel.red/linux/sky-latest-x86_64.AppImage) to run on nixos. when I run it with appimage-run, i get: https://pastebin.com/4fw6qs6D. any ideas>?
<d1rewolf> and tilpner , this is after an update from unstable
<tilpner> Huh, I was sure it was in unstable
<rawtaz> general question, anyone here using Nix on macOS and can tell me good and bad things about it? what problems did you encounter?
<tilpner> d1rewolf - That must have been a local time distortion... it was only merged to master 13 days ago
<tilpner> Although nixpkgs-channels says it reached unstable
<d1rewolf> hmmmm....so you think if I did nix-channel --update && nixos-rebuild switch, I should have what you're speaking of?
<tilpner> d1rewolf - Try with nix-shell -I nixpkgs=channel:nixos-unstable -p appimage-run --run 'appimage-run ./your.appimage'
<d1rewolf> tilpner: exact same error :'(
<tilpner> Okay, that's it. Trying locally
<d1rewolf> tilpner: I appreciate the help
<tilpner> You didn't make a mistake, same error here
Xiro` has quit [Ping timeout: 272 seconds]
<d1rewolf> ok...so broken appimage or bug in appimage-run?
leotaku has joined #nixos
<tilpner> Don't know yet
<tilpner> Probably my fault, but there are some weird appimages out there
samrose has quit [Quit: Page closed]
<d1rewolf> lol, k. i appreciate you looking at it
orivej has joined #nixos
<ejpcmac> rawtaz: Haha, you’ll make me famous ^^ Glad you enjoyed my article :)
Anton-Latukha has quit [Quit: Leaving.]
<rawtaz> ejpcmac: oh, hi! =)
<rawtaz> ejpcmac: thanks a lot for writing it, good articles like that are a valuable contribution to many different areas
civodul has joined #nixos
<{^_^}> [nixpkgs] @roberth pushed commit from Samuel Leathers to docs-trivial-builders « trivial builders: adding usage documentation for functions »: https://git.io/fxkNk
<{^_^}> [nixpkgs] @roberth pushed commit from @gilligan to docs-lib-options « docs: lib/options.nix function documentation »: https://git.io/fxkNO
<{^_^}> [nixpkgs] @roberth pushed commit from @gilligan to docs-lib-sources « docs: documentation for `cleanSource` »: https://git.io/fxkNG
<{^_^}> [nixpkgs] @roberth pushed commit from @FPtje to docs-all-packages « all-packages.nix: Documented some fetch functions »: https://git.io/fxkNZ
<{^_^}> [nixpkgs] @roberth pushed commit from @lheckemann to docs-make-channel « Document make-channel.nix »: https://git.io/fxkNC
<ejpcmac> rawtaz: That’s what I think! There was no comprehensive article about Nix and Elixir so far, so I’ve written one :)
<ejpcmac> rawtaz: It’s been short to write compared to my previous article about Nix, where I tell more my journey from system package managers, to asdf and then Nix. Maybe it’s too long since people doesn’t seem to read it to the end. (But being short about Nix when starting from a zero knowledge is far from simple)
<{^_^}> [nixpkgs] @roberth opened pull request #47679 → Document make-channel.nix → https://git.io/fxkNV
<{^_^}> [nixpkgs] @roberth opened pull request #47680 → all-packages.nix: Documented some fetch functions → https://git.io/fxkNP
<{^_^}> [nixpkgs] @roberth opened pull request #47681 → docs: documentation for `cleanSource` → https://git.io/fxkNQ
<{^_^}> [nixpkgs] @roberth opened pull request #47682 → trivial builders: adding usage documentation for functions → https://git.io/fxkNp
<{^_^}> [nixpkgs] @roberth opened pull request #47683 → docs: lib/options.nix function documentation → https://git.io/fxkAJ
<{^_^}> [nixpkgs] @matthewbauer merged pull request #47676 → haskell: fix x509-system on mojave → https://git.io/fxkXF
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fxkAW
<{^_^}> [nixpkgs] @matthewbauer pushed to release-18.03 « haskell: fix x509-system on mojave »: https://git.io/fxkAa
<tilpner> d1rewolf - I did make a mistake, but it's also not a good appimage, from what I can tell
<tilpner> ,locate libcom_err.so.2
<{^_^}> Found in packages: e2fsprogs
<{^_^}> [nixpkgs] @matthewbauer pushed to release-18.09 « haskell: fix x509-system on mojave »: https://git.io/fxkAM
<tilpner> {^_^}++
<{^_^}> {^_^}'s karma got increased to 136
<tilpner> d1rewolf - So... the good news is: It runs
romildo has joined #nixos
<tilpner> The bad news... it opens windows faster than I can close them
mayhewluke has quit [Ping timeout: 272 seconds]
ottidmes has joined #nixos
<jlou2u> anyone know a good place to start debugging this: nix-shell -p python36Packages.numpy --run "python -c 'import numpy'" /tmp/nix-shell-31357-0/rc: line 1: 31933 Illegal instruction (core dumped) python -c 'import numpy'
<romildo> How to specify in nix the new src for the package maia-icon-theme: https://gitlab.manjaro.org/artwork/themes/maia ?
mayhewluke has joined #nixos
Izorkin has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<tilpner> d1rewolf - You can test this locally with nixpkgs=https://github.com/tilpner/nixpkgs/archive/appimage-run-type-1-2.tar.gz
blahdodo has quit [Ping timeout: 245 seconds]
<ottidmes> I was not thinking properly and did passwd to change the root passwd while installing after it failed during nixos-install, but of course that only changes the root passwd of the installer, and not the installed OS. I then unmounted the installer on my VPS and rebooted, only to find out I was unable login. And now I read that I can only remount an ISO after 6 hours... (I should just have changed the boot
<ottidmes> prio.) So my question is, is there a default root password for root, before you set it to something else yourself?
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to staging: https://git.io/fxkx3
<samueldr> ottidmes: assuming you're at a console, did you try a blank password?
<ottidmes> I am at the console (via a VNC connection), but blank did not work
<samueldr> if you can get to grub or to another bootloader, if that bootloader allows editing the boot option (grub does), I believe there may be a way to fix, though am unsure how exactly
<samueldr> probably something like adding boot.debug1 and then doing the right things :/ https://nixos.org/nixos/manual/#ch-troubleshooting
das_j has joined #nixos
<das_j> Hey everyone, is there a way to override the system variable for nixos-rebuild?
<samueldr> oh, there's boot.debug1mounts also
<ottidmes> samueldr: Thanks! I will look into that
<samueldr> boot.debug1mounts) # stop after mounting file systems
<samueldr> ottidmes: also look at systemd's boot options, it may as well have a way to start a shell as root
<samueldr> -> To boot directly into rescue target add systemd.unit=rescue.target or just 1 to the kernel command line. This target is useful if the problem occurs somewhere after the basic system is brought up, during the starting of "normal" services. If this is the case, you should be able to disable the bad service from here. If the rescue target will not boot either, the more minimal emergency target might.
<samueldr> haven't validated that it works under NixOS
<ottidmes> samueldr: I tried the boot.debug1mounts, but it just boots and asks me to login again, but you have given me plenty of others to try, so I will try those now, thanks!
<{^_^}> [nixpkgs] @roberth opened pull request #47684 → Add pkgs.nixosTest → https://git.io/fxkhl
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to release-18.09 « matomo: 3.5.1 -> 3.6.0 (#46242) »: https://git.io/fxkho
<ottidmes> samueldr: I edited the entry incorrectly, so that is why it did not work, both your suggestions seem to work. I am not trying the systemd rescue suggestion, because it seems easier than working from stage 1
<samueldr> now trying?
<{^_^}> [nixpkgs] @c0bw3b opened pull request #47686 → gmm: 5.1 -> 5.3 → https://git.io/fxkjq
<samueldr> and yes, if systemd can handle it, it should be easier
<ottidmes> samueldr: haha, yeah, "now" trying :P but it does "not" work :P because it gives and error that root is locked, which is the whole problem, I will try the stage 1 solution then
<samueldr> good to know, it confirms that there is no password for root :)
<samueldr> (as it's really locked, so no way to get in that way)
<ottidmes> samueldr: yeah, was about to remark the same, and we now know that nixos does have support for this systemd rescue
<samueldr> if you're not worried about breaking things (if the server is really empty of anything important) I believe that editing the /etc/shadow file, removing the password from the 2nd field (which may be one single asterisk) should do the trick
<maurer> Has anyone installec CLaSH on NixOS recently? I keep getting doctest fails
<maurer> (I may be installing it wrong)
<samueldr> or maybe it's an exclamation mark
<maurer> 843, I get a failing doctest due to the tutorial docs failing to import the clash prelude
<samueldr> -> A blank entry (eg. ::) indicates a password is not required to log in http://tldp.org/LDP/lame/LAME/linux-admin-made-easy/shadow-file-formats.html
<maurer> and if I use 821Binary, I get a libtinfo missing error
<ottidmes> samueldr: how does one edit a file in a /bin/ash shell, maybe I can access nano from /mnt-root
<samueldr> ouch, yeah, uh, `vi` :)
* samueldr verifies if our busybox has a pico-like editor
<samueldr> nope, only the minimal `vi` I think
<{^_^}> [nixpkgs] @andir pushed 105 commits to staging-18.03: https://git.io/fxIeK
<samueldr> well, and ed, since ed is the standard editor
<samueldr> (if you don't know ed, don't start it)
romildo has quit [Quit: Leaving]
<ottidmes> samueldr: there is a reason I use nano, I will just look up the necessary steps to make the edit in vi
<samueldr> :) I do understand, no worries, my daily use of vim makes it a non-issue to "only" have the primitive `vi` from busybox
fragamus has joined #nixos
<samueldr> ottidmes: just in case, make a copy before editing
<{^_^}> [nixpkgs] @matthewbauer merged pull request #47681 → docs: documentation for `cleanSource` → https://git.io/fxkNQ
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fxIvO
<ottidmes> samueldr: that would have been a good idea... Ah well, it worked! I am in, as root, thanks so much for the help!
<samueldr> \o/ yay no disasters
<{^_^}> [nixpkgs] @matthewbauer merged pull request #47682 → trivial builders: adding usage documentation for functions → https://git.io/fxkNp
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fxIv8
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<ottidmes> exactly and learned something new today :)
<samueldr> let's hope you never have to use this again :)
<maurer> thoughtpolice: Sorry to ping you, but you appear to be the only one who has ever done this - what is the proper invocation to install clash on NixOS? I currently have https://gist.github.com/maurer/5f46b54ea248d1e8a45b565a6f975e35
<maurer> (the dontCheck is me trying to work around doctest failing due to search paths, but it didn't seem to work)
<thoughtpolice> Does Clash not work, or is it the dontCheck part?
<maurer> thoughtpolice: Without dontCheck, it does not install because doctests fail
<maurer> (I am failing to create an environment with clash installed, I have tried 821Binary, getting a libtinfo error, and 843, getting a doctest error
simukis has quit [Ping timeout: 268 seconds]
<maurer> (the dontCheck was me trying to get it to ignore that test, it obviously didn't help)
kiloreux has quit [Read error: Connection reset by peer]
shabius has quit [Quit: Leaving]
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/0f51003a5bc (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<thoughtpolice> maurer: I thought about it and, I think you need to actually override the set of packages with dontCheck, not just apply dontCheck to the packages. Why? Because they might depend on each other
DigitalKiwi has left #nixos [#nixos]
<thoughtpolice> So here's what's happening: to build 'fury' I want clash-prelude. OK, it might build that, and in this case it would turn off the checks. But now I need to build clash-ghc -- that comes later, because it depends on clash-prelude.
<thoughtpolice> So, which version of clash-prelude does it choose? The 'dontCheck' version you added, or the original one? Answer: the original one, because you didn't override the clash-prelude *in the haskell package set itself*
<maurer> Ah, OK. I will look up how to do that override then.
<thoughtpolice> In other words, just putting 'dontCheck clash-prelude' into the buildInputs isn't enough; you need to make sure *all* packages that need clash-prelude see this overridden version.
<thoughtpolice> There is a file that can do that for you right here: https://github.com/thoughtpolice/clash-playground/blob/master/nix/pkgs/haskell.nix
<thoughtpolice> And some other files that will do package overrides: https://github.com/thoughtpolice/clash-playground/tree/master/nix/pkgs/hs
<thoughtpolice> You can generate those with cabal2nix pretty easily
<thoughtpolice> But you should be able to follow the gist of it if you read that haskell.nix file closely
<thoughtpolice> This repository is also useful to read: https://github.com/Gabriel439/haskell-nix/
<thoughtpolice> That's where I got the original structure from
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mateon1 has joined #nixos
<philippD> Is mkDerivation defined somewhere in nixpkgs or is it some magic interal function? I can't find it in nixpkgs directly
Friedem has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @dywedir opened pull request #47687 → i3status-rust: 0.9.0.2018-09-30 -> 0.9.0.2018-10-02 → https://git.io/fxIUc
<{^_^}> [nixpkgs] @grahamc merged pull request #47683 → docs: lib/options.nix function documentation → https://git.io/fxkAJ
<{^_^}> [nixpkgs] @grahamc pushed 2 commits to master: https://git.io/fxIUl
shabius has joined #nixos
<{^_^}> [nixpkgs] @grahamc opened pull request #47688 → nixpkgs docs: breakout functions → https://git.io/fxIU0
fragamus has joined #nixos
lassulus has quit [Ping timeout: 252 seconds]
joepie91_to_go_ has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #47521 → hyperfine: 1.1.0 -> 1.3.0 → https://git.io/fxfL3
<{^_^}> [nixpkgs] @xeji pushed commit from @dywedir to master « hyperfine: 1.1.0 -> 1.3.0 (#47521) »: https://git.io/fxITc
<{^_^}> [nixpkgs] @dywedir opened pull request #47689 → mpv: 0.29.0 -> 0.29.1 → https://git.io/fxITl
<maurer> Thanks, https://gist.github.com/38e5a55f7b487354f3e3acc80ef3aa0e got it working (in case anyone is reading logs later after searching for this)
<maurer> thoughtpolice++
<{^_^}> thoughtpolice's karma got increased to 2
<thoughtpolice> 👍
<thoughtpolice> Verilator just hit 4.0 as well with some big improvements. Been meaning to test it out myself.
<gchristensen> http://gsc.io/nixpkgs-docs/html/#sec-functions-library <- may I have some feedback on these docs I've written?
<gchristensen> specific attention to the formatting, not necessarily the phrasing
<{^_^}> [nixpkgs] @romildo opened pull request #47690 → build GTK icon caches for some packages → https://git.io/fxIIu
lassulus1 has joined #nixos
lingeeal has quit [Remote host closed the connection]
lassulus1 is now known as lassulus
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nDuff has joined #nixos
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Mateon2 has joined #nixos
__monty__ has quit [Quit: leaving]
Mateon1 has quit [Ping timeout: 245 seconds]
Mateon2 is now known as Mateon1
<neonfuz> So I just thought, my current computer is a laptop with 16gb of ram and a hdd
<neonfuz> it might be desirable to use ~8gb of my ram as a ramdisk for the majority of my programs
<neonfuz> but it doesn't really seem like nixos would be friendly to this,
<neonfuz> because 8gb isn't enough for a store really
<neonfuz> I'm trying to figure my options, like bind mounting over the nix store maybe?
<neonfuz> or union mount over the store
<neonfuz> but idk if that would interfere with nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/4d1abc44199 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<neonfuz> I'm consideringi switching back to gentoo and just using nixpkgs on gentoo
blahdodo has joined #nixos
<rawtaz> ramdisk for speed, or what's the purpose/use case?
<{^_^}> [nixpkgs] @timokau merged pull request #47620 → Unifi updates → https://git.io/fxUix
<{^_^}> [nixpkgs] @timokau pushed 3 commits to master: https://git.io/fxIqU
<colemickens> Is there anything that will analyze my system closure and tell me which of the Channel gating jobs apply to me?
<colemickens> For example nixos-unstable might gate on libvirtd (I think it actually does NOT, but let's pretend it does).
<colemickens> Maybe my systems don't need libvirtd, and I have a lot of CPU power to spare, but I want to ensure my system configs pass all of the other relevant tests.
<ottidmes> gchristensen: although it is clear enough if you look at the other examples, the indentation of the examples might imply that they are examples of that particular argument
<gchristensen> ah! cool, thank you, ottidmes !
<ottidmes> gchristensen: Maybe add the type to the argument, so you do not have to count the arguments in the signature to determine the type
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ottidmes> gchristensen: I see "Like ???" I assume that is known and will not be there in the final output?
erasmas has quit [Quit: leaving]
<gchristensen> ottidmes: right
<{^_^}> [nixpkgs] @xeji merged pull request #47687 → i3status-rust: 0.9.0.2018-09-30 -> 0.9.0.2018-10-02 → https://git.io/fxIUc
<{^_^}> [nixpkgs] @xeji pushed commit from @dywedir to master « i3status-rust: 0.9.0.2018-09-30 -> 0.9.0.2018-10-02 (#47687) »: https://git.io/fxIqH
<ottidmes> gchristensen: more links would be useful, e.g. instead of just mentioning nix-shell, point to some doc of it, beginners might not know of it
<{^_^}> [nixpkgs] @xeji merged pull request #47686 → gmm: 5.1 -> 5.3 → https://git.io/fxkjq
<{^_^}> [nixpkgs] @xeji pushed commit from @c0bw3b to master « gmm: 5.1 -> 5.3 (#47686) »: https://git.io/fxIqN
<ottidmes> gchristensen: The numbering at e.g. pullImage is nice, but formatting wise I would expect the indentation before the numbers instead of after
fendor has quit [Read error: Connection reset by peer]
<gchristensen> oh uh oh you're going a bit further on than I intended :D
<gchristensen> but yeah, you're right! I'm taking notes for sure
<ottidmes> haha, no problem, I stopped myself at chapter 8
<{^_^}> [nixpkgs] @xeji merged pull request #47689 → mpv: 0.29.0 -> 0.29.1 → https://git.io/fxITl
<{^_^}> [nixpkgs] @xeji pushed commit from @dywedir to master « mpv: 0.29.0 -> 0.29.1 (#47689) »: https://git.io/fxIm3
<tnks> that's hillarious... I was writing this Nix expression in Vim, and was convinced that the syntax highlighter wasn't keeping up with reality... but it was right... I was wrong.
Ariakenom has quit [Quit: Leaving]
<rawtaz> :D
<{^_^}> [nixpkgs] @florianjacob opened pull request #47691 → nixos/matomo: introduce services.matomo.package option → https://git.io/fxImS
magnetophon has joined #nixos
shabius_ has joined #nixos
<{^_^}> [nixpkgs] @xeji closed pull request #47046 → harfbuzzFull: 1.8.8 -> 1.9.0 → https://git.io/fA7Lr
Butterfly^ has quit [Changing host]
Butterfly^ has joined #nixos
Butterfly^ has joined #nixos
shabius has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #47049 → harfbuzz: 1.8.8 -> 1.9.0 → https://git.io/fA7mw
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to staging « harfbuzz: 1.8.8 -> 1.9.0 (#47049) »: https://git.io/fxImQ
ajs124 has quit [Quit: Gateway shutdown]
<magnetophon> Hi, I made a pkg that needed some patching to work, and the author is offering to upstream my changes, but I'm not sure what to say. Could someone chip in? https://github.com/sadko4u/lsp-plugins/issues/6#issuecomment-426450055
blahdodo has quit [Ping timeout: 268 seconds]
<colemickens> How are you doing the patching? You might be able to have the derivation definition do that as part of building.
ajs124 has joined #nixos
<colemickens> Or you could send upstream patches that make those paths a build-time configuration option, so that you could just set a Make flag or something, rather than having to write/maintain a patch, etc.
<colemickens> Unfortunately I'm not skilled enough to advise more than that.
<magnetophon> colemickens: it's just 3 lines like: substituteInPlace Makefile --replace "/usr/lib" "$out/lib"
<colemickens> oh yeah, idk what you'd even upstream then
<{^_^}> [nixpkgs] @xeji merged pull request #46938 → unbound: 1.7.3 -> 1.8.0 → https://git.io/fAHHa
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to staging « unbound: 1.7.3 -> 1.8.0 (#46938) »: https://git.io/fxIYU
<magnetophon> colemickens: yeah, that's what I thought too, and I wrote that in my answer to him. Just thought I'd doublecheck here.
<magnetophon> Hmm, he just answered, but I don't understand what he's suggesting. Could someone join the conversation in the above link?
<ottidmes> He just suggests a way for you to get access to an extra variable for you to use in your patches, from what I gather (I am no expert), while all you ask for is that /usr is not hardcoded but done via a variable
<magnetophon> ottidmes: thanks, that's what it looks like to me. How would you solve this? Could you please comment in the issue directly, cause otherwise it turns into a game of chinese whispers... :)
<ottidmes> magnetophon: I do not know what the policy is, I did some quick searches, but found nothing of the kind. No policy on what to suggest to package maintainers to make their packages better fit NixOS that I know of. Most packages just replace the hardcode paths. Makefiles is not my cup of tea, so cannot help you there. I would suggest asking how easy it is to make /usr variable and default to /usr (for other
<ottidmes> distributions), while allowing you to not have to patch the Makefile, but since it is just the one line, you could also just say, it is OK as it is, and that you can easily patch it for NixOS
<{^_^}> [nixpkgs] @nicknovitski opened pull request #47692 → kubeval: init at 0.7.3 → https://git.io/fxIOg
<gchristensen> usually projects use the PREFIX variable to determine where to install to, and Nixpkgs supports that out of the box
jluttine has quit [Ping timeout: 245 seconds]
sigmundv__ has joined #nixos
jluttine has joined #nixos
<magnetophon> gchristensen: I know, but this is not on where to install, but on where the pkg will find it's own variables. Could you please join us on https://github.com/sadko4u/lsp-plugins/issues/6 as I don't know what to tell him
<{^_^}> sadko4u/lsp-plugins#6 (by magnetophon, 3 hours ago, closed): [ERR] Could not find LSP JACK core library
<magnetophon> s/variables/libraries/
<gchristensen> no, sorry, not my area of expertise
<gchristensen> but still usually $PREFIX no?
pie__ has quit [Ping timeout: 246 seconds]
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/79bbe4d5439 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<{^_^}> [nixpkgs] @nicknovitski opened pull request #47693 → envsubst: init at 1.1.0 → https://git.io/fxI3M
<magnetophon> gchristensen ottidmes: I've passed on your suggestions.
nDuff has quit [Quit: zzz]
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/b79abf03147 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
sigmundv__ has quit [Remote host closed the connection]
tertl3 has joined #nixos
blahdodo has joined #nixos
sigmundv__ has joined #nixos
<{^_^}> [nixpkgs] @magnetophon opened pull request #47694 → lsp-plugins: init at 1.1.4 → https://git.io/fxIsb
carlosdagos has joined #nixos
jluttine has quit [Ping timeout: 268 seconds]
jluttine has joined #nixos
mayhewluke has quit [Ping timeout: 244 seconds]
mayhewluke has joined #nixos
blahdodo has quit [Ping timeout: 244 seconds]