gchristensen changed the topic of #nixos to: NixOS 18.09 released https://discourse.nixos.org/t/1076 || 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 ... nixcon videos: https://tinyurl.com/nixcon2018
oida has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace pushed to master « pantheon.elementary-files: rely on desktop-file-utils hook »: https://git.io/fhAtU
Erasmus has joined #nixos
drakonis_ has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
drakonis has quit [Ping timeout: 245 seconds]
roni has quit [Ping timeout: 240 seconds]
shibboleth has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace opened pull request #56552 → pantheon.elementary-screeshot-tool: fix conceal text → https://git.io/fhAtt
scientist has quit [Quit: WeeChat 2.2]
tdeo has quit [Quit: Quit]
<talqu> elvishjerricco, https://pastebin.com/G3cmyL5j, what am i doing wrong here? Once in nix shell -> ghci I can't import the Turtle module
tdeo has joined #nixos
<clever> talqu: was that in a shell.nix? how did you run nix-shell?
<elvishjerricco> talqu: The `packages` argument is the list of packages you want to work on, not the ones you need to be available.
<elvishjerricco> talqu: So you're saying "Give me all of turtle's deps so that I can build my local copy of it" but obviously that's not what you want :)
<elvishjerricco> talqu: Do you want to add turtle to your cabal file's build-depends?
o1lo01ol1o has joined #nixos
<mek42_laptop> hmmm... the zfs install procedure looks too easy
<talqu> no, in that case i know i had to add it to default.nix (generated with cabal2nix). I want to add to shell.nix as a development only needed package
<talqu> just for learning purpose
<clever> talqu: is your project on github?
<talqu> clever, :), no im just poking around with these ideas now
<elvishjerricco> talqu: Alright, then that's not really something shellFor supports at the moment. Sounds like a good idea though, so I may add such a feature in the future. Anyway, for now you can add turtle as a buildDepends of your package using `haskell.lib.addBuildDepend(s)`
<clever> talqu: if you already have a default.nix from cabal2nix, you dont need to mess with shellFor at all
<clever> talqu: just make this shell.nix: (import ./.).env
<clever> or maybe: (import ./. {}).env
<clever> depending on what your default.nix wants
<elvishjerricco> clever: They also need to add ghcid as a native build input and change to a GHC with hoogle. shellFor is the lowest friction way to do that
<clever> then (import ./. {}).env.overrideDerivation
<elvishjerricco> clever: That won't let you use hoogle
<clever> ah, hoogle, that complicates things, yeah
<talqu> :)
Erasmus has quit [Quit: END-AUMF]
<talqu> elvishjerricco, i suppose nobody will ever want to haskell dependency
<talqu> for haskell project only in a dev mode
<talqu> but i was just curious
<{^_^}> [nixpkgs] @worldofpeace opened pull request #56553 → nixos/plasma5: add xdg-user-dirs to create user directories → https://git.io/fhAtl
<elvishjerricco> talqu: FYI, I made a comment the other day outlining my typical Haskell setup: https://discourse.nixos.org/t/when-haskell-dependencies-fail/2244/2?u=elvishjerricco
<talqu> elvishjerricco, clever thanks, i saved cardano link and elvishjerricco elegent shellFor solution. learned something new :)
kvda has joined #nixos
mek42_laptop has quit [Quit: Leaving]
hedning has quit [Ping timeout: 255 seconds]
<talqu> it is nixpkgs in nix package worlds, but nixos in nixos os?
mizmorYodh has joined #nixos
<elvishjerricco> talqu: Not sure what you're asking, sorry
<talqu> i've seen nix-env -iA nixos.hello, and other time nixpkgs.hello
<clever> talqu: the nixos and nixpkgs there, is the name of a channel from nix-channel --list
o1lo01ol1o has quit [Remote host closed the connection]
<elvishjerricco> (which only gets more confusing when different users have different channel lists)
<clever> on some machines, it will be sudo nix-channel --list
<mizmorYodh> Hey all! I have audio issues and i'm new to nixos in general. In my config, I have sound.enable and hardware.pulseaudio.enable set to true. Am i missing something?
o1lo01ol1o has joined #nixos
<clever> mizmorYodh: what kind of audio issues?
<mizmorYodh> clever: well I dont have any devices listed in the device tab of the audio volume app from KDE
<clever> mizmorYodh: and the same in pavucontrol, on the output devices tab?
yl has quit [Ping timeout: 258 seconds]
rpg has quit [Quit: Textual IRC Client: www.textualapp.com]
<mizmorYodh> clever: hmm idk what pavucontrol is
<clever> mizmorYodh: pulse audio volume control, the package and binary names are pavucontrol
<mizmorYodh> clever: is it installed by default?
<clever> mizmorYodh: no
Erasmus has joined #nixos
<{^_^}> [nixpkgs] @delroth opened pull request #56554 → tpm2-tss: 2.2.0 -> 2.2.1 → https://git.io/fhAtV
o1lo01ol1o has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @matthewbauer opened pull request #56555 → Initial WebAssembly cross-compilation support → https://git.io/fhAtw
<mizmorYodh> clever: oh ok! what do i need to have audio then? i feel like i'm missing a package and/or a config setting
patrl has quit [Ping timeout: 252 seconds]
<clever> mizmorYodh: more likely your missing drivers, but we should check pavucontrol first
o1lo01ol1o has joined #nixos
<mizmorYodh> clever: that would make sense! i'll install pavucontrol rn
jasongrossman has joined #nixos
hedning has joined #nixos
vk3wtf has joined #nixos
ixxie has joined #nixos
talqu has quit [Quit: Leaving]
<mizmorYodh> clever: i opened pavucontrol, and it's just saying Establishing connection to pulseaudio. Please wait... with a loading animation
eadwu has joined #nixos
<clever> mizmorYodh: then pulseaudio isnt starting correctly, what happens if you just run `pulseaudio` in a terminal?
jluttine has quit [Ping timeout: 245 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
<mizmorYodh> clever: oh it wasn't running. Could it be because i'm logged in as root (i know i know, i'll make a proper user haha)
o1lo01ol1o has joined #nixos
<clever> mizmorYodh: yeah, that would do it, pulseaudio doesnt like running as root
<mizmorYodh> clever: ohhh makes sense!
<mizmorYodh> clever: i'll try to create a user and to log as this user! thanks a lot for your help :)
instantepiphany has joined #nixos
<instantepiphany> Anyone installed Davinci Resolve on Nixos? The installer just says "Aborted" for me.
drakonis1 has quit [Quit: WeeChat 2.2]
<{^_^}> [nixpkgs] @averelld closed pull request #56424 → python: tensorflow: 1.11 -> 1.13 → https://git.io/fhNsT
<gillmanash> How can I ask one package to use staging-next branch if there is a hotfix which hasn't been merged?
<gillmanash> specifically, python.partd
<clever> gillmanash: nix-build -A python.partd https://github.com/nixos/nixpkgs/archive/staging-next.tar.gz
drakonis has joined #nixos
o1lo01ol1o has quit [Ping timeout: 244 seconds]
mbrgm_ has joined #nixos
vk3wtf has quit [Ping timeout: 264 seconds]
mizmorYodh has quit [Quit: Page closed]
mbrgm_ is now known as mbrgm
mbrgm has quit [Ping timeout: 264 seconds]
<gillmanash> clever: Oh cool, thanks! But actually it is a dependency of my userPackages. Can I use an overlay?
Guest66951 has quit [Ping timeout: 250 seconds]
sondr3 has quit [Quit: WeeChat 2.4]
erictape1 has joined #nixos
erictapen has quit [Ping timeout: 268 seconds]
instantepiphany has quit [Quit: Page closed]
jluttine has joined #nixos
thc202 has quit [Ping timeout: 250 seconds]
timon37 has joined #nixos
catch22 has quit [Remote host closed the connection]
<clever> gillmanash: (import (builtins.fetchTarball "https://github.com/nixos/nixpkgs/archive/staging-next.tar.gz") {}).python.parted
eadwu has quit [Quit: WeeChat 2.4]
<clever> gillmanash: but that will re-fetch the latest staging-next every time you eval the expression
catch22 has joined #nixos
<clever> so you may want to replace staging-next with the current git rev
catch22 has quit [Client Quit]
<{^_^}> [nixpkgs] @hhm0 opened pull request #56556 → toybox: install all binary links in one directory → https://git.io/fhAtN
mog has quit [Ping timeout: 244 seconds]
<gillmanash> clever: oh great, thanks again :)
<gillmanash> Did I see someone do this before?
<gillmanash> clever++
<{^_^}> clever's karma got increased to 107
<clever> gillmanash: its a fairly common pattern
<clever> ,unstable
jluttine has quit [Ping timeout: 250 seconds]
<clever> slightly modified though, because staging-next doesnt have a channel
<gillmanash> clever: I have a little function to help override single python packages. Is there a recommded way to do that?
<clever> python things may break if you use one package from a different channel, so it may help to get the entire set of python things from staging-next
<gillmanash> Since the live inside a set, and can be both python3Packages.blah and python3.pkgs.blah
<gillmanash> right
simukis has quit [Quit: simukis]
drakonis1 has joined #nixos
ingenieroariel has joined #nixos
<{^_^}> [nix] @edolstra merged pull request #2674 → nix-daemon: add variable to disable fork safety → https://git.io/fhHyq
<{^_^}> [nix] @edolstra pushed 2 commits to master: https://git.io/fhAqv
eadwu has joined #nixos
sigmundv__ has quit [Ping timeout: 268 seconds]
<ingenieroariel> Hello everyone, I am looking to compile a golang package that only works with golang 1.8 - I see in latest nixos that only 1.10 and 1.11 are available. Does anyone know a workaround?
drakonis2 has joined #nixos
drakonis_ has quit [Ping timeout: 258 seconds]
Erasmus has quit [Ping timeout: 255 seconds]
<ingenieroariel> this is the function I need to call from a newer nixos: https://github.com/NixOS/nixpkgs/blob/release-17.09/pkgs/top-level/all-packages.nix#L11174
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
drakonis1 has quit [Ping timeout: 258 seconds]
Rusty1 has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
<aanderse> ingenieroariel: maybe you could add the version of nixos that has the version of go you want to your channels list, then pass that version of go to that go package? might work
silver has quit [Read error: Connection reset by peer]
<ingenieroariel> thanks aanderse, although I have all my custom packages in a nur-repository which makes channel handling a bit more complicated
stepcut has joined #nixos
shibboleth has quit [Quit: shibboleth]
ninjin has quit [Ping timeout: 256 seconds]
ninjin has joined #nixos
<ingenieroariel> aanderse: I did an ugly hack within the derivation - totally not proud but I think will work for now
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
<aanderse> yeah that looks like a reasonable way to get the job done :)
stepcut has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhAq3
sigmundv has quit [Remote host closed the connection]
ixxie has quit [Ping timeout: 250 seconds]
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
matix has joined #nixos
Erasmus has joined #nixos
jluttine has joined #nixos
vk3wtf has joined #nixos
<{^_^}> [nixpkgs] @aanderse opened pull request #56557 → redmine: 3.4.8 -> 3.4.9 & 4.0.1 -> 4.0.2 → https://git.io/fhAq0
<hyperfekt> we're getting a wasabi backed and cloudflare cached binary cache? hell yeah https://cowsay.pw/
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
<{^_^}> [nixpkgs] @aanderse opened pull request #56558 → redmine: 3.4.8 -> 3.4.9 [18.09 backport] → https://git.io/fhAqa
xkapastel has quit [Quit: Connection closed for inactivity]
stepcut_ has joined #nixos
stepcut has quit [Read error: Connection reset by peer]
ng0_ has joined #nixos
ng0 has quit [Ping timeout: 256 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ng0_ has quit [Ping timeout: 256 seconds]
kvda has joined #nixos
work_ has quit [Quit: Connection closed for inactivity]
jtcs has quit [Ping timeout: 244 seconds]
ng0_ has joined #nixos
matix has quit [Quit: :q!]
ng0_ has quit [Remote host closed the connection]
ingenieroariel has quit [Ping timeout: 256 seconds]
jtcs has joined #nixos
<{^_^}> [nix] @edolstra pushed commit from @dtzWill to master « archive.cc: ignore more posix_fallocate "not supported" error codes »: https://git.io/fhAqH
mog has joined #nixos
<averell> that seems pretty cool. https://analytics.cowsay.pw/ seems broken for me.
lsyoyom has quit [Ping timeout: 268 seconds]
o1lo01ol1o has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
eadwu has quit [Quit: WeeChat 2.4]
eadwu has joined #nixos
wedens has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #56559 → wireless-tools: 30.pre2 -> 30.pre9 → https://git.io/fhAqh
ij has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/898870824d7 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
ij has quit [Ping timeout: 245 seconds]
lsyoyom has joined #nixos
<adamantium> Hey -- anyone use mate ? i have it installed with services.xserver.desktopManager.mate.enable = true; but there is no gsettings, and if i install glib, then I have gsettings, but the gsettings commands to tweak mate from the command line from the arch wiki "do not work"
hellrazo1 has quit [Ping timeout: 255 seconds]
<adamantium> huh, i just found this https://github.com/NixOS/nixpkgs/issues/42770 related to my question. i have something to try now
<{^_^}> #42770 (by leo60228, 34 weeks ago, open): GSettings override requires Gnome 3, despite usecases including most/all Gtk DEs
mog has quit [Quit: im quiting!]
mog has joined #nixos
jasongrossman has joined #nixos
MinceR_ has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MinceR has quit [Ping timeout: 250 seconds]
slack1256 has joined #nixos
gillmanash has quit [Ping timeout: 240 seconds]
lsyoyom has quit [Ping timeout: 245 seconds]
<drakonis> i'm not sure if anyone's using the podman package right now
<worldofpeace> adamantium I don't know what to think when you say "there's no gesttings". Do you mean that the gsettings commands you try to execute have no effect or don't persist?
<adamantium> worldofpeace, the url i linked is pretty informative, but with mate, you still need to install glib to get "gsettings" on the path. And I've found it now seems to be mostly working, not every mate key mentioned by the arch wiki seems to be here, and not sure why
<adamantium> worldofpeace, for example, this one worked gsettings set org.mate.background show-desktop-icons false
<adamantium> okay wait, no i think it all works now! Well, maybe i can help the next guy then. Perhaps glib should be included with mate.nix though
<worldofpeace> adamantium Yes, I've looked at the module and there's some things that look like they were missed.
<adamantium> worldofpeace, ah, thanks. well so far i have added glib to system packages and done services.xserver.desktopManager.gnome3.extraGSettingsOverrides = true; and things seem to be working
<adamantium> anything else you noticed?
<{^_^}> [nixpkgs] @ryantm merged pull request #52624 → terra: 2016-06-09 -> 1.0.0-beta1 → https://git.io/fhf3P
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fhAm3
kvda has joined #nixos
gillmanash has joined #nixos
<worldofpeace> adamantium GNOME adds these by default https://github.com/NixOS/nixpkgs/blob/master/pkgs/desktops/gnome-3/default.nix#L25 . I'd say you should add probably the first 5
<adamantium> yeah i was looking at those too.
vk3wtf has quit [Ping timeout: 250 seconds]
<adamantium> thanks!
lsyoyom has joined #nixos
<worldofpeace> adamantium Thank you too :) Because you pointed it out I can now fix this in nixpkgs for you
<adamantium> worldofpeace, thank you! well, there is heads up also, the included mate log viewer is basically broke with systemd
<adamantium> worldofpeace, i wonder if we should include gnome-logs, it is what i installed and it works great. saw a bug upstream reported about it, seems the devs dont want to fix it
<worldofpeace> adamantium Does it want access to set system settings with systemd?
<adamantium> worldofpeace, i have no idea, the only log it shows is xorg.0.log ... no dmesg, nothing from journalctl
<adamantium> gnome-logs is what the mate devs said to install *lol*
Erasmus has quit [Quit: reboot]
<worldofpeace> If they say it's just broken they probably shouldn't even ship it
<adamantium> "lack of manpower" , maybe it works on systemd-less
Erasmus has joined #nixos
o1lo01ol1o has quit [Read error: Connection reset by peer]
<bgamari> How do I refer to the source derivation of a derivation (e.g. pkg.drvPath) from the builder of another derivation without actually requiring that `pkg` be built?
counting1 has joined #nixos
vk3wtf has joined #nixos
<bgamari> which is supposed to generate a shell script which collects the logs from a set of derivation builds (testedPackages)
<ottidmes> bgamari: you probably want builtins.unsafeDiscardStringContext to remove the dependency on pkg
<bgamari> hmm
<adamantium> worldofpeace, you said you use exwm iirc? i'm basically using exwm + mate for some added lipstick. I wonder if i should try gnome-flashback
<bgamari> I'm just a bit surprised that even referring to drvPath causes a build
<bgamari> afterall, drvPath is just a source derivation
<bgamari> ottidmes, indeed that does the trick, thanks!
<ottidmes> it should build the derivation, but I would not have expected it to build the derivation too
<ottidmes> ok, that sentence is confusing
<bgamari> it should build the derivation but not the output
vk3wtf has quit [Client Quit]
<ottidmes> it should build the .drv file, but I did not expect the .drv file to be realized as well
vk3wtf has joined #nixos
countingsort has quit [Ping timeout: 250 seconds]
<adamantium> worldofpeace, oh! also the weather feature does not seem to work in mate, maybe it needs geoclue ?
<worldofpeace> adamantium Probably. They're missing a lot of dbus services being enabled. I would open an issue in nixpkgs with your findings.
<adamantium> okay
<adamantium> i was just glancing at the gnome3 dbus services, which ones do you recommend i enable, if you have time
<worldofpeace> I'm not really familar with mate, so I don't know exactly what they're using. Though you can quickly find out if I needed service isn't running by a certain application not functioning they way you expect, and then running it from a terminal like `G_MESSAGES_DEBUG=all executable` to get some debug output.
<{^_^}> [nixpkgs] @eadwu opened pull request #56560 → linux_testing_bcachefs, bcachefs-tools: 20190228 → https://git.io/fhAmz
eadwu has quit [Quit: WeeChat 2.4]
<adamantium> ty
slack1256 has quit [Remote host closed the connection]
ym555 has quit [Quit: leaving...]
buckley310 has quit [Quit: Bye]
buckley310 has joined #nixos
<yangm97> is nixpkg missing libmagic? https://packages.ubuntu.com/cosmic/libmagic-dev
<simpson> > libmagic
<{^_^}> undefined variable 'libmagic' at (string):219:1
<simpson> > file
<{^_^}> attribute 'attrPos' missing, at (string):63:9
<clever> ,locate libmagic
o1lo01ol1o has joined #nixos
<clever> nix-locate libmagic
<clever> file.out 157,040 x /nix/store/8kn3pq1aks4lclicfa56ifgi6frvwxl4-file-5.30/lib/libmagic.so.1.0.0
<simpson> yangm97: I was hoping that the bot would say useful things. Anyway, `libmagic` is provided by `file` in nixpkgs.
<yangm97> this bot is better than https://nixos.org/nixos/packages.html#magic
<yangm97> thanks
o1lo01ol1o has quit [Ping timeout: 255 seconds]
<yangm97> I'm trying to make a `--pure` env for building this https://github.com/matrix-construct/construct
<yangm97> how is version pinning handled?
Erasmus has quit [Read error: Connection reset by peer]
<simpson> If an older version of a package is needed, then we can fix it with a specific name. For example, python27Packages vs. python35Packages.
copumpkin has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @dtzWill opened pull request #56561 → qtbase: let build use gold linker if it wants, maybe works now → https://git.io/fhAmQ
abaisteabaiste has quit []
johnw has quit [Ping timeout: 244 seconds]
johnw has joined #nixos
drakonis has quit [Quit: WeeChat 2.4]
<{^_^}> [nixpkgs] @ryantm merged pull request #56542 → nix-prefetch-github: 2.1 -> 2.2 → https://git.io/fhAkt
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fhAm5
NickSeagull has quit [Quit: WeeChat 2.2]
NickSeagull has joined #nixos
<simpson> yangm97: `libsodium` is so-named. Not sure what's wrong with the other one. `boost` is also so-named, if that's the issue.
<yangm97> I'll RTFM on "present but cannot be compiled", but as for the boost, no clue why it stops there
<yangm97> I'm looking at the autogenerated `configure` and it's disgusting
hera_ has joined #nixos
pie__ has joined #nixos
<hera_> Hello, does anyone here have experience configuring a trackpad or number pad on an acer... more details: https://www.reddit.com/r/NixOS/comments/aw0ml3/trackpad_and_number_pad_configuration/
<{^_^}> [nixpkgs] @worldofpeace opened pull request #56562 → nixos/gnome-settings-daemon: init → https://git.io/fhAmx
<{^_^}> [nixpkgs] @ryantm merged pull request #56554 → tpm2-tss: 2.2.0 -> 2.2.1 → https://git.io/fhAtV
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fhAmp
pie___ has quit [Ping timeout: 255 seconds]
asymmetric_ has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
asymmetric has quit [Ping timeout: 264 seconds]
yl has joined #nixos
<yl> I was expecting `(lib.mkMerge [ { a = [ 1 ]; } { a = [ 2 ]; } ])` to return `{ a = [ 1 2 ]; }` what am I missing?
<clever> yl: it only works if it passed thru the module framework
<ddellacosta> anyone have any idea how to fix this ghc build issue? I'm not even sure what this is referring to: https://gist.github.com/ddellacosta/e29a3d2b8ceee7852e51d620abc2ab12
<clever> ddellacosta: already fixed in nixos-unstable
<ddellacosta> clever: oh wow, this whole time I figured it was something I had misconfigured. Thanks!
<clever> ddellacosta: something was updated for a newer ghc, and it broke older ghc's
<clever> but it has since been fixed
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/6e5caa3f8ac (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
growpotkin has joined #nixos
<ddellacosta> gotcha
<gillmanash> Why does `nix why-depnds` start building the closure?
<clever> gillmanash: it operates on the runtine closure, which is only known after the build is finished
<clever> gillmanash: you can also give it storepaths to finished builds
<yl> clever: I don't want to fully use modules for the project that I have (overkill) so I have a something like `{ a = [ 1 ]; } // (import path/to/expr.nix)` where the expr.nix defines `{ a = [ 2 ]; }` and it's obviously setting it to `{ a = [ 2 ]; }`
<yl> clever: how to make it merge a instead of overriding it since it's an array?
<clever> yl: both // and recursiveUpdate will overwrite the list, not merge it, so you would need to either use a custom recursive function, or the module framework
<gillmanash> clever: Ah right, I was trying to use it so I can eliminate a failing-to-build dependency
<clever> gillmanash: nix already tells you the dependency chain, when it prints everything that failed to build, in the order they depend on eachother
<yl> clever: I see what you mean. Do you know if any exists in nixpkgs or write my own?
<clever> yl: the module system is fairly easy to work with, let me toss together an example...
<yl> clever: if you can toss an example in 5 minutes, I think I'm sold. I have not used it yet to make an informed decision on it
<yl> s/it yet/it engouth yet/
<gillmanash> clever: It doesn't omit any? It says python.partd -> python-user-env -> userPackages, but I don't ask for partd in my user env
<clever> gillmanash: then its in the $out/nix-support/propagated-* of something of something else the python-user-env depends on
<{^_^}> [nixpkgs] @worldofpeace pushed to master « lollypop: 0.9.921 -> 0.9.923 »: https://git.io/fhAYL
<clever> yl: example done, pushing to github...
ottidmes has quit [Ping timeout: 250 seconds]
<yl> clever: awesome, I'll take a look. Thanks!
<clever> yl: example.nix defines a to be an option, that is a list of ints, and then exrp.nix and expr2.nix set a to different things, [1] and [2], default.nix then merges all 3 files together, and looks at config.a
reinhardt has joined #nixos
<yl> clever: ohh that's dead simple
<clever> yl: yep
<yl> clever: thank you!
<clever> yl: nixos is just repeating that pattern, across 100's of files, until you have a full distro
<clever> yl: you can also set a default value inside the mkOption block, which will vanish if the config is set anywhere
<clever> and imports is recursive, so any module can define more modules to load
<yl> clever: yea I've used the modules, but indirectly
<yl> I did not know about the evalModules and I was mostly relying on nixos-rebuild
<clever> yl: oh, and now that it is using the module framework, you could do: a = lib.mkMerge [ [1] [2] ]; i think
<yl> now I know how it works
<clever> yl: behind the scenes, nixos-rebuild is just calling https://github.com/NixOS/nixpkgs/blob/master/nixos/lib/eval-config.nix#L52-L58
<yl> clever: :eyeopen:
<yl> thanks!
<{^_^}> [nixpkgs] @ryantm opened pull request #56564 → .github/CODEOWNERS: remove @ryantm from haskell → https://git.io/fhAYY
<{^_^}> [nixpkgs] @dtzWill merged pull request #56494 → Revert "Merge #56170: Revert "file: 5.35 -> 5.36" (staging)" → https://git.io/fhNMq
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to staging: https://git.io/fhAYG
<{^_^}> [nixpkgs] @dtzWill merged pull request #56429 → xorgserver: 1.20.3 -> 1.20.4 → https://git.io/fhNGW
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fhAYZ
freeman42x has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @dtzWill merged pull request #56528 → gipc,gdrivefs: update → https://git.io/fhNjc
<{^_^}> [nixpkgs] @dtzWill pushed 3 commits to master: https://git.io/fhAYn
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
Mythology has joined #nixos
<Mythology> The Economic Community of Central African States (ECCAS) is an Economic Community of the African Union for promotion of regional economic co-operation in Central Africa.
<Mythology> Economy of South India - Dravidian speakers form the majority of the population of South India
Mythology has quit [Remote host closed the connection]
Rusty1 has quit [Quit: Konversation terminated!]
<teto> does buildRustPackage do anything strange with src ? I am trying to do a fetchgit but it fetches many packages and my postFetch hook runs in an empty directory /build
_kwstas has joined #nixos
<clever> teto: run `nix show-derivation /nix/store/foo.drv` on the drv that fails to build
_kwstas has quit [Client Quit]
ddellacosta has quit [Ping timeout: 250 seconds]
ddellacosta has joined #nixos
vk3wtf has quit [Ping timeout: 250 seconds]
wfranzini has quit [Remote host closed the connection]
hyperfekt has quit [Ping timeout: 256 seconds]
<teto> clever: good idea, it gives some insight. I have been trying to run "git fetch --tags ${url}" as a postFetch operation to satisfy a program constraints but I never am in the correct folder. Will try later
<clever> teto: the body of the fetch command usually outputs directly to $out
<clever> teto: so postFetch may need to `cd $out` first
<teto> I tried that but I ended up in /nix/store so git could not write the tags
<clever> teto: can you pastebin the show-derivation output?
<neonfuz__> Any way to "skip" packages when upgrading?
<neonfuz__> I'm trying to do a nix-env -u but one package is failing rn
<teto> clever here is the suspect https://github.com/teto/home/blob/master/nixpkgs/overlays/pkgs/gnvim/default.nix . I try to build just the src with nix-build -A gnvim ~/nixpkgs but it fetches many things,
<neonfuz__> some way to invert the pattern, like a "not", or a --skip
ninjin has quit [Remote host closed the connection]
<neonfuz__> I swear I read in the manpage somewhere an option that let you skip a package by a pattern matching it's path
<neonfuz__> but I can't find that now
<clever> teto: and what is the error when you try to build with that overlay?
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @andrew-d opened pull request #56565 → plex: rewrite to use FHS userenv → https://git.io/fhAYV
yl has quit [Ping timeout: 252 seconds]
MinceR_ is now known as MinceR
domogled has joined #nixos
<yl[m]> clever: does the modules in evalModules have to be files? Can I pass expression directly there?
<clever> yl[m]: it can also be raw functions
<clever> yl[m]: the example from nixos uses a pkgsModule to set nixpkgs.system
<yl[m]> clever: oh nice
<yl[m]> thank you
<teto> clever: log output https://paste.ubuntu.com/p/qZZGC7FjDf/ . It starts by fetching the src I specified, than I suppose rust fetches many things, and only at the end it runs postFetch
<clever> teto: your overlay does a `exit 1` so the build fails
<clever> teto: but otherwise, it appears to be working normally
<teto> hum.. right, I was expecting git fetch to output something but I removed the url (I need to specify one since there is no FETCH_HEAD), when putting it back it fetches the tag
bemeurer has joined #nixos
<bemeurer> If I have a default.nix for a project, and then in the same dir I have a some_dep.nix formula; how can I add that dep to my default.nix?
<clever> teto: also note, if you leave the sha256 unchanged, nix assumes the output is unchanged, and wont re-run the derivation, no matter how much you change the postFetch
<clever> bemeurer: something like buildInputs = [ (pkgs.callPackage ./some_dep.nix {}) ]; maybe
SeanConnely has joined #nixos
<SeanConnely> nixos command tool
<bemeurer> Holy cow it worked, clever :)
<SeanConnely> of cource it did
omnipotententity has joined #nixos
<bemeurer> clever: Eh, why is it pulling an ancient Rust?
<bemeurer> Can I override the rust used for RustPlatform?
<bemeurer> Here I get a Rust nightly
<bemeurer> And I want to use it to build this pkf
<bemeurer> *pkg
<omnipotententity> Hi! I'm new to NixOS, and I'm having some difficulty with installing tensorflow subpackages (such as the tensorflow_dataset package) can someone point me in the general direction of a resource where I can read up on this?
<clever> bemeurer: what does rustNightly.callPackage do differently?
<bemeurer> clever: One second, refresh those pages, just pushed changes
SeanConnely has left #nixos [#nixos]
<bemeurer> Oh
<bemeurer> I see what you are saying
<bemeurer> Woah
jackdk has quit [Ping timeout: 255 seconds]
<teto> clever: I confirm that works (well I have another problem but I know how to fix it)
<teto> clever++
<{^_^}> clever's karma got increased to 108
<clever> bemeurer: also, have you been to #osdev ?
<bemeurer> clever:Yeah, I lurk there a lot :)
<bemeurer> clever: `(rustNightly.callPackage ./bootimage.nix {})` did not work :(
<bemeurer> Getting error, one second
<bemeurer> clever: https://ptpb.pw/zHkZ
<teto> ,locate webkit2gtk-4.0.pc
<{^_^}> Found in packages: gnome3.webkitgtk.dev
ddellacosta has quit [Ping timeout: 240 seconds]
<clever> bemeurer: ah, then rustNightly doesnt have a callPackage
endformationage has quit [Quit: WeeChat 2.3]
<bemeurer> :O
<bemeurer> What do I do?
<clever> bemeurer: poke around more in nix repl
<omnipotententity> also a more general question, which way is preferred for installing packages, I see at least three ways: the first is to edit the /etc/nixos/configuration.nix file and place the packages in either the system environment or the user's environment. The second is to install it via nix-env. The third is to add it to your ~/.nixpkgs/config.nix file. Which way ought I be using? Or does each have particular use cases?
palo1 has joined #nixos
<bemeurer> clever: This is my first time using Nix, I'm not sure what I'd be looking for in that poking
<bemeurer> I have an idea, however
<clever> nix-repl> rustNightly
<clever> «derivation /nix/store/1awszry76ppvgc7l1z2w7d5isgsg9dxw-rust-1.34.0-nightly-2019-02-26-02c4c2892.drv»
<clever> ok, so rustNightly is just the raw rust package
<clever> 7494 makeRustPlatform = callPackage ../build-support/rust/make-rust-platform.nix {};
<clever> 7495 rustPlatform = recurseIntoAttrs (makeRustPlatform rust);
<clever> and rustPlatform is made like this
palo1 is now known as palo
<bemeurer> so I have to define my own RustPlatform, but point it to rustNightly?
<clever> bemeurer: testing that on this end
<bemeurer> clever: Thank you :)
kisik21 has joined #nixos
hera_ has quit [Ping timeout: 256 seconds]
vk3wtf has joined #nixos
hyper_ch2 has joined #nixos
ij has joined #nixos
<clever> bemeurer: rust.override lacks a .src, which is breaking makeRustPlatform
<bemeurer> clever: The overlay has it's own src thing, one second
<bemeurer> clever: Yeah, they called it rust-src
<clever> i see it
ij has quit [Ping timeout: 268 seconds]
<clever> bemeurer: now the cargoSha256 is wrong, thats progress!
<bemeurer> clever: Yeah, I just fixed those :P
<bemeurer> let me push that
<bemeurer> Pushed
Guest66951 has joined #nixos
Guest66951 has joined #nixos
Guest66951 has quit [Changing host]
<clever> bemeurer: mostly builds, the main daedalos derivation lacks a src=
<bemeurer> clever: I only wanted to use this to get into a nix-shell so I can code
<bemeurer> I will do the proper nix-build stuff for daedalos later
<clever> bemeurer: i'll move it to a shell.nix
<clever> or rather, make one
<bemeurer> Deal
<clever> rustc 1.34.0-nightly (02c4c2892 2019-02-26)
<clever> bemeurer: that look new enough?
<bemeurer> Can't believe you're not only helping me, but also making a PR?
<bemeurer> Yep, that is perfect!
<{^_^}> bemeurer/daedalos#1 (by cleverca22, 5 seconds ago, open): fix the nix code
<clever> and it already has conflicts! :D
Tucky has joined #nixos
<bemeurer> clever++
<{^_^}> clever's karma got increased to 109
<bemeurer> clever: I already fixed them and merged, thank you so much!
<bemeurer> clever: Can I drain your knowledge a little bit more? :P
<clever> bemeurer: https://github.com/cleverca22/nix-tests/tree/master/haskell-init is something "similar" i did about 2 years ago, its basically a linux distro written purely in haskell
<clever> sure
<bemeurer> Oh, nice! I will take a look :)
<bemeurer> clever: So I am a Gentoo user. Have been for a while. I have been blessed with having access to a buildfarm which means I don't mind the compilation times, and I like compiling things myself, specially because of USE flags
<clever> the nix file deals with fetching a linux kernel, compiling the haskel code (with musl, as a fully static binary), and then buildint an initrd with that code as /init
<bemeurer> People at work love NixOS and have been pressuring me to try it, so I want to give it a shot
<clever> i was a gentoo user, prior to discovering nixos
<bemeurer> Can I get NixOS install where everything is built from source? Can I set my CFLAGS/CXXFLAGS?
<clever> with the proper overrides, or changes to nixpkgs, you can
<bemeurer> Interesting
<bemeurer> I tried to find docs or a blog post about it, but found nothing
<clever> i dont think its really documented, but it should be possible
<bemeurer> If there was something like that I'd make the switch this weekend
<clever> why do you want to change your CFLAGS?
<bemeurer> clever: OCD
<bemeurer> I get a weird pleasure from compiling packages
<adamt> Imagine all the CPU cycles you're freeing up by not fiddling with your CFLAGS :P
<bemeurer> Can't explain it
<clever> bemeurer: you could simply turn off the binary cache, and build the world without the help of hydra.nixos.org!
<adamt> bemeurer: I stopped when i realised the futility of trying to get my laptop with 256MB to compile open office. Didn't work :P
<bemeurer> adamt: Hehehe, that _is_ futile
<bemeurer> My nemesis is chromium
<bemeurer> clever: That sounds like what I want! Is it easy to do?
<clever> bemeurer: just set nix.binaryCachePublicKeys = lib.mkForce []; in your configuration.nix
<clever> and it will stop using all caches
<bemeurer> clever: That seems hackish, is it just invalidating the server keys, so now it can't "see" any valid binary cache servers?
<clever> bemeurer: oh oops, wrong key
<clever> bemeurer: meant to say nix.binaryCaches = lib.mkForce [];
thc202 has joined #nixos
rauno has joined #nixos
<omnipotententity> Hi! I'm new to NixOS, and I'm having some difficulty with installing tensorflow subpackages (such as the tensorflow_dataset package) can someone point me in the general direction of a resource where I can read up on this?
wfranzini has joined #nixos
Ariakenom has joined #nixos
<adamt> bemeurer: If you're really going to do that, you probably also want to look at the NixOS options nix.distributedBuilds and nix.buildMachines....
orivej has joined #nixos
<{^_^}> [nixos-weekly] @zarelit opened pull request #86 → Nix in Termux → https://git.io/fhAOR
<clever> bemeurer: nix.distributedBuilds+nix.buildMachines is basically distcc
<adamt> clever: does it even use distcc directly?
<clever> adamt: nope
<bemeurer> Sorry, got a call
<bemeurer> clever, adamt Thanks for the tips!
<bemeurer> I will definitely look into that
alex`` has joined #nixos
JonReed has joined #nixos
<{^_^}> [nixpkgs] @lblasc opened pull request #56566 → rust: 1.32.0 -> 1.33.0 → https://git.io/fhAOb
adamt has joined #nixos
adamt is now known as Guest98018
Guest98018 has joined #nixos
Guest98018 has quit [Changing host]
<{^_^}> [nixpkgs] @Izorkin opened pull request #56567 → datadog-agent: update go packages and sub-packages → https://git.io/fhAOp
<{^_^}> [nixpkgs] @FRidh pushed 597 commits to master: https://git.io/fhAOj
<{^_^}> [nixpkgs] @edolstra merged pull request #56566 → rust: 1.32.0 -> 1.33.0 → https://git.io/fhAOb
<{^_^}> [nixpkgs] @edolstra pushed 2 commits to staging: https://git.io/fhA3e
<{^_^}> [nixpkgs] @FRidh merged pull request #56200 → staging-next: another iteration → https://git.io/fhA3v
<{^_^}> [nixpkgs] @FRidh pushed 597 commits to staging-19.03: https://git.io/fhA3J
<bemeurer> clever: It all works perfectly, and I just added another package and it was a bliss!
* bemeurer is starting to like nix
<clever> bemeurer: :D
Makaveli7 has joined #nixos
Makaveli7 has quit [Client Quit]
<dtz> :D
Makaveli7 has joined #nixos
<bemeurer> Why the separation between originalRustNightly and newRawRust?
gagbo has joined #nixos
<bemeurer> And why "Raw"?
<{^_^}> [nixpkgs] @FRidh pushed 390 commits to staging-next: https://git.io/fhA3k
<{^_^}> [nixpkgs] @FRidh pushed 308 commits to staging: https://git.io/fhA3I
<{^_^}> [nixpkgs] @FRidh merged pull request #56473 → numpy: 1.16.1 -> 1.16.2 → https://git.io/fhNPJ
<{^_^}> [nixpkgs] @FRidh pushed commit from @dtzWill to staging « numpy: 1.16.1 -> 1.16.2 »: https://git.io/fhA3t
gillmanash has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @FRidh merged pull request #56305 → pythonPackage.Nikola: 8.0.1 -> 8.0.2 → https://git.io/fhbBJ
<{^_^}> [nixpkgs] @FRidh pushed commit from @jluttine to master « pythonPackage.Nikola: 8.0.1 -> 8.0.2 »: https://git.io/fhA3m
<clever> bemeurer: makeRustPlatform needs a special set, containing .rust, .cargo, and some others
<clever> bemeurer: and the rust channel thing returns such a set
<clever> so i need to take that thing, override just the rust inside it, then re-assemble a new thing that has the same structure
FRidh has joined #nixos
<bemeurer> Ah!
<bemeurer> I get it!
<bemeurer> Last question: What is the in {} section at the end?
<bemeurer> And the inherit
<clever> bemeurer: that exposes various things, as a set that default.nix returns
<clever> bemeurer: so you can run `nix repl default.nix` and then eval them
<bemeurer> :O
<clever> or `nix-build -A foo` to build just one thing
<bemeurer> Amazing
ij has joined #nixos
<bemeurer> Really cool
<rnhmjoj> what is needed to assign myself to an issue? do i have to be a member of nixos?
<bemeurer> clever: Could I turn this into a container if I wanted?
<clever> bemeurer: what kind of container?
<bemeurer> Idk, Docker?
<bemeurer> If I wanted to share the project with someone, but they don't want to fiddle with Nix
<clever> when you nix-build that, it will generate a docker image, that you can then pipe into `docker load` i think it was
<bemeurer> :O
<bemeurer> This is madness
<clever> bemeurer: no, this next thing is madness
<{^_^}> [nixpkgs] @FRidh pushed 439 commits to python-unstable: https://git.io/fhA3l
<clever> bemeurer: this generates an ARX executable (bash+tar) that will install a nix closure to ~/.daedalus/nix/store/
arjen-jonathan has joined #nixos
<clever> bemeurer: it will also generate bash scripts that chroot into ~/.daedalus/, before running the real package
<clever> so the end-user has a fully working nix setup, without root, and no /nix/ on the target machine!
<bemeurer> OH WOW
<bemeurer> Holy cow
<clever> also, that repo is an edit-distance of 1 away from yours!
<bemeurer> Yeah, I noticed, hahaha
<bemeurer> Oh, I just thought of something else
<bemeurer> say I want to add qemu as a build input
<bemeurer> BUT
<bemeurer> qemu has a lot of garbage I don't need, for example, I am only emulating x86_64
<clever> bemeurer: try the qemu-kvm package
<clever> > qemu.meta.position
<{^_^}> "/var/lib/nixbot/nixpkgs/master/repo/pkgs/applications/virtualization/qemu/default.nix:152"
<bemeurer> How can I set the USE-flags a-la gentoo?
<clever> > qemu-kvm.meta.position
<{^_^}> undefined variable 'qemu-kvm' at (string):219:1
<clever> *looks*
<clever> > qemu_kvm.meta.position
<bemeurer> :O
<clever> and if you then edit pkgs/applications/virtualization/qemu/default.nix
<bemeurer> Oh my
<{^_^}> { column = 3; file = "/var/lib/nixbot/nixpkgs/master/repo/pkgs/top-level/all-packages.nix"; line = 15176; }
<clever> changing hostCpuOnly affects the default of hostCpuTargets
<clever> bemeurer: qemu_kvm is a variant, that only targets the host cpu
<bemeurer> Can I just add qemu.override { hostCpuOnly = true; } to my buildInputs?
<{^_^}> [nixpkgs] @volth opened pull request #56568 → arangodb: 3.3.19 -> 3.2.18, 3.3.22, 3.4.3 → https://git.io/fhA30
<{^_^}> "/var/lib/nixbot/nixpkgs/master/repo/pkgs/applications/virtualization/qemu/default.nix:152"
<bemeurer> And then add whatever other overrides I want
<clever> 15141 qemu_kvm = lowPrio (qemu.override { hostCpuOnly = true; });
<clever> it changes the name of the package
<clever> > builtins.unsafeGetAttrPos "qemu_kvm" pkgs
<clever> bemeurer: qemu_kvm already has that value, so you can just qemu_kvm
<bemeurer> Yeah, let me give that a try
<{^_^}> "qemu-3.1.0 and qemu-host-cpu-only-3.1.0"
<clever> > "${qemu.name} and ${qemu_kvm.name}"
<clever> you can also .override qemu_kvm further
<clever> 115 ++ optional (hostCpuTargets != null) "--target-list=${stdenv.lib.concatStringsSep "," hostCpuTargets}"
<bemeurer> Trying
<bemeurer> Unbelievable
<bemeurer> It works
<bemeurer> It's building it since my overrides aren't what's cached
<clever> bemeurer: this generates a bash script, that runs qemu, with various flags, and a kernel+initrd built by nix
amfl has quit [Ping timeout: 240 seconds]
omnipotententity has quit [Quit: Leaving]
<clever> and which flags it uses, depends on args set later in the file
justanotheruser has quit [Ping timeout: 245 seconds]
johanot has joined #nixos
<{^_^}> [nixos-weekly] @domenkozar merged pull request #86 → Nix in Termux → https://git.io/fhAOR
<{^_^}> [nixos-weekly] @domenkozar pushed 2 commits to master: https://git.io/fhA3K
<bemeurer> clever: This is phenomenal
<bemeurer> I should show you the nasty thing I wrote to handle compiling the kernel, modules, dracut, etc
Jackneill has quit [Quit: Leaving]
Jackneill has joined #nixos
amfl has joined #nixos
<clever> bemeurer: haskell-init is the simplest version of that which i have made
<bemeurer> I've been meaning to rewrite that thing in Rust
<bemeurer> But work has been eating all my time :(
<clever> bemeurer: https://github.com/siraben/zkeme80/blob/master/default.nix is a related thing i did, i helped to build a forth based kernel for the tr-85 calculator, along with building the entire emulator in nix
Glider_IRC__ has joined #nixos
<bemeurer> Ha! This is phenomenal!
<clever> bemeurer: ultimately, you can just do a single nix-build command, and it will build the entire emulator, and kernel, then build a bash script to run the emulator on the kernel!
<clever> i dont know a single thing about forth :P
<bemeurer> Damn, I want that for daedalos :D
<bemeurer> Compiling the qemu docs takes longer than qemu itself
Glider_IRC_ has quit [Ping timeout: 246 seconds]
growpotkin has quit [Quit: WeeChat 2.4]
<bemeurer> Wish I could override that, doesn't seem to be an option
<Orbstheorem> Hello, is there a way to build a derivation that contains all builddeps for a set of packages?
_lawlesseel has quit [Remote host closed the connection]
<Orbstheorem> I want to build a package (not available in nixpkgs) from pip in a virtual env, which fails because of missing libs. I tried to make a shell with its requirements but it still fails because I believe it's expecting its requirements build deps to be also installed
goibhniu has joined #nixos
<Orbstheorem> I have manually included them in the shell as the installs fail, but next time, I'd like to have a faster solution even if it implies compromising closure size
<{^_^}> [nixpkgs] @danbst merged pull request #54931 → nixos/coredns: init → https://git.io/fhMvy
<{^_^}> [nixpkgs] @danbst pushed commit from @DeltaEvo to master « nixos/coredns: init (#54931) »: https://git.io/fhAse
pinage404[m] has quit [Ping timeout: 264 seconds]
pinage404[m] has joined #nixos
ng0 has joined #nixos
nD5Xjz has joined #nixos
johanot has quit [Ping timeout: 255 seconds]
adamt has joined #nixos
johanot has joined #nixos
adamt is now known as Guest80302
domogled1 has joined #nixos
<{^_^}> [nixpkgs] @offlinehacker pushed 0 commits to mas: https://git.io/fhAsW
domogled has quit [Ping timeout: 255 seconds]
domogled1 is now known as domogled
simukis has joined #nixos
<{^_^}> [nixpkgs] @dotlambda merged pull request #56303 → Initialize python pyviz stack and intake → https://git.io/fhb4R
<{^_^}> [nixpkgs] @dotlambda pushed 11 commits to master: https://git.io/fhAs2
winem_ has joined #nixos
<siraben> clever: oops I changed the build process now the old default.nix doesn't work
silver_hook has quit [Ping timeout: 268 seconds]
ThatDocsLady_ has joined #nixos
jedai has joined #nixos
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/6e5caa3f8ac (from 7 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
justanotheruser has joined #nixos
lukeworth has joined #nixos
lukeworth has quit [Client Quit]
povman has joined #nixos
pmiddend has joined #nixos
<pmiddend> I'm a bit of a noob with respect to linking libraries. I'd like to link a library "X" that depends on "Y", so you don't have to have "Y" in your LD_LIBRARY_PATH or anything when "X" is used.
<pmiddend> Can anyone tell me the respective linker flag?
<pmiddend> (Sorry if this is not 100% Nix related, so to speak; I want to do it in a Nix derivation, though)
<qyliss^work> If you want to link libfoo, you do -lfoo
<pmiddend> I think I'm looking for -L in combination with -rpath
<pmiddend> Ah yes, that worked. Sorry for the spam.
sigmundv__ has joined #nixos
ehmry has joined #nixos
jb55 has quit [Ping timeout: 245 seconds]
<jD91mZM2> I finally resolved my weird display issues from months ago (xrandr caused the screen to behave weirdly), it boiled down to 1. using propietary nvidia 2. if using bumblebee, don't forget to set connectDisplay=true and add nvidia to x11 drivers
<jD91mZM2> (Just noting for future reference)
ubert has joined #nixos
fendor_ has joined #nixos
<{^_^}> [nixpkgs] @jD91mZM2 opened pull request #56570 → x11docker: v5.4.1 -> v5.4.4 → https://git.io/fhAG7
<{^_^}> [nixpkgs] @vcunat pushed commit from @dtzWill to release-19.03 « Merge #56429: xorgserver: 1.20.3 -> 1.20.4 »: https://git.io/fhAG5
pmiddend has quit [Quit: WeeChat 2.3]
winem_ has quit [Remote host closed the connection]
winem_ has joined #nixos
fendor_ has quit [Ping timeout: 246 seconds]
silver_hook has joined #nixos
jasongrossman has joined #nixos
jb55 has joined #nixos
mounty has quit [Remote host closed the connection]
mounty has joined #nixos
povman has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @peterhoeg opened pull request #56571 → mosquitto: 1.5.5 -> 1.5.8 → https://git.io/fhAZ3
<{^_^}> [nixpkgs] @peterhoeg closed pull request #55891 → mosquitto: 1.5.5 -> 1.5.7 → https://git.io/fh5GM
init_6 has joined #nixos
silver has joined #nixos
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/060bcd6df50 (from 14 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
<{^_^}> [nixpkgs] @peterhoeg opened pull request #56572 → mosquitto: 1.5.4 -> 1.5.8 → https://git.io/fhAZR
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
Xal has quit [Ping timeout: 268 seconds]
Xal has joined #nixos
hedning has quit [Ping timeout: 250 seconds]
rycwo has joined #nixos
hedning has joined #nixos
equivrel has quit [Ping timeout: 250 seconds]
rprije has quit [Ping timeout: 255 seconds]
schjetne has joined #nixos
<{^_^}> [nixpkgs] @sgraf812 opened pull request #56573 → Fix include path of libffi used in GHC build → https://git.io/fhAZp
patrl has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed commit from @dtzWill to staging-18.09 « Merge #56494: file: 5.34 -> 5.36 (staging-18.09) »: https://git.io/fhAnU
__monty__ has joined #nixos
dejanr has joined #nixos
<dejanr> hi all, i am trying to install nix on ubuntu with '--daemon' for multiuser setup, and having trouble running nix with other users, manual doesn't say that much for this use case
<dejanr> changing a group of socket seems hacky https://nixos.org/nix/manual/#idm140737318324640
<dejanr> but it also doesn't work
klntsky has quit [Remote host closed the connection]
ng0 has quit [Remote host closed the connection]
klntsky has joined #nixos
Glider_IRC__ has quit [Quit: Leaving]
ng0 has joined #nixos
Glider_IRC has joined #nixos
<emily> how should I set the noop IO scheduler for a block device? `elevator=noop` in the command line no longer works (see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=914758#10), as far as I can tell the options are just a /sys twiddle and I don't know the best NixOS-y way to toggle it on boot. Write custom udev rule? just add something to the stage1?
<dejanr> so my jenkins user get connection refused from nix socket
<{^_^}> [nixpkgs] @peti merged pull request #56573 → Fix include path of libffi used in GHC build → https://git.io/fhAZp
<{^_^}> [nixpkgs] @peti pushed 2 commits to master: https://git.io/fhAnr
<{^_^}> [nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fhAn6
fusion809 has joined #nixos
<immae> Hey there, is there a helper function in nix that takes a script file and a list of "dependencies" and builds a wrapper around it (and modifies the `#!/usr/bin/env bash` line in it)? I can write a derivation, but it seems (?) like a rather common situation, so maybe...
orivej has quit [Ping timeout: 244 seconds]
<johanot> immae: "patchShebangs" can be used to modify the shebang line in your script. As for the "dependencies", perhaps consider "makeWrapper" with --prefix PATH ? Depending on what you're trying to do.
EoF_ has quit [Quit: eof_]
<immae> johanot: yes a makeWrapper is fine but it "forces" me to write a derivation, I wondered if there were a small helper existing already :)
<teto> immae: you can use nix-shell in the shebang ?
<teto> and pass dependencies along the command
<immae> (maybe I spent more time looking for it than write the derivation myself though)
<immae> hmm I’m not sure I follow you teto
__Sander__ has joined #nixos
<{^_^}> [nixpkgs] @zarelit opened pull request #56575 → mailcatcher: 0.6.5 -> 0.7.0 → https://git.io/fhAnp
<johanot> immae: pkgs.runCommand is a handy way of writing an "inline" derivation though. Tried that?
<immae> I didn’t think of it, I’ll try that :)
<immae> Thanks
FRidh has quit [Ping timeout: 250 seconds]
sinner has joined #nixos
sinner is now known as Guest95242
copumpkin has joined #nixos
johanot has quit [Quit: WeeChat 2.2]
<{^_^}> [nixpkgs] @dtzWill merged pull request #56539 → libvdpau: 1.1.1 -> 1.2 → https://git.io/fhAUW
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to staging: https://git.io/fhAcR
freeluv60spropag has joined #nixos
tdbgamer has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<freeluv60spropag> Hey guys, this is unrelated to nixos but I was wondering if anyone could recommend me a dns service that is trustworthy or used by free software people
<gchristensen> for your nixos computer?
<freeluv60spropag> I don't need web hosting just the dns record thing
<__monty__> immae: I think teto meant replacing the shebang with a nix-shell shebang, it's in the manual.
<immae> ah right
zupo has joined #nixos
<gchristensen> freeluv60spropag: are you looking for a DNS resolver like 1.1.1.1 / 8.8.8.8? or a nameserver for your domain?
<__monty__> immae: Also note that shebangs only allow for one command and one argument afaik. Anything else isn't guaranteed to work.
<clever> freeluv60spropag: ive been using https://dns.he.net/ for free dns, but aws is another service i use often
martinb has joined #nixos
<freeluv60spropag> nameserver for my domain
mariel__ has joined #nixos
<gchristensen> I'm a big fan of luadns.com
<immae> __monty__: yes, it was a simple /usr/bin/env bash here, and I wrote the derivation by hand (with runCommand) finally :)
<clever> gchristensen: is the nameserver written in lua?
<freeluv60spropag> clever: thanks! already something promising has showed up!
<gchristensen> I doubt it, clever :)
<freeluv60spropag> looks very useful for right now but I don't mind paying for dns if it's good people
<__monty__> immae: Yeah, just mentioning it in case you wanted to do #! /usr/bin/env VAR=val bash or something.
<teto> immae: the nix-shell in shebang has quite a few quirks. What always work though is to pass a *.nix file to it
<gchristensen> clever: you express your records in Lua in a git repo, and it realises them as DNS records
<teto> no nixos.dev yet :D ?
ThatDocsLady_ has quit [Remote host closed the connection]
<freeluv60spropag> ooh luadns is also great
<freeluv60spropag> thanks guys!
<clever> gchristensen: ah, nice idea
<gchristensen> yeah
<clever> dns.he.net has a very simple http api to set a subdomain to point to whatever IP made the http call
<gchristensen> abstractions and variables are nice :P
<clever> so you can just blindly curl it in a dhcpcd hook
<clever> luagit sounds good if you want to programatically generate things, but when you have a dynamic ip, that could be a problem
<gchristensen> it is not compatible with dynamic IPs
<clever> you would need to push a new git commit every time your IP changes
<gchristensen> right
<freeluv60spropag> hmm well right now I'm just setting up my email and then I'll probably serve a webpage from a nixos box in closet at home with a static ip so I'm not too bothered
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed 3 commits to master: https://git.io/fhAcy
<{^_^}> [nixpkgs] @vcunat pushed 3 commits to release-19.03: https://git.io/fhAcH
asymmetric has joined #nixos
<__monty__> Home connections still come with static IPs anywhere?
dejanr has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @vcunat merged pull request #56201 → metrics.nix: add nix-env.qaCountDrv metric → https://git.io/fhAcQ
<clever> __monty__: mine isnt static, but if i keep the route on, i can usually keep the same ip for months at a time
<clever> though the ISP has been weird this week, and has forced 2 IP changes
asymmetric_ has quit [Ping timeout: 264 seconds]
<tobiasBora> Hello,
<__monty__> clever: Yeah but you can't rely on it. It could change at any time when you're not home. And that usually happens right when it's most unfortunate.
vidbina has joined #nixos
<locallycompact> anyone successfully running nixos on a lenovo x1 extreme? considering buying
<clever> __monty__: which is where dns.he.net having an API to update the IP easily comes in handy (but i have yet to actually configure that, lol)
<{^_^}> [nixpkgs] @volth closed pull request #56568 → arangodb: 3.3.19 -> 3.2.18, 3.3.22, 3.4.3 → https://git.io/fhA30
iyzsong has joined #nixos
<__monty__> clever: I agree, looking into it. I just made the remark because freeluv60spropag might erroneously think they have a static IP. They're not exactly common on home connections afaik.
<tobiasBora> I don't get something: I just installed plasma-nm using environment.systemPackages, but the command "plasma-nm" does not exist...
Guest80302 has joined #nixos
Guest80302 has quit [Changing host]
Guest80302 is now known as adamt
<tobiasBora> and (as before), when I click on the systray => connection editor, nothing shows up
<clever> tobiasBora: ls $(nix-build '<nixpkgs>' -A plasma-nm)/bin
<tilpner> locallycompact: nixos-hardware has an entry for the x1
ng0 has quit [Quit: Alexa, when is the end of world?]
freeluv60spropag has quit [Ping timeout: 256 seconds]
ng0 has joined #nixos
ng0 has quit [Client Quit]
<adamt> What method of building a nix pkg from a SBT-based project is least likely to make me want to jump out the window?
<locallycompact> tilpner: thanks, there seem to be some bricking issues with the x1 extreme in particular on linux so trying to get a first hand verification
<tobiasBora> clever: hum, thanks for the nice command, but no bin directory... not even a kde5-nm-connection-editor file. Maybe I'll just reboot and hope it appears in the network plasma menu...
<clever> /nix/store/679an40i1p9jl5ccsrh20j3sj3vdq507-plasma-nm-5.14.4/share/kservices5/plasma-applet-org.kde.plasma.networkmanagement.desktop
<clever> tobiasBora: i'm guessing networkmanager and friends may find things like this on bootup
<ninjatrappeur[m]> adamt, --option sandboxing false :D
<ninjatrappeur[m]> more seriously, I don't have a good answer to this sadly
init_6 has quit [Ping timeout: 250 seconds]
<adamt> I didn't even think about the possible sandboxing issues...
<ninjatrappeur[m]> welcome to hell
akaWolf has quit [Ping timeout: 245 seconds]
ottidmes has joined #nixos
leotaku has joined #nixos
dejanr has joined #nixos
<goibhniu> tobiasBora: you shouldn't need to install plasma-nm explicitly
leotaku has quit [Client Quit]
leotaku has joined #nixos
<{^_^}> [nixpkgs] @dotlambda pushed to master « papis: remove obsolete patches »: https://git.io/fhAC0
ehmry has left #nixos [#nixos]
<{^_^}> [nix] @vcunat pushed to master « manual nitpick: document sha512 support in hashString »: https://git.io/fhACK
<martinb> tobiasBora: We had the same issue in the past. Turned out to be a policyKit problem in our case, IIRC. What does `nmcli g permissions` show for you?
<{^_^}> [nixpkgs] @dotlambda pushed to master « python.pkgs.pyscard: move swig to nativeBuildInputs »: https://git.io/fhACD
<{^_^}> [nixpkgs] @dotlambda pushed to staging-19.03 « python.pkgs.pyscard: move swig to nativeBuildInputs »: https://git.io/fhACy
ninjin has joined #nixos
<{^_^}> [nixpkgs] @dotlambda pushed to master « python.pkgs.filetype: 1.0.4 -> 1.0.5 »: https://git.io/fhACQ
Erasmus has joined #nixos
<tobiasBora> clever: goibhniu : it wasn't installed automatically, any idea why?
<tobiasBora> (and installing + reboot does not help)
<tobiasBora> everything is set to yes
<martinb> tobiasBora: ok, looks reasonable. Did you check whether `journalctl --user` shows an error whenever you try to click the connection editor?
<goibhniu> tobiasBora: FWIW I don't have it installed and it works. Have you tried running `kbuildsycoca5`?
<ptotter[m]> I'm trying to do this:
<ptotter[m]> environment.systemPackages = with pkgs; environment.systemPackages ++ [ vim ];
<tobiasBora> martinb: if I just run this, I get Failed to search journal ACL: Operation not supported
<ptotter[m]> says it cannot find variable environment
<tobiasBora> martinb: and with sudo, it's empty
<martinb> tobiasBora: Oh. And only `journalctl`?
<tobiasBora> goibhniu: hum that's a good idea. I'll try to reboot after that
<tobiasBora> martinb: great idea: mars 01 14:59:27 colnixos xsession[3274]: Impossible de trouver le module « kcm_networkmanagement.desktop ». Veuillez saisir « kcmshell5 --list » pour obtenir la liste de tous les modules.
reinhardt has quit [Quit: Leaving]
<tobiasBora> Impossible to find the module kcm_networkmanagement.desktop
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tobiasBora> hum I'm not the first one here with this problem https://logs.nix.samueldr.com/nixos/2018-09-01
oida has quit [Remote host closed the connection]
oida has joined #nixos
<goibhniu> tobiasBora: do you have any Qt packages installed in your user profile?
<tobiasBora> goibhniu: no user profile at all
<tobiasBora> everything is global
<martinb> tobiasBora: kbuildsycoca5 might actually help here... you don't need to reboot for that normally
<martinb> tobiasBora: try `kbuildsycoca5 --noincremental`
<goibhniu> if that doesn't work, I'd try using a fresh user account
<tobiasBora> martinb: this does not seem to work... But I noticed something funny: kcmshell5 --list | grep kcm_networkmanagement gives a result!
<tobiasBora> can't it be because of the ".desktop"?
<martinb> tobiasBora: can you log out and back in after running kbuildsycoca5?
Makaveli7 has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @PombeirP opened pull request #56577 → Add qtwebview to 5.11 and 5.12 packages → https://git.io/fhAWf
<ptotter[m]> how would I extend environment.systemPackages that is set in an import?
katyucha has joined #nixos
<tobiasBora> martinb: logging out/back does not help
vidbina has quit [Ping timeout: 264 seconds]
hera has joined #nixos
<martinb> ptotter[m]: Set with "imports = ...;" or imported directly with "import ...;"?
katyucha has quit [Client Quit]
<hera> hey everyone. I want to test that my hardware works on Nix. If I edit the configuration.nix file in my USB installation, then I do the full install from the USB, are all my configurations transferred?
<martinb> tobiasBora: Hmm.... which NixOS version are your running?
<ptotter[m]> martinb: imports = [ .../packages.nix ];
<ptotter[m]> and then I tried environment.systemPackages = with pkgs; environment.systemPackages ++ [ vim ]; later in configuration.nix
<martinb> ptotter[m]: Then you simply set "environment.systemPackages". Nixos' module system composes all definitions into one
<ptotter[m]> but says that environment isn't defined
<ptotter[m]> martinb: ah, excellent
<tobiasBora> martinb: I'm on channel unstable, nixos-version gives me 19.03pre170287.19eedaf867d
<ptotter[m]> this seems like pretty basic stuff, where should I have found it?
schjetne has quit [Ping timeout: 244 seconds]
<ptotter[m]> martinb: thanks
<tilpner> hera: I don't think so
<martinb> tobiasBora: Oh ok, I only run stable, so this is probably not an issue that I have encountered before...
iyzsong has quit [Ping timeout: 258 seconds]
noonien has joined #nixos
<noonien> hello folks!
<noonien> does anyone have any issues with their headphones port recently?
<noonien> has anyone had*
zupo has joined #nixos
<tobiasBora> martinb: and nobody else is on unstable + KDE? that's strange.
<noonien> plugging in my headphones mutes the laptop speakers, pulse says it's outputting, but i can't hear anything in the actual headphones (i've tried multiple pairs)
<{^_^}> [nixpkgs] @yorickvP opened pull request #56578 → youtrack: add hostname to path → https://git.io/fhAWn
<martinb> tobiasBora: I think there are people running that, but maybe they don't have that specific behavior? KDE/Plasma has quite a bit of issues every now and then, and they don't always manifest for everyone in the same way. But that's what life is like on unstable :)
<martinb> tobiasBora: Are you completely sure that neither root nor your user have any Qt5 applications installed via `nix-env`?
<clever> tobiasBora: ls ~/.nix-profile/lib/qt*
<martinb> noonien: Did you try switching back to an older configuration and see whether it still works there?
<noonien> hmm, i did not
xvnvx has quit [Quit: ZNC 1.7.1 - https://znc.in]
<tobiasBora> clever: martinb : I tried not to install anything with nix-env. so this commands gives No such file or directory
<noonien> how can i list generations/switch to one?
<noonien> i could reboot, but is there an alternative?
<martinb> tobiasBora: and `ls /nix/var/nix/profiles/default/lib/qt*`
<tobiasBora> martinb: same
<clever> noonien: to list, [root@amd-nixos:~]$ nix-env -p /nix/var/nix/profiles/system --list-generations
<martinb> noonien: "ls /nix/var/nix/profiles"
<martinb> noonien: ... what clever wrote :)
<clever> a dead-simple way to test older generations (without actual rollback) is just /nix/var/nix/profiles/system-460-link/bin/switch-to-configuration test
<clever> but that wont help if the problem needs a reboot to test
<goibhniu> tobiasBora: FWIW I'm running nixos unstable with KDE and nm
<martinb> especially if it's kernel-related
<clever> bit you could also `/nix/var/nix/profiles/system-460-link/bin/switch-to-configuration boot` to flag that as the default for the next boot, though grub also lets you just select one from that menu
<{^_^}> [nixpkgs] @vcunat closed pull request #56066 → emacs: avoid xorg build dependency → https://git.io/fhd6m
<martinb> tobiasBora: If that really is a new problem, you could also try booting an older configuration and see whether it works (again). That could help in identifying what caused it.
<tobiasBora> martinb: well I hadn't network manager installed before...
ckauhaus has quit [Quit: WeeChat 2.2]
<martinb> tobiasBora: How did you install it?
<tobiasBora> martinb: I added in my /etc/nixos/configuration.nix: networking.networkmanager.enable = true;
<martinb> tobiasBora: Yes, that should be sufficient, normally...
<tobiasBora> martinb: if it can help you can find my whole file here https://github.com/NixOS/nixpkgs/issues/56410$
<{^_^}> #56410 (by tobiasBora, 3 days ago, open): Network manager on KDE: can't configure network
<{^_^}> #56410 (by tobiasBora, 3 days ago, open): Network manager on KDE: can't configure network
zupo_ has joined #nixos
zupo has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @dtzWill opened pull request #56580 → forkstat, smemstat, stress-ng: bump various cking utils → https://git.io/fhAWD
pointfourone has joined #nixos
pointfourone has quit [Client Quit]
scientist has joined #nixos
<tobiasBora> martinb: goibhniu clever : some updates! Typing kcmshell5 kcm_networkmanagement make it work!
<tobiasBora> well it starts the menu
<tobiasBora> but the applet thing still fails
<{^_^}> [nixpkgs] @volth reopened pull request #56568 → arangodb: 3.3.19 -> 3.2.18, 3.3.22, 3.4.3 → https://git.io/fhA30
scientist has quit [Client Quit]
<goibhniu> did you try with a fresh user account?
alex_giusi_tiri has joined #nixos
<tobiasBora> goibhniu: no, but I can
<goibhniu> I'd say it's worth a shot anyway
<tobiasBora> Also, I'd like to check the content of the file uid = 1000;
<tobiasBora> kcm_networkmanagement.desktop
<tobiasBora> (sorry)
<tobiasBora> any idea how to find this file?
scientist has joined #nixos
jabranham has joined #nixos
zupo_ has quit [Ping timeout: 240 seconds]
<tobiasBora> I think it's supposed to be in /usr/share/kservices5/kcm_networkmanagement.desktop
<tobiasBora> maybe in run/current_system
o1lo01ol1o has quit [Remote host closed the connection]
<scientist> hey do you guys guys know when infinisil gets on, I need his for a few more things ?
<tobiasBora> no
<tobiasBora> sorry
<tobiasBora> I mean no for run/current_system ^^
o1lo01ol1o has joined #nixos
<infinisil> scientist: Just ask your question, I'm not the only one that can help you (and I'm also not obliged to help you anyways)
<martinb> tobiasBora: `ls /run/current-system/sw/share/kservices5` turns up nothing?
dejanr has quit [Quit: WeeChat 2.3]
<__monty__> Having some trouble finding where `fetchFromGithub`'s located with respect to my override. Getting missing attribute if I leave it unqualified, use pkgs.fFGh, self.fFGh and super.fFGh: http://ix.io/1Cla
<scientist> infinisil: good moning, I am sorry to bother you, you have been the only person that has been able to help me setup my keyboard layout
Erasmus has quit [Read error: Connection reset by peer]
<martinb> __monty__: possible typo ....GitHub
<scientist> typo, morning
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
zupo_ has joined #nixos
<martinb> tobiasBora: also, judging from your OS version string, you are about 250 commits behind upstream, maybe it has been fixed in the meantime?
<__monty__> martinb: Wow, owe you a beer ; )
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<martinb> __monty__: :) This specific typo happens to me all the time....
_kwstas has joined #nixos
<scientist> infinisil: I think I am almost done with my custom keyboard layout, I think just need to add a few more things to the custom file, then adda few more things to nix.configuration file, almost there
_kwstas has quit [Remote host closed the connection]
<tobiasBora> goibhniu: so I just did it, and it works when I log with a fresh user! What's the hell is that??
_kwstas has joined #nixos
_kwstas has quit [Client Quit]
<tobiasBora> martinb: it does ^^ stupid me, thanks
<goibhniu> aha!
<goibhniu> my guess is something is cached in a dot file .local or .config perhaps
<goibhniu> it could be an obsolete/incorrect store path
scientist has quit [Quit: WeeChat 2.2]
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<martinb> tobiasBora: you could diff ~/.config/plasma-org.kde.plasma.desktop-appletsrc between the old and the new account, maybe you find something suspicous
o1lo01ol1o has quit [Ping timeout: 255 seconds]
waleee has joined #nixos
o1lo01ol1o has joined #nixos
semilattice has joined #nixos
<tobiasBora> martinb: the diff is here https://paste.debian.net/1070865/. I'll try to replace this single file to see what's going on. And thanks a lot for your help!
<tobiasBora> I need to go so I'll do that after, but thanks everybody for your help
Ariakenom has quit [Quit: Leaving]
o1lo01ol1o has quit [Ping timeout: 245 seconds]
hyperfekt has joined #nixos
<hyperfekt> If I pass a nix store path to a derivation, will that derivation be able to access it when built in a sandbox? Or does that only work for dependencies passed as derivations?
<martinb> hyperfekt: What exactly do you mean by "passing a store path to a derivation"?
Erasmus has joined #nixos
Tucky has quit [Quit: WeeChat 2.2]
rycwo has quit [Ping timeout: 264 seconds]
<hyperfekt> martinb: Say I have a file containing '/nix/store/hash-name' that my NixOS config reads and then uses as src for a derivation. The passing part is probably irrelevant.
hera has quit [Ping timeout: 256 seconds]
rpg has joined #nixos
o1lo01ol1o has joined #nixos
<edef> hyperfekt: afaik it will refuse
<edef> hyperfekt: at the very least, it won't include it
<edef> dependencies are passed through string context
<yorick> edef: it may work with builtins.storePath
<martinb> hyperfekt: do you mean "src" as a fetchurl attribute?
<martinb> hyperfekt: ah sorry, disregard that...
Erasmus has quit [Ping timeout: 240 seconds]
<yorick> edef: yep, builtins.storePath adds the context
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56581 → acpica-tools: 20190108 -> 20190215 → https://git.io/fhAlp
o1lo01ol1o has quit [Remote host closed the connection]
<martinb> hyperfekt: Just curious, what is your use case?
schjetne has joined #nixos
semilattice has quit [Ping timeout: 255 seconds]
<hyperfekt> I can't find it in the manual but it seems like builtins.storePath just returns the store path of a derivation as a string?
<hyperfekt> martinb: I'm trying to use the nixpkgs downloaded by nix-channel and patch it before using it.
semilattice has joined #nixos
<hyperfekt> Oh, I think I might be able to set nixpkgs in the NixPath to the folder with my new default.nix, and then use <nixos>.
endformationage has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56582 → afflib: 3.7.17 -> 3.7.18 → https://git.io/fhA8Y
rycwo has joined #nixos
<hyperfekt> That way I should have the derivation of the channel named nixos, right (given that the nixPath doesn't say otherwise)?
<hyperfekt> I guess that obviates my original question - should be much cleaner as well.
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56583 → aescrypt: 3.13 -> 3.14 → https://git.io/fhA8G
rcshm has joined #nixos
Erasmus has joined #nixos
<hyperfekt> Maybe I should ue a rubber ducky instead of this channel, and only if that can't answer the question do I pose it here.
hyper_ch2 has quit [Quit: Page closed]
wpcarro has joined #nixos
wpcarro has quit [Client Quit]
adamt has quit [Ping timeout: 246 seconds]
martinb has quit [Quit: Leaving]
<dmj`> reloadIfChanged, restartIfChanged and stopIfChanged are *not* intuitively defined in nix
<Church-> Welp think I'll get to use Nix at work maybe
<Church-> Yay
<hyperfekt> one step closer to world domination :]
<Church-> heh
ddellacosta has joined #nixos
<gchristensen> Church-: yay!
Ariakenom has joined #nixos
schjetne has quit [Ping timeout: 250 seconds]
<Izorkin> yl[m]: please check next datadog PR #56567
<{^_^}> https://github.com/NixOS/nixpkgs/pull/56567 (by Izorkin, 7 hours ago, open): datadog-agent: update go packages and sub-packages
kisik21 has left #nixos ["ERC (IRC client for Emacs 26.1)"]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56584 → ams-lv2: 1.2.1 -> 1.2.2 → https://git.io/fhA8p
ij has quit [Quit: es nespēlēju vairāk]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56585 → ansible: 2.7.6 -> 2.7.8 → https://git.io/fhA4k
drakonis has joined #nixos
drakonis2 has quit [Ping timeout: 244 seconds]
<yl[m]> Izorkin: I'll take a look, thx
kreisys has joined #nixos
<Church-> gchristensen: Just for building containers but it's something.
<{^_^}> [nixpkgs] @vcunat opened pull request #56586 → vimPlugins.meson: init, following pkgs.meson → https://git.io/fhA4r
<Church-> gchristensen: Using salt for wider infra management
<Church-> If only that using NixOS at a wider scale still worries me a bit.
alex_giusi_tiri has quit [Quit: Leaving.]
juliendehos has joined #nixos
jono has joined #nixos
winem_ has quit [Ping timeout: 245 seconds]
patrl has quit [Quit: WeeChat 2.4]
<vaibhavsagar> Church-: how wide a scale are we talking?
<vaibhavsagar> at my last job we used it on hundreds of servers + autoscaling
<gchristensen> right on
<vaibhavsagar> best infra decision we ever made
<vaibhavsagar> second best infra decision was to use terraform
jono has quit [Remote host closed the connection]
<vaibhavsagar> NixOps isn't ready for multiple people deploying at the same time
novak has joined #nixos
knupfer has joined #nixos
Erasmus has quit [Read error: Connection reset by peer]
<Church-> vaibhavsagar: Huh interesting. I'll need to take a look in the future.
<vaibhavsagar> I also run it on all my Linux laptops
<vaibhavsagar> and we use it extensively at my current job
<vaibhavsagar> it works as advertised, which is the highest praise it is possible to bestow on a technology
<ldlework> I'm not sure what NixOS would have to do with scaling tbh
<vaibhavsagar> I just meant that it wasn't a fixed number of servers
<vaibhavsagar> we usually had at least 300
<{^_^}> [nixpkgs] @dtzWill merged pull request #56561 → qtbase: let build use gold linker if it wants, maybe works now → https://git.io/fhAmQ
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to staging: https://git.io/fhABt
<ldlework> What I mean is, I don't know how what linux distribution you use has much effect on scaling at any level.
o1lo01ol1o has joined #nixos
<vaibhavsagar> yeah, that's true
<ldlework> I wonder if Church- meant "worried about using NixOps* at a wider scale?"
<Church-> Hmm, I'll have to see for next quarter. Part of the pain is then rewriting all our stuff as nix packages.
novak has quit [Remote host closed the connection]
<Church-> Since then I have to teach front and backend
<Church-> Or did it myself.
<gchristensen> I suspect the question is ops teams know RHEL and Centos and Debian but not NixOS
<gchristensen> that is a non-trivial concern
<Church-> gchristensen: Actually my backend team knows Nix which is nice
<vaibhavsagar> yeah, that's fair
<Church-> Just not that handy on it.
<gchristensen> yeah
<ldlework> It's hard.
<vaibhavsagar> if only there were software consultancies you could hire to accelerate your Nix adoption...
Neo-- has joined #nixos
<noonien> is it possible to tell nixos to build derivations on another machines? if so, can the machine be another arch?
<Church-> Yeah but that's money :P
* vaibhavsagar coughs suggestively
<Church-> And we're a startup
<Church-> Nah, in house or bust
<Church-> I can do it, just annoying.
<gchristensen> sure, noonien
<vaibhavsagar> if your backend devs develop using Nix, you're already halfway there
<noonien> awesome! is there a guide i can follow?
<Taneb> noonien: we have a lot of Ubuntu machines doing builds here
<vaibhavsagar> noonien: different arch is tricky
<gchristensen> noonien: https://nixos.org/nixos/options.html#nix.buildmach
<Church-> vaibhavsagar: Well they don't develop with it.
<Church-> Although our build process is... a thing.
<vaibhavsagar> so then what are they using it for?
<Taneb> (oh, I misread arch as OS)
<dmj`> Doesn't hydra have the ability to deploy after a build has passed?
<dmj`> er, to execute an arbitrary command
<Church-> vaibhavsagar: I said they knew it
<Taneb> dmj`: there's the "RunCommand" plugin
<Church-> I didn't say they used it
<noonien> so, i can, for example, build derivations on an x86 mahine for an arm machine?
__Sander__ has quit [Quit: Konversation terminated!]
<dmj`> Taneb: does that come installed by default?
<Taneb> Yes
<vaibhavsagar> that is true
<noonien> great!
<samrose> This is interesting: on `nixos-install` the process aborts with the error https://gist.githubusercontent.com/samrose/96264a845c3dc24e5bd832e94c7bfdac/raw/ea351fed21a7efe36cf51017df964f853f3a8424/nixos-install-aborts traced to download of toml file for mozilla rust overlay
<vaibhavsagar> noonien: with emulation, yes
<vaibhavsagar> actually, oops
<vaibhavsagar> cross-compilation is also a thing
<Church-> How well does Nixops work with Linode?
<samrose> however, if I leave that out, and add it in later, the machine will autoupgrade from my custom channel/hydra and install that without issue
<dmj`> Taneb: fantastic
<vaibhavsagar> Church-: same as any other VPS with SSH access
<samrose> (it will install mozilla rust overlay without issue on autoupgrade from my channels I mean)
<ldlework> vaibhavsagar: wellllll
<dmj`> Taneb: I am using the github plugin, I wouldnt' want to execute the RunCommand script until a successful build has occurred
<dmj`> Taneb: er, until the branch has been merged
<ldlework> nixops support for various iaas is not even
<dmj`> Taneb: is that supported?
<noonien> has anyone setup lauching AWS or GCE instances just to build nix-packages?
<hyperfekt> tilpner: I'm currently implementing the scheme you told me about. Does evalModules { check = false } mean that I can have config values without corresponding option declarations?
<vaibhavsagar> ldlework: I meant that there is baseline support for any VPS with SSH access, and one can interact with a Linode VPS the same way :)
<Taneb> dmj`: I don't think so
<hyperfekt> tilpner: Disregard that question, sorry. Missed the redirected comment that explains it.
<ldlework> vaibhavsagar: sure but that doesn't tell the whole story is all :P
<vaibhavsagar> that's what the manual is for :)
Erasmus has joined #nixos
<ldlework> Church-: different providers have different levels of support from NixOps. You'll see services like Azure have very good support comparatively.
<dmj`> Taneb: I was afraid of that
schjetne has joined #nixos
erasmas has joined #nixos
asymmetric has quit [Ping timeout: 264 seconds]
<noonien> vaibhavsagar: nice, but i don't think hydra is what i want. my understand is that hydra builds a selection of packages, i need to be able to make nix-build and nixos-rebuild do the actual building on more powerful machines
<vaibhavsagar> noonien: I'm pointing out that it's possible
<vaibhavsagar> noonien: see also https://nixos.wiki/wiki/Distributed_build
<Taneb> dmj`: can you use GitHub webhooks instead?
<dmj`> Taneb: yea, I could
<Church-> ldlework: Yeah I can see that
<Church-> Which is weird
<Church-> Azure...
<ldlework> Azure is pretty nice..
just_some_dude has joined #nixos
<just_some_dude> I have a weird question: Does it make sense to make user's default shell be `~/.nix-profile/bin/nix-shell`?
<just_some_dude> I'm trying to make a docker container for CI builds that will start in `nix-shell` context by default
<hyperfekt> noonien: I'm looking to do the same thing, see https://github.com/NixOS/nix/issues/2696
<{^_^}> nix#2696 (by hyperfekt, 5 days ago, open): support cloud spot instance building use case
knupfer has quit [Remote host closed the connection]
xkapastel has joined #nixos
knupfer has joined #nixos
<noonien> hyperfekt: nice, for single-user builds, perhaps a ProxyCommand in .ssh/config might be enough, but for a global nixos config, i don't know how that might work
wfranzini has quit [Remote host closed the connection]
mariel__ has quit [Ping timeout: 258 seconds]
timor has joined #nixos
Neo-- has quit [Ping timeout: 259 seconds]
sigmundv__ has quit [Ping timeout: 244 seconds]
<samrose> my issue is actually coming from 1. https://github.com/Holo-Host/holoportos/blob/holoportos-testnet/packages/holoport-rust.nix#L9 which in turn runs https://github.com/mozilla/nixpkgs-mozilla/blob/master/rust-overlay.nix#L16 so my problem may be easier than it seems to me
<samrose> maybe I need to tell nixos how to use the file, where to store it etc
ubert has quit [Quit: Leaving]
vmandela has joined #nixos
ng0 has joined #nixos
rycwo has quit [Ping timeout: 258 seconds]
work_ has joined #nixos
arjen-jonathan has quit [Ping timeout: 264 seconds]
nokomprendo[m] has joined #nixos
<samrose> if I can figure out what https://github.com/NixOS/nix/blob/master/src/libexpr/primops.cc#L56 is doing, I might get a clue about why nixos-install doesn't like to download https://static.rust-lang.org/dist/2019-01-24/channel-rust-nightly.toml
jomik has joined #nixos
drakonis_ has joined #nixos
drakonis_ has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos
johanot has joined #nixos
drakonis has quit [Ping timeout: 250 seconds]
ng0 has quit [Quit: Alexa, when is the end of world?]
<vaibhavsagar> I heard we can make windows binaries with Nix now
<vaibhavsagar> is this true?
thblt has left #nixos ["ERC (IRC client for Emacs 26.1)"]
<srhb> vaibhavsagar: Has been for quite a while, I think :)
<vaibhavsagar> Good to know!
<srhb> vaibhavsagar: (I've never actually tried to run them with anything but wine myself, but I don't see any big issues there)
<lejonet> Anyone else having lightdm trolling them when logging in? I've both explicitly chosen session i3+none and set it as default with desktopManager.default = "none"; and windowManager.default = "i3"; but lightdm insists on giving me xterm+none regardless...
<srhb> vaibhavsagar: Try pkgsCross.mingw32.hello or something like that :)
semilattice has quit [Ping timeout: 246 seconds]
goibhniu has quit [Ping timeout: 250 seconds]
domogled has quit [Ping timeout: 244 seconds]
npmccallum has joined #nixos
ng0 has joined #nixos
yl has joined #nixos
<jomik> Using buildVimPluginFrom2Nix for https://github.com/rstacruz/vim-closer does not seem to work :(
<jomik> Anyone have any idea why? It says `Failed to build help tags!`
vmandela has left #nixos ["Leaving"]
<bgamari> how does one get a list of all requisites of a derivation but not the derivation itself?
<bgamari> like nix-store -qR would return on the command line
<bgamari> but within nix
<samrose> ok, I see with my error above, C++ doesn't find an expected directory
novakovic has joined #nixos
cantstanya has quit [Remote host closed the connection]
cantstanya has joined #nixos
<waleee> jomik: sounds like the .txt-file doesn't conform to the correct format, have it worked before?
samrose has quit [Ping timeout: 244 seconds]
samrose_ has joined #nixos
<jomik> waleee: Not at all, I just saw that it wasn't in the vimPlugins attribute set, I tried to just build it.
<jomik> I guess that makes sense.
<jomik> Ah, I'll look at what fzf vimPlugin does then, thanks :)
novakovic has quit [Ping timeout: 268 seconds]
<jomik> Oh, no. That doesn't seem to be helpful sadly :/
<waleee> jomik: apparently it's possible to check if a help file follows the correct format in vim, https://superuser.com/a/1321979
<waleee> I tried it on vim-closer's closer.txt and it reported a duplicate tag "closer" somewhere
Thra11 has joined #nixos
<hyperfekt> Is there any reason that people usually use 'cp' instead of 'mv' in the installPhase?
<averell> technically it requires more rights
knupfer has quit [Quit: knupfer]
<averell> i doubt that's the reason though :)
just_some_dude has quit [Remote host closed the connection]
<lejonet> Is there anyway to override what xsession options that are given, to only have none+i3?
<jomik> Yeah, I saw that there is a PR to fix that waleee
<jomik> But FZF does not have this issue I guess.
<jomik> I guess I just need to patch it
juliendehos[m] has joined #nixos
juliendehos has quit [Quit: Leaving]
hyperfekt has quit [Ping timeout: 256 seconds]
<jomik> Thank you :)
<{^_^}> [nixpkgs] @vcunat pushed 2 commits to staging: https://git.io/fhARp
<{^_^}> [nixpkgs] @vcunat merged pull request #56516 → lndir: get rid of xorgproto dependency → https://git.io/fhNdF
noogie has joined #nixos
emmynoether_ has joined #nixos
<emmynoether_> I just realised my name can be understood as emmy no ether
domogled has joined #nixos
semilattice has joined #nixos
<johanot> emmynoether_: now we can only read it that way. hehe
<emmynoether_> noo but what about the greatest woman mathematician )':
<{^_^}> [nixpkgs] @pSub pushed to master « checkstyle: 8.17 -> 8.18 »: https://git.io/fhA0m
<edef> idk, maybe she preferred infiniband, we'll never know
samrose_ is now known as samrose
<{^_^}> [nixpkgs] @worldofpeace merged pull request #56553 → nixos/plasma5: add xdg-user-dirs to create user directories → https://git.io/fhAtl
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhA0Y
<{^_^}> [nixpkgs] @dgarzon opened pull request #56587 → bazel: 0.22.0 -> 0.23.0 → https://git.io/fhA0C
<{^_^}> [nixpkgs] @worldofpeace pushed to release-19.03 « nixos/plasma5: add xdg-user-dirs to create user directories »: https://git.io/fhA08
<jomik> I found a fork that works :D
<{^_^}> [nixpkgs] @Zimmi48 opened pull request #56588 → coqPackages.contribs.zorn-lemmas: 8.6.0 -> 8.8.0 → https://git.io/fhA0B
robstr has joined #nixos
liminal18 has joined #nixos
zupo has joined #nixos
justanotheruser has quit [Ping timeout: 250 seconds]
<Izorkin> yl[m]: found error package pg8000 requires Python '>=3.5' but the running Python is 2.7.15
<liminal18> how do I get rid of older version of my os?
<liminal18> just deleted them in the boot loader as root?
<yl> Izorkin: I'm not sure I understand what you mean when you said on the PR: 'In rev c60d946 normal build'
drakonis_ has quit [Ping timeout: 252 seconds]
ixxie has joined #nixos
<liminal18> nevermind
justanotheruser has joined #nixos
<Izorkin> yl[m]: "git checkout c60d946" and apply my patch datadog
<yl> Izorkin: can you then rebase your PR over the latest master?
<Izorkin> yl[m]: if only roll back python27Packages pg8000 to 1.12.5
<Izorkin> 1.13.1 not worked in python27
<yl> Izorkin: oh, if your PR will break on master then I won't be able to merge it. You'll have to fix whatever is broken on master (separate PR) first
<Izorkin> FRidh[m]: how to fix build python27Packages pg8000 ?
rpg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hyperfekt has joined #nixos
MichaelRaskin has joined #nixos
<hyperfekt> Is there anything preventing mkDerivation from throwing an error if name = "" instead of just popping a contextless " illegal name: '.drv' " into the output?
<gchristensen> what do you mean?
<gchristensen> Nix can't handle no name:
<gchristensen> nix-repl> derivation { }
<gchristensen> error: required attribute 'name' missing, at /nix/store/sb4gq0rsvd4n62c5mfs7av3vy5n8jll3-nix-2.2/share/nix/corepkgs/derivation.nix:8:12
liminal18 has quit [Read error: Connection reset by peer]
liminal18_ has joined #nixos
jomik has quit [Ping timeout: 255 seconds]
<hyperfekt> That's weird, I'm getting this instead: https://git.io/fhA0P
<gchristensen> YI'm using `derivation` which is the fundamental type, you're using mkDerivation probably?
<{^_^}> [nixpkgs] @7c6f434c merged pull request #56582 → afflib: 3.7.17 -> 3.7.18 → https://git.io/fhA8Y
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/fhA01
<hyperfekt> yep
<hyperfekt> if i don't use --show-trace " illegal name: '.drv' " is actually the only output i get when trying to build a stdenv derivation without name
<robstr> Hey, first time node2nix user, which works quite nice, but when trying to add integrate into my existing shell i fail, https://gist.github.com/rsoeldner/f959d3d4fbf7577f1ddb8bef36d62911
thelounge52 has joined #nixos
liminal18_ has quit [Ping timeout: 250 seconds]
<samrose> I wonder if I need to do mkDerivation when I am trying to fetchFromGitHub mozilla rust overlay in my package, and then have an installPhase before I can import and use those files, and maybe that is why I am seeing src/libexpr/primops.cc:56: void nix::EvalState::realiseContext(const PathSet&): Assertion `store->isStorePath(ctx)' failed. error?
<{^_^}> [nixpkgs] @dotlambda merged pull request #56301 → pythonPackages.pvlib: enable tests → https://git.io/fhb8r
<{^_^}> [nixpkgs] @dotlambda pushed commit from @jluttine to master « pythonPackages.pvlib: enable tests (#56301) »: https://git.io/fhA0H
<johnw> I'm unable to login to my Hydra server, with the error "POST requests should come from <URL>". This happens in every browser I use, but not for my co-worker. Does anyone know how to track down what the problem is?
<mdash> samrose: you wouldn't use fetchFromGitHub, that's for source you build, not nix exprs you import
<mdash> samrose: instead you'd do (import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz))
<hyperfekt> samrose: Can you link your package again?
Guest95242 has quit [Ping timeout: 250 seconds]
<thelounge52> I'm making a utility usb and want a barebones and reliable operating system for general utility/recovery purposes. Before the operating system, I have 10 gb left on the usb. I want to see if I can fit this operating system, also along with an empty partition for testing iso installations. I know NixOS's size requirements are dependent on what you c
<thelounge52> onfigure, but I'd like a rough estimate. What are the minimum requirements for NixOS with terminal, gparted, and firefox? Can I fit it in under 4 gb?
<samrose> mdash: I think you might be right
robstr has quit [Ping timeout: 256 seconds]
liminal18 has joined #nixos
rpg has joined #nixos
<johnw> I don't understand this code in hydra's Root.pm: if ($c->req->method eq "POST" && $c->req->path ne "api/push-github"); it's this failing which is triggering my error. Why would my path ever be api/push-github?
<gchristensen> if you're using github pull request integration I assume
<johnw> ok, if I just got to the Hydra URL, without clicking through GitHub, then I can login
<emmynoether_> anyone got good advice on building a CV (the logistics part not the stuff that goes on it)
<waleee> emmynoether_: is latex a requirement or not? if yes, https://github.com/posquit0/Awesome-CV
drakonis_ has joined #nixos
matix has joined #nixos
<hyperfekt> samrose: I don't know what's going wrong in your package but the way you're creating the overlay looks right. Compare my configuration: https://git.io/fhA0h
<slabity> Hey all, yesterday I ran into an error with NixOS and btrfs on a drive (corrupt leaf node). I reinstalled on another drive and seem to have a similar issue. Is anyone else running btrfs on nixos-unstable and could see if dmesg has any errors?
<emmynoether_> waleee: Actually I tried to use that at some point but it quickly started to be more trouble than it seemed to be worth. Latex is pretty nice though but I'd like something more minimal
<hyperfekt> I am confused as to why you would set rustc to holoRust.channels instead of holoRust.channels.rustc though.
<hyperfekt> samrose: ^^^
<mdash> emmynoether_: hire someone to do a calligraphy rendering of it on parchment
<mdash> emmynoether_: no employer can resist
<emmynoether_> hahaha
<hyperfekt> imho nothing beats some nice handcrafted HTML + CSS
<hyperfekt> unless you need the kind of cv you can print out and put in pdfs D:
<samrose> hyperfekt: thanks for those clues.I would have to double check, but I wasn't able to get makeRustPlatform working without that
_kwstas has joined #nixos
<hyperfekt> samrose: Maybe you don't want to use the channel as your build input later on though.
<samrose> hyperfekt: ok, good thought I will experiment with that
<hyperfekt> line 36
<samrose> I see thanks hyperfekt
nSeagull has joined #nixos
<hyperfekt> it's always the smallest things that give the biggest trouble ;)
sinner has joined #nixos
<benwaffle[m]> How come, when I rebuild openssl (`nix-build -A openssl`), it rebuilds what seems like all packages that depend on it?
drakonis has joined #nixos
sinner is now known as Guest55662
<hyperfekt> like adding c where one shouldn't be?
<hyperfekt> benwaffle[m]: That shuldn't happen. Are you sure those aren't dependencies of openssl? Reminder that most packages use stdenv which includes a whole host of packages.
<benwaffle[m]> it's rebuilding libc++ now
<hyperfekt> benwaffle[m]: Are you building from a fork of nixpkgs or a channel with cached packages?
NickSeagull has quit [Ping timeout: 268 seconds]
<slabity> Is it safe to delete /nix/store/.links? I think it's messing up my filesystem
<gchristensen> no
drakonis_ has quit [Ping timeout: 250 seconds]
Guest55662 has quit [Ping timeout: 250 seconds]
<hyperfekt> benwaffle[m]: If you make modifications to nixpkgs you will always want to base them on either the nixos-unstable or nixpkgs-unstable branch of github.com/nixos/nixpkgs-channels
<slabity> Is there anyway to rebuild it? It's causing a bunch of i/o errors
<{^_^}> [nixpkgs] @johanot opened pull request #56589 → nixos/kubernetes: minor module fixes → https://git.io/fhAEO
<benwaffle[m]> i'm making changes to nixos/nixpkgs
<benwaffle[m]> and my mac has the nixpkgs-unstable channel
johanot has quit [Quit: WeeChat 2.2]
<gchristensen> benwaffle[m]: can you share your diff?
<hyperfekt> benwaffle[m]: Yeah, that means you have the latest changes and our Hydra hasn't yet had a chance to build all the dependencies for you. Base your fork off an unstable channel and voilá, you won't have to rebuild everything.
<benwaffle[m]> how do i base it off an unstable channel
* benwaffle[m] posted a file: openssl.patch (1KB) < https://matrix.org/_matrix/media/v1/download/matrix.org/eULfuMiylatMSVMQazwJvjoh >
<gchristensen> oof that is gonig to be a big thing
<gchristensen> eh, we don' thave tls 1.3?
<therealwaphire[m> guys is it possible for a nonroot user to mount zfs datasets?
<hyperfekt> If you're starting with a fresh branch, you can add nixpkgs-unstable as a remote, and then check out the nixpkgs-unstable branch. if you don't know how to do those actions they're probably easy to google
<hyperfekt> benwaffle[m]: Don't ask me how to rebase from master to unstable though, I always mess it up and discard all my changes *cries quietly*
<{^_^}> [nixpkgs] @pacien opened pull request #56590 → matrix-synapse: 0.99.1.1 -> 0.99.2 → https://git.io/fhAE4
<gchristensen> therealwaphire[m: I don't think linux supports that
<therealwaphire[m> oh alright
<therealwaphire[m> but zfs on freebsd does?
<gchristensen> I don't know, does freebsd allow non-root users to mount things?
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/81bf897e294 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<benwaffle[m]> I can't seem to find the nixpkgs-unstable git url. I'm using git://github.com/nixos/nixpkgs.git
<hyperfekt> therealwaphire[m: I found this on stack exchange and apparently it also applies to zfs? https://unix.stackexchange.com/a/96643/245194
<hyperfekt> benwaffle[m]: github.com/nixos/nixpkgs-channels
<hyperfekt> benwaffle[m]: nixpkgs-unstable is a branch in that repository
<benwaffle[m]> oh, thanks
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 244 seconds]
Mateon3 is now known as Mateon1
kai_w has quit [Quit: Konversation terminated!]
<samrose> hyperfekt: your suggestions resolved my issue!
<samrose> thanks
<hyperfekt> samrose: Glad I could help :)
waleee has quit [Quit: WeeChat 2.4]
<benwaffle[m]> seems like it still wants to build a lot of derivations, including libc++
<benwaffle[m]> off of channels/nixpkgs-unstable
<samrose> I rarely see c++ errors coming out of nix hyperfekt so that was a bit of a mystery for me
<benwaffle[m]> Also based on https://git.io/fhAE2, I should be doing `nix-build -A openssl_1_1`, right?
<hyperfekt> samrose: Yeah, I'm always at a bit of a loss when that happens as well. I usually debug them reading through my .nix file extra hard.
scientist has joined #nixos
orivej has joined #nixos
<hyperfekt> benwaffle[m]: You do have a normal nix installation though, with the /nix directory, right?
<benwaffle[m]> yep
<gchristensen> benwaffle[m]: why is that patch needed?
<hyperfekt> benwaffle[m]: Strange. If you're truly building from nixpkgs-unstable that shouldn't be necessary - the channel advances only when the packages have been built.
timor has quit [Ping timeout: 258 seconds]
<benwaffle[m]> I want to use curl with tls 1.3, but it says openssl is not compiled with tls 1.3 support
<liminal18> hey how i enable steam controller support?
<gchristensen> overriding openssl will certainly cause a *lot* of rebuilds.
<scientist> hey guys, I was wondering if you know where I can find a list of all the xkb keycodes, I need to add some to my configuration, thanks !
<gchristensen> benwaffle[m]: you're probably so low in the bootstrapping process that you're having to compile an interim version of libc++
<benwaffle[m]> low? bootstrapping? why doesn't it just download it?
<scientist> ?
<gchristensen> download what?
<hyperfekt> gchristensen: Well, if ben is only building openssl it should hardly build any of its dependencies?
<gchristensen> as part of bootstrapping we rebuild a some libraries a few times, each with more dependencies
<simpson> scientist: Use the `xev` tool, included as `xorg.xev` IIRC in nixpkgs, to find them for your particular hardware.
<simpson> > xorg.xev
<{^_^}> "<derivation /nix/store/12av8sz2j24yvah7n44fdbjf0jbfsb0k-xev-1.2.2.drv>"
<gchristensen> I'll apply your patch to provide some specific info :)
drakonis has quit [Ping timeout: 264 seconds]
<hyperfekt> gchristensen: Oh, so we have a few loops to get to the final state!
_kwstas has quit [Quit: _kwstas]
<gchristensen> sort of, yeah!
<gchristensen> benwaffle[m]: what revision of nixpkgs are you on?
<hyperfekt> benwaffle[m]: In that case you'll want to avoid building with the nixpkgs directory that you've modified and refer directly to the modified openssl you're building.
liminal18 has quit [Quit: Leaving]
drakonis has joined #nixos
<benwaffle[m]> gchristensen: i'm in github.com/nixpkgs/nixpkgs-channels on channels/nixpkgs-unstable
<hyperfekt> benwaffle[m]: Try nix-build -E "with import <nixpkgs-unstable> {}; callPackage [[[path-to-openssl]]]/default.nix {}";
<scientist> simpson: ok, I think I have used the command where you press a letter on your keyboard and it shows you the keycode, but I'm trying to find the list that shows all the keycodes, so I can I some to my custom keyboard configuration
<gchristensen> benwaffle[m]: what revision exactly? git rev-parse HEAD
<benwaffle[m]> 6e5caa3f8ac48750233ef82a94825be238940825
<simpson> scientist: It depends on your particular keyboard!
<gchristensen> benwaffle[m]: and what output do you see?
<benwaffle[m]> for what
<benwaffle[m]> hyperfekt: `error: file 'nixpkgs-unstable' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:13`
<gchristensen> you're running nix-build . -A openssl-1_1 right? when you do that, what do you see?
<gchristensen> can you paste the log?
<benwaffle[m]> it builds normally, but it builds a lot of packages
<benwaffle[m]> i will paste it
<hyperfekt> benwaffle[m]: Do nix-channel --add nixpkgs-unstable https://nixos.org/channels/nixpkgs-unstable followed by nix-channel --update beforehand
<hyperfekt> sorry, wrong way around, switch the name and the url
<hyperfekt> i always make that mistake
jcob has joined #nixos
<benwaffle[m]> oh is the import the channel name
<benwaffle[m]> its just 'nixpkgs' on my system
<scientist> simpson: well, I am using a custom keyboard layout, are you talking about my keyboard model ?
<benwaffle[m]> sweet it's only building openssl now
<hyperfekt> yeah exactly, we just import a channel so we can use it to call the package
<hyperfekt> benwaffle[m]: nice!
<benwaffle[m]> @gc
<gchristensen> heh yeah that is weird
<gchristensen> on eef63417d46c2b093ecce0bf07411a2ae0bbbb1e with your patch I only build openssl
<catern> is it reasonable to say that the original intention for channels and nix-env are pretty much obsolete? everyone's just using nixpkgs and not other channels, and the whole channels stuff seems pretty weird - git is better
<jcob> Hey all! Im considering switching to nixos and I have a few questions. 1. The only program that really matters on my computer is emacs. Within emacs, I am very happy with the straight package manager for managing my emacs packages. They all end up in ~/.emacs.d/straight. Would I be able to use this with nix?
<simpson> scientist: I'm talking about the actual hardware, yes. It is difficult to predict the raw keycodes without actually checking using xev or similar.
<gchristensen> catern: I don't care for nix-env, but I do like and use channels -- I think it would be risky to conclude they're obsolete
<mdash> jcob: You could but it's much nicer to configure it via nix expressions
<simpson> catern: I've had a couple multi-channel setups; back when the Monte project ran its own Hydra, we had a channel just for the Hydra. (These days we push to Cachix.)
<hyperfekt> jcob: I don't know straight but it sounds like it's entirely confined to your home directory. NixOS shouldn't interfere with that in the slightest. NixOS will only manage emacs itself (if you let it).
<mdash> jcob: not least because it's integrated with everything else and so you can manage dependencies on non-elisp programs/libraries in exactly the same way
<jcob> oh great thanks mdash and hyperfekt !
<scientist> simpson: so what is the command to see my the keyboard type of my hardware ?
<catern> gchristensen: simpson: but you just use them for user-level stuff, right? packages you want to install and use for interactive/non-development purposes?
<jcob> And my second q is related to the first: how well does nix play with programming language package managers like cargo and pip?
<simpson> scientist: No idea, sorry; I don't really know much about individual keyboards.
talqu has joined #nixos
<simpson> catern: We had had at least one person who used the channels as intended and installed a Monte into their user profile.
imalsogreg has joined #nixos
<scientist> simpson: it's fine thanks, I am just trting to learn little things here and there.
wedens has quit [Quit: Connection closed for inactivity]
<hyperfekt> catern: I think channels would become very interesting the moment we can confine a cache to only provide some packages, so you can actually use them without trusting the package author with your whole system.
<hyperfekt> Right now I'd be wary to just add someone's cache, but I also don't want to build all my software from source.
<benwaffle[m]> do some people not use nix-env?
<gchristensen> I would say most people here avoid nix-env, preferring nix-shell and environment.systemPackages, or home-manager
<hyperfekt> benwaffle[m]: I don't think I've ever entered the nix-env command into my terminal outside of the installation ISO.
<__monty__> benwaffle[m]: It's fine if you're not on NixOS though.
<benwaffle[m]> I've just been using `nix-env -i` as a replacement for brew
<__monty__> That's fine, though you should be using nix-env -iA.
<__monty__> ,A
<__monty__> ,iA
<__monty__> : /
<benwaffle[m]> why -A? e.g. `nix-env -i vim` works fine
<gchristensen> ,-A
<{^_^}> You'll usually want to use nix-env -i with -A. It's faster and more precise. See https://nixos.wiki/wiki/FAQ/nix-env_-iA for details.
<{^_^}> [nixpkgs] @dotlambda merged pull request #56323 → Move ansible to python-modules and use toPythonApplication + ansible related packages → https://git.io/fhbz5
<{^_^}> [nixpkgs] @dotlambda closed pull request #49764 → Ansible py3 → https://git.io/fxj3x
<{^_^}> [nixpkgs] @dotlambda pushed 7 commits to master: https://git.io/fhAEh
imalsogreg has quit [Quit: Leaving.]
<{^_^}> [nixpkgs] @dotlambda closed pull request #56585 → ansible: 2.7.6 -> 2.7.8 → https://git.io/fhA4k
<betaboon> on a nixos18.09 install playonlinux complains that it cant load libGL.so. any hints what I'm doing wrong ?
<benwaffle[m]> hmm....ok. Maybe the manual should have that?
<gchristensen> benwaffle[m]: I agree =)
<hyperfekt> Anyone know how I can link a bunch of files into the current working directory? 'ln -s path/* .' works in my shell but not in the builder (ln: failed to create symbolic link './.': File exists)
<gchristensen> what if you change it to path/* ./
<jcob> Does nix have something where you can fetch a package but rather than fetching the package itself you fetch the recipie
<jcob> Im assuming the answer is yes
<hyperfekt> benwaffle[m]: Also, as I recently learned, you can use nix search to fidn the attribute name for a package to give to nix-env -iA
<gchristensen> jcob: nix doesn't fetch anything without knowing how to build it, so you probably already _have_ the instructions! :)
<benwaffle[m]> yeah `nix search` is nice
<hyperfekt> gchristensen: same error :/
<benwaffle[m]> nix is kinda hard to learn. why is there no `nix install`?
<jcob> gchristensen: in that case, what would you do to change the build instructions? Find them and change them and reinstall>
<jcob> ?
<emily> benwaffle[m]: because nobody wrote one; also because imperative package management kinda sucks when you can avoid it
<gchristensen> benwaffle[m]: nix's UI is a beta "2.0" interface, without all the functionality of the 1.0 interface ported over.
<emily> I don't use nix-env at all
<gchristensen> jcob: are you on nixos or no?
<jcob> gchristensen: no, but I plan to be in the near future
<benwaffle[m]> is there a doc or blog post or talk explaining how to think about nix and the ways in which it can be used?
<gchristensen> jcob: `nix edit nixpkgs.vim` for example, will open the instructions in your editor (but read-only probably)
<gchristensen> jcob: after that, best thing to do is git clone the repo, and edit it from there
<MichaelRaskin> benwaffle: I think, in a sense there are _multiple_ implementations of nix install
vidbina has joined #nixos
<MichaelRaskin> There was some discourse thread with links
<hyperfekt> jcob: You would probably want to create an overlay. Check https://nixos.wiki/wiki/Overlays and https://nixos.org/nixpkgs/manual/#sec-overrides
<benwaffle[m]> on my mac, i can just `brew install vim`, so with nix do i want to globally install vim to use it anywhere, with `nix-env -iA nixpkgs.vim`?
scientist has quit [Quit: WeeChat 2.2]
<jcob> gchristensen: that is lit :)
<gchristensen> jcob: =)
timor has joined #nixos
<jcob> Once you change the package (or add an overlay)? do you have to do anything for nix to know to rebuild it?
<benwaffle[m]> or do i want to run a nix shell with vim inside that?
<gchristensen> probably just want to install it
<gchristensen> that is fine, I'd do the same thing if I wasn't on nixos
<benwaffle[m]> or use home-manager?
<MichaelRaskin> I dunno, I build a few environments with buildEnv, and add some of them to PATH
<bgamari> how does one convince nix-instantiate not to include !$OUTPUT suffixes in its output?
Makaveli7 has joined #nixos
<bgamari> for instance, I see
<bgamari> /nix/store/3nj27n45sl1sr2yv7i2dhm0jyqkxhcnr-gnugrep-3.3.drv!info
<bgamari> in its output
<hyperfekt> benwaffle[m]: You can do any of those, nix-env is for installing imperatively, nix-shell / nix run for doing it ephemereally and home-manager for doing it declaratively
<bgamari> which isn't a valid derivation path in the eyes of nix-store
<matix> today I learned about nix edit
<matix> gchristensen: thanks
<MichaelRaskin> bgamari: what exact command are you running
<bgamari> MichaelRaskin, nix-instantiate --quiet scripts/build-all.nix --arg bindistTarball $GHC_TARBALL -A buildDepends
<MichaelRaskin> Hm.
<gchristensen> and what do you want to get?
JonReed has quit [Ping timeout: 256 seconds]
<MichaelRaskin> My nix-store -r does accept !$output
<bgamari> gchristensen, just plain derivations unadorned with output suffixes
<bgamari> the full command line is
<gchristensen> I've never seen !$output before, and still can't ...
<bgamari> nix-store --export $(nix-store -qR --include-outputs $(nix-instantiate --quiet scripts/build-all.nix --arg bindistTarball $GHC_TARBALL -A buildDepends)) > store.nar
<bgamari> - nix-build scripts/build-all.nix
<bgamari> (ignore the second line)
<gchristensen> ah: nix-instantiate '<nixpkgs>' -A openssl.dev
<bgamari> right
<bgamari> so the buildDepends derivation mentioned above includes the buildInputs of another derivation
<bgamari> essentially I just want to cache everything necessary to build that derivation
<bgamari> in a NAR
<gchristensen> I've done this to convince some CI system to cache before
<betaboon> anyone has any hints on getting playonlinux to work ?
<bgamari> yep, that's what I'm currently up to
<hyperfekt> gchristensen: I decided to just use $PWD instead of . for the symlinking
<{^_^}> [nixpkgs] @Twey opened pull request #56592 → pythonPackages.pypandoc: 1.4 -> 2019-03-01 → https://git.io/fhAuG
drakonis_ has joined #nixos
<gchristensen> bgamari: I'm not sure why I didn't have your problem :/
<bgamari> yeah, quite mysterious
jtojnar has quit [Quit: jtojnar]
<bgamari> I suppose I could just sed away the suffix
<bgamari> but that feels very wrong
<gchristensen> now we're cookin'
jcob has quit [Ping timeout: 255 seconds]
* bgamari isn't sure he can bring himself to do that
<gchristensen> I believe in you, bgamari
<joko> Hey, is there any way to tell if a binary needs a library and segfaults for that?
<bgamari> gchristensen, when you did this did you make use of https://github.com/NixOS/nix/issues/1245#issuecomment-401642781?
<joko> I've tried ldd, but everything seems fine
<gchristensen> good grief
drakonis has quit [Ping timeout: 258 seconds]
<bgamari> indeed
<bgamari> this all feels much harder than it should
<bgamari> I'm not sure if that's because I'm simply approaching the problem from the wrong direction
<bgamari> because there is simply functionality missing from nix
<bgamari> or a mixture of the two
<gchristensen> I agree, having a "CI Mode" which automatically uploaded everything to a binary cache would be really nice
<bgamari> right
<bgamari> as far as I can tell domenkozar worked around this in cachix by simply watching for new additions to the store
<gchristensen> right
<{^_^}> [nixpkgs] @terlar opened pull request #56594 → nodePackages.indium: init at 3.4.1 → https://git.io/fhAu2
jtojnar has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer merged pull request #51628 → stdenv: add armv7a-linux system → https://git.io/fpDIx
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fhAua
<benwaffle[m]> now that i have rebuilt openssl, how do i make curl use those libs
<catern> bgamari: gchristensen: I'm not sure I understand the CI problem you're talking about, what is this?
<catern> you want a CI system to cache deps? doesn't it already do that as long as you don't GC too aggressively?
<gchristensen> not if you're using Travis
<bgamari> right
<bgamari> or docker
<catern> huh okay so how do you work around this for travis or docker?
<gchristensen> very ugly ways, like exporting the nix store at the end and re-importing it at the beginning
<bgamari> catern, pretty much any CI system worth its salt will have some sort of cache facility
<bgamari> where you can tell it to preserve a file across builds
<catern> okay, so then why do you need to get all the build-time deps of a package? that sounds like that should work?
<bgamari> the plan is to archive allof the build-time deps of the thing being tested to a NAR at the end of the build
<bgamari> and import that NAR at the beginning of later builds
<catern> but why not just grab the entire store? then that's nice and generic
rpg has quit [Quit: Textual IRC Client: www.textualapp.com]
<bgamari> catern, because it's much larger than the bits that I need
o1lo01ol1o has quit [Remote host closed the connection]
<catern> why? shouldn't the only thing in the store be build deps and the actual output? (you can delete the actual output I suppose if it's really so big)
<bgamari> the idea in my case is to build a subset of hackage with a GHC binary distribution
<bgamari> so the only build dependencies that I really need are cabal2nix and jailbreak-cabal
<bgamari> but the CI job may produce tens of gigabytes of other derivations
<hyperfekt> mkDerivation wrecking me so hard again I'm considering just using runCommand instead, ironically
<catern> i see
<catern> a CI mode like gchristensen mentions wouldn't help with that though
<catern> because it would upload those tens of gigabytes of output derivations
<catern> along with everything else
<gchristensen> well it'd also be able to fetch the pre-built ones
<catern> I assume the output derivations change every time or something
<gchristensen> not for many of them
<catern> otherwise I go back to asking why not just copy the entire store
o1lo01ol1o has joined #nixos
<catern> that's isomorphic to a CI mode I think
<bgamari> I'm actually not entirely sure I understand what is meant by "CI mode"
<bgamari> really what I want is a way to take a set of derivations and collector all of their build dependencies
<bgamari> collect*
<catern> but is that really what you want? :)
<catern> sorry to XY problem you
<bgamari> quite alright
<bgamari> I think so
<gchristensen> something to mirror hydra's behavior , bgamari, of uploading everything built -- not just the end result of what built.
<gchristensen> and as it goes -- not as a big stop-the-world phase at the end
<catern> (I don't have this problem because I run all my builds on a persistent machine with a persistent disk)
<bgamari> fair
<bgamari> yeah, I'm actually not sure that will help me
<gchristensen> no?
<bgamari> well, because I don't want to upload everything
<gchristensen> none of the builds would be cache-hits?
<bgamari> every build will be done with a new GHC binary distribution
<gchristensen> ah, heh
<bgamari> so very few will be cache hits
<bgamari> in my case the only things that will be cache hits are cabal2nix and jailbreak-cabal
<bgamari> but those two unfortunately take a non-trivial amount of work to build
<bgamari> it currently takes around 30 minutes just to get to beginning the interesting testing
<bgamari> because of this
<gchristensen> well there you go, those'd be two significant ones to run in a hypothetical --ci-mode
mounty has quit [Ping timeout: 240 seconds]
<bgamari> yes
<bgamari> I mean in principle I could just NAR up those two derivations
<bgamari> and that was my first attempt
<bgamari> but unfortunately I can't figure out how to reach the precise cabal2nix and jailbreak-cabal derivations that my builds are using
JosW has joined #nixos
<benwaffle[m]> so I think i have this issue: openssl builds v1.0.2q and v1.1.1a. I need curl to link against v1.1.1a. How do i do this?
<bgamari> catern, so anyways, perhaps my real problem is that
<bgamari> I can't find an easy way to identify an attribute path to reach a given derivation
<joko> benwaffle[m]: try adding (curl.override { openssl = openssl_1_1; })
<catern> gchristensen: I guess this notion of "CI mode" would ideally come from being able to list a bunch of Stores that any builds should be uploaded to. That's kind of a very natural inverse of listing a bunch of Stores to use as binary caches
Glider_IRC_ has joined #nixos
sitischu[m] has joined #nixos
Glider_IRC has quit [Ping timeout: 250 seconds]
<hyperfekt> Can someone help me make this work? I'm absolutely at the end with my latin. https://git.io/fhAze
jcob has joined #nixos
<gchristensen> hyperfekt: maybe just replace unpackPhase with src = pkgs.path ?
rycwo has joined #nixos
fendor has joined #nixos
lassulus has quit [Ping timeout: 250 seconds]
<hyperfekt> gchristensen: That's gonna copy the whole tree though, won't it? Or am I misinformed?
<gchristensen> ah
<jabranham> does nixos remove the kernel modules after upgrading like Arch so that you have to e.g. reboot before USB works?
<gchristensen> but you watch to patch it? you probably want to copy it.
<hyperfekt> gchristensen: That's what the --follow-symlinks option is there for, at least in theory.
lassulus has joined #nixos
<gchristensen> ah
<hyperfekt> That means patch should follow symlinks, but any patch copies the file instead of modifying the target.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gchristensen> well you probably don't actually want that, you probably want to mirror the directory structure and then symlink only files
<gchristensen> anyway. disk is cheap. I'd just copy, heh.
zupo has joined #nixos
<hyperfekt> It's less about size and more about time, given that store optimisation should get rid of the copy.
<hyperfekt> gchristensen: Turns out patch even works with symlinked directories, though - so that shouldn't be necessary. The problem I'm having is doing the linking in the first place.
<gchristensen> huh
jcob has quit [Quit: ZNC 1.7.2 - https://znc.in]
marko[m]1 has joined #nixos
leotaku has quit [Ping timeout: 244 seconds]
Erasmus has quit [Read error: Connection reset by peer]
<benwaffle[m]> omg i did it
<benwaffle[m]> i got curl with tls 1.3
<gchristensen> yay :)
<benwaffle[m]> somehow this causes it to build curl
<benwaffle[m]> nix-build -E "with import <nixpkgs> {}; (curl.override { openssl = openssl_1_1; })"
mekeor has joined #nixos
<hyperfekt> benwaffle[m]: using .override on a derivation yields the same derivation called with nonstandard dependencies
<hyperfekt> benwaffle[m]: Also, good job! :D
Erasmus has joined #nixos
<benwaffle[m]> on the other hand, there are 94 files in /nix/store with "curl", and 114 files with "openssl". so i have no idea how anything works
jcob has joined #nixos
_kwstas has joined #nixos
<joko> ok, my problem seems to be solved with wrapGAppsHook, any clue how to detect it from the beginning?
<hyperfekt> benwaffle[m]: That's probably every different version of those you've ever built / downloaded, plus their .drv files and sources.
<benwaffle[m]> yep
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56595 → aws-sdk-cpp: 1.7.53 -> 1.7.56 → https://git.io/fhAzZ
leotaku has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56596 → aws-c-common: 0.3.2 -> 0.3.3 → https://git.io/fhAzR
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56597 → baresip: 0.6.0 -> 0.6.1 → https://git.io/fhAza
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vidbina has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @dtzWill opened pull request #56598 → libosinfo: 1.2.0 -> 1.4.0 → https://git.io/fhAzX
semilattice has quit [Ping timeout: 246 seconds]
knupfer has joined #nixos
nikivi has quit [Quit: ZNC is awesome]
q6AA4FD has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
nikivi has joined #nixos
q6AA4FD has joined #nixos
arjen-jonathan has joined #nixos
<{^_^}> [nixpkgs] @andir opened pull request #56599 → tinc_pre: fix error after openssl upgrade → https://git.io/fhAzH
eadwu has joined #nixos
growpotkin has joined #nixos
<mekeor> hi
<mekeor> :)
<mekeor> how are you? :)
<growpotkin> Hey I wanted to give home manager a try, I'm not even really sure where to start after reading the little intro. There does not seem to be much documentation for how to set it up through Configuration.nix
<growpotkin> Does anybody around there parts use Home Manager?
<jabranham> ,locate pdf2text
<{^_^}> Found in packages: owncloud
<jabranham> well that's not right
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56600 → bind: 9.12.3-P1 -> 9.12.3-P4 → https://git.io/fhAgf
<ddellacosta> I can't seem to catch a break with Haskell on NixOS. So now I'm experiencing this same issue: https://github.com/commercialhaskell/stackage/issues/4289 How do I go about patching a transitive dependency deep in the stack using Nix--anyone have any pointes or doc links?
<{^_^}> commercialhaskell/stackage#4289 (by snoyberg, 7 weeks ago, open): Diff test suite fails to compile
zupo has joined #nixos
<growpotkin> oh i had trouble finding pdf2text, one sec let me find the package name
<growpotkin> its "nixos.xpdf"
<jabranham> thanks
<growpotkin> no sweat
<{^_^}> [nixpkgs] @zachcoyle closed pull request #55242 → vimPlugins: init vim-prettier → https://git.io/fh9JW
erasmas has quit [Quit: leaving]
sinner has joined #nixos
sinner is now known as Guest57755
o1lo01ol1o has quit [Remote host closed the connection]
parenthetical has quit [Quit: WeeChat 1.4]
<ddellacosta> growpotkin: re: home-manager, I used it the first time I tried NixOS, I recall all I did was install it and start configuring
isidore has joined #nixos
<ddellacosta> I guess via home.nix in my home dir, forget exactly where, but I think that's documented
<growpotkin> ok cool
<growpotkin> I was reading the guide and they add all kinds of extra channels and stuff
vidbina has joined #nixos
<ddellacosta> from there I think you call the home-manager command more or less like `nixos-rebuild switch`
<growpotkin> I wasn't sure if just installing home-manager through my system's packages was sufficient
<ddellacosta> I believe so
JosW has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<growpotkin> yeah thats what I want to do. I have way too many dotfiles managed in my global config now; I don't want to wait on a full system rebuild because I wanted to edit my zshconf or change a line or two of my XMonad config
<growpotkin> jabranham: I added a pull request to include a longer description no Xpdf which specifically lists it's inclusion of `pdftotext` and the million other scripts.
hyperfekt has quit [Quit: Page closed]
mekeor has quit [Ping timeout: 258 seconds]
<growpotkin> jabranham: hopefully queries will lead people to Xpdf now
<{^_^}> [nixpkgs] @BadDecisionsAlex opened pull request #56601 → Added long description → https://git.io/fhAgc
petersjt014 has joined #nixos
<jabranham> growpotkin: thanks. I apparently have pdftotext via poppler?
<growpotkin> jabranham: bizarre, I wonder if it is the exact same program, or just a common script name
<jabranham> I dunno. I also used to use (on a different distro) "pdf2text" and have no idea if it's the same as "pdftotext" or something different
semilattice has joined #nixos
<growpotkin> yeah when I googled `pdf2text` i didn't get any hits, but I am positive I've had it on an old machine or something
<growpotkin> it's in my muscle memory lol
<jabranham> growpotkin: wikipedia says pdftotext usually comes from poppler https://en.wikipedia.org/wiki/Pdftotext
<jabranham> if you believe that
mobile_c_ has joined #nixos
vk3wtf has quit [Ping timeout: 258 seconds]
mkoenig has quit [Remote host closed the connection]
mobile_c has quit [Read error: Connection reset by peer]
<ddellacosta> can anyone tell how to (or where to find docs for how to) patch a transitive dependency in a Haskell package? I'm trying to figure out how to work around this: https://github.com/commercialhaskell/stackage/issues/4289
<{^_^}> commercialhaskell/stackage#4289 (by snoyberg, 7 weeks ago, open): Diff test suite fails to compile
fenedor has joined #nixos
isidore has quit [Quit: WeeChat 2.4]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56602 → brave: 0.59.35 -> 0.60.45 → https://git.io/fhAg2
jcob has quit [Quit: ZNC 1.7.2 - https://znc.in]
fendor has quit [Ping timeout: 244 seconds]
rycwo has quit [Ping timeout: 250 seconds]
o1lo01ol1o has joined #nixos
drakonis_ has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56603 → btrfs-progs: 4.20.1 -> 4.20.2 → https://git.io/fhAgi
jabranham has quit [Remote host closed the connection]
rauno has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56604 → bspwm: 0.9.6 -> 0.9.7 → https://git.io/fhAgy
semilattice has quit [Ping timeout: 268 seconds]
Thra11 has quit [Ping timeout: 250 seconds]
<lejonet> Hmmm, if I want a package to have a symlink in it that goes to a rw directory, is that possible to do? (trying to create a private package for a homepage, that has a file area, so kind of need to be able to place files there without needing to remake the package everytime :P )
<matix> lejonet: of course, your app could even hardcode the path directly, like for example most programs use /var
Ariakenom has quit [Quit: Leaving]
<lejonet> matix: yeah, that is what I'm gonna use, /var/www as the base, so I guess I could just add a symlink to the package that points to a location in /var somewhere, don't ask me why I didn't think about that... (the target of a symlink is allowed to not exist when the symlink is created...)
<matix> lejonet: the build is pure even if some symlinks point to rw files since the build output only contains the *contents* of the symlink (which is the path that it points to) and that doesn't change
<lejonet> matix: indeed, brainfart from me :P
* lejonet goes and hides in the corner
Erasmus is now known as MrJellyBean
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56605 → c-blosc: 1.14.4 -> 1.16.2 → https://git.io/fhA2v
adelbertc_ has joined #nixos
teehemkay_ has joined #nixos
CMCDragonkai_ has joined #nixos
benkolera_ has joined #nixos
etrepum_ has joined #nixos
mankyKitty_ has joined #nixos
siers69 has joined #nixos
vdemeester_ has joined #nixos
coot_ has joined #nixos
ctp___ has joined #nixos
nixy- has joined #nixos
v0d1ch_ has joined #nixos
NemesisD_ has joined #nixos
johs_ has joined #nixos
metalrain_ has joined #nixos
bitonic_ has joined #nixos
nh2_ has joined #nixos
colemickens_ has joined #nixos
rizary_ has joined #nixos
ocharles_ has joined #nixos
thoughtpolice_ has joined #nixos
d1rewolf_ has joined #nixos
pasukon_ has joined #nixos
dunk_ has joined #nixos
semilattice has joined #nixos
r0bby_ has joined #nixos
Aexoden_ has joined #nixos
awygle_ has joined #nixos
aaron1 has joined #nixos
witchof01 has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56606 → cadvisor: 0.32.0 -> 0.33.0 → https://git.io/fhA2k
duncan^ has left #nixos [#nixos]
zupo_ has joined #nixos
shlevy_ has joined #nixos
MrJellyBean is now known as Erasmus
SegFaultAX_ has joined #nixos
zupo has quit [Ping timeout: 258 seconds]
marko[m]1 has quit [*.net *.split]
Cale has quit [*.net *.split]
ericsagnes has quit [*.net *.split]
juliendehos[m] has quit [*.net *.split]
teej has quit [*.net *.split]
makaveli[m] has quit [*.net *.split]
nixy has quit [*.net *.split]
shlevy has quit [*.net *.split]
NinjaTrappeur has quit [*.net *.split]
yorick has quit [*.net *.split]
mikeplus64 has quit [*.net *.split]
benley has quit [*.net *.split]
craige[m] has quit [*.net *.split]
witchof0x20 has quit [*.net *.split]
Vskilet has quit [*.net *.split]
WilliamHamilton[ has quit [*.net *.split]
IslandUsurper has quit [*.net *.split]
moope[m] has quit [*.net *.split]
FRidh[m] has quit [*.net *.split]
Josh[m]1 has quit [*.net *.split]
Seb[m] has quit [*.net *.split]
musicmatze has quit [*.net *.split]
clacke[m] has quit [*.net *.split]
bkl[m] has quit [*.net *.split]
grahamc[m] has quit [*.net *.split]
thequux[m] has quit [*.net *.split]
attente[m] has quit [*.net *.split]
mica[m] has quit [*.net *.split]
copy` has quit [*.net *.split]
melchips[m] has quit [*.net *.split]
zurdo has quit [*.net *.split]
exarkun1 has quit [*.net *.split]
badmutex[m] has quit [*.net *.split]
bennofs[m] has quit [*.net *.split]
Moredread[m] has quit [*.net *.split]
rizary has quit [*.net *.split]
bitonic has quit [*.net *.split]
dunk has quit [*.net *.split]
teehemkay has quit [*.net *.split]
siers has quit [*.net *.split]
coot has quit [*.net *.split]
johs has quit [*.net *.split]
mankyKitty has quit [*.net *.split]
thoughtpolice has quit [*.net *.split]
NemesisD has quit [*.net *.split]
etrepum has quit [*.net *.split]
benkolera has quit [*.net *.split]
vdemeester has quit [*.net *.split]
nh2 has quit [*.net *.split]
metalrain has quit [*.net *.split]
nisstyre has quit [*.net *.split]
Ashy has quit [*.net *.split]
ocharles has quit [*.net *.split]
ctp has quit [*.net *.split]
pasukon has quit [*.net *.split]
adelbertc has quit [*.net *.split]
colemickens has quit [*.net *.split]
Aexoden has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
v0d1ch has quit [*.net *.split]
lluchs has quit [*.net *.split]
CMCDragonkai has quit [*.net *.split]
d1rewolf has quit [*.net *.split]
r0bby has quit [*.net *.split]
teehemkay_ is now known as teehemkay
v0d1ch_ is now known as v0d1ch
etrepum_ is now known as etrepum
benkolera_ is now known as benkolera
CMCDragonkai_ is now known as CMCDragonkai
SegFaultAX_ is now known as SegFaultAX
coot_ is now known as coot
NemesisD_ is now known as NemesisD
adelbertc_ is now known as adelbertc
vdemeester_ is now known as vdemeester
mankyKitty_ is now known as mankyKitty
pasukon_ is now known as pasukon
johs_ is now known as johs
rizary_ is now known as rizary
dunk_ is now known as dunk
ctp___ is now known as ctp
bitonic_ is now known as bitonic
nh2_ is now known as nh2
colemickens_ is now known as colemickens
d1rewolf_ is now known as d1rewolf
r0bby_ is now known as r0bby
metalrain_ is now known as metalrain
ocharles_ is now known as ocharles
nikivi has quit [Quit: ZNC is awesome]
nikivi has joined #nixos
arjen-jonathan has quit [Ping timeout: 258 seconds]
thoughtpolice_ has quit []
thoughtpolice_ has joined #nixos
thoughtpolice_ has quit [Client Quit]
thoughtpolice has joined #nixos
<{^_^}> [nixpkgs] @andir opened pull request #56607 → Cryptsetup 2.1 → https://git.io/fhA2Z
<{^_^}> [nixpkgs] @matthewbauer opened pull request #56608 → [wip] haskell: try to fix #41340 → https://git.io/fhA2n
musicmatze has joined #nixos
badmutex[m] has joined #nixos
WilliamHamilton[ has joined #nixos
exarkun1 has joined #nixos
zurdo has joined #nixos
benley has joined #nixos
Cale has joined #nixos
nisstyre has joined #nixos
marko[m]1 has joined #nixos
NinjaTrappeur has joined #nixos
alex`` has quit [Ping timeout: 244 seconds]
lluchs has joined #nixos
ericsagnes has joined #nixos
yorick has joined #nixos
Josh[m]1 has joined #nixos
mikeplus64 has joined #nixos
attente[m] has joined #nixos
makaveli[m] has joined #nixos
clacke[m] has joined #nixos
bkl[m] has joined #nixos
Moredread[m] has joined #nixos
Seb[m] has joined #nixos
thequux[m] has joined #nixos
Vskilet has joined #nixos
craige[m] has joined #nixos
alex`` has joined #nixos
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
teej has joined #nixos
copy` has joined #nixos
jcob has joined #nixos
winem_ has joined #nixos
domogled has quit [Ping timeout: 255 seconds]
melchips[m] has joined #nixos
FRidh[m] has joined #nixos
IslandUsurper has joined #nixos
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
moope[m] has joined #nixos
mica[m] has joined #nixos
grahamc[m] has joined #nixos
juliendehos[m] has joined #nixos
emmynoether_ has quit [Ping timeout: 256 seconds]
bennofs[m] has joined #nixos
sdier has quit [Ping timeout: 264 seconds]
sdier has joined #nixos
timor has quit [Ping timeout: 250 seconds]
witchof01 has quit [Quit: WeeChat 2.2]
witchof0x20 has joined #nixos
knupfer has quit [Ping timeout: 264 seconds]
hyperfekt has joined #nixos
aaron1 is now known as Ashy
mmlb has joined #nixos
aristid has quit [Ping timeout: 264 seconds]
aristid has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56609 → cherrytree: 0.38.7 -> 0.38.8 → https://git.io/fhA2z
omnipotententity has joined #nixos
scientist has joined #nixos
scientist has quit [Client Quit]
<omnipotententity> Potentially stupid graphics configuration question. I have two nvidia cards connected to three monitors. I only have display on the two monitors connected to the primary card. Previously, I had used an nvidia configuration tool to setup sharing through... SLI I think? It was several years ago the last time I seriously tinkered with my setup. What's the correct way to do this in NixOS?
<omnipotententity> Looks like it's "Base Mosaic," how do I do this from nix rather than having state within the nvidia-settings utility?
<omnipotententity> brb restarting x
omnipotententity has quit [Remote host closed the connection]
_kwstas has quit [Quit: _kwstas]
siers69 is now known as sier
sier is now known as siers
kreisys has joined #nixos
_kwstas has joined #nixos
thc202 has quit [Ping timeout: 250 seconds]
_kwstas has quit [Client Quit]
fenedor has quit [Quit: Leaving]
clr_ has quit [Remote host closed the connection]
petersjt014 has quit [Remote host closed the connection]
omnipotententity has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56610 → chirp: 20190201 -> 20190206 → https://git.io/fhA2w
<omnipotententity> well, that didn't work lol
omnipotententity is now known as OmnipotentEntity
semilattice has quit [Ping timeout: 250 seconds]
winem_ has quit [Ping timeout: 264 seconds]
eadwu has quit [Quit: WeeChat 2.4]
rcshm has quit []
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56611 → ckbcomp: 1.188 -> 1.189 → https://git.io/fhA27
endformationage has quit [Ping timeout: 246 seconds]
talqu has quit [Remote host closed the connection]
OmnipotentEntity has quit [Remote host closed the connection]
o1lo01ol1o has quit [Read error: Connection reset by peer]
<bemeurer> Can someone help me understand why my QEMU build (I overrided some defaults) takes like 1-2 minutes to build, but an eternity (never got it to finish) at the end running "makeinfo"?
o1lo01ol1o has joined #nixos
<bemeurer> Is there any way I can have it not build the docs? I don't need them
<bemeurer> In these buildInputs
Erasmus has quit [Quit: END-AUMF]
o1lo01ol1o has quit [Remote host closed the connection]
kreisys has quit [Ping timeout: 246 seconds]
o1lo01ol1o has joined #nixos
<hyperfekt> damn. i got my patching of nixpkgs to work but apparently i'm now building autoconf for some reason?