gchristensen changed the topic of #nixos to: NixCon 2018 CfP is now open! https://nixcon2018.org/ || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon
justanotheruser has joined #nixos
<jasom> Anyone here use the epson driver? I installed it but when I try to print I get: /nix/store/hwvmss14pw4p2lp2a8l5fybz6r787ran-cups-progs/lib/cups/filter/epson-escpr-wrapper "No such file or directory"
<jasom> That file is present in /nix/store/iyqn9yqxfqlw4624y28pmjx7f7if666j-epson-escpr-1.6.16 though
<jasom> ohh, it looks like I have to install it via services.printing.drivers
<samueldr> trick question: should I use the short description that upstream uses for their font?
phreedom has quit [Remote host closed the connection]
kolb has left #nixos [#nixos]
phreedom has joined #nixos
goibhniu has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @samueldr opened pull request #45164 → vegur: init at 0.701 → https://git.io/fNhPg
<samueldr> (the answer is: probably not since upstream's description is in japanese)
endformationage has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fNhPA
<kalbasit[m]> has anyone experienced issues with their USB mouse on kernel 4.18? https://github.com/NixOS/nixpkgs/issues/45165
<{^_^}> #45165 (by kalbasit, 8 minutes ago, open): linuxPackages_4_18 mouse pointer does not move when using USB mouse
worldofpeace has quit [Remote host closed the connection]
johnw has quit [Ping timeout: 240 seconds]
andreabedini has joined #nixos
<ldlework> I am trying to use dag.entryAfter from home manager, but it keeps telling me that the attribute isnt' found
<ldlework> All over the home manager source it does "dag = config.lib.dag"
<ldlework> I've tried that and just about everything else.
<ldlework> argh why can't i use you dag!?
aarvar has quit [Ping timeout: 265 seconds]
<ldlework> must be doing something stupid... but what
growpotkin has left #nixos [#nixos]
<ldlework> why can't I use it?!
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
haitlah has quit [Remote host closed the connection]
* ldlework despairs
S1t1Schu has joined #nixos
<ldlework> home.activation.weechat = config.lib.dag.entryAfter ["installPackages"]
<ldlework> "ln -s /nixcfg/external/weechat/ /home/ldlework/.weechat";
<ldlework> can someone tell me why dag isn't available here?
<ldlework> rycee even recommends this at some point
S1tiSchu has quit [Ping timeout: 265 seconds]
ericsagnes has joined #nixos
worldofpeace has joined #nixos
carlosdagos has quit [Quit: Connection closed for inactivity]
<ldlework> nice I got it
<ldlework> time to write that down, jeeze
alexteves has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @TravisWhitaker opened pull request #45166 → ghc: Use 8.2.2 binary for boot, no parallel builds on aarch64. → https://git.io/fNh1S
justanotheruser has quit [Quit: WeeChat 2.0]
lassulus_ has joined #nixos
justanotheruser has joined #nixos
mayhewluke has quit [Ping timeout: 240 seconds]
Anton-Latukha has quit [Ping timeout: 260 seconds]
lassulus has quit [Ping timeout: 260 seconds]
lassulus_ is now known as lassulus
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
<ldlework> Nice I have weechat and stuff being symlinked now
andreabedini has quit [Quit: Textual IRC Client: www.textualapp.com]
<{^_^}> [nixos-artwork] @samueldr pushed 2 commits to feature/font: https://git.io/fNhMD
jperras has joined #nixos
<{^_^}> [nixos-artwork] @samueldr opened pull request #33 → Adds a revision of the logo SVG file with matching font → https://git.io/fNhMh
jperras has quit [Ping timeout: 240 seconds]
hamishmack has joined #nixos
thc202 has quit [Ping timeout: 240 seconds]
mayhewluke has joined #nixos
tertle||eltret has joined #nixos
Drakonis has joined #nixos
endformationage has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45167 → pgroonga: 2.0.6 -> 2.0.9 → https://git.io/fNhDN
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45168 → pgbouncer: 1.8.1 -> 1.9.0 → https://git.io/fNhDh
jperras has joined #nixos
<ldlework> can I use mkIf with things other than sets?
<infinisil> ldlework: mkIf works for everything
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45169 → psmisc: 23.1 -> 23.2 → https://git.io/fNhyO
<ldlework> it says "trying to call something which is not a function but a set"
<ldlework> when I wrap the dagEntryAfter call in parens, then I get some error inside dag.nix
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45170 → proselint: 0.10.0 -> 0.10.2 → https://git.io/fNhyn
<infinisil> ldlework: you need the parens, because mkif only takes 2 args
<ldlework> then I get: attribute 'before' missing, at /nix/store/bjzwivmqpkgy49cgzlpm6vcp9pbslk65-source/modules/lib/dag.nix:84:49
pluplog has joined #nixos
<ldlework> which seems strange
<ldlework> I am guessing it is because mkIf returns a set with three attrs..
<infinisil> Seems to be something wrong with your homemanager version, not sure
<ldlework> what really?
<infinisil> Most likely
<infinisil> mkIf doesn't have anything to do with this for sure
<ldlework> when I use mkIf in nix repl, it returns a three-attr set
<ldlework> nix-repl> :p lib.mkIf true false
<ldlework> { _type = "if"; condition = true; content = false; }
<infinisil> Yeah, but the module system takes care of that
<infinisil> Try your home-managers dag implementation without using the module system, maybe it'll trigger the error too
<ldlework> I use it in the line above and it works fine
<ldlework> if i comment out this activation package thing, the line above work so mkIf is working
<ldlework> infinisil: I'm not sure what you mean
<ldlework> also I used the dag system in another place
<ldlework> and it worked
<ldlework> also
<ldlework> if I remove the mkIf it works
<infinisil> Is 'installPackages' a valid phase?
<ldlework> yeah its the one I use for weechat
<infinisil> Oh i see half of the problem
<infinisil> Or not
<ldlework> hehe
selfsymmetric-mu has joined #nixos
<infinisil> Oh i got it
<infinisil> The type is not properly specified
selfsymmetric-mu has quit [Remote host closed the connection]
<ldlework> so it is a bug?
<infinisil> As a workaround you should be able to do "home.activation = mkIf (...) { weechat = ..."
<infinisil> Yeah, can be considered a bug
<infinisil> The type should be "attrsOf (submodule { options.before = mkOption { ... }; options.after = ...; ... })"
<infinisil> Maybe PR this yourself or open an issue for it
<ldlework> infinisil: great job that worked
<infinisil> And the module system doesn't work properly if the type is not explicit enough
<ldlework> infinisil: i figured out how to automatically generate ZNC certs and SASL creds btw
<ldlework> though you probably already knew how to
<ldlework> so i don't have to do that thing where you have to use your irc client to tell znc about your sasl creds, etc
<infinisil> What do you mean by not having to use the client to enter sasl creds?
<{^_^}> [nixpkgs] @eqyiel opened pull request #45171 → flow: 0.78.0 -> 0.79.0 → https://git.io/fNhyy
<infinisil> Isn't that the entire point of sasl?
<worldofpeace> ldlework: ooh spill, that sounds nice
<ldlework> infinisil: well you tell your client your sasl creds, and znc needs to know your sasl creds
<ldlework> but your module doesn't generate sasl creds because they go in /var/lib/znc/users/network-name/moddata/sasl/.registry
<ldlework> so generally, you have to use your client, connect to znc, then tell it the sasl creds via *sasl buffer
<ldlework> so this way, znc already knows the the sasl creds on first boot
<infinisil> Ohh right, irc server to znc
<infinisil> But that's like a one-time setup anyways
<ldlework> sure but i hate that shit
<ldlework> i always forget
<ldlework> then I'm googling for 45 minutes trying to remember what to do
<infinisil> Yeah
<infinisil> Currently the znc module doesn't support these stateful module settings
<infinisil> Will maybe implement this with the finishing of the pr
<ldlework> it was pretty easy for me so I think you're gonna be able to do it no problem
<ldlework> sasl is just a simple text file with the creds in a certain file location
<ldlework> pem is just an open ssl command
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45172 → nodejs-slim-10_x: 10.7.0 -> 10.9.0 → https://git.io/fNhSI
<infinisil> ldlework: i mean enabling setting such state for all znc modules with generic nixos options
jperras has quit [Quit: WeeChat 2.2]
vidbina has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45173 → octopus: 8.1 -> 8.2 → https://git.io/fNhSz
<ashkitten> i have a zfs pool created by an arch install. the arch install was running the git version of zfs, so i overrode the zfs version to be the one from nixpkgs-unstable (updated 3 days ago). however, it still complains about missing the feature "com.delphix:spacemap_v2". what's up with that?
<ashkitten> also i fucked up and shit all over my arch install because i mistakenly thought parted would resize the filesystem properly
<ashkitten> but that's not important rn
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45174 → p11-kit: 0.23.12 -> 0.23.13 → https://git.io/fNhS6
worldofpeace has quit [Remote host closed the connection]
erickomoto has joined #nixos
<ldlework> infinisil: sure, i know what you meant - the actual work is easy so i bet you'll be able to express it as nix without difficulty
<ldlework> the thing I'm struggling with right now is with the fact that sometimes it is hard to decide whether some software should be organized as a nixos module or as a home-manager module
worldofpeace has joined #nixos
<ldlework> should git be nixos? you probably want git handing no matter what you're doing. on the other hand, git has a config file, so you want it mentioned in home-manager. ideally you'd like to keep the config management and the installation of the related software together.
<ldlework> very hard to know how to organize things correctly
<ldlework> to throw a wrench into it, you might say, well if it has a config, then let home-manager control it
<emily> I just do everything in the system configuration, currently
<ldlework> but then you realize that means none of your nixops machines can use that module
<emily> it's not clear to me what the benefit of separation is for single-user machines like desktops/laptops
<ldlework> emily: how do you handle dotfiles?
<emily> ldlework: well, most dotfiles have /etc equivalents
<ldlework> not all
<emily> I agree that this feels kind of weird for some config files though.
<ldlework> and sure, you might say well put it in the system config so that your nixops machines can use it
<ldlework> but then!
<ldlework> what if you want reusability across non-nixos linux distros?
<ldlework> a lot of the same config can be used right on ubuntu or arch
<ldlework> even OSX sometimes!
<emily> yeah, I've had this dilemma too.
<ldlework> you're really really torn between the too
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45175 → pciutils: 3.6.1 -> 3.6.2 → https://git.io/fNhSp
Mateon2 has quit [Ping timeout: 260 seconds]
Mateon2 has joined #nixos
S1t1Schu has quit [Ping timeout: 244 seconds]
Mateon2 is now known as Mateon1
S1tiSchu has joined #nixos
<ldlework> emily: even more confusing
<ldlework> when something that is firmly a system package requires a user config!
<ldlework> like a window manager
* ldlework jump into a blender.
<ldlework> you have to manage the dotfile with home-manager
<ldlework> but the software with nixos
<ldlework> crazy
<emily> I don't know if a window manager is firmly a system package.
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45176 → nsd: 4.1.23 -> 4.1.24 → https://git.io/fNh9B
<{^_^}> [nixpkgs] @peterhoeg merged pull request #45101 → microcodeIntel: 20180312 -> 20180807 and iucode-tool: init at 2.3.1 → https://git.io/fNpTi
<{^_^}> [nixpkgs] @peterhoeg pushed 3 commits to master: https://git.io/fNh9u
<ldlework> well you can imagine such a package :)
<ldlework> I noticed that home-manager will let you pick a window manager
<ldlework> I can't really understand how that works
<Drakonis> it sets the window manager on xinitrc
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45177 → nnn: 1.8 -> 1.9 → https://git.io/fNh92
Wharncliffe has quit [Quit: Lost terminal]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45178 → owncloud-client: 2.4.2 -> 2.4.3 → https://git.io/fNh9d
sb0 has quit [Quit: Leaving]
Maxdaman1us has joined #nixos
sb0 has joined #nixos
<sb0> I have a python package (built with python3Packages.buildPythonPackage) with setuptools entry points. when I do "nix-shell package.nix", the entry points are not installed. when I do "nix-env -if package.nix" they are. what is going on?
Maxdamantus has quit [Ping timeout: 272 seconds]
Maxdaman1us has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45179 → nwjs: 0.32.1 -> 0.32.2 → https://git.io/fNhHe
Maxdamantus has joined #nixos
<{^_^}> [nixpkgs] @dezgeg pushed to master « installer: Disable udisks »: https://git.io/fNhHm
GlennS has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45180 → ntp: 4.2.8p11 -> 4.2.8p12 → https://git.io/fNhHY
Maxdamantus has quit [Ping timeout: 256 seconds]
Drakonis has quit [Read error: Connection reset by peer]
aarvar has joined #nixos
Maxdamantus has joined #nixos
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
simukis has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45181 → lighttpd: 1.4.49 -> 1.4.50 → https://git.io/fNhHa
Fare has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45182 → metabase: 0.29.3 -> 0.30.0 → https://git.io/fNhHM
<{^_^}> [nixpkgs] @matthewbauer opened pull request #45183 → Assorted darwin/macOS fixes → https://git.io/fNhHy
<sb0> oh, it gets into development mode I suppose
simukis has quit [Quit: simukis]
endformationage has quit [Quit: WeeChat 1.9.1]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45184 → mnemosyne: 2.6 -> 2.6.1 → https://git.io/fNhQt
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45185 → mate.mate-themes: 3.22.17 -> 3.22.18 → https://git.io/fNhQl
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45186 → mercurialFull: 4.6.2 -> 4.7 → https://git.io/fNhQ0
<{^_^}> [nixpkgs] @dezgeg pushed 2 commits to master: https://git.io/fNhQ2
Fare has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/5d18f66ddd4 (from 68 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @bjornfor pushed commit from R. RyanTM to master « lighttpd: 1.4.49 -> 1.4.50 »: https://git.io/fNhQo
<{^_^}> [nixpkgs] @bjornfor closed pull request #45181 → lighttpd: 1.4.49 -> 1.4.50 → https://git.io/fNhHa
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45187 → neo4j: 3.4.1 -> 3.4.5 → https://git.io/fNhQ6
erickomoto has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @bjornfor pushed commit from R. RyanTM to release-18.03 « lighttpd: 1.4.49 -> 1.4.50 »: https://git.io/fNhQF
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45188 → lynis: 2.6.6 -> 2.6.7 → https://git.io/fNhQj
Fare has quit [Ping timeout: 240 seconds]
mayhewluke has quit [Ping timeout: 256 seconds]
Guanin has quit [Ping timeout: 244 seconds]
<ldlework> I have
<ldlework> pkgs.lib.mapAttrs (file-name: ignore: builtins.readFile (./. + ("/" + file-name))) (builtins.readDir ./.)
<ldlework> which gives me an attrset filename->file content
<ldlework> how can I concat the file contents?
sm0rux has quit [Quit: Leaving]
Guanin has joined #nixos
Ariakenom has joined #nixos
<ldlework> got it
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45189 → musescore: 2.3.1 -> 2.3.2 → https://git.io/fNh7Q
Lisanna has quit [Remote host closed the connection]
<ldlework> gar the emacs indentation is so bad
<ldlework> filter = file: file != "default.nix" && hasSuffix ".zsh";
<ldlework> filtered-files = filter files;
<ldlework> >.<'
<ldlework> just align properly damn it
<adamantium> hah i just used your nougat to reindent my nix config
<adamantium> was better than nothing ;\
<adamantium> but i think not perfect
Fare has joined #nixos
<ldlework> yeah it is starting to drive me crazy
<ldlework> it can't seem to handle functions defined in let clauses
<ldlework> it starts indenting things deeper and deeper
<adamantium> lmk when you got it ironed out
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45190 → memcached: 1.5.9 -> 1.5.10 → https://git.io/fNh5U
<ldlework> i don't know anything about that stuff
<adamantium> i've never seen an emacs mode with such poor indentation
<{^_^}> [nixpkgs] @Mic92 merged pull request #45126 → wireguard: 0.0.20180802 -> 0.0.20180809 → https://git.io/fNhTG
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNh5m
mayhewluke has joined #nixos
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNh53
<{^_^}> [nixpkgs] @Mic92 merged pull request #45177 → nnn: 1.8 -> 1.9 → https://git.io/fNh92
<Enzime> ,
<{^_^}> All commands: -A IFD NUR arm ask bootfull callPackage channels cloudfront context dnw error escape" escape'' escape-special fancy-uninstall github hardware haskell help home-manager howoldis library logs nix-env-r nix-info nix-repl nixGL nixcon nixeval nixpkgsVersion not-os notfound outPath overlay paste pills pinning pr profiling pure-eval python qt replaceModule runtimeDeps stateVersion stuck thesis timer todeclarative tofu unfree unstable which-channe
<Enzime> ,python
Ariakenom has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @eqyiel opened pull request #45191 → modules/alertmanager: add clusterAdvertiseAddress option → https://git.io/fNh5M
witchof0x20 has quit [Remote host closed the connection]
witchof0x20 has joined #nixos
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<{^_^}> [nixpkgs] @Mic92 merged pull request #45171 → flow: 0.78.0 -> 0.79.0 → https://git.io/fNhyy
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNhd3
<ldlework> adamantium: I fixed it :D
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45192 → mcelog: 159 -> 160 → https://git.io/fNhdl
<ldlework> hmm not quite there
Ariakenom has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45193 → libblockdev: 2.18 -> 2.19 → https://git.io/fNhd2
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45194 → libdwarf: 20180527 -> 20180809 → https://git.io/fNhdr
<adamantium> hm
<{^_^}> [nixpkgs] @Ralith opened pull request #45195 → vulkan: 1.1.77.0 -> 1.1.82.0 → https://git.io/fNhdH
<rauno> when creating a new package and making a PR for it, then if everything is ok it will be included in next release ? Or is there a way to get it into 18.03 also ?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45196 → libical: 3.0.3 -> 3.0.4 → https://git.io/fNhdA
<{^_^}> [nixpkgs] @vcunat pushed 11 commits to release-18.03: https://git.io/fNhFt
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
hamishmack has joined #nixos
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/7d829c1f687 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<{^_^}> [nixpkgs] @andir closed pull request #45082 → [18.03] openssl 1.0.2p & 1.1.0i → https://git.io/fNxzg
<{^_^}> [nixpkgs] @Chiiruno opened pull request #45197 → dolphinEmuMaster: 2018-07-22 -> 2018-08-16 → https://git.io/fNhbJ
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45198 → libguestfs: 1.38.3 -> 1.38.4 → https://git.io/fNhb4
<{^_^}> [nixpkgs] @andir opened pull request #45199 → mariadb: 10.2.16 -> 10.2.17 → https://git.io/fNhbu
<Enzime> does anyone know what the difference between those two nix files are
<Enzime> and why one doesn't work whilst the other does work
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45200 → libgit2_0_27: 0.27.3 -> 0.27.4 → https://git.io/fNhba
<LnL> Enzime: (pipenv.overrideAttrs ...)
<Enzime> LnL: what's the difference?
<LnL> your bad example has 5 inputs, one of which is pipenv.overrideAttrs and the other the oldAttrs function
<LnL> you want the result of a the overrideAttrs call instead
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45201 → libmbim: 1.16.0 -> 1.16.2 → https://git.io/fNhbX
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45202 → libuv: 1.21.0 -> 1.22.0 → https://git.io/fNhbx
<LnL> Enzime: run drv = import ./broken.nix and :p drv.buildInputs in nix repl and you'll see what I mean
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45203 → libsolv: 0.6.34 -> 0.6.35 → https://git.io/fNhNI
<{^_^}> [nixpkgs] @andir merged pull request #45136 → [18.03] qemu: 2.11.1 -> 2.11.2 → https://git.io/fNhO1
<{^_^}> [nixpkgs] @andir pushed 2 commits to release-18.03: https://git.io/fNhNt
<ashkitten> heyyyy uhhhhh how do i get linuxPackages.zfsUnstable from nixos-unstable to work on nixos-18.03?
trcc has joined #nixos
<ashkitten> it says inconsistent kernel versions
<ekleog> ashkitten: I guess zfs requires the kernel to be compatible, so you'd need to also use kernel from nixos-unstable :)
<{^_^}> [nixpkgs] @vcunat pushed to release-18.03 « knot-dns: 2.6.8 -> 2.6.9 (maintenance) »: https://git.io/fNhNz
<ekleog> ashkitten: (see option boot.kernelPackages)
<tilpner> ashkitten - That's what I was going for, checking if you were setting all of kernelPackages, or just zfsUnstable
<ashkitten> can't i just build zfs with the kernel i'm already using
<tilpner> But still link that paste :)
<ashkitten> and like, not break everything
<ekleog> ashkitten: most likely not: it'd be equivalent to using zfsUnstable from nixos-18.03
<ashkitten> sighhhh
<tilpner> You could try, but no idea if it'll work
<ekleog> because zfs userspace helpers are more or less wrappers around the kernel module, afaik
<tilpner> > zfsUnstable.override { inherit (linuxPackages) kernel; }
<{^_^}> attribute 'override' missing, at (string):169:1
<tilpner> Oh, right
<ekleog> can still try, but make a backup first, personally I'd rather avoid tinkering too much with my filesystem modules :°
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45204 → librealsense: 2.14.1 -> 2.15.0 → https://git.io/fNhN1
<ashkitten> wait why is it missing override tilpner
<tilpner> ashkitten - Do try boot.kernelPackages = nixpkgs-unstable.kernelPackages; but remember that nixpkgs-unstable may do whatever it want wrt. breaking your system
<tilpner> That should give you a matching kernel+zfs combinations
<ekleog> rather use nixos-unstable :)
<tilpner> It's not new enough for their usecase
<ekleog> tilpner: oh? the “heyyyy uhhhhh […]” mentioned nixos-unstable, so I assumed it was that :)
<ashkitten> nixos-unstable might be enough but i'm not sure. but if i can get the system to build with nixos-unstable zfs it'll be simple to switch to nixpkgs-unstable if needed
<tilpner> Even if nixos-unstable only has 2018-05-22?
<ekleog> one possibility would be to rebuild both zfs-tools and the zfs module against nixos-18.03
<tilpner> That's what I tried, but it errors
* tilpner coerces null to a string somewhere
<ekleog> but tbh, at this point I'd personally just switch the whole system to nixos-unstable and switch to nixos-18.09 at branch-off, esp. coming from arch, nixos-unstable is still more stable than arch in my experience :)
<ashkitten> hmm yeah fair
<ekleog> (if the version you want is actually in nixos-unstable, though, it's lagging ~6 days behind nixpkgs-unstable currently, but I can make no statement about the stability of nixpkgs-unstable for not having used it)
<ekleog> oh no it's 3 days, looks like I didn't notice last bump :)
<p_l> ,nixGL
<{^_^}> nixGL is a bunch of wrappers for getting OpenGL programs to work for your graphics card, https://github.com/guibou/nixGL
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/cd0cd946f37 (from 59 minutes ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<ashkitten> yeah i'll do unstable for realsies i guess
<ashkitten> lol
<tilpner> Wait
<ashkitten> meow?
<tilpner> nixos-18.03 and nios-unstable have the same zfsUnstable version
<ashkitten> oh lol
<ashkitten> welp
<tilpner> But do try what I said
<ashkitten> which is?
<tilpner> (As long as you think that mounting your drive with that will not eat your data, I wouldn't know)
<tilpner> "tilpner | ashkitten - Do try boot.kernelPackages = nixpkgs-unstable.kernelPackages; but remember that nixpkgs-unstable may do whatever it want wrt. breaking your system"
<ashkitten> ah
vidbina has quit [Ping timeout: 244 seconds]
<ashkitten> uhh
<ashkitten> so when i do that
<ashkitten> (first of all, i have to use nixpkgs-unstable.linuxPackages)
<ashkitten> it gives me the unfree error
<ashkitten> due to my nvidia driver
<clever> ,unfree
<{^_^}> You cannot install your unfree software? See https://nixos.wiki/wiki/FAQ/unfree
<tilpner> Yes, that seems expected-ish
<ashkitten> even though i have the allowUnfree option enabled
<tilpner> I asked twice for a paste of your config. If I had one, I could be sure that this happens because you are doing import <nixpkgs-unstable> {}, but now I'm just guessing
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45205 → krusader: 2.7.0 -> 2.7.1 → https://git.io/fNhx2
<ashkitten> yeah that is true
<tilpner> Try doing import <nixpkgs-unstable> { config = { allowUnfree = true; }; }
<clever> yeah, that will do it
<ashkitten> oh
<clever> without that, it will obey /root/.config/nixpkgs/config.nix
<tilpner> clever - ashkitten is having problems using zfs with some spacemap_v2 feature. Do you know if they can use that without going to nixpkgs-unstable for kernelPackages?
<clever> ive not looked into that feature
<tilpner> Ah, well, was worth asking :)
<ashkitten> okay, now i'm getting an error that it can't find splUnstable in <nixos>
<clever> oh, and spl was merged into zfs
<clever> but your nixos modules are not aware of that change
<ashkitten> can i trick it into not requiring it?
<tilpner> Seems like you do have to switch your base channel to at least unstable after all
<clever> so it would be a lot simpler to just use nixos-unstable for everything
<ashkitten> okay
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45206 → libqmi: 1.20.0 -> 1.20.2 → https://git.io/fNhxH
<{^_^}> [nixpkgs] @andir opened pull request #45207 → gnome3.gdm: 2.28.2 -> 2.28.3 → https://git.io/fNhxQ
<ashkitten> i'm okay with nixos-unstable, not as much with nixpkgs-unstable
<tilpner> Unless the sql merge is really recent, that should work
<tilpner> *spl
<{^_^}> [nixpkgs] @andir opened pull request #45208 → [18.03] gnome3.gdm: fix CVE-2018-14424 → https://git.io/fNhxd
kenshinCH has joined #nixos
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/0a17d08a97a (from 2 days ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<kenshinCH> Hi guys. Writing from NixOS on ZFS with i3wm on an iMac. I feel alternative :P I'm trying to install the jqr R package, and I get "sh: ./configure: /bin/bash: bad interpreter: No such file or directory". I think I would knnow how to fix this in a normal nix expression, but not sure what to to for R packages. Can anyone help? :)
<clever> kenshinCH: sounds like you need to run patchshebangs over things
sir_guy_carleton has joined #nixos
<clever> patchShebangs .
<adamantium> clever, anyway i can cram networkmanager into your rescue initramfs ^_^ i'm just really lazy and i really dislike / always forget how to use wpa_sup ...
<adamantium> I mean I'm wondering, if you know how?
<clever> adamantium: there is a chunk of nixos config in rescue_boot, just add normal nixos options to it
<clever> it already has a flag set there to support zfs
<adamantium> i tried, i put what i believed would do the trick below the zfs support section, it complained about a confliect with netboot
<adamantium> conflict*
<clever> what was the exact error?
<adamantium> uh, let me get it..
<kenshinCH> clever: yep, but I think that's already included in the usual R package function that is used also for jqr
johanot has joined #nixos
<adamantium> clever: The option `networking.wireless.enable' has conflicting definitions, in `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/profiles/installation-device.nix' and `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/services/networking/networkmanager.nix'.
<adamantium> (sorry, i did not realize it was that long)
<clever> adamantium: networking.wireless.enable = lib.mkForce false; maybe
<adamantium> clever: undefined variable 'lib' at /etc/nixos/rescue_boot.nix:13:36
graphene has quit [Remote host closed the connection]
<clever> adamantium: and add lib to the tart of the module
hyper_ch2 has joined #nixos
<clever> adamantium: line 9-ish, module = { lib, ... }:
<clever> the module attribute contains the same value you would normally put into configuration.nix
graphene has joined #nixos
<ashkitten> how can i make splUnstable into a dummy package so it doesn't conflict with zfsUnstable?
<adamantium> huh, well it is building, can you look at my code clever , just tell me i did what you instructed proper, before i reboot to test it
<clever> yeah, that all looks good
<adamantium> what a weird language
<adamantium> thanks ...
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45209 → jackett: 0.9.1 -> 0.9.41 → https://git.io/fNhpa
goibhniu has joined #nixos
<sir_guy_carleton> i've installed a package through with the unstable channel, using nix-env -iA, but i cannot seem to upgrade or uninstall it
<clever> sir_guy_carleton: does the name have a - in it?
* adamantium is curious how large this initramfs will be after this!!
<tilpner> ashkitten - Are you still having problems with that after switching to nixos-unstable?
<ashkitten> yeah
<ashkitten> really frustrating
<clever> ashkitten: what kind of problems?
<ashkitten> spl conflicting
<sir_guy_carleton> clever: the packages? yes, like a lot of words
<tilpner> ashkitten - Can you do nixos-rebuild -I nixpkgs=channel:nixos-unstable please?
<clever> ashkitten: can you gist the whole configuration.nix, nix-channel --list, and the error?
<tilpner> ashkitten - Or, NIX_PATH=nixpkgs=channel:nixos-unstable for nixos-install and other tools
<ashkitten> it's already set as the default channel
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45210 → infiniband-diags: 2.0.0 -> 2.1.0 → https://git.io/fNhpM
<{^_^}> [nixpkgs] @aneeshusa opened pull request #45211 → cowsay: 3.0.3+dfsg1-16 -> 3.0.3+dfsg2 → https://git.io/fNhpS
<tilpner> ashkitten - For root? And you updated it?
<ashkitten> yes
<clever> ashkitten: can you gist the whole configuration.nix, nix-channel --list, and the error?
<tilpner> If you can't gist, | nc termbin.com 9999 is okay too for individual files
<tilpner> (But you can install a gist client from nixpkgs)
<clever> there is a gist command in nixpkgs
<ashkitten> never mind it's now doing the inconsistent kernel versions thing but opposite
<ashkitten> i fucking hate computers
foldingcookie has quit [Ping timeout: 240 seconds]
<ashkitten> how bad would it be to switch to nixpkgs-unstable
<ashkitten> probably really bad, right?
<clever> yeah, it has some risks
<clever> i'm still waiting for a copy of your configuration.nix
<ashkitten> i hate myself and i'm conna go to bed before i eat my computer
<{^_^}> [nixpkgs] @sveitser opened pull request #45212 → overmind: add which runtime dependency → https://git.io/fNhhq
<adamantium> dont give up so easy ashkitten you got this
<adamantium> :)
<ashkitten> i'm going. to bed.
<adamantium> peace
<{^_^}> [nixpkgs] @adisbladis merged pull request #45212 → overmind: add which runtime dependency → https://git.io/fNhhq
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/fNhhl
rprije has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @candeira opened pull request #45213 → Libtiff: fix failing fetch of Debian patch → https://git.io/fNhhz
rprije has joined #nixos
<adamantium> heh clever , it's still compiling things, maybe this was not a great idea.
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45214 → icdiff: 1.9.1 -> 1.9.3 → https://git.io/fNhhw
<{^_^}> [nixpkgs] @srhb opened pull request #45215 → nixos/doc: New installer note on unattended installs → https://git.io/fNhh6
<{^_^}> [nixpkgs] @srhb merged pull request #45211 → cowsay: 3.0.3+dfsg1-16 -> 3.0.3+dfsg2 → https://git.io/fNhpS
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fNhhN
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
__monty__ has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45216 → jbuilder: 1.0.0 -> 1.0.1 → https://git.io/fNhjV
<teto> would be cool if one nixops maintainer could make it overridable. I had started https://github.com/NixOS/nixpkgs/pull/41472 but the doc part is troublesome
<{^_^}> #41472 (by teto, 10 weeks ago, open): [wip] nixops: make overrides build instead of failing with 'nixops-_version_-py2-none-any.whl is not a valid wheel filename'
thc202 has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45217 → igv: 2.4.13 -> 2.4.14 → https://git.io/fNjev
<ldlework> check it out, this is auto formatted with some tweaks I made to nix-mode: https://gist.github.com/dustinlacewell/ee0325ed023d3bc0e02dbf336a91a86d
nschoe has joined #nixos
<sir_guy_carleton> so an application that i'm trying to use uses ncurses needs wide-character support, but it seems to be off for some reason
<srhb> kenshinCH: On nixos-unstable it looks like adding postPatch = "patchShebangs ."; and jq to buildInputs does the trick
<nschoe> Hi
<srhb> nschoe: Hullo
<sir_guy_carleton> yet the default.nix for ncurses seems to have it enabled by default
<sir_guy_carleton> nschoe: ahoy-hoy
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/c03d0b52ac6 (from 34 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
fendor has joined #nixos
<nschoe> No tricky / cumbersome questions today :) (at least not now). Just here to read the chan and try to learn =)
<srhb> :)
<srhb> sir_guy_carleton: So either the detection of wide-character support is broken for your application build or it's using a different ncurses?
<sir_guy_carleton> srhb: it's seems to be broken
<sir_guy_carleton> it show ~T~@ all over the place
<srhb> That sounds fun...
kenshinCH has quit [Ping timeout: 252 seconds]
<sphalerite> sir_guy_carleton: are you sure this is because wide-character support isn't working right and not for another reason?
<sphalerite> Like a bad $TERM or a bad application?
mayhewluke has quit [Ping timeout: 260 seconds]
<sphalerite> you could try pasting emoji in some other thing that uses ncurses, if that works fine and the application uses the same ncurses (compare using nix-store -qR) then it's not ncurses that's to blame
nschoe has quit [Ping timeout: 272 seconds]
<mpickering> If a project is looking for foo.hpp but the file exists in bar/foo.hpp, is there a flag I can pass to cmake to get it to look in bar?
arjen-jonathan has joined #nixos
<sphalerite> mpickering: -DCMAKE_CXX_FLAGS="-Ibar"
<sphalerite> I think
philippD has joined #nixos
<{^_^}> [nixpkgs] @7c6f434c merged pull request #45135 → sleuthkit: 4.6.1 -> 4.6.2 → https://git.io/fNhO0
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/fNjvo
nschoe has joined #nixos
<{^_^}> [nixpkgs] @Profpatsch closed pull request #45155 → s6-linux-utils: 2.4.0.2 -> 2.5.0.0 → https://git.io/fNh4d
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45218 → iproute: 4.17.0 -> 4.18.0 → https://git.io/fNjvS
<{^_^}> [nixpkgs] @Profpatsch merged pull request #44079 → bazel: patch runfiles.bash to include defaultShellPath in PATH → https://git.io/fNRtk
<{^_^}> [nixpkgs] @Profpatsch pushed commit from @kalbasit to master « bazel: patch //tools/bash/runfiles/runfiles.bash to include defaultShellPath in PATH »: https://git.io/fNjft
vidbina has joined #nixos
orivej has joined #nixos
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/513c52147f1 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
mayhewluke has joined #nixos
bongsun has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45219 → harfbuzz-icu: 1.8.2 -> 1.8.8 → https://git.io/fNjJ3
<{^_^}> [nixpkgs] @andir merged pull request #45207 → gnome3.gdm: 2.28.2 -> 2.28.3 → https://git.io/fNhxQ
<{^_^}> [nixpkgs] @andir pushed 2 commits to master: https://git.io/fNjJc
<{^_^}> [nixpkgs] @andir merged pull request #45208 → [18.03] gnome3.gdm: fix CVE-2018-14424 → https://git.io/fNhxd
<{^_^}> [nixpkgs] @andir pushed 2 commits to release-18.03: https://git.io/fNjJC
andreabedini has joined #nixos
<sir_guy_carleton> sphalerite: it could be the application. although it downloaded a ncurses when i installed it, so i doubt any other program depends on that exact version of ncurses
andreabedini has quit [Client Quit]
alex`` has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45220 → gtkwave: 3.3.92 -> 3.3.93 → https://git.io/fNjUv
aarvar has quit [Ping timeout: 244 seconds]
<ongy> is there a more indepth description of containers than the nixos manual section 31?
<srhb> ongy: Not that I've found.
<srhb> ongy: But any article you found describing the same method may give some insight. Eg the systemd container stuff :)
<ongy> well, I'd like to know which methods are used^^
pluplog has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45221 → grails: 3.3.6 -> 3.3.8 → https://git.io/fNjUG
<{^_^}> [nixpkgs] @vcunat pushed 9 commits to staging-18.03: https://git.io/fNjUC
<sphalerite> sir_guy_carleton: you could try checking if the downloaded ncurses contains a lib/ncursesw.so
<sphalerite> lib/libncursesw.so
<sphalerite> or somehting
<sphalerite> also, telling us what the application is and which terminal you're using might be helpful too :)
<srhb> globin: It seems we're using an unreleased version of altermime since Aug 1 2017 (a434da450bc) -- do you remember the reasoning for this? The upstream source is gone.
Fare has quit [Ping timeout: 240 seconds]
vidbina has quit [Ping timeout: 244 seconds]
Izorkin has quit [Ping timeout: 260 seconds]
Izorkin has joined #nixos
inquisitiv3 has joined #nixos
<inquisitiv3> Is there an easy way to keep derivates installed for an nix shell environment even if I run `nix-collect-garbage`? I'm thinking of a situation there the internet connection is bad and I run the command without thinking of all the consequences.
<clever> inquisitiv3: if the nix-shell is still open, it wont delete those things
<inquisitiv3> clever: But for the situations the nix-shell isn't open?
<clever> garbage collect less often, and avoid GC'ing when your about to loose internet
<sir_guy_carleton> sphalerite: looked at the directory and it's there. so i'm guessing it is. the application is kakoune (on the unstable channel) and i'm using termite as my terminal
<inquisitiv3> clever: There's no other way?
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<clever> inquisitiv3: figure out every path of important, and make indirect roots with `nix-build '<nixpkgs>' -A hello -o hello-root`
MichaelRaskin has quit [Quit: MichaelRaskin]
Fare has joined #nixos
philippD has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45223 → groovy: 2.5.1 -> 2.5.2 → https://git.io/fNjTN
<inquisitiv3> clever: Okey, thanks for the information. Not the solution I hoped would exist, but I'll simply have to run GC less often.
<clever> inquisitiv3: a secondary option is `nix-collect-garbage --max-freed 1g`
<clever> that will only delete 1gig of garbage, rather then all garbage
<sphalerite> sir_guy_carleton: yeah people have lots of problems with termite. Try xterm for comparison
<clever> but which 1gig it selects is random, so the chance of loosing something important depends on how much garbage you have
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45224 → harfbuzz: 1.8.2 -> 1.8.8 → https://git.io/fNjkJ
<inquisitiv3> clever: Shot from the hip and hope for the best? :P
<sir_guy_carleton> sphalerite: tried it with xterm (and konsole, btw). same problem.
<inquisitiv3> One of the problems I'd yesterday got me wondering. Why is an symbolic linked named "result" created that links to the /nix/store?
<clever> inquisitiv3: thats what nix-build does by default
<inquisitiv3> I think it was created when I ran `appimage-run` from unstable in a nix-shell environment.
<sphalerite> sir_guy_carleton: you wouldn't happen to be setting TERM across all of them?
<tilpner> inquisitiv3 - readlink it, check where it points to
<inquisitiv3> tilpner: In this case it linked to glibc.
<tilpner> Then I don't see how appimage-run could have caused that
<clever> inquisitiv3: it could just be that you did a nix-build command and forgot about it
<{^_^}> [nixpkgs] @Ekleog opened pull request #45225 → webassemblyjs tool suite: init at 1.7.5 → https://git.io/fNjkK
<ongy> srhb: ahh, the container is actually created with the systemd-nspawn stuff. Now if only I knew whether I like that
<srhb> ongy: Flip a coin!
TweyIV has joined #nixos
<inquisitiv3> clever: Hmm, that's very possible. I got some instructions running patchelf before finding out about appimage-run. Thanks for the reminder and explaination!
<sir_guy_carleton> sphalerite: TERM is set differently accross the different terminals
<sphalerite> ok then I don't know :(
<sphalerite> sir_guy_carleton: actually I have the same with kakoune in tmux
<sir_guy_carleton> the same problem?
<sphalerite> yeah if I run kakoune from unstable
<sphalerite> kakoune from 18.03 is fine though
<inquisitiv3> Ooh, some more Kakoune users here! :D
<sir_guy_carleton> i found that version from the stable branch has a weird bug that crashes the program when a the command prompt and enter '%'
<{^_^}> [nixpkgs] @johanot opened pull request #45226 → cfssl: Add patch for stripping authkey whitespaces → https://git.io/fNjIG
Fare has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45227 → gegl_0_4: 0.4.4 -> 0.4.6 → https://git.io/fNjIE
<rauno> how can i force nixos to rebuild a package ?
<clever> rauno: why do you want to rebuild a package?
<sphalerite> rauno: nix-store --repair-path. But it's very unlikely to be what you want.
<rauno> i enabled virtualbox and it failed building cause of disk space, now when reswitching profile it won't start virtualbox :|
<sphalerite> so if you do nixos-rebuild switch it doesn't make virtualbox available?
<rauno> it's interface service fails
<rauno> i suspect it's related
<rauno> but the virtualbox itself seems to be available
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45228 → gnubg: 1.06.001 -> 1.06.002 → https://git.io/fNjID
<sphalerite> rebooting is probably your best bet
<sphalerite> rebuilding stuff won't help
<rauno> rebooting isn't an option currently :)
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45229 → gitAndTools.git-extras: 4.5.0 -> 4.6.0 → https://git.io/fNjI5
<sphalerite> I think you may *have* to reboot to get it to work depending on kernel version stuff
<sphalerite> because virtualbox relies on some kernel modules
<inquisitiv3> Why doesn't most applications include an desktop entry? The only applications I can start from Plasma's dashboard is Firefox and the included applications with Plasma (e.g. Konsole and Dolphin).
<rauno> oh right..
<srhb> inquisitiv3: _most_ applications aren't even graphical.
<srhb> inquisitiv3: But I suspect you meant something else :)
<sphalerite> inquisitiv3: which applications do you have installed and expect to show up there?
<rauno> ok, got it rebuilding, lets see if it now runs without reboot
<rauno> removed it from configuration.nix, did garbage collect and re-added it to configuration :)
Anton-Latukha has joined #nixos
<srhb> rauno: If that does work, I'd argue it's a bug. :)
<rauno> seems like it's still broken
<rauno> srhb, :)
<rauno> at least i can now besure it's built right :)
<sphalerite> what error are you getting exactly?
<rauno> ok, it's still broken, damn vbox
<rauno> sys-subsystem-net-devices-vboxnet0.device: Job sys-subsystem-net-devices-vboxnet0.device/start failed with result 'timeout'
<rauno> never liked the vbox, but this one code piece i'm checking out has only examples with vagrant/vbox
<{^_^}> [nixpkgs] @vcunat pushed 2 commits to staging-18.03: https://git.io/fNjL3
<rauno> seems like the problem is found: https://github.com/NixOS/nixpkgs/issues/39609
<{^_^}> #39609 (by chekoopa, 15 weeks ago, open): VirtualBox network service is broken?
<rauno> crap
<inquisitiv3> srhb, sphalerite: They show up now....
<inquisitiv3> Forget that I asked the question :S
<{^_^}> [nixpkgs] @peti merged pull request #45134 → stellarium: 0.18.1 -> 0.18.2 → https://git.io/fNhOv
<{^_^}> [nixpkgs] @peti pushed 2 commits to master: https://git.io/fNjLM
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45230 → folly: 2018.07.09.00 -> 2018.08.13.00 → https://git.io/fNjL9
<inquisitiv3> srhb, sphalerite: But one applications that doesn't show up is Sublime Text
<srhb> inquisitiv3: Hmm, looks like it should to me. It has a share/applications/sublime2.desktop
Lisanna has joined #nixos
<sphalerite> same for sublime3
<inquisitiv3> srhb: I got version 3.
<srhb> How'd you install it?
<sphalerite> unless nixos/nix-env only installs the bin output?
<sphalerite> er disregard that
kenshinCH has joined #nixos
<Lisanna> aww... changing requiredSystemFeatures changes the derivation's hash ):
<inquisitiv3> srhb: I've added the application to the list in configuration.nix.
<srhb> inquisitiv3: Sounds good.
<sphalerite> Lisanna: aww indeed :(
<inquisitiv3> srhb: But it doesn't show up :?
<srhb> inquisitiv3: Yeah, not sure why.
<srhb> inquisitiv3: Installing it like that should cause the entry to exist in /run/current-system/sh/share/applications
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45231 → ghostwriter: 1.7.2 -> 1.7.3 → https://git.io/fNjt4
<srhb> s/sh\/sw\//
<srhb> Do IRC meta regexes support different separators? >>
* srhb inspects the features of everyone in the channel
<inquisitiv3> srhb: The file is there. I'll test to logout and log in to see if the session has to be restarted.
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45232 → frostwire-bin: 6.7.0 -> 6.7.1 → https://git.io/fNjt1
ericsagnes has quit [Ping timeout: 265 seconds]
<inquisitiv3> That didn't help. I test to reboot to see if that fixes it.
<inquisitiv3> srhb: Nope, rebooting he computer didn't help neither. Got any tips or suggestions?
<inquisitiv3> either*
<srhb> Nope, sorry.
<sphalerite> my only tip/suggestion is a bit facetious. Use emacs instead :D
<inquisitiv3> sphalerite: No thanks :P I want some preconfigured, and Sublime works perfectly for that. Otherwise I would use Kakoune.
<inquisitiv3> Now did Sublime appear in the dashboard.
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45233 → ghp-import: 0.4.1 -> 0.5.5 → https://git.io/fNjqW
<inquisitiv3> After I deleted an *.desktop file that didn't work :/
<srhb> I guess your window manager or desktop environment is being weird :)
<inquisitiv3> I guess that it maybe didn't reindex everything because it got stuck :/
<srhb> Sounds plausible.
simukis has joined #nixos
<srhb> Is the broken file in nixpkgs? Anything we should fix?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45234 → freetds: 1.00.91 -> 1.00.94 → https://git.io/fNjqg
<inquisitiv3> srhb: Nope, third party AppImage. Nothing that exists inside the /nix/store.
<srhb> Ah, okay :)
<joko> Hey, is there any workaround in order to maintain multiple entries in the boot loader with different kernelParams per nixos-rebuild?
TweyIV has quit [Ping timeout: 240 seconds]
TweyIV has joined #nixos
inquisitiv3 has quit [Quit: Leaving]
trcc has quit [Remote host closed the connection]
trcc has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45235 → gdb: 8.1 -> 8.1.1 → https://git.io/fNjmu
<{^_^}> [nixpkgs] @Mic92 merged pull request #45229 → gitAndTools.git-extras: 4.5.0 -> 4.6.0 → https://git.io/fNjI5
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNjmP
trcc has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @Mic92 closed pull request #45235 → gdb: 8.1 -> 8.1.1 → https://git.io/fNjmu
graphene has quit [Read error: Connection reset by peer]
lawlesseel has joined #nixos
graphene has joined #nixos
trcc has joined #nixos
orivej has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45236 → fldigi: 4.0.17 -> 4.0.18 → https://git.io/fNjmb
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45237 → expat: 2.2.5 -> 2.2.6 → https://git.io/fNjYY
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45238 → fanficfare: 2.27.0 -> 2.28.0 → https://git.io/fNjYW
<{^_^}> [nixpkgs] @bendlas pushed 2 commits to master: https://git.io/fNjYD
<{^_^}> [nixpkgs] @Mic92 merged pull request #45232 → frostwire-bin: 6.7.0 -> 6.7.1 → https://git.io/fNjt1
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNjY9
kenshinCH has quit [Quit: Page closed]
<{^_^}> [nixpkgs] @Mic92 merged pull request #45231 → ghostwriter: 1.7.2 -> 1.7.3 → https://git.io/fNjt4
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNjYb
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45239 → fwup: 1.2.3 -> 1.2.5 → https://git.io/fNjYx
<globin> srhb: we are not the only ones (https://repology.org/metapackage/altermime/versions), I don't recall anything special,I think that it was just a regular version bump..
<{^_^}> [nixpkgs] @Mic92 merged pull request #45217 → igv: 2.4.13 -> 2.4.14 → https://git.io/fNjev
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNjYj
<{^_^}> [nixpkgs] @Mic92 merged pull request #45230 → folly: 2018.07.09.00 -> 2018.08.13.00 → https://git.io/fNjL9
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNjOe
<srhb> globin: Funky! :)
NightTrain has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #45220 → gtkwave: 3.3.92 -> 3.3.93 → https://git.io/fNjUv
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNjOT
<{^_^}> [nixpkgs] @Mic92 merged pull request #45214 → icdiff: 1.9.1 -> 1.9.3 → https://git.io/fNhhw
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNjOm
<{^_^}> [nixpkgs] @Mic92 merged pull request #45204 → librealsense: 2.14.1 -> 2.15.0 → https://git.io/fNhN1
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNjOG
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45240 → clipster: 2.0.0 -> 2.0.1 → https://git.io/fNjOW
ericsagnes has joined #nixos
<{^_^}> [nix] @edolstra pushed to master « Fix parser/lexer generation with parallel make »: https://git.io/fNjOg
graphene has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45241 → containerd: 1.1.1 -> 1.1.2 → https://git.io/fNjOi
graphene has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45242 → dateutils: 0.4.3 -> 0.4.4 → https://git.io/fNjOy
<{^_^}> [nixpkgs] @Mic92 merged pull request #45203 → libsolv: 0.6.34 -> 0.6.35 → https://git.io/fNhNI
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNjOH
trcc has quit [Remote host closed the connection]
trcc has joined #nixos
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
trcc has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45243 → diffstat: 1.61 -> 1.62 → https://git.io/fNj3C
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45244 → closurecompiler: 20180716 -> 20180805 → https://git.io/fNj3z
<jtojnar> ,tell worldofpeace re: elementary geoclue agent https://github.com/elementary/default-settings/issues/17
<{^_^}> elementary/default-settings#17 (by davidmhewitt, 33 weeks ago, closed): Whitelist pantheon-agent-geoclue2
<{^_^}> jtojnar: I'll pass that on to worldofpeace
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/8395f9aa85e (from 12 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
ma27 has quit [Quit: WeeChat 2.1]
<{^_^}> [nixpkgs] @srhb merged pull request #45226 → cfssl: Add patch for stripping authkey whitespaces → https://git.io/fNjIG
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fNj35
graphene has quit [Remote host closed the connection]
philippD has joined #nixos
graphene has joined #nixos
ma27 has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45245 → dar: 2.5.15 -> 2.5.16 → https://git.io/fNjsf
<{^_^}> [nixpkgs] @Mic92 merged pull request #45243 → diffstat: 1.61 -> 1.62 → https://git.io/fNj3C
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNjsI
<{^_^}> [nixpkgs] @Mic92 merged pull request #45242 → dateutils: 0.4.3 -> 0.4.4 → https://git.io/fNjOy
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNjs8
johanot has quit [Remote host closed the connection]
trcc has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45246 → couchdb2: 2.1.2 -> 2.2.0 → https://git.io/fNjsH
<{^_^}> [nixpkgs] @Mic92 merged pull request #45240 → clipster: 2.0.0 -> 2.0.1 → https://git.io/fNjOW
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNjsQ
<{^_^}> [nixpkgs] @volth opened pull request #45247 → perlPackages.LWP: fix cross-compilation → https://git.io/fNjsF
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45248 → crispyDoom: 5.2 -> 5.3 → https://git.io/fNjGZ
kolb has joined #nixos
ldlework has quit [Read error: Connection reset by peer]
ldlework has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #45233 → ghp-import: 0.4.1 -> 0.5.5 → https://git.io/fNjqW
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNjG4
init_6 has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed 365 commits to staging-next: https://git.io/fNjGr
rauno has quit [Ping timeout: 265 seconds]
<kolb> I am somewhat confused by nix-shell, so in a directory with a default.nix file I run nix-shell and from looking at the manual expected to be able to run commands like preBuild and buildPhase. How is that supposed to work though? These are just environment variables?
<sphalerite> kolb: using the runHook function is the correct way I think
<sphalerite> so `runHook preBuild`
<{^_^}> [nixpkgs] @Mic92 merged pull request #45223 → groovy: 2.5.1 -> 2.5.2 → https://git.io/fNjTN
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNjG5
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNjGx
<{^_^}> [nixpkgs] @Mic92 merged pull request #45221 → grails: 3.3.6 -> 3.3.8 → https://git.io/fNjUG
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45249 → debootstrap: 1.0.106 -> 1.0.107 → https://git.io/fNjGh
<TweyIV> kolb: They're generally bash functions
<kolb> TweyIV: apparently not?
<kolb> Oh!
<kolb> I see, preBuild is just not a step I can call separately as a bash function
rprije has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @baracoder opened pull request #45250 → smartgithg: 17.1.4 -> 18.1.4 → https://git.io/fNjZR
<TweyIV> kolb: Yeah, there are phases and hooks. buildPhase is a phase, preBuild is a hook
NightTrain has quit [Ping timeout: 260 seconds]
graphene has quit [Remote host closed the connection]
<TweyIV> kolb: So runHook preBuildHook runs hooks in the array $preBuildHooks
graphene has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45251 → eccodes: 2.8.0 -> 2.8.2 → https://git.io/fNjZM
Izorkin has quit [Ping timeout: 272 seconds]
foldingcookie has joined #nixos
Izorkin has joined #nixos
abcrawf has quit [Remote host closed the connection]
Izorkin has quit [Client Quit]
abcrawf has joined #nixos
Izorkin has joined #nixos
mayhewluke has quit [Ping timeout: 272 seconds]
Izorkin has quit [Client Quit]
amfl has quit [Ping timeout: 256 seconds]
Lears has quit [Ping timeout: 272 seconds]
amfl has joined #nixos
Izorkin has joined #nixos
graphene has quit [Remote host closed the connection]
Izorkin has quit [Client Quit]
Izorkin has joined #nixos
graphene has joined #nixos
Lears has joined #nixos
johanot has joined #nixos
<{^_^}> [nixpkgs] @jtojnar merged pull request #45052 → indicator-application-gtk3: 12.10.0 -> 12.10.1 → https://git.io/fNAl1
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/fNjc4
Izorkin has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
Izorkin has joined #nixos
mayhewluke has joined #nixos
<clever> TweyIV: also of note, there can be BOTH a buildPhase function, and a $buildPhase variable
<clever> TweyIV: the stdenv will prefer the variable if it exists
<clever> but typing just `buildPhase` will always use the function version
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45252 → di: 4.46 -> 4.47 → https://git.io/fNjC3
<ocharles> Anyone know how to get builtins.fetchGit to work with a `git@github.com` url?
alexteves has joined #nixos
<ocharles> I have a Git revision but no SHA, so I can't use a normal `nixpkgs.fetchgit`
<{^_^}> [nixpkgs] @vcunat pushed 10 commits to master: https://git.io/fNjCn
<ocharles> but for some reason `builtins.fetchGit` with a git@github.com URL ends up resolving to a relative file path
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45253 → discount: 2.2.3a -> 2.2.4 → https://git.io/fNjCW
<sphalerite> ocharles: ssh://git@github.com/
<ocharles> ah nice
<gchristensen> how do I interpret this error? [5191054.775165] traps: lt-QuickTest[19712] trap invalid opcode ip:7ffff748d796 sp:7fffffffd310 error:0 in libgf2x.so.1.0.2[7ffff748b000+26000]
<Dezgeg> unit test program killed by SIGILL
<clever> gchristensen: something at instruction pointer 7ffff748d796 ran an invalid opcode
<clever> gchristensen: if possible, run it under gdb and then disassemble that area
<gchristensen> neat
<{^_^}> [nixpkgs] @vcunat merged pull request #44235 → add various lua modules → https://git.io/fNaEF
Izorkin has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
nschoe has quit [Remote host closed the connection]
<gchristensen> I wonder if ntl is building with flags enabled which shouldn't be
Izorkin has joined #nixos
<ocharles> Is there anywhere to debug where warning: dumping very large path (> 256 MiB); this may run out of memory is coming from?
<ocharles> obviously something is doing `import ./blah`, but I dunno where the source of that import is
<clever> ocharles: try reproducing the warning via nix-instantiate -vvv
<gchristensen> I think adding some number of v's (-vvvv) will tell you what it is doing
<ocharles> thanks, I didn't know -vvv existed
<Dezgeg> if you can figure out what was the instruction causing SIGILL it could help
<clever> gchristensen: also, is this failing on the host or in qemu?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45254 → checkstyle: 8.11 -> 8.12 → https://git.io/fNjWI
<gchristensen> this is failing on the host
<gchristensen> (no qemu involved, a straight nix-build of ntl)
<clever> gchristensen: how old is the cpu?
<Dezgeg> if coredumpctl is on it might be the easiest way to see
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45255 → acpica-tools: 20180629 -> 20180810 → https://git.io/fNjW3
<clever> Dezgeg: ah yeah, that helps a lot for these things
<Dezgeg> what's the store path of that libgf2x.so?
<{^_^}> [nixpkgs] @vcunat pushed to release-18.03 « tor: re-enable all test (except a broken one) »: https://git.io/fNjWw
<gchristensen> looking, Dezgeg
<gchristensen> Dezgeg: /nix/store/gg8gc10v6vyzwkknl7w27jdbvg48zial-gf2x-1.2/lib/libgf2x.so.1.0.2
<{^_^}> [nixpkgs] @volth opened pull request #45256 → perl: remove duplicated code → https://git.io/fNjWi
<Dezgeg> appears to be a pclmullqlqdq %xmm1,%xmm0
<Dezgeg> I wonder what that does
<{^_^}> [nixpkgs] @Mic92 pushed commit from @kalbasit to release-18.03 « flash: 30.0.0.134 -> 30.0.0.154 »: https://git.io/fNjW5
<clever> gchristensen: what sse flags does 'grep sse --color /proc/cpuinfo' show?
<Dezgeg> I guess that is impure: AC_CACHE_CHECK([whether $CC can compile pclmulqdq and if it is supported by the hardware], [gf2x_cv_cc_supports_pclmul],
<{^_^}> [nixpkgs] @timokau opened pull request #45257 → [WIP] openblas: add pkg-config aliases → https://git.io/fNjWh
sm0rux has joined #nixos
<clever> gchristensen: sse4_1 and sse4_2, along with some older ones
<clever> gchristensen: my desktop has sse4a and misalignsse
<clever> and the wiki page doesnt say which ones the opcode is in
<Dezgeg> I think you need to pass --disable-hardware-specific-code to configure
<gchristensen> to ntl?
<Dezgeg> to gf2x
<gchristensen> ah
<gchristensen> but all the performance ricers :P
BlessJah_ has joined #nixos
<Dezgeg> well Proper Code would detect the features at runtime, not compile-time
jluttine has joined #nixos
<Dezgeg> there's even a mechanism in the dynamic linker to transparently select the most optimized implementation
<gchristensen> great. thank you so much, this has been breaking "random" builds (when they were built on the Lucifer builder) for a while now
<clever> mplayer has support for both methods, and they claim the runtime detection results in slightly worse performance
iyzsong has joined #nixos
<{^_^}> [nixpkgs] @shlevy pushed to master « haskellPackages.hoopl: Disable broken testsuite. »: https://git.io/fNjlE
<BlessJah_> viric: could you update opensc? 0.18.0 was released in mqy and it seems it's needed for yubike4 to work
<{^_^}> [nixpkgs] @volth closed pull request #45247 → perlPackages.LWP: fix cross-compilation → https://git.io/fNjsF
<{^_^}> [nixpkgs] @Mic92 merged pull request #45249 → debootstrap: 1.0.106 -> 1.0.107 → https://git.io/fNjGh
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fNj8G
<Taneb> Just fixed an error because apparently I can't spell "propagated"
jD91mZM2 has joined #nixos
<gchristensen> computers are awfully pedantic aren't they, Taneb?
<{^_^}> [nixpkgs] @jtojnar merged pull request #45227 → gegl_0_4: 0.4.4 -> 0.4.6 → https://git.io/fNjIE
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/fNj44
oida has quit [Remote host closed the connection]
oida has joined #nixos
vidbina has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45258 → ace: 6.5.0 -> 6.5.1 → https://git.io/fNj4u
<{^_^}> [nixpkgs] @shlevy pushed to master « haskellPackages.xmlhtml: Jailbreak for hspec 2.5 »: https://git.io/fNj4d
<ocharles> Does anyone know hydra adds -I when it evaluates a jobset?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45259 → chirp: 20180707 -> 20180815 → https://git.io/fNjBk
<ocharles> I have the input `nixpkgs = import <src/nix/pkgs> {}`, yet my jobset can't do `<nixpkgs>`
<ocharles> So I guess it adds -I for file inputs
<ocharles> but not "nix" inputs
<clever> ocharles: hydra adds a -I for every build input you configure on the jobset
<clever> with the name you gave in the build inputs config
<clever> ocharles: can you link your hydra's UI?
<ocharles> I'm afraid not
<ocharles> clever: it doesn't add -I for inputs that are of type "nix"
<clever> ah
<clever> and i think the type nix is just a bare nix expresion
<clever> so that wouldnt really fit into -I anyways
<ocharles> It is, and import <src/nix/pkgs> {} is a nix expression
<ocharles> right
trcc has quit []
<clever> that also returns a set, not a path
<clever> just use the local-path type
<clever> and give it the full path
<ocharles> Basically what I'm trying to do is have a declarative project, where my jobset config has a "nixpkgs" input for each PR, but the value of that should come from the latest commit in each pull request
<clever> what i try to do, is to not supply nixpkgs with -I at all
<clever> and to have a json file within the project, that can fetch its own nixpkgs
<ocharles> I think when I build my jobsets, I'm going to have to do "fetchTarball" on the commit the GitHub API gives me, and then import the "nix/pkgs" expr from that commit
<ocharles> We already do that
<{^_^}> [nixpkgs] @aanderse opened pull request #45260 → New makePerl5Lib function → https://git.io/fNjBw
<ocharles> but I want to use nixops/eval-machine-info on hydra, and that imports <nixpkgs>
<clever> then you shouldnt need any <nixpkgs> at all in your codebase
<clever> ahh
<ocharles> so I do need <nixpkgs>
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45261 → byobu: 5.125 -> 5.127 → https://git.io/fNjBr
<clever> one min
<ocharles> sure
<clever> yeah, i see the problem, one sec
<{^_^}> nixops#665 (by grahamc, 1 year ago, open): Support multiple versions of nixpkgs in one network
<clever> ocharles: this uses builtins.scopedImport to overwrite the __nixPath variable in the glboal scope
* ocharles looks
<clever> ocharles: if you use that when importing eval-machine-info, it will be able to change what <nixpkgs> resolves to
<gchristensen> jeepers
<ocharles> that's crazy, I didn't know you could do that!
endformationage has joined #nixos
adamt has joined #nixos
<ocharles> clever: so I should use this branch of nixops when I import eval-machine-info, you mean?
<clever> ocharles: no, use the code from the PR as an example
<adamt> Hiya. Can I safely add custom meta attributes to an internal package?
<ocharles> ah, ok
<ocharles> man, scopedImport isn't even documented
<gchristensen> probably shouldn't be either
<clever> ocharles: it lets you do fun things like remap foldl to foldr :P
<clever> ocharles: it can even swap true and false!
<ocharles> if things exist they should be documented imo
<clever> true and false, are technically global variables, that are defined to the values you would expect
<ocharles> because as you can see, people are gonna use em, so readers should at least be able to understand wtf is going on
<gchristensen> ("maybe it shouldn't exist")
<clever> scopedImport can overwrite them
<ocharles> maybe it shouldn't exist is reasonable, but it does, so it should be documented
<gchristensen> you're right, ocharles
<{^_^}> [nixpkgs] @shlevy pushed to master « haskellPackages.hadoop-rpc: Apply stack overflow patch on 8.4 as well. »: https://git.io/fNjRe
<gchristensen> of course you're right
<ocharles> :)
<clever> ocharles: also note that scopedImport is not recursive
<clever> but, it can overwrite the import function...
<ocharles> what do you mean by not recursive?
<clever> if you use scopedImport to import foo.nix, then foo.nix imports bar.nix
norfumpit has joined #nixos
<clever> bar.nix wont obey the changed you forced
<gchristensen> clever: can you provide an example of thaht?
<ocharles> Oh, I see
<clever> but, you can use scopedImport to overwrite the import function
<clever> so when foo.nix calls `import ./bar.nix`, its actually calling your wrapper, which can then propagate things
<ocharles> is __nixPath something special?
<clever> but, all of this breaks the import caching
<clever> ocharles: yeah, one min
<ocharles> I think I'm leaning towards having the correct nixpkgs input in my hydra jobset tbh
<clever> ocharles: <nixpkgs> gets parsed as-if you had typed __findFile __nixPath "nixpkgs"
<ocharles> this is scaring me :)
<clever> and if somebody where to overwrite __nixPath, then <nixpkgs> would just obey the new value
<gchristensen> ocharles: you might be down a deep dark scary road you maybe don't want to be
<clever> ocharles: oh, i also already have an example
<sphalerite> clever: wait so we could also use this to override builtins.getEnv and friends and have completely pure evaluation? :D
<sphalerite> it's an evil thing but it can be used for good! x)
<clever> sphalerite: yes
<clever> ocharles: this injects an <ssh-config-file> entry
<ocharles> oh, I think we already use that, heh
Denommus has joined #nixos
<{^_^}> [nixos-hardware] @Mic92 merged pull request #72 → apple/macbookpro/11-5: Add to tests → https://git.io/fNx70
<{^_^}> [nixos-hardware] @Mic92 pushed 2 commits to master: https://git.io/fNjRE
thetet has joined #nixos
<clever> ocharles: as for the import cache, `import` is just an alias to `scopedImport {}`
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45262 → linuxPackages.bcc: 0.6.0 -> 0.6.1 → https://git.io/fNjRV
<clever> and if you import a given file, with no overrides, nix will save the file into a hashmap, keyed on path
<clever> so if you re-import the file again, it can reuse the previous Value
<gchristensen> timokau[m]: https://gist.github.com/grahamc/0049f7898eeca3fa97f1f154efe2bd57 clever and Dezgeg solved the problem, patch at the end
<ocharles> I will study this, thanks
<clever> but when that was written, you couldnt use an attrset as a key
<clever> so it just ignores the cache when you use scopedImport
<clever> sphalerite: there is another mode in nix, that already disables getEnv
<gchristensen> --pure!
<Denommus> hey
<gchristensen> Dezgeg, clever thank you both for your help on the ntl problem :)
<Denommus> I need to enforce the permissions of some files when the system is updated
<Denommus> I know that I can create temp files with systemd.tmpfiles, is there anything equivalent to change permissions?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45263 → bowtie2: 2.3.4.1 -> 2.3.4.2 → https://git.io/fNj0s
<Taneb> I'm trying to run a coworker's python library's test suite using nix.
<Taneb> It uses tox, and tox seems to be trying to install its own version of pip so it can install its own things
<{^_^}> [nixpkgs] @timokau merged pull request #45061 → python3Packages.git-annex-adapter: fix build → https://git.io/fNA16
<{^_^}> [nixpkgs] @timokau pushed 2 commits to master: https://git.io/fNj0B
<Taneb> Any idea how I can work around this?
orivej has joined #nixos
<ocharles> clever: I settled on this for now https://gist.github.com/ocharles/86f28b70ad659d389d6a587147576315
<ocharles> It's a bit slow to evaluate because it has to `fetchGit` which fetches all 50k commits, which is a bit annoying
norfumpit has quit [Quit: norfumpit]
bennofs has joined #nixos
<gchristensen> 50k of what?
<clever> ocharles: can you rename the file in the gist to have a .nix extension?
<ocharles> oh yea
ekleog has quit [Quit: WeeChat 2.0]
<ocharles> gchristensen: our repo has 50k commits
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45264 → adapta-gtk-theme: 3.94.0.1 -> 3.94.0.92 → https://git.io/fNj0S
<gchristensen> OH
<ocharles> so fetchGit will fetch them all
<ocharles> fetchTarball would be better, but it's a private repo
<gchristensen> at least fetchGit has a cache :)
<ocharles> yea :) though I need to have that use an explict revision
<Taneb> I think GitHub can do weird things with tarballs and change the hash while keeping the content the same
<ocharles> clever: there you go
<Taneb> Whereas fetchGit does a hash of the content
<ocharles> Taneb: that shouldn't matter, fetchTarball don't need no hash
<Taneb> ocharles: oh, fair
<ocharles> (the builtin)
<gchristensen> fetchGit has very poor performance characteristics with multiple large repositories
Mic92 has quit [Quit: WeeChat 2.1]
ekleog has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45265 → babl: 0.1.54 -> 0.1.56 → https://git.io/fNjE8
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45266 → armadillo: 8.600.0 -> 9.100.5 → https://git.io/fNjEy
acarrico has quit [Ping timeout: 272 seconds]
<timokau[m]> clever dzeg gchristen: Thanks for the help with ntl :)
<Denommus> my use case is: I need the certificates from /var/lib/acme to be accessible for everyone in the nginx group
<Denommus> because they need to be read by gitlab and docker registry
<Denommus> is it better if I run gitlab and docker registry as the nginx user? Somehow I don't like this idea
peel has joined #nixos
iyzsong has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @Mic92 opened pull request #45267 → nix-review: 0.4.0 -> 0.5.0 → https://git.io/fNjux
<{^_^}> [nixpkgs] @vcunat pushed 9 commits to release-18.03: https://git.io/fNjz3
<{^_^}> [nixpkgs] @vcunat merged pull request #45147 → [18.03] PostgreSQL 10.5, 9.6.10, 9.5.14, 9.4.19 & 9.3.24 updates → https://git.io/fNhC4
drakonis_ has joined #nixos
Mic92 has joined #nixos
<{^_^}> Channel nixos-18.03 advanced to https://github.com/NixOS/nixpkgs/commit/cd0cd946f37 (from 8 hours ago, history: https://channels.nix.gsc.io/nixos-18.03)
Xyliton has joined #nixos
<Xyliton> what's nix's equivalent of `/usr/local/include`? Where would I
<Xyliton> stuff the headers in the $out of a package?
<clever> Xyliton: $out/include/
<gchristensen> infinisil: nice touch with the replying directly to the asker in #nixos-unregistered :)
<Xyliton> clever: oh, thanks!
vidbina has quit [Ping timeout: 272 seconds]
<hyper_ch2> nach super kommt ja hyper
fendor has quit [Ping timeout: 265 seconds]
<tilpner> Denommus - Have you seen security.acme.certs.<name>.group and security.acme.certs.<name>.allowKeysForGroup?
<hyper_ch2> sorry, wrong channel
<{^_^}> [nixpkgs] @Mic92 merged pull request #45262 → linuxPackages.bcc: 0.6.0 -> 0.6.1 → https://git.io/fNjRV
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNj2w
<{^_^}> [nixpkgs] @jtojnar merged pull request #45265 → babl: 0.1.54 -> 0.1.56 → https://git.io/fNjE8
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/fNj2N
<LnL> Xyliton: we generally use the same conventions, just namespaced per package instead of a global and shared /usr/local
hyper_ch2 has quit [Quit: Page closed]
<Xyliton> ah, I see
<{^_^}> [nixpkgs] @flokli opened pull request #45270 → jameica: get rid of launcher script, only use makeWrapper → https://git.io/fNjaE
erasmas has joined #nixos
<Taneb> If my test suite wants to download sample data from the internet, will nix block that?
<elvishjerricco> Taneb: If sandboxing is on and this isn't a fixed-output derivation, yea
<elvishjerricco> But sandboxing isn't on be default (though maybe it should be)
<Taneb> What's the best way to work around that? Turning sandboxing on isn't really an option for me here
graphene has quit [Remote host closed the connection]
<Xyliton> do I have anything special for clang to allow me to include something from the include path of another project?
<Xyliton> *package
<makefu> if the data does not change you can use fetchurl with the sha256
<makefu> and provide the the result as an input for the derivation
graphene has joined #nixos
Fare has joined #nixos
<{^_^}> [nixpkgs] @flokli opened pull request #45271 → docs: properly document what jdk really, points to, explain home passthru → https://git.io/fNjV4
<Taneb> Frustratingly, this is a library part of whose function is to download datasets (and whose test suite tests the downloading datasets part as well as the processing part)
<Taneb> So while the datasets are pretty static, downloading with fetchUrl doesn't help
<elvishjerricco> Taneb: You could write a second derivation that just runs the test. It can be fixed output and just output the hash of the source or something
<gchristensen> unfortunately that just can't be done with Nix, typically those tests are disabled during the build
<flokli> elvishjerricco: for 18.09, it'll be: https://github.com/NixOS/nixpkgs/pull/44190
<{^_^}> #44190 (by andir, 2 weeks ago, merged): nixos/nix-daemon: default `nix.useSandbox` to `true`.
<elvishjerricco> Taneb: But that would be awful because you'd have to manually re-hash every time the source changes...
<{^_^}> [nixpkgs] @Mic92 merged pull request #42740 → rainloop: Init at 1.12.1 → https://git.io/f4bVK
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNjVh
mkaito has joined #nixos
<manveru> Taneb: it doesn't cache the datasets?
<elvishjerricco> Taneb: Yea I'd abandon the simple testing stuff and either test manually or use NixOS style tests
<Taneb> NixOS style tests?
simukis has quit [Quit: simukis]
<Taneb> (testing manually would defeat the point of what I'm trying to do, here, which is get this tested by our Hydra server as CI)
<{^_^}> [nixpkgs] @andir merged pull request #45270 → jameica: get rid of launcher script, only use makeWrapper → https://git.io/fNjaE
<{^_^}> [nixpkgs] @andir pushed 2 commits to master: https://git.io/fNjwL
<elvishjerricco> Taneb: Yea your options are probably turning off sandboxing or testing like they do in that link
Ariakenom has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45272 → arangodb: 3.3.12 -> 3.3.14 → https://git.io/fNjwW
<{^_^}> [nixpkgs] @Mic92 merged pull request #45271 → docs: properly document what jdk really points to, explain home passthru → https://git.io/fNjV4
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fNjwl
<{^_^}> [nixpkgs] @Mic92 merged pull request #45173 → octopus: 8.1 -> 8.2 → https://git.io/fNhSz
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNjw0
thetet has left #nixos [#nixos]
<Enzime> can someone check this PR
haitlah has joined #nixos
<Enzime> I think it fixes building on aarch64
<{^_^}> #43754 (by r-ryantm, 4 weeks ago, open): lensfun: 0.3.2 -> 0.3.95
<gchristensen> Enzime: why don't you ask for permission to run ofborg
<{^_^}> ofborg#221 (by Enzime, 2 days ago, open): Add myself to trusted users
<srhb> gchristensen: Speaking of which, what is extra-known-users for?
<gchristensen> ah one sec
<srhb> It's caused some confusion.
<gchristensen> srhb: known-users are users who are members of the github org
<srhb> Aha, thanks :)
<{^_^}> [nixpkgs] @r-ryantm opened pull request #45273 → asymptote: 2.46 -> 2.47 → https://git.io/fNjr8
<{^_^}> ofborg#223 (by Enzime, 10 seconds ago, open): Add Enzime to extra-known-users
<Xyliton> how do I include stuff in $out/include?
<gchristensen> Enzime: deployed
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/a4e068ff9c8 (from 66 minutes ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<Enzime> gchristensen: 👍
<{^_^}> [nixpkgs] @matthewbauer pushed to staging « release: use jobs.firefox-unwrapped »: https://git.io/fNjoV
<Denommus> tilpner: I have not, thanks
<{^_^}> [nixpkgs] @matthewbauer merged pull request #45183 → Assorted darwin/macOS fixes → https://git.io/fNhHy
<{^_^}> [nixpkgs] @matthewbauer pushed 9 commits to staging-next: https://git.io/fNjor
ryanartecona has joined #nixos
graphene has quit [Remote host closed the connection]
<Xyliton> Any idea why cmake suddenly throws this error?
<Xyliton> set(CMAKE_CXX_STANDARD 14)
<Xyliton> oof
<Xyliton> copied the wrong thing
halfbit has joined #nixos
thefloweringash has joined #nixos
graphene has joined #nixos
<sphalerite> Xyliton: because something is passing -stdlib=libstdc++, which I'm guessing is a clang option
<{^_^}> [nix] @graham-at-target opened pull request #2358 → fetchGit: use a better caching scheme → https://git.io/fNjKe
<kolb> I would appreciate a proof read if anyone feels like it (-: Vendoring with Quicklisp, Make, Git, and Nix: http://mr.gy/blog/lisp-vendoring-quicklisp-nix.html#section-3
<Xyliton> hm...
<Denommus> tilpner: does that work with services.nginx.virtualHosts.<name>.enableACME?
<tilpner> Denommus - I think so
<Xyliton> sphalerite: you're probably right. If I replace clang with gcc in my buildinputs it tries to compile my code but I'm still hitting the headers it refuses to include
mayhewluke has quit [Ping timeout: 272 seconds]
pmcgovern has joined #nixos
pmcgovern has left #nixos [#nixos]
<gchristensen> ocharles: https://github.com/NixOS/nix/pull/2358 fixes the very bad performance characteristics I was referring to :) https://github.com/NixOS/nix/pull/2358
<{^_^}> nix#2358 (by graham-at-target, 3 minutes ago, open): fetchGit: use a better caching scheme
<{^_^}> nix#2358 (by graham-at-target, 3 minutes ago, open): fetchGit: use a better caching scheme
<Xyliton> do I have to do anything other than adding the deriv to my buildinputs to make the files includeable?
<gchristensen> infinisil: ^ minor weird edge case if you care :)
<sphalerite> Xyliton: no, that should be all
<ocharles> gchristensen: ah nice!
mayhewluke has joined #nixos
Ariakenom has joined #nixos
jtojnar has quit [Ping timeout: 240 seconds]
jtojnar has joined #nixos
<infinisil> gchristensen: Fixed!
<gchristensen> yay!
<gchristensen> testing ... https://github.com/NixOS/nix/pull/2358 fixes the very bad performance characteristics I was referring to :) https://github.com/NixOS/nix/pull/2358
<{^_^}> nix#2358 (by graham-at-target, 17 minutes ago, open): fetchGit: use a better caching scheme
Xyliton has quit [Remote host closed the connection]
init_6 has quit [Ping timeout: 268 seconds]
<infinisil> Since my implementation uses just a list, this technically requires O(n^2) to do (uniqueness), but actually it's just O(1), because IRC message length is limited :P
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
Izorkin has quit [Ping timeout: 272 seconds]
<aminechikhaoui> gchristensen: hm nice, I see fetchMercurial is doing the same logic, didn't notice fetchGit is using the same directory
<Denommus> tilpner: it didn't :-/
fendor has joined #nixos
adamt has quit [Ping timeout: 272 seconds]
ryanartecona has quit [Quit: ryanartecona]
arjen-jonathan has quit [Ping timeout: 240 seconds]
S1tiSchu has quit [Quit: Leaving]
<Denommus> well, this is secondary, I can figure that out later
<Denommus> what's getting painful for me is the fact that I cannot clone over HTTPS in my gitlab
<Denommus> I get error 500, but nothing shows up in my journalctl -xe
<Taneb> How can I make a package appear when I run "nix-shell ." but not make it a requirement for nix-build?
omarty has quit [Quit: WeeChat 1.9.1]
<aminechikhaoui> Taneb: in stdenv.mkDerivation you could have buildInputs = [ <nix-build pkgs> ] ++ (lib.optionals lib.inNixShell [ <extra-pkgs> ]);
omarty has joined #nixos
erickomoto has joined #nixos
<gchristensen> aminechikhaoui: indeed
joepie91_to_go_ has joined #nixos
<joepie91_to_go_> ,locate avr-gcc
<{^_^}> Found in packages: avrgcc, arduino, arduino_core
<joepie91_to_go_> ,locate inttypes.h
<{^_^}> Found in packages: zig, root, z88dk, swift, rakudo, uclibc, coin3d, and 26 more
<joepie91_to_go_> ... not that helpful :P
bongsun has quit [Quit: Connection closed for inactivity]
<joepie91_to_go_> ,locate stdint.h
<{^_^}> Found in packages: zig, isl, sdcc, root, z88dk, swift, rakudo, and 33 more
<{^_^}> [nixpkgs] @rehno-lindeque opened pull request #45274 → aravis: init at 0.5.13 → https://git.io/fNj1W
jmeredith has quit [Quit: Connection closed for inactivity]
goibhniu has quit [Ping timeout: 268 seconds]
psnively has joined #nixos
psnively has quit [Client Quit]
johnw has joined #nixos
<{^_^}> [nixpkgs] @peti merged pull request #45273 → asymptote: 2.46 -> 2.47 → https://git.io/fNjr8
<{^_^}> [nixpkgs] @peti pushed 2 commits to master: https://git.io/fNjML
<{^_^}> [nixpkgs] @xeji merged pull request #45267 → nix-review: 0.4.0 -> 0.5.0 → https://git.io/fNjux
<{^_^}> [nixpkgs] @xeji pushed commit from @Mic92 to master « nix-review: 0.4.0 -> 0.5.0 (#45267) »: https://git.io/fNjMs
psnively has joined #nixos
lawlesseel has quit [Remote host closed the connection]
Mateon1 has quit [Quit: Mateon1]
<{^_^}> [nixpkgs] @xeji merged pull request #45143 → grpc: fix darwin build → https://git.io/fNhZj
<{^_^}> [nixpkgs] @xeji pushed 3 commits to master: https://git.io/fNjMp
goibhniu has joined #nixos
graphene has quit [Remote host closed the connection]
<{^_^}> [cabal2nix] @peti merged pull request #371 → Output fetchSubmodules setting in src directive → https://git.io/fNxXj
<{^_^}> [cabal2nix] @peti pushed 5 commits to master: https://git.io/fNjDm
graphene has joined #nixos
jtojnar has quit [Quit: jtojnar]
sm0rux has quit [Ping timeout: 256 seconds]
ryanartecona has joined #nixos
halfbit has quit [Quit: WeeChat 1.9.1]
lohfu has quit [Quit: WeeChat 1.9]
lohfu has joined #nixos
<mpickering> How can I keep the build directory of a successful build?
aanderse-work has joined #nixos
<aanderse-work> if i have the full path to an installed package is it possible to get the path to the .drv derivation file in the nix store?
<symphorien> nix-store --query --deriver $path
<aanderse-work> sorry, i meant from the nix language
<clever> aanderse-work: only if you have a derivation object
<aanderse-work> clever: ok, thank you
<clever> > hello.drvPath
<{^_^}> "/nix/store/m5chcjbj7p08sy8adqpkr2rzf6rmdfh6-hello-2.10.drv"
<pikajude> wouldn't it be more hygienic to specify allow-newer/older for specific dependencies in the haskell builder, rather than jailbreaking the entire project?
joepie91_to_go_ has quit [Ping timeout: 260 seconds]
<mpickering> I don't think that's how it works?
<TweyIV> TIL nix copy will ignore all but the last --to argument
<TweyIV> To my surprise
<woffs> and get the .drv from a non-existing $out path? I use nix show-derivation "$out" | perl -ne 'if(/"(.*\.drv)"/){print$1;exit}' but I wonder if there is something more elegant
haitlah has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @peti pushed to master « multi-ghc-travis: update to latest git version »: https://git.io/fNjyb
<d1rewolf> is widevine (required for netflix) known to work on nixos? I get : Package ‘chromium-68.0.3440.75’ in /nix/store/g9skbx906pnmr8jdvqawrzh8j0vgxr1l-nixos-18.09pre147696.7c585235ff6/nixos/pkgs/applications/networking/browsers/chromium/browser.nix:48 is marked as broken, refusing to evaluate
<gchristensen> I use google-chrome-stable for it, and I think firefox works too now?
jtojnar has joined #nixos
<{^_^}> [nixpkgs] @mbbx6spp opened pull request #45275 → rubygems: 2.7.6 -> 2.7.7 and update src URL to official HTTPS location → https://git.io/fNjS3
<d1rewolf> gchristensen: ah, k. thank you
fenedor has joined #nixos
aarvar has joined #nixos
endformationage has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @Twey opened pull request #45276 → ninja-git: init at 2018-04-10 → https://git.io/fNj9P
<johanot> d1rewolf: just stuggled with the same issue. can't get widevine to work for chromium. Firefox plays netflix fine, but I'd like to combine that with chromecast :)
jmeredith has joined #nixos
Mateon1 has joined #nixos
<{^_^}> [nixpkgs] @jfrankenau opened pull request #45277 → hugo: 0.46 -> 0.47 → https://git.io/fNjH1
erickomoto has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sm0rux has joined #nixos
TweyIV has quit [Quit: WeeChat 2.1]
Fare has quit [Ping timeout: 272 seconds]
Fare has joined #nixos
psnively has quit [Quit: Textual IRC Client: www.textualapp.com]
Mateon1 has quit [Quit: Mateon1]
<clever> johanot: ive found that the android netflix app can remotely control the netflix app on a ps3 (and likely the chromecast), and skip the entire streaming layer
Mateon1 has joined #nixos
<johanot> clever: yes, ended up just using the netflix app on my android phone, which can (as you say) invoke the chromecast. Still, I'd like it if the widevine plugin is revived at some point. i'd also like having it for playing spotify on the laptop.
<clever> johanot: yeah, ive had to play netflix inside virtualbox, with windows 10, lol
<BlessJah> viric: I've just noticed that it's upgraded in other channel, sorry for noise.
<johanot> clever: my condolences. hehe
<clever> johanot: due to that, ive just given up on netflix in the laptop or desktop :P
<clever> johanot: i just use the tablet
drakonis_ has quit [Remote host closed the connection]
<clever> johanot: oh, and the tablet on my main wifi, has ipv6, which is a tunnel, so it exits in the wrong country
<clever> netflix thinks i'm trying to get around region lockout, so it refuses to play anything!
<clever> so i have a 2nd wifi that lacks ipv6, just for netflix use, lol
<johanot> clever: ipv6 is clearly a hack. lol
<Thra11> If a build succeeds without a sandbox, but fails inside a sandbox because it can't find 'g++', does that mean it has some (probably generated) files that refer to g++ when ideally they should have been substituted to refer to something like /nix/store/some..hash-gcc-7.3.0/bin/g++?
<clever> johanot: in the past, i was successfully able to get the american lineup, using ipv6
<clever> Thra11: is this on nixos or another distro?
<Thra11> clever: foreign linux distro
<clever> Thra11: it might simply be /usr/bin/g++
<clever> or export PATH=/usr/bin/
<clever> and then its just 100% ignoring nix!
<johanot> clever: netflix solution: just ban all ipv6. hah.. fun. no wonder the global transition is difficult
<clever> johanot: if my ISP offered v6, then the geolocation would say canada, and everything would be fine
<clever> johanot: the fact that i'm using an ipv6 tunnel is what breaks netflix
<clever> its essentially a proxy
<Thra11> clever: Yes, I suppose so. nix build leaves things like /usr/bin in the $PATH?
<clever> Thra11: nix will make the PATH pure, but only the sandbox stops scripts from "fixing" $PATH
<johanot> clever: right.. I had a tiny aws node in n. virginia a couple of years ago for the same purpose :)
<Thra11> clever: I see
<Thra11> clever: So ideally I would need to work out which script is "fixing" the $PATH and patch it in some way?
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<clever> Thra11: yeah, and you need the sandbox on to ensure it fails loudly
sir_guy_carleton has joined #nixos
<BlessJah> can I override and build nixos-unstable package against nixos-18.03 libraries?
sir_guy_carleton has quit [Client Quit]
<clever> BlessJah: nixos1808.callPackage <nixosunstable/pkgs/foo/bar> {};
sir_guy_carleton has joined #nixos
<clever> the variable parts will depend on what you have named things
<BlessJah> it's pkgs and unstable for 18.03 and nixos-unstable respectively
<BlessJah> thanks, will try
simukis has joined #nixos
simukis has quit [Read error: Connection reset by peer]
simukis has joined #nixos
jeaye has quit [Quit: WeeChat 1.9.1]
jeaye has joined #nixos
<disasm> this ones an odd one... I did a nixos-rebuild switch, rebooted and it just hung on 18.09 screen. I enabled debug-shell in systemd, poked around and journalctl said system had started up successfully. I ran `systemctl isolate graphical.target` in debug-shell and gui started fine.
<Denommus> how can I override the user of a systemd unit (say, docker-registry)?
<disasm> systemctl get-default says graphical.target as well
<{^_^}> [nixpkgs] @vcunat pushed 75 commits to master: https://git.io/fNjdb
<disasm> Denommus: you can't on that one, you'd have to duplicate and force your unit to take precedence. Typically, most units have a config parameter for user/group.
jeaye has quit [Quit: WeeChat 2.0]
<disasm> for example, one unit I wrote, `gitea.user` overrides the user of the gitea service.
jeaye has joined #nixos
<Lisanna> can I convert a float to an int?
<Denommus> disasm: thanks
<gchristensen> hi disasm!
<Lisanna> e.g., (0.5 * 2)
<disasm> Hi gchristensen! Long time!!!
<gchristensen> how're you doing?
<{^_^}> [nixpkgs] @vcunat pushed 376 commits to staging: https://git.io/fNjFn
<emily> I thought Nix doesn't support floats... did that change?
<disasm> gchristensen: doing well
<Lisanna> emily yeah, they added it in... 2.0 I think
<gchristensen> disasm: nice to hear :) nice to see you around!
<{^_^}> [nixpkgs] @gebner pushed to master « vscode: 1.26.0 -> 1.26.1 »: https://git.io/fNjF4
<Lisanna> eh, I guess float -> int is a bit subjective anyways.... since there's multiple ways you might want to deal with the floating point rounding errors and stuff
<emily> it's certainly a well defined operation, i guess there's just no truncate or round or anything in the builtins?
<Lisanna> I'm not seeing any... I would need a rounding function at minimum in order to do this I think
<Lisanna> *writes a bash script and does import-from-derivation*
<emily> oh dear...
<Lisanna> :)
<disasm> gchristensen: you doing well?
<emily> Lisanna: you could convert to a string, chop off everything after the ., and eval
<gchristensen> disasm: super :)
<emily> (and hope it never uses scientific notation)
<{^_^}> [nixpkgs] @vcunat pushed to staging « firefox: finish adding default for execdir »: https://git.io/fNjF5
<emily> disclaimer: i am not a lawyer, your mileage may vary
<{^_^}> [nixpkgs] @veprbl opened pull request #45278 → arrow-cpp: 0.9.0 -> 0.10.0 → https://git.io/fNjFF
<Lisanna> emily actually, yeah... there's a lib.toInt
<Lisanna> that'd give me a round down at least.. which is good enough
<emily> oh, okay, that's much less scary
<Lisanna> so, convert to string, chop off the trailing . stuff, pray it's not sci notation, then lib.toInt
<emily> sorry, I don't know the Nix language well enough to be trying to answer questions like these ^^;
<emily> oh, does lib.toInt aFloat not work?
<Lisanna> nope
<Lisanna> ):
<emily> :'(
<emily> I guess that really is the best way then
<Lisanna> hey, engagement is helpful by itself
<Lisanna> helps me think
<Thra11> In the context of Nix, what are floats useful for?
<Lisanna> Thra11 in my case... memory usage calculations that sometimes involve half of a gigabyte
aanderse-work has left #nixos [#nixos]
<Lisanna> (that gets multiplied by two or something later)
<emily> it might be worth just pre-multiplying if you can.
<Denommus> hm
<Denommus> I want multiple modules to run with the same user
<emily> which is like, the most minimal kind of fixed point possible :)
<emily> fixed point as in fixed point number representation
joebobjo1 has joined #nixos
<Denommus> but more than one module defines something like users.extraUsers."${cfg.user}" = { createHome = true; home = cfg.storagePath; }
<Denommus> what could I do in this case?
<Denommus> I don't mind overriding the module, but I would like to know exactly how to create both directories for the same user
mayhewluke has quit [Ping timeout: 272 seconds]
grp has joined #nixos
<joebobjo1> I just got this error on nix upgrade-nix on macos: https://gist.github.com/amckinlay/f1e8db9ec0ee41c5d1afae9bf59c7a10
<joebobjo1> is there anything I need to do about the error: opening lock file '/nix/var/nix/profiles/default.lock': Permission denied ?
mayhewluke has joined #nixos
<symphorien> is the daemon running ?
<joebobjo1> symphorien: yes, under root
<joebobjo1> but it is the old version apparently
<symphorien> nix updrade-nix does not update the daemon
<joebobjo1> so I'm F'd?
<gchristensen> hang tight, joebobjo1
<gchristensen> joebobjo1: looks like it didn't upgrade, so you shouldn't be in a broken state
<joebobjo1> gchristensen: ok
<joebobjo1> so if I run nix upgrade-nix again the same thing should print?
<gchristensen> probably?
<gchristensen> I really need to figure this out and write instructions :/
<joebobjo1> gchristensen: I get a different error. want me to paste it?
<gchristensen> sure, in a pastebin / gist
<{^_^}> [nixpkgs] @xeji merged pull request #45228 → gnubg: 1.06.001 -> 1.06.002 → https://git.io/fNjID
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « gnubg: 1.06.001 -> 1.06.002 (#45228) »: https://git.io/fNjNc
<gchristensen> yeah looks right
<joebobjo1> what is it trying to do?
<gchristensen> joebobjo1: I think upgrading Nix shouldn't be too difficult on a mac. let me try what I think should work and get back to you?
<joebobjo1> two nix instances want to run at once?
<joebobjo1> gchristensen: ok
<jD91mZM2> Sorry if I'm on the wrong track, but is it possible that some nix upgrade was killed in a way that made it not clean up a lock file?
<joebobjo1> I'll ping you if you're on another day if I have to leave since I don't have a bouncer.. if that is ok
<gchristensen> joebobjo1: yes of course that is fine :)
<joebobjo1> jD91mZM2: do you want to know who is owning the lock file right now?
<gchristensen> joebobjo1: takes the pressure off to do it right this second!
goibhniu has quit [Ping timeout: 244 seconds]
<joebobjo1> gchristensen: do it right this seconda anyway! :P just kiding
<gchristensen> no, this is a simple permissions issue, jD91mZM2 and joebobjo1
<gchristensen> and also, nix upgrade-nix definitely won't finish the upgrade :(
<{^_^}> [nixpkgs] @xeji merged pull request #45245 → dar: 2.5.15 -> 2.5.16 → https://git.io/fNjsf
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « dar: 2.5.15 -> 2.5.16 (#45245) »: https://git.io/fNjN1
<joebobjo1> /nix/var/nix/profiles/default.lock doesn't exist on my machine. the nix command must be creating it, or maybe "opening" means *trying to create*?
<jD91mZM2> gchristensen: Thing is I don't have that lock file on my system
<jD91mZM2> Thought it was created or something, and now it's failing because it's already there
<joebobjo1> oh you know what
<joebobjo1> I need sudo
<joebobjo1> since I installed nix as root
<joebobjo1> er, as multi-user
<joebobjo1> worked!
<gchristensen> joebobjo1: is your nix broken right now?
<joebobjo1> gchristensen: not after doing sudo nix upgrade-nix
<gchristensen> nice
<joebobjo1> works like a charm and everything seems updated to 2,0,4 now
<gchristensen> can you do me a few favors to help me verify a few things, joebobjo1? because I don't think it is done :)
<joebobjo1> would be nice if nix warned about rights
<joebobjo1> gchristensen: sure
<gchristensen> (1) what does `nix --version` print? (2) what does `which nix` print? (3) what does `ls -la /Library/LaunchDaemons/org.nixos.nix-daemon.plist` print? (4) `cat cat /Library/LaunchDaemons/org.nixos.nix-daemon.plist` --- and gist all this
<joebobjo1> roger
<{^_^}> [nixpkgs] @vcunat pushed 3 commits to staging: https://git.io/fNjAI
<{^_^}> [nixpkgs] @vcunat merged pull request #45175 → pciutils: 3.6.1 -> 3.6.2 → https://git.io/fNhSp
<gchristensen> joebobjo1: yay! now gist the output from `ps auxg | grep -i nix-daemon`
witchof0x20 has quit [Remote host closed the connection]
<gchristensen> ah hah!
<joebobjo1> oh no!
<gchristensen> `sudo pkill nix-daemon` should fix that one up, try that and re-run the ps auxg... command and see if it is running 2.0.4 now
<joebobjo1> gchristensen: nope, 2.0.2 is still running
<gchristensen> hmm
witchof0x20 has joined #nixos
<gchristensen> `sudo launchctl unload /Library/LaunchDaemons/org.nixos.nix-daemon.plist; sudo launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist`
<joebobjo1> gchristensen: 2.0.4 is now running
<gchristensen> yay!
<joebobjo1> wow
<joebobjo1> thanks!
<gchristensen> thank you :)
<joebobjo1> what happened
<srk> ,haskell srk
<gchristensen> macos is really picky about updating services, maybe for the best, so we just had to tell it to reload what it thought the service should be
<joebobjo1> gchristensen: so whenever we pkilled the process, macos would start it back up?
<joebobjo1> it just didn't reread the new nix-daemon.plist file?
witchof0x20 has quit [Client Quit]
<gchristensen> yeah, and I guess it cached the symlink of what nix-daemon was pointing to
<joebobjo1> gchristensen: oh you think that is actually what happened?
<gchristensen> yeah
<gchristensen> macOS is picky about symlinks
<joebobjo1> that's a bug in launchctl then
witchof0x20 has joined #nixos
<joebobjo1> imo
<gchristensen> not sure, it might be on purpose :P anyway: https://github.com/NixOS/nix/issues/1900#issuecomment-413967767
<joebobjo1> security?
<gchristensen> no idea
<joebobjo1> gchristensen: do you think nix-daemon would have updated once I restarted my computer?
<gchristensen> also no idea :D
<joebobjo1> I bet launchctl just does caching by default like systemd
<joebobjo1> and you have to explicitly reload a launch file to update anything about a service
<gchristensen> quite possibly
<joebobjo1> maybe the nix tool views it as not its job to reload launch services?
<grp> I'm trying to package a shell script but once it's installed, it can't run any of the binaries defined in the buildInputs list. I was hoping the script's environment had them available. I would prefer to have it running without replacing every call with the ${pkgs.app} path.
<gchristensen> joebobjo1: I think, ideally, it would restart the service but it is hard to make it a really really nice experience with the developer hours available... but that we're working on making it better every day
<gchristensen> I don't think there is a principled choice to not make it restart the service
<joebobjo1> gchristensen: maybe nix upgrade-nix just doesn't account for multi-user yet?
<gchristensen> yeah maybe not! :)
<joebobjo1> gchristensen: can I file an issue?
<joebobjo1> or try implementing it myself and testing it?
<gchristensen> of course you can do either, here: https://github.com/NixOS/nix/
<{^_^}> [nixpkgs] @benley reopened pull request #44886 → google-cloud-sdk: include docker-credential-gcloud script → https://git.io/fN5Y1
<pie_> is there an easy way to get an appimage working/
<tilpner> pie_ - Try appimage-run
<pie_> tilpner, thanks
<joebobjo1> LnL: what do you mean upgrade-nix breaks user profiles
<gchristensen> I'm curious too :)
<LnL> gchristensen: joebobjo1: readlink ~/.nix-profile
<pie_> tilpner, hm, and where do I find this tool? >_>
<joebobjo1> LnL: and?
<LnL> gchristensen: joebobjo1: https://github.com/NixOS/nix/issues/2175
<{^_^}> nix#2175 (by dtzWill, 12 weeks ago, open): nix upgrade-nix borks user profiles containing nix
<gchristensen> LnL: should nix upgrade-nix be fixed to resolve the nix-profile one level
<joebobjo1> /nix/var/nix/profiles/per-user/foo/profile
<pie_> tilpner, oh its in nixpkgs tooling stuff
<LnL> ah yeah, it's not your user profile in this case
<tilpner> pie_ - nix-shell -I nixpkgs=channel:nixos-unstable -p appimage-run
<joebobjo1> LnL: what are you talking about? I'm confused
<joebobjo1> was my user profile not supposed to contain nix?
<joebobjo1> was I an idiot?
<LnL> gchristensen: joebobjo1: it turns the profile that nix is installed in into a profile outside of /nix/var/nix/profiles which means it won't be a gcroot anymore so garbage collecting deletes the newly upgraded nix
<gchristensen> yes that is very ugly, I've seen that before
<LnL> joebobjo1: I gave you the wrong command, depends on the install
<joebobjo1> ok now I'm confused
<joebobjo1> did I install something worng?
<joebobjo1> are you saying I have a root nix install, but using nix commands installed into my user pfoile?
<LnL> sudo readlink /var/root/.nix-profile
<pie_> ok i just needed to use a newer version of nixpkgs, now i have an appimage-run package
<gchristensen> LnL: I think the best route from here, fore joebobjo1,is not worrying about the specific details of what is wrong, and moving in to how to make it right
<joebobjo1> LnL: file does not exist though
<LnL> hmm, it does not?
lawlesseel has joined #nixos
<joebobjo1> now I'm gonna cry. I just started using nix and already I messed something up
<joebobjo1> this is probably all because I tried to go for a multi user install
<LnL> ls -la $(command -v nix-store)
<gchristensen> joebobjo1: nothing is really broken, but we should fix up an issue before you move on
<LnL> yeah it's fine if we fix it now :)
<joebobjo1> is it a user error issue?
<gchristensen> no
<joebobjo1> is it a mac issue
<gchristensen> not mac-specific
<LnL> upgrade-nix has a bug, it's a problem everywhere AFAIK
<joebobjo1> so it is because nix tool is experimental
<joebobjo1> I should have just used nix-env like the docs say??
<joebobjo1> can nix-env upgrade nix
jD91mZM2 has quit [Quit: WeeChat 2.0]
<LnL> yeah, but upgrade-nix is smarter and figures out what profile nix is installed in for you
<gchristensen> joebobjo1: you're fine, it isn't a big deal, LnL will help you fix the (minor) issue.
<LnL> so with nix-env you have to do that part yourself
<gchristensen> (right, LnL? if not, I can)
graphene has quit [Remote host closed the connection]
<LnL> yeah, I'm a bit confused about the no root profile tho
erickomoto has joined #nixos
<LnL> joebobjo1: what's command -v nix-store?
<joebobjo1> /nix/var/nix/profiles/default/bin/nix-store
graphene has joined #nixos
<LnL> hmm, maybe you're fine then
<joebobjo1> so what's up with my setup then?
<joebobjo1> I don't think I've ever installed anything as root on my machine
<joebobjo1> after installed nix in multi-user mode
<joebobjo1> I remember following a long script to install nix
<gchristensen> LnL: maybe the bug was fixed?
<joebobjo1> it created a bunch of fake nix builder users
<LnL> gchristensen: I think it might just not have triggered because of sudo weirdness on macos?
<gchristensen> maybe so :/
<LnL> pretty sure it's still a problem for single-user installs
<gchristensen> at any rate, you're probably fine joebobjo1. if something breaks come ask for help and we can get you sorted :)
<joebobjo1> how do you upgrade all packages, including packages related to nix itself and all the post-instal stuff that needs to be done using nix-env instead of nix
orivej has quit [Ping timeout: 240 seconds]
fendoer has joined #nixos
<LnL> joebobjo1: you can run this as a sanity check, (might take a while) nix-store -q --roots $(command -v nix-store)
<LnL> it should list at least one default-<number>-link
joebobjo1 has quit [Ping timeout: 268 seconds]
endformationage has joined #nixos
fendor has quit [Ping timeout: 268 seconds]
<LnL> as for upgrading I think this works, sudo nix-env -p /nix/var/nix/profiles/default -u
<LnL> the launchd part is the same
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #44767 → {cc,bintools}-wrapper, ghc, libgcc: Define wrapper env vars as full paths → https://git.io/fN9ZY
<{^_^}> [nixpkgs] @Ericson2314 pushed 5 commits to staging: https://git.io/fNjjv
ryanartecona has quit [Quit: ryanartecona]
<ivan> https://github.com/NixOS/hydra/issues/589 - how does this even happen for something like python3.6?
<{^_^}> hydra#589 (by grahamc, 6 hours ago, open): Illegal instructions are hard to debug
<ivan> user-added -march=native flags?
<adamantium> hey, i'm trying to use sgdisk to to make my bios boot partition ... where is sgdisk ? nix search sgdisk, nothing.
peel has quit [Quit: Connection closed for inactivity]
<cocreature> ,locate sgdisk
<{^_^}> Found in packages: gptfdisk
<cocreature> ^ adamantium
<adamantium> thank you !!!!!!!!!
<LnL> hmm, isn't that in the iso?
<adamantium> im not on an iso
<adamantium> so i do not knw.
<LnL> ah
drakonis_ has joined #nixos
<LnL> take a look at nix-index, it's what ,locate uses to find files :)
<adamantium> got it
<adamantium> i quite like option
<adamantium> the options... is this also on the website
<LnL> don't think anybody has made a webui for it
<LnL> and the package list on the website only searches by name
hyper_ch has quit [Read error: Connection reset by peer]
hyper_ch has joined #nixos
<gchristensen> nice, this nix-build of an openstack image on an openstack server is causing the server to kernel panic
erickomoto has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adamantium> so i grabbed this, for my session startup section of configuration.nix ${pkgs.xlibs.xsetroot}/bin/xsetroot -cursor_name left_ptr
<adamantium> how can I do the same for numlockx?
<adamantium> would it be: ${pkgs.xlibs.numlockx}/bin/numlockx ?
<adamantium> I don't know, how to verify it is under xlibs.foo or other ?
endformationage has quit [Quit: WeeChat 1.9.1]
<gchristensen> ,locate numlockx
<{^_^}> Found in packages: numlockx
<gchristensen> so just pkgs.numlockx
<adamantium> amazing.
<adamantium> TIL
tertle||eltret has quit [Quit: Connection closed for inactivity]
<elvishjerricco> Is it safe to use a `linuxPackages` from nixos-unstable when the rest of the system is on nixos-18.03?
<elvishjerricco> i.e. `-I nixpkgs=channel:nixos-18.03 -I nixpkgs-unstable=channel:nixos-unstable`, `boot.kernelPackages = (import <nixpkgs-unstable> {}).linuxPackages;`
<gchristensen> a fascinating question... maybe? but linux packages on 18.03are usually kept quite up to date
<adamantium> Hi, again, i'm looking for a .nix file that will build emacs with USE="athena Xaw3d -gtk -gtk3 -motif"
<adamantium> Does anybody on here have this?
<LnL> elvishjerricco: depends, if you use things like zfs which doesn't work with all kernel versions this would be a bad idea
<symphorien> something like emacs.override { withGTK3 = false; }
cruxeter is now known as cruxeternus
<elvishjerricco> LnL: What if I also got ZFS from unstable? :P
<symphorien> this is the goal of kernelPackages iirc: all packages in this scope are built against the right version of the kernel
<adamantium> symphorien: won't just saying dont use gtk still no be specific enough, what if i just get terminal only emacs? how can i also say use athena Xaw3d
<symphorien> no idea
<adamantium> k
<adamantium> the manual doesn't say either
<symphorien> you can use overrideAttrs to change the configureFlags
<adamantium> ahhh i dont know nix yet, i'll ask in #emacs maybe i will get lucky
johanot has quit [Quit: leaving]
<symphorien> but this becomes moderately involved, it may or may not be worth spending the time
<gchristensen> elvishjerricco: what are you looking for in unstable?
<adamantium> this should be trivial
<elvishjerricco> gchristensen: I'm having some issues with ZFS, so I wanna play around with updating just the kernel and ZFS in a virtual machine for a bit. But I can just use nixos-unstable straight up
<gchristensen> ah, probably a safer bet ...
<adamantium> yeah im kinda lookin at it, wondering how i go forward
<symphorien> in configuration.nix, instead of adding emacs to systemPackages, add (emacs.override {withGTK3=false; withGTK=false; withX=true;})
<adamantium> oh man, hope this is it. looks good to me. thanks i'll try
<{^_^}> [nixpkgs] @benley merged pull request #44886 → google-cloud-sdk: include docker-credential-gcloud script → https://git.io/fN5Y1
<{^_^}> [nixpkgs] @benley pushed to master « google-cloud-sdk: include docker-credential-gcloud script (#44886) »: https://git.io/fAeUe
Lisanna has quit [Quit: Lisanna]
<adamantium> with gtk2=false , but yeah, thanks !
sm0rux has quit [Remote host closed the connection]
arjen-jonathan has joined #nixos
<adamantium> symphorien: i really appreciate that, thanks again.
* adamantium can't stand gtk emacs
<gchristensen> what is the alternative?
<adamantium> gchristensen: (emacs.override {withGTK3=false; withGTK=false; withX=true;})
kyren has joined #nixos
<gchristensen> ok I'll try it :P
<adamantium> that should use the athena Xaw3d toolkit
<adamantium> and be more stable overall, including allowing to restart Xorg without crashing emacsclient.
<adamantium> emacs does not have a proper gtk implementation.
<ldlework> I use the normal graphical emacs for years and years
<ldlework> What is bad about it?
<adamantium> i just told you
<ldlework> You just said it doesn't have a proper implementation
<adamantium> emacsclient daemon crashes is the big one
<ldlework> Oh crashing when XOrg restarts?
<ldlework> I don't even know how to restart XOrg while keeping applciations running. What do you use that for?
<adamantium> the other big one is that on some systems, gtk emacs does not start about 1/10 if using startx with exec emacs
<ldlework> I see.
<ldlework> I forgot you use EXWM
<adamantium> mhmmm
<adamantium> now you see
<adamantium> :)
<ldlework> Yeah it probably needs to be leaner to work more reliably when used at a lower level
* ldlework makes up some understanding.
<ldlework> :P
tilpner has quit [Remote host closed the connection]
<{^_^}> Channel nixos-18.03 advanced to https://github.com/NixOS/nixpkgs/commit/a4e068ff9c8 (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-18.03)
<Denommus> where are the logs for nginx? Only in journalctl?
<gchristensen> looks pretty much the same to me, adamantium, except M-x snake renders properly
<adamantium> ldlework: you can kill your window manager. like pkill xmonad , or whatever. xorg will close, and you will drop back to console tty or your login manager. during this time, emacsclient if not built with gtk, will stay running, and you will not lose your work.
<ldlework> adamantium: very cool
<adamantium> gchristensen: yes, the alternative toolkit does a pretty good job imitating the gtk, especially if you disbale the toolkits and scrollbars, which most people do.
<ldlework> adamantium: so just replacing emacs with that override worked?
* gchristensen sticks to the gtk version
<adamantium> well, i mean to restart emacs and try now, but im in this conversation
<adamantium> brb
<ldlework> lol
<ldlework> gchristensen: why so
<ldlework> just curious
<gchristensen> I haven't seen a compelling reason to not use it
* ldlework nods.
<gchristensen> and it is pre-compiled :)
<ldlework> I was playing around with peg.el last night
<ldlework> Trying to see if I could make a basic lisp-like AST which I got working
<ldlework> I wonder how much harder it would be to create a PEG with just enough to properly indent nix files :)
<ldlework> Sometimes I really wish my CS background was stronger
<{^_^}> [nixpkgs] @demyanrogozhin opened pull request #45279 → particl-core: 0.16.1 -> 0.16.2 → https://git.io/fAeTO
<ldlework> gchristensen: do you edit Nix with emacs? I'm sure you've been annoyed by nix-mode.
<gchristensen> you're right
drakonis_ has quit [Quit: Leaving]
<ldlework> gchristensen: my idea is, use peg to parse the nix document into AST, where each node lists its "extents" in the buffer. Then search for the deepest node that contains the (point). Then find the line that the parent expression starts on and indent to that.
drakonis_ has joined #nixos
joebobjoe has joined #nixos
<gchristensen> whoa
<ldlework> i have never done anything like that before and am not sure it even makes sense as a plan
<ldlework> like i probably don't need to define a full peg for Nix, just describe its larger structures...
<gchristensen> I've never done anything with automatic indentation in an editor mode, but would likeit to work better
magnetophon has joined #nixos
* ldlework nods
<ldlework> yeah it is starting to drive me nuts tbh
<gchristensen> I sometimes go in to text-mode :|
<ldlework> Same
<ldlework> gchristensen: this is how far I am, lol https://gist.github.com/dustinlacewell/2154f18a1fcfea912aa71c1f07f0e80f
<ldlework> I can parse (foo ((biz) bar))
<ldlework> lol
<ldlework> the most painful thing is that functions don't have endings
<ldlework> its just "args: body"
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ldlework> which is extremely open ended
<ldlework> compared to like
fresheyeball has joined #nixos
<fresheyeball> hey out there
<ldlework> NAME = EXPR;
<ldlework> hi
<adamantium> ok i have a interesting predicament, i built the emacs with (emacs.override {withGTK3=false; withGTK2=false; withX=true;}) , but in my configuration.nix I have in my session startup ${pkgs.emacs}/bin/emacs , which is loading another gtk version !
<fresheyeball> so I am deploying a systemd service with nixops
<fresheyeball> and I need to do a migration
<ldlework> adamantium: assign that override to a name, and use the name in your session startup
<fresheyeball> is there a place in the module spec where I can do that cleanly?
<fresheyeball> preStart apparently does not run when the service is restarted by nixops
joebobjoe has quit [Ping timeout: 272 seconds]
<ldlework> adamantium: instead of "pkgs.emacs"
<adamantium> ldlework: i assumed that was the problem, how to assign it a name
<ldlework> just in a let
<cransom> nixops wouldn't be skipping preStart. is it doing a reload instead of a restart?
<ldlework> let myemacs = (emacs.override ...); in { session.startup = "${myemacs}/bin/emacs"
<ldlework> etc
<fresheyeball> kinda more of a systemd question I guess
<ldlework> gchristensen: lol indeed
<ldlework> gchristensen: there should be one issue "The indentation algo is a joke"
<{^_^}> [nixpkgs] @Gerschtli opened pull request #45281 → nixos/zsh: Adds enableGlobalCompInit option → https://git.io/fAekt
<adamantium> ldlework: did you just write two lines of code on one line of irc chat?
<adamantium> or does the let and in both go on the same line?
<ldlework> adamantium: Nix is an expression based languages
<gchristensen> ldlework: a bit harsh given actual people have put actual time in to it :)
<ldlework> lines don't have any meaning
<ldlework> gchristensen: i hear that, totally but it really will make you stunned if you look
<adamantium> im referring more the placement than line breaks
<ldlework> i had no idea people would even attempt indentation systems so adhoc like this
<ldlework> it has a strange way to just regex searching around, with counters to track... whatever it is tracking
<gchristensen> ldlework: I know, and yet it is what we have, so I think its sort of a help fix or don't, but don't be rude to the people who are trying to help.
<ldlework> expression depth I suppose
<ldlework> i don't mean to ridiculue the people or their effort
<LnL> I broke it a bit recently, but the vim-nix indentation also uses regexes and works for most expressions
<ldlework> but a silly algorithm is a silly algorithm
Denommus has quit [Remote host closed the connection]
<gchristensen> ldlework: please accept my previous messages as a _warning_. if you want to make it better, please do. Do not, however, be rude to the people who are trying to help.
<ldlework> that makes me not want to help at all
<gchristensen> go make something new if that is how you want to do it
<gchristensen> ldlework: Do not, however, be rude to the people who are trying to help.
<ldlework> i've just lost all interest
<adamantium> ldlework: lines 52 and 122 can you help me? i cant get it http://termbin.com/scxq
<adamantium>
tilpner has joined #nixos
<ldlework> gchristensen: "a joke" might have been too harsh but you just accomplished what you intended to avoid. it was a offhanded remark not deserving of a ban warning. absurd imo.
<ldlework> adamantium: let me copy this into gist so I can see line numbers :)
* adamantium TODO , install a gist program
<ldlework> hehe
<ldlework> adamantium: you have to put the let way up at the top
<ldlework> it prefixes the attrset
<adamantium> i dont understand
<ldlework> line 3
<ldlework> { turns into let myemacs = ... in {
barrucadu has quit [Quit: I think I've just successfully written a systemd unit to start irssi, let me see...]
<ldlework> adamantium: technically you could just keep the call where it is
<ldlework> and remove the let myemacs =
<ldlework> since you're evaluating the expression inside of environment.systemPackage iiuc
<gchristensen> ldlework: I don't joke about being grateful for people who are putting time and effort in to the Nix ecosystem.
<adamantium> ok it's on line 3, awkwardly placed, but cool
<ldlework> gchristensen: I expressed my unfettered gratefulness that nix-mode existed at all the other day
<adamantium> now how do i properly reference that variable in line 122?
<ldlework> Wherein I wrote a snippet to do format on auto save and shared it with everyon here
<ldlework> Principle is one thing, but moderating your own application of it might be wisdom you can use yourself.
erasmas has quit [Quit: leaving]
MrCoffee has joined #nixos
Lisanna has joined #nixos
<ldlework> adamantium: you just add "myemacs" to environment.systemPackages
<ldlework> adamantium: it is just a variable representing the expression you assigned to it
<ldlework> that's why I said you could ignore the variable "myemacs" all together and put the expression right in the environment.systemPackages
<ldlework> style choice
<cransom> there's also a ${pkgs.myemacs} reference down in displayManager.sessionCommands. that would change to just ${myemacs} if you use the top let
orivej has joined #nixos
<ldlework> Ah yes, if you are using it in multiple places you'll want it in the let
<adamantium> undefined variable 'emacs' at /etc/nixos/configuration.nix:3:16
<ldlework> did you find a gist tool
<ldlework> :)
<cransom> `pkgs.emacs.override`
<adamantium> no
<ldlework> adamantium: no need, cransom divined the answer :)
<cransom> because you aren't under the scope of `with pkgs;` any more, so you need to be specific.
<ldlework> mmm
<ldlework> smart
<adamantium> ahhh
<adamantium> i "get it"
<ldlework> heh story of my life
<adamantium> this is teaching me , how to nixos ... the hard way. i'm about to jump in and begin learning nix from some tutorials and guides
<adamantium> thanks for your time guys. lets restart this and see now if it does what i need.
<ldlework> good luck
<adamantium> GNU Emacs 25.3.1 (x86_64-pc-linux-gnu, X toolkit, Xaw scroll bars)
<adamantium> thanks
<ldlework> to the authors of Nix-mode, if they're in here, sorry I was a little too critical of your implementation. I was just trying to illustrate that I thought it was a surprising approach not to hurt anyone's feelings. Sorry! Really.
<ldlework> adamantium: awesome
<ldlework> adamantium: shoot us a screenshot :)
<adamantium> ldlework: dude yeah, this rocks. hah okay
<adamantium> guess i need scrot first.
<ldlework> try imgur-screenshot
grp has quit [Quit: box shutting down...]
<ldlework> it uses scrot
<ldlework> but automatically uploads to imgur
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
magnetophon has quit [Remote host closed the connection]
<ldlework> cool
<adamantium> i'm smiling
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/07765856969 (from 35 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<infinisil> Over 800 PRs, phew
<infinisil> We had it down to almost 700 a week ago
<infinisil> r-ryantm probably running again :)
<pie_> haha
oida has quit [Ping timeout: 250 seconds]
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/6f8fe25ccfb (from 31 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
arjen-jonathan has quit [Ping timeout: 256 seconds]
aanderse has joined #nixos
<aanderse> infinisil: thanks for your code on that request :)
<infinisil> :)
<aanderse> yeah my functional programming skills are non existant
<aanderse> i hope to improve that at least slightly
<{^_^}> [nixpkgs] @Infinisil merged pull request #45244 → closurecompiler: 20180716 -> 20180805 → https://git.io/fNj3z
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fAeqt
goibhniu has joined #nixos
fenedor has quit [Ping timeout: 272 seconds]
<gchristensen> LnL: I wonder if we could lift the regexes from vim-nix and drop them in to nix-mode
<infinisil> Using regex for syntax highlighting hurts my heart
<gchristensen> me too. so common, though
<LnL> infinisil: same here, but the functionality available is so limited you kind of have to
mayhewluke has quit [Ping timeout: 240 seconds]
<infinisil> LnL: Your vim-nix regexes are fortunately enough most of the time :)
<{^_^}> [nixpkgs] @Infinisil merged pull request #45138 → spoofer: 1.3.2 -> 1.3.3 → https://git.io/fNhOh
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fAeq7
* gchristensen switches from emacs to vim for vim-nix
<{^_^}> [nixpkgs] @Infinisil closed pull request #45125 → vulkan-headers: 1.1.77.0 -> 1.1.82.0 → https://git.io/fNhTq
<LnL> yeah, but every time I try to make it better a a bunch of stuff breaks :/
<LnL> luckily I have some basic test coverage, otherwise it would be madness
<{^_^}> [nixpkgs] @Infinisil closed pull request #45124 → vulkan-tools: 1.1.77.0 -> 1.1.82.0 → https://git.io/fNhUS
<gchristensen> uh oh, am I going to actually do this?
<LnL> :p
fenedor has joined #nixos
<gchristensen> how about just nixfmt on every keypress :|
<gchristensen> too many projects to start looking in to nix-mode :)
<infinisil> gchristensen: Just don't open hackage-packages.nix..
<gchristensen> are you _trying_ to nerd-snipe me? :P
sm0rux has joined #nixos
<infinisil> Heh, it's just the biggest file in nixpkgs, vim-nix even struggles with it, and if you nixfmt on every keypress..
<gchristensen> aah
<johnw> you know, the pretty-printer in hnix has gotten much better lately... ;)
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/9c32d185d12 (from 27 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
* johnw does a 1000 yard snipe
oida has joined #nixos
* gchristensen has left #nixos
<infinisil> johnw: Oh neat! Do you have a demo?
sm0rux has quit [Remote host closed the connection]
<johnw> umm. not prepared
<johnw> just build hnix and run it on any nix file
<gchristensen> johnw: were you in NH a few weeks ago?
<LnL> yeah, that's because of syn sync fromstart
<johnw> we can parse every Nix file I know of, and we have tests that verify that the pretty printer is a lossless round trip (modulo whitespace)
<johnw> gchristensen: I was!
<gchristensen> johnw: I was <10mi away and didn't know there was a hackathon :o
<LnL> infinisil: all-packages is a giant attrset so you need to go all the way to the front or end to figure out what indentation is correct :/
countingsort has joined #nixos
endformationage has joined #nixos
<{^_^}> [nixpkgs] @markuskowa opened pull request #45282 → Add licenses → https://git.io/fAemS
<clever> LnL: all-packages.nix is also indented wrong, there is a comment near the start saying so
<LnL> huh
<infinisil> clever: Can't confirm
fenedor has quit [Ping timeout: 240 seconds]
sm0rux has joined #nixos
<clever> i think that set was moved into a let block or funtion of some kind, and that would have required adding 2 spaces to every single line
<clever> which would have caused merge conflicts for every single open pr
<LnL> don't see any comment or something I'd consider wrong indentation
<clever> *looks*
<infinisil> johnw: I guess that's a bit of a problem with hnix in general: People don't really know what it does! A nice readme with some examples would help a lot
<LnL> (don't quote me on that, I did not read the entire file :p)
<clever> LnL: yeah...., there is line 150 lines missing from the start....
<clever> it must have been cleaned up
<clever> let me check 16.09, lol
<infinisil> clever-rebuild switch --upgrade
<gchristensen> I remember that, clever
<countingsort> i probably just read over it 20 times in a row, but how would i tell nix to install packages for my user in $HOME/.config/nixpkg/config.nix?
graphene has quit [Remote host closed the connection]
<clever> found it, all the way back in 16.03!
<clever> somebody fixed it and made me into a lier! :P
<infinisil> countingsort: You can't
<infinisil> countingsort: That's not what config.nix is for
<countingsort> infinisil: so its imperative configuration for users only?
<infinisil> ,home-manager countingsort
<{^_^}> countingsort: home-manager allows you to manage your per-user configuration similarly to NixOS' configuration.nix: https://nixos.wiki/wiki/Home_Manager
<infinisil> ,nix-env-r countingsort
<{^_^}> countingsort: A simple way to install all your packages declaratively is to use `nix-env -ir default.nix` with the file of the form `with import <nixpkgs> {}; { inherit hello; }` to install hello. Note that with the -r switch this removes all your previously installed packages
<clever> countingsort: you can use config.nix to define a custom package, that contains many other packages, then nix-env it, possible with -r
graphene has joined #nixos
<ldlework> gchristensen: johnw so is the answer to just shell the file out to hnix then?
fendoer has quit [Read error: Connection reset by peer]
<gchristensen> probably not -- we don't want to just start reformatting every file in nixpkgs
<countingsort> infinisil, clever: thanks a bunch
<LnL> gchristensen: hmm is nixfmt actually maintained, or am I looking at the wrong one?
<gchristensen> LnL: I don't think it is :)
<ldlework> gchristensen: well it can be setup in the editor however one wishes, based on TAB, save, M-x, etc
bennofs has quit [Read error: Connection reset by peer]
<gchristensen> oh then sure! just don't want to start sending big PRs with reformats
<ldlework> error: attribute 'hnix' in selection path 'nixos.hnix' not found
<ldlework> doh
<cransom> (haskellPackages.hnix?)
<ldlework> that worked
<ldlework> nice
<nek0> hi folks, I'm having a problem with nix-shell. I get errors, that curl can't resolve tarballs.nixos.org and other vital hosts, which are obviously still online. Can anybody help me?
__monty__ has quit [Quit: leaving]
<clever> nek0: can you ping those hosts from the same machine?
<nek0> yes
<clever> nek0: what is the contents of /etc/resolv.conf ?
fresheyeball has quit [Remote host closed the connection]
<cransom> if you are curling inside a build script, the network isn't going to be available
<cransom> nek0: pastebin the relevant bits of your shell.nix?
<clever> nek0: should work, does it fail on the same url every time?
<nek0> clever: it fails on the same urls, yes.
mayhewluke has joined #nixos
<ldlework> johnw: some strange behavior with hnix, i only get half the file printed -- its almost like my shell is evaluating the output of the pretty print or something
<ldlework> nm
fresheyeball has joined #nixos
<ldlework> gchristensen: here is hnix vs nix-mode with some fixes: https://gist.github.com/dustinlacewell/a48fcaeedaee1f31efaa410e92a54063
<fresheyeball> I am still tracking down this systemd thing if anyone is knowledgeable I will just ask again
<gchristensen> hmm kinda prefer the first
<ldlework> yeah i'm not sure hnix is really suitable for this purpose just yet
<ldlework> probably just a matter of output styling
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<fresheyeball> nixops will restart a systemd service, I just need to hook into that
<ldlework> retaining comments too
<fresheyeball> so I can run migrations if needed
<cransom> are there scripts in thos ederivations that are calling curl themselves?
aanderse has quit [Ping timeout: 260 seconds]
<nek0> cransom: it has specifically something to do with 'nanovgNeko'
<nek0> cransom: It fails to fetch the underlying nanovg package from hackage.
<fresheyeball> what does execreload do normally?
<fresheyeball> my process does appear to restart
<fresheyeball> how?
<monad_cat> Hey, I'm trying to install enpass. It has a nix file in nixpkgs (https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/security/enpass/default.nix) but I can't figure out what's the package name to install it (`nix-env -qaP enpass` gives nothing)
<gchristensen> ,unfree
<{^_^}> You cannot install your unfree software? See https://nixos.wiki/wiki/FAQ/unfree
<fresheyeball> monad_cat: nix-env -iA nixos.enpass
<fresheyeball> found via `nix search`
<monad_cat> oh, so `nix-env -qaP` doesn't really search through available packages?
<gchristensen> it does, but,
<gchristensen> ,unfree monad_cat
<{^_^}> monad_cat: You cannot install your unfree software? See https://nixos.wiki/wiki/FAQ/unfree
<monad_cat> I have unfree enabled, just installed enpass by adding it to packages in `configuration.nix`
<monad_cat> weird
<gchristensen> not weird
<gchristensen> "You won't be able to install or search for an unfree package as a user, unless you explicitly enable it in ~/.config/nixpkgs/config.nix (the file and folder may need to be created): "
<gchristensen> later, "Note that this alone will not allow you to search for or install packages with nix-env. See the previous section. "
<monad_cat> ah, thanks gchristensen, that helped indeed :)
<monad_cat> what about this one? https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/protonmail-bridge/default.nix Search doesn't help, is there a mapping between default.nix files and install names somewhere that I can check with?
sorbet has joined #nixos
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/93147d737d2 (from 15 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
sorbet has quit [Quit: WeeChat 2.0]
simukis has quit [Ping timeout: 255 seconds]
<{^_^}> [nixpkgs] @orivej opened pull request #45283 → libmsgpack: 2.1.5 -> 3.0.1 → https://git.io/fAe3O
fenedor has joined #nixos
sorbet has joined #nixos
jluttine has quit [Ping timeout: 265 seconds]
<gchristensen> ah that is a very new package. are you on nixos 18.03?
jluttine has joined #nixos
init_6 has joined #nixos
<sorbet> So I've got a python2 entry at the beginning of my PATH that overrides the python2 in my profile, any tips on determining what aspect of my configuration is resulting in that?
<sorbet> Looking through my declarative configs, I don't have anything about python2, so it might be a dependency of something else... Or would an explicit path to the nix store entry indicate it was from nix-env run imperatively (and not NixOS)?
fenedor has quit [Ping timeout: 244 seconds]
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/4af590e1350 (from 15 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
rprije has joined #nixos