gchristensen changed the topic of #nixos to: 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://botbot.me/freenode/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64
obadz- has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
obadz has quit [Ping timeout: 248 seconds]
obadz- is now known as obadz
bind has quit [Ping timeout: 248 seconds]
pkx2 has joined #nixos
BlessJah has quit [Ping timeout: 265 seconds]
boi has joined #nixos
bind has joined #nixos
<boi> helloooo
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] volth opened pull request #35155: xrdp: 0.9.3 -> 0.9.5 [CVE-2017-16927] (master...patch-91) https://git.io/vA8Xj
NixOS_GitHub has left #nixos [#nixos]
pkx2 has quit [Remote host closed the connection]
<boi> I've run into an issue, git remote add channels git://github.com/NixOS/nixpkgs-channels.git fails with "Not a git repository (or any of the parent directories): .git
<gchristensen> Why are you running that command
sahabi has quit [Remote host closed the connection]
<boi> the README on https://github.com/NixOS/nixpkgs-channels says to run that command to recieve channel information via git
thc202 has quit [Ping timeout: 240 seconds]
<bhipple[m]> Sounds like he wants to ditch the channel mechanism for a git-pull based mechanism, as in https://matrix.ai/2017/03/13/intro-to-nix-channels-and-reproducible-nixos-environment/
<boi> And I'm curious what this it's talking about so I'm trying it
<boi> also I'm clearly clueless on how the system works because I notice packages that are on the git repo but not available by the typical nix-env -iA and can't figure out how to acquire them
dan_b has quit [Ping timeout: 248 seconds]
<bhipple[m]> Sounds like you're new to nix. I'd give the manual a brief skim, as it's very readable and quite informative. These are also fantastic reads: https://nixos.org/nixos/nix-pills/pr01.html
<bhipple[m]> But the basic idea is that the nix expression language just takes a bunch of pkg expressions and lazily evaluates them, as you specify in nix-env -iA foo
<bhipple[m]> Those pkg expressions can come from anywhere, really -- a git clone on a filesystem, a tarball in your "channel", etc.
BlessJah has joined #nixos
<bhipple[m]> The channel mechanism provides a tarball of https://github.com/nixos/nixpkgs that gets updated once the binary cache (hydra) has built the expressions
dan_b has joined #nixos
<boi> I know that much I just can't seem to put together where nix-env searches for the expressions and how I can add to the list of visible ones
<boi> besides the channel system
<bhipple[m]> Yeah I struggled with that quite a bit when I first started, too
<bhipple[m]> Try: git clone https://github.com/nixos/nixpkgs to some dir, say src/nixpkgs. Then you can export NIX_PATH=src=$HOME/src/nixpkgs
<bhipple[m]> and then $ nix-env --file '<src>' -iA foo
<bhipple[m]> to use the foo pkg out of the cloned nixpkgs repo that you setup (note it doesn't have to be nixpkgs; it can be any valid nix expression dir or file
<boi> Ill try, thank you
<bhipple[m]> You can also use $ nix-repl '<src>' which will give you tab completion on packages that you might be searching for
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vA81X
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 2901359 Shea Levy: Fix typo
<dtz> is QEMU broken on master? :(
<boi> let's hope not
<dtz> haha fair enough
<dtz> i'd try to better answer that myself but bisecting two other problems atm lol
fendor has quit [Quit: Leaving]
<dtz> as of 2d ago, looks like "no", we'll see...
<boi> oh, also, has anyone tried using chicken scheme with nixos?
KABA has joined #nixos
KABA has quit [Client Quit]
<tertle||eltret> what up guys
<tertle||eltret> does haskell come with Nix?
<simpson> tertle||eltret: "Haskell" could be several things, but I don't think any of them ever come with Nix.
<tertle||eltret> lol ok
aarvar has joined #nixos
<simpson> Usually if you want a Haskell environment with Nix, you'd start with Nix and nixpkgs, and then get a Haskell environment from that.
<bhipple[m]> Nix has great support for haskell pkgs, including a large number of GHCs available and binary caches for libraries in stackage LTSs
<tertle||eltret> i think i want to try learning to program again
<tertle||eltret> i always like haskell but the math and monads are wierd
<simpson> Then don't go with Haskell. Try something else. Python is popular and widely-available, with a gentle learning curve and lots of good docs.
<tertle||eltret> ive used hat too
<tertle||eltret> haskell is morei nteresting to mr
<tertle||eltret> me
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dotlambda opened pull request #35159: pythonPackages.faulthandler: fix tests (master...faulthandler) https://git.io/vA8Mo
NixOS_GitHub has left #nixos [#nixos]
<bhipple[m]> There's a great ebook called Haskell From First Principles that teaches Haskell, and doesn't assume extensive coding experience
<boi> Haskell is cool
<boi> its not as practical but I like Idris more
<{^_^}> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/23e418f495a (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
dan_b has quit [Ping timeout: 256 seconds]
jtojnar has quit [Quit: jtojnar]
<tertle||eltret> i need to learn some prorammning so I can move up in my feild
<tertle||eltret> what is the best language for working in telecom NOC?
<simpson> Hm. Either it's one specific language, or it's a mix of a half-dozen, and you'll only find out by talking to your coworkers.
<tertle||eltret> well, the automation team uses C++ i think cuz they are using Resolve
<boi> c++ is a beast of a language
<simpson> You may want to learn how to program before learning C++.
<boi> starting with c is a possibility tho
<simpson> Anything is possible~
<tertle||eltret> yeah i have K&R from when I was going to be a kernel dev lol
<simpson> Did you actually learn how to hack kernel?
<tertle||eltret> this was pushing 8 years ago though
<tertle||eltret> not at all
<tertle||eltret> but I patched it a few time
<boi> K&R is a nice book
ottidmes has quit [Ping timeout: 260 seconds]
<tertle||eltret> i just need to unplug from internet and work through some problems probably
jtojnar has joined #nixos
<tertle||eltret> i tend to give up and look for aswer too quickly
<boi> hard to unplug though, because internet is such a good resource for simple shit
<simpson> There's no single simple answer to "How do I learn a new language?" You must study. You must read code. You must write code.
<tertle||eltret> true
<boi> once you dream in it, you know you've gotten somewhere
niklob has joined #nixos
<simpson> Once you've learned enough languages to not have problems learning new languages, you'll have gotten somewhere.
<boi> eventually learning new languages becomes quite fast
<dtz> fwiw my QEMU build error I mentioned here: https://github.com/NixOS/nixpkgs/commit/ecf4825f325298e3b78665e7e6295c039dfe969f#commitcomment-27643891 anyone else seeing that? :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] yegortimoshenko opened pull request #35160: clojure: 1.9.0.273 -> 1.9.0.329 (master...20180219.005905/clojure-1.9.0.329) https://git.io/vA8DZ
NixOS_GitHub has left #nixos [#nixos]
<tertle||eltret> maybe i should just use the stack overflow method and make something
<tertle||eltret> a reddit crawler
<tertle||eltret> since reddit urls are simple enough
kelleyNif has joined #nixos
kelleyNif has quit [Quit: Leaving.]
kelleyNif has joined #nixos
LnL has quit [Ping timeout: 255 seconds]
LnL has joined #nixos
coot has quit [Ping timeout: 276 seconds]
leat has quit [Ping timeout: 256 seconds]
athan has quit [Remote host closed the connection]
<palo> I like that nixos has so much functions (like fetchpatch fetchurl) but where do I find a nice oferview and description of ALL of theses functions? like man configuration.nix
nuncanada has quit [Read error: Connection reset by peer]
<tokudan[m]> palo: that's iirc in nixpkgs manual
asuryawanshi has joined #nixos
<tokudan[m]> I'm trying to run a debian in a container through systemd-nspawn. problem is that i get an error that I cannot figure out when running the following commands: debootstrap stretch debian && systemd-nspawn --directory debian -b
<tokudan[m]> error message is: Cannot be run in a chroot() environment.
<bhipple[m]> Is there a way to specify to nix-env, nix-shell, etc. to download all of the build-time and src dependency pkgs even when getting from cache.nixos.org?
<tokudan[m]> bhipple: i believe you can set a nix option to disable the use of caches, causing nix to build everything on your machine, have a look at the man page for nix.conf
<tokudan[m]> bhipple: i think you can set nix options when running nix-build and probably others as well
<bhipple[m]> Indeed, I've found that, but what I'm looking for is to use the caches but ALSO download everything in the transitive closure
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] volth opened pull request #35161: [WIP] nixos/nat: allow to connect to forwardPort from the host itself (master...patch-92) https://git.io/vA8y9
NixOS_GitHub has left #nixos [#nixos]
asuryawanshi has quit [Ping timeout: 248 seconds]
<dgpratt> another easy noob question: how do I add something to $PATH permanently for the current user? I tried adding e.g. "export PATH=$PATH:~/.local/bin" to ~/.profile but that didn't seem to work
<gchristensen> what are you putting in to ~/.local/bin and why?
<bhipple[m]> I have a bastion host mirroring cache.nixos.org, and I'd like it to slurp everything greedily (including build inputs and src pkgs) so that firewalled off machines communicating with my internal mirror can get what they need
<tokudan[m]> i don't think so, as it's not required anymore as soon as you use a cache. similar to build artifacts getting removed by the garbage collection, they simply are not in the dependency tree anymore
<palo> tokudan[m]: yeah seems there are a lot of functions documented. but of course I can't verify if thats all :D
<palo> but thanks for now
<tokudan[m]> palo: well, they *are* all documented in the code ;)
kelleyNif has quit [Quit: Leaving.]
<samueldr> dgpratt: .profile isn't by default read by bash on all shell init; it depends whether there are other files which take precedence for bash and if it's a login shell or not
<tokudan[m]> palo: maybe try nix-repl '<nixpkgs>' and see what tab completion gives you?
kelleyNif has joined #nixos
<tokudan[m]> palo: something like builtins.<tab> should give you a list
<dgpratt> samueldr: ok, thanks; what if I wanted to alter $PATH for the entire user's session? i.e. from login?
<samueldr> e.g. bashrc will be used for interactive shells, and .bash_profile will have precendence over .profile
leat has joined #nixos
<samueldr> then, yes, as you seem to understand
ryanartecona has joined #nixos
<samueldr> give me a sec
<palo> tokudan[m]: nice good Idea
niklob has quit [Ping timeout: 256 seconds]
<samueldr> I'm not sure ALL DM follow the convention, dgpratt, but AFAIUI sddm sources .xsessionrc on nixos
<gchristensen> bhipple[m]: maybe check out what mirro-tarballs does
<dgpratt> ok, thanks again samueldr
<samueldr> dgpratt: if you need inspiration https://gist.github.com/samueldr/911401d1005c581599cec4e32dabf7b2
<samueldr> that's what I'm using to make .profile work "everywhere"
kelleyNif has quit [Client Quit]
<samueldr> (note that this is not nixos-specific)
<dgpratt> who doesn't need inspiration? :) thanks
<samueldr> oh, look, the shebangs aren't even right for nixos!
<samueldr> (though it's not an issue for shell init)
<bhipple[m]> gchristensen: ty
<samueldr> dgpratt: I'm not 100% sure this is the best way to proceed, but I have been using this for years
<samueldr> oh, and finally, if you're compiling stuff and adding it to ~/.local/bin, you may prefer to make derivations and put them in the store; using nix-env to install them ;)
fragamus has quit [Ping timeout: 252 seconds]
kelleyNif has joined #nixos
<leons> I'm currently trying to package a rust application, but the source code is contained in a subdirectory inside the git repo.
<leons> I tried switching to the subdirectory using the "sourceRoot" but I'm getting "failed to open - permission denied (os error 13)" during the build.
<leons> Is there any documentation on the "sourceRoot" option?
<dgpratt> gchristensen: this is probably more than you care to know, but since you asked :) I have "hie" ("Haskell IDE Engine") in there for some reason, can't remember the details atm; in any case, my more recent experiments mean that I'm trying to find a home for such a script file as this https://github.com/haskell/haskell-ide-engine/issues/439#issuecomment-359801662 -- I don't think it matters too much where it ends up, just
<dgpratt> so long as its on the PATH
smichel17 has quit [Ping timeout: 260 seconds]
zearen has quit [Ping timeout: 240 seconds]
<dgpratt> samueldr: (or anyone) supposing I did want to make my own derivation(s) and nix-env them or whatever, is an "overlay" a good way to manage them? one of these tabs has something about overlays...
zearen has joined #nixos
<samueldr> sure, it's the "new" way to add something to the packages
<samueldr> but if it's a simple script, let me check something, there may be an even easier way (though it would be installed to the system and not the user)
<bhipple[m]> You don't have to structure it as an "overlay"; if you're adding pkgs, you can just write a foo.nix file like any other and build/install it
<samueldr> ^ or even that
<bhipple[m]> That's the simplest way to get started
<samueldr> hmm, can't find what I had in mind
<dgpratt> so overlays are more for altering pre-defined packages?
<bhipple[m]> But if you expect to make a LOT of never-to-be-contributed-upstream packages, you can start your own src tree structurally similar to nixpkgs: https://github.com/mozilla/nixpkgs-mozilla
d4g has joined #nixos
<samueldr> in a way, overlays can be used to "bind mount" into the nixpkgs attrset
<bhipple[m]> Yeah, the mozilla tree is technically an overlay, but conceptually the idea is that it's just more nix expressions and you import nixpkgs to avoid re-defining the universe
<bhipple[m]> overlays help when you want to reach in and change something like boost, but then re-use all the othe rpkgs that depend on boost and have them use your modifiedBoost
<bhipple[m]> but if you just want to use dependencies off the shelf you don't have to worry about all of that yet
<samueldr> while not necessarily the best example, my config files have overlays, look for */overlay.nix for the actual overlays https://gitlab.com/samueldr/nixos-configuration/tree/master/overlays
ryanartecona has quit [Quit: ryanartecona]
<shlevy> bgamari: Am I right in thinking you've done cross-compilation of NixOS itself?
<samueldr> (I have hacky unfinished stuff and locally tracked backports or hacks in there)
d4g_ has quit [Ping timeout: 260 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] teto opened pull request #35162: pythonPackages.cmd2: 0.7.7 -> 0.8.0 (master...cmd2) https://git.io/vA89k
NixOS_GitHub has left #nixos [#nixos]
obadz has quit [Ping timeout: 260 seconds]
obadz has joined #nixos
cinimod_ has quit [Quit: Connection closed for inactivity]
<dgpratt> I guess I just need to muddle through and sort this stuff out, but sometimes when my mental stack is multiple-levels high and I can't remember why I'm even trying to do what I'm trying to do, it's hard to maintain focus and motivation :P
<PyroLagus> does fetchFromGithub get the .zip or .tar.gz?
<samueldr> welcome to my life a year ago :D it only gets worse/better/awesome
<samueldr> PyroLagus: .tar.gz from memory, but it hashes the contents, not the archive
<PyroLagus> ahhh okay
<dgpratt> case in point, I think I may want to use this https://github.com/michalrus/dotfiles/blob/3a827a3cdb1cb4df39579ffefc550492666ccac0/nixos-config/overlays/pkgs/haskell-ide-engine.nix#L14-L16 in the near future, so I gotta figure out where to put that -- but then what if I want to update the revision? pretty sure I saw a utility for getting those details somewhere, but I'm pretty sure that utility renders JSON -- I know
<dgpratt> there's a method to read JSON into a Nix expression, so it seems like I should figure that out, too, and then I need to remember how to actually use it...I drive myself crazy sometimes
<samueldr> > else ({ url = "${baseUrl}/archive/${rev}.tar.gz"; } // privateAttrs)
<samueldr> dgpratt: in that particular example, the file itself is an overlay, multiple overlays can be defined in one directory
mbrgm has quit [Ping timeout: 240 seconds]
<samueldr> e.g. for your user in ~/.config/nixpkgs/overlays/ (as per chapter 11.1)
mbrgm has joined #nixos
<samueldr> (the file is an overlay since it is a function with two parameters, self and super (line #1))
<dgpratt> samueldr: well you just answered the first question (where to put it) thanks!
kebolio has left #nixos [#nixos]
<samueldr> if you were to install it globally, it could be `nixpkgs.overlays = [ (import ./path/to/that/file.nix) ]` https://nixos.org/nixos/options.html#nixpkgs.overlay
EuAndreh[m] has joined #nixos
<PyroLagus> oh right. can't just use sha256sum on binaries. i could always just enter a wrong checksum and compile, but that's always so hacky >_>
<PyroLagus> eh *directories
<samueldr> it may look hacky, but even the pros do it!
<PyroLagus> how come nobody has written a tool for that yet?
<simpson> More effort to write the tool than to do it by hand, I imagine.
<samueldr> dunno, it may look easy from a 1000ft view, but may have intricacies
justan0theruser has joined #nixos
<PyroLagus> hm
contrapumpkin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<samueldr> (there is the nix-prefetch-url tool, but I don't know if it supports fetchfromgithub and all the other specific helpers)
<samueldr> from its manpage, it should work with fetchfromgithub when using --unpack
justanotheruser has quit [Ping timeout: 256 seconds]
<infinisil> it indeed does
<samueldr> so, uh, someone did write a tool for that
<PyroLagus> ah, well then :D
asuryawanshi has joined #nixos
pkill9 has quit [Ping timeout: 252 seconds]
<infinisil> there's also nix-prefetch-git which can take an url like https://github.com/foo/bar as input, and fetches master
<samueldr> infinisil: is that in nixUnstable?
<infinisil> and it has some more stuff, i haven't looked at it closely
<infinisil> samueldr: it's not part of nix
<samueldr> explains why I don't have it
<infinisil> it's in nixpkgs (directly), so nix-shell -p nix-prefetch-git
<samueldr> ah, right
marusich has quit [Ping timeout: 248 seconds]
owickstrom has quit [Remote host closed the connection]
asuryawanshi has quit [Ping timeout: 240 seconds]
owickstrom has joined #nixos
kelleyNif has quit [Quit: Leaving.]
<palo> I can't find a command I can use like `environment.etc."some/file".source = fetchurl { ... };` maybe somebody fixed that already ?
marusich has joined #nixos
kelleyNif has joined #nixos
kelleyNif has quit [Client Quit]
orivej has quit [Ping timeout: 265 seconds]
aarvar has quit [Quit: Leaving.]
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
aarvar has joined #nixos
marusich has quit [Ping timeout: 248 seconds]
marusich has joined #nixos
<palo> I thought of a function like `fetchText` but this does not exist so far I see
<palo> I guess I have to write one my own.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vA8Hz
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 2f310cf Shea Levy: qemu: Fix statfs flag....
zearen has quit [Ping timeout: 256 seconds]
<PyroLagus> hm. maybe i should just open an issue for godot 3
nuncanada has joined #nixos
justan0theruser has quit [Quit: WeeChat 1.9.1]
justanotheruser has joined #nixos
mekeor has joined #nixos
<Shados> palo: what's wrong with fetchurl?
<mekeor> firefox doesn't output sound while vlc does. any idea why?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joshuaks opened pull request #35163: mackup: init at 0.8.16 (master...mackup-0.8.16-init) https://git.io/vA8Qf
NixOS_GitHub has left #nixos [#nixos]
zearen has joined #nixos
astrofog has quit [Quit: Quite]
<mekeor> actually, flash videos inside firefox work aswell. but html5 doesn't. weird.
<palo> Shados: fetchurl does not work with `environment.etc."foo".source`
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pjan opened pull request #35165: Adds vim-rooter plugin (master...vim-rooter) https://git.io/vA8Qa
NixOS_GitHub has left #nixos [#nixos]
hamishmack has quit [Quit: hamishmack]
nflores has joined #nixos
ThatOtherGuy has quit [Read error: Connection reset by peer]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 2 new commits to master: https://git.io/vA87G
<NixOS_GitHub> nixpkgs/master b34274d Tuomas Tynkkynen: git: 2.16.1 -> 2.16.2
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master a78a1d6 Tuomas Tynkkynen: less: 529 -> 530
nuncanada has quit [Quit: Leaving]
ThatOtherGuy has joined #nixos
fragamus has joined #nixos
user_____ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill closed pull request #35147: git: 2.16.1 -> 2.16.2 (staging...update/git-2.16.2) https://git.io/vA8aT
NixOS_GitHub has left #nixos [#nixos]
user_____ is now known as fuser
fragamus has quit [Client Quit]
fuser has quit [Ping timeout: 268 seconds]
RoboFoot has joined #nixos
<RoboFoot> I'm affected by the issue fixed in https://github.com/NixOS/nixops/pull/826 . How do I get this fix? I only installed nix(ops) today as instructed by https://nixos.org/nix/ but it still has this issue.
* jack[m] thinks that being able to specify a network configuration with a network diagram would be super awesome.
hamishmack has joined #nixos
RoboFoot has quit [Ping timeout: 256 seconds]
schoppenhauer has quit [Ping timeout: 276 seconds]
schoppenhauer has joined #nixos
<bhipple[m]> Is it possible to use nix-shell with -A instead of -p but still get it to install the pkg into the shell?
<bhipple[m]> when I use -A it just builds the deps but not the pkg
<bhipple[m]> but -p takes a long time to scan for the pkg!
RoboFoot has joined #nixos
RoboFoot has quit [Client Quit]
zearen has quit [Ping timeout: 240 seconds]
asuryawanshi has joined #nixos
<nflores> I'm trying to use the following curlOpts with fetchur: curlOpts = lib.escapeShellArgs ["-L -H Accept: application/octet-stream"]; but I keep seeing errors like curl: (6) Could not resolve host: '-L. and curl: (6) Could not resolve host: application. Any thoughts on what I'm doing wrong?
<nflores> fetchurl*
asuryawanshi has quit [Ping timeout: 256 seconds]
<nflores> this throws similar errors: curlOpts = lib.escapeShellArgs ["-L" "-H Accept: application/octet-stream"];
<nflores> this as well: curlOpts = lib.escapeShellArgs ["-L" "-H" "Accept: application/octet-stream"];
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #35167: cc-wrapper tests: 4 and 5 regardless of default (master...fix/clang-libcxx-4-5-tests) https://git.io/vA85N
NixOS_GitHub has left #nixos [#nixos]
davidak has joined #nixos
marusich has quit [Ping timeout: 265 seconds]
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/c64639b54ca (from 11 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
omger has joined #nixos
nflores_ has joined #nixos
nflores has quit [Ping timeout: 260 seconds]
davidak has quit [Ping timeout: 256 seconds]
robstr has joined #nixos
robstr has quit [Ping timeout: 248 seconds]
Lisanna has joined #nixos
<Lisanna> how do I do --show-trace in nix-repl?
Tehnix has quit [Remote host closed the connection]
Tehnix has joined #nixos
mekeor has quit [Remote host closed the connection]
Rusty1 has quit [Quit: Konversation terminated!]
katyucha has joined #nixos
Tehnix has quit [Remote host closed the connection]
Tehnix3 has joined #nixos
robstr has joined #nixos
dalaing has joined #nixos
<dalaing> I'm trying to downgrade my Hydra instance as per https://github.com/NixOS/hydra/issues/537 and I'm struggling a bit
<dalaing> I've tried using packageOverrides to change things back to https://github.com/NixOS/nixpkgs/commit/286faa28341e53a8152e5170f8c57b26ea66378b#diff-e0b71bb9846faad5d54204e2ea5db7e6, but it seems to try to build that _and_ a more recent version of Hydra (which doesn't compile)
ertes has quit [Ping timeout: 240 seconds]
Guanin has quit [Ping timeout: 256 seconds]
katyucha has quit [Ping timeout: 248 seconds]
Guanin has joined #nixos
omger has quit [Ping timeout: 276 seconds]
<dalaing> ah, whoops, I didn't update the name - so I'm trying to build an older version of Hydra and it's failing to compile
<Ralith> any other skype users constantly getting signed out?
<fearlessKim[m]> Ralith: skype is hopeless, nothing works anymore, appear.in works great if you can use it
<Ralith> skype works perfectly fine aside from the minor inconvenience of being signed out every time I restart it
<Havvy> o.0 Why are there so many PRs on nixpkgs?
<fearlessKim[m]> (as for skype, I don't mean on nixos specifically but in general, even the windows sucks)
reinzelmann has joined #nixos
<fearlessKim[m]> Ralith: are you connected from 2 different devices ? It creates problem for me
<Ralith> nope.
<Ralith> Havvy: because it is big and needs constant maintenance?
<Havvy> Ralith: What about all the PRs that haven't been touched for over a year?
<Ralith> constant maintenance is hard
ma27 has joined #nixos
nflores_ has quit [Ping timeout: 260 seconds]
<Havvy> What's currently blocking https://github.com/NixOS/nixpkgs/pull/35030 ?
<dalaing> hmm, so I can't easily wind back Hydra to an older version, because it depends on whatever version of nixUnstable is in the tree at the time - I guess it's time to put on my code archaeology hat...
<dalaing> nevermind, that looks like it'll be trying to fill a bottomless pit
MercurialAlchemi has joined #nixos
zzamboni has joined #nixos
ma27 has quit [Ping timeout: 240 seconds]
ertes has joined #nixos
zzamboni has quit [Client Quit]
asuryawanshi has joined #nixos
omger has joined #nixos
<fearlessKim[m]> arf computer crashed during home-manager update. The rollback instructions don't give me X and when I try to start X, it can't find the screens :s I just want to start i3 and I am sure there is some magical systemd command to fix it. anything I should try ( loginctl ? )
<LnL> Havvy: the aarch64 build
<Havvy> Ah.
vidbina has joined #nixos
<fearlessKim[m]> hum seems like it was not a HM problem, chose an old nixos generation and that fixed it
asuryawanshi has quit [Remote host closed the connection]
ChongLi has quit [Ping timeout: 268 seconds]
ChongLi has joined #nixos
winem_ has joined #nixos
<sphalerite_> is nix-instantiate supposed to output just the derivation's filesystem path? It keeps printing the filesystem path suffixed with an ! and an output name for me, and I can't seem to find anything in the manpage that would explain this
ixxie has joined #nixos
hyper_ch2 has joined #nixos
zzamboni has joined #nixos
rauno has joined #nixos
zzamboni has quit [Client Quit]
zzamboni has joined #nixos
zzamboni has quit [Client Quit]
zzamboni has joined #nixos
roberth has joined #nixos
ThatDocsLady has joined #nixos
asuryawanshi has joined #nixos
hotfuzz_ has joined #nixos
winem_ has quit [Ping timeout: 255 seconds]
hotfuzz has quit [Ping timeout: 255 seconds]
aarvar has quit [Ping timeout: 248 seconds]
thc202 has joined #nixos
Tucky has joined #nixos
roberth has quit [Ping timeout: 248 seconds]
zzamboni has quit [Quit: Leaving.]
Lisanna has quit [Quit: Lisanna]
FRidh has joined #nixos
leat has quit [Ping timeout: 256 seconds]
roberth has joined #nixos
jensens has joined #nixos
KABA2 has joined #nixos
rauno has quit [Ping timeout: 265 seconds]
<ixxie> anybody know which regex flavor nix (2.0) search uses?
katona has joined #nixos
KABA2 has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
<sphalerite_> ixxie: C++ regex
<ixxie> cool
<ixxie> sphalerite_: do you also happen to know if there is *any* way to use nix search to find haskellPackages?
ertes has quit [Ping timeout: 256 seconds]
<ixxie> I managed pythonXXPackages but it seems Haskell packages are different
<sphalerite_> nope, don't know, sorry
<ixxie> dang
<ixxie> thanks anyway
<sphalerite_> any reason not to use repl?
<sphalerite_> I mean, if you're looking for a haskell package I imagine you already have a pretty good idea of what you're looking for?
<ixxie> sphalerite_: well, yes, but I was hoping the new search tool would support this because its a bit clunky to use the repl
<ixxie> in particular, being able to use regex would be nice
<sphalerite_> fair enough
<sphalerite_> alias searchHaskell='nix-instantiate --eval -E "with import <nixpkgs> {}; builtins.attrNames haskellPackages" | jq -r ".[]" | grep -E'
<sphalerite_> ixxie: ^ :p
<sphalerite_> or fzf instead of grep!
<ixxie> sweet
<LnL> I love that tool
<ixxie> thanks sphalerite :)
rauno has joined #nixos
<sphalerite_> not tested though :p
<ixxie> ill test it
<ixxie> but I am curious why nix search cannot do this
<sphalerite_> oops, I missed --json in the nix-instantiate call
<ixxie> clever mentioned something about recursion but I don't understand it
MP2E has quit [Remote host closed the connection]
<sphalerite_> hm it's not super speedy
<sphalerite_> ixxie: there's a recurseIntoAttrs thing which tells nix whether to search within an attribute as well
<sphalerite_> I guess once nix 2.0 is out the caching search means we can get rid of that
<sphalerite_> or maybe nix search should just ignore it
<rnhmjoj[m]> can someone check on this PR?
<LnL> I don't think so, a drv is also an attrset searching through everything would be pretty slow
<sphalerite_> also, I've got distributed builds set up on this machine and it seems to prefer remote builders over building stuff locally. Is there a way to get it to use remote builders only when there's more than one thing to build?
lexcomplains has joined #nixos
<katona> It may not necessarily show everything but a quick, hacky way would be to grep/vim search the pkgs/top-level/haskell-packages.nix
<katona> ixxie:
<sphalerite_> rnhmjoj[m]: -1 on that, I quite frequently install without setting a password
<LnL> sphalerite_: don't think so, there's preferLocalBuild for trivial drvs, but otherwise builders are preffered AFAIK
<ixxie> hmm interesting katona, thanks
Itkovian has joined #nixos
<ixxie> sphalerite_, LnL - perhaps there should be a way to flag attributes in nixpkgs are to be searchable?
<LnL> that's what recurseIntoAttrs does :)
<sphalerite_> LnL: exactly
<sphalerite_> whoops
<sphalerite_> unintentional highlight
<lexcomplains> Hello, NixOS 17 09, i3wm, asus laptop with nvidia gpu. A problem: monitor displays incorrect transparent images from last frames, in other words, when DM is booted, monitor still displays transparent images of booting process, or images of previous frames, apps. Any fix?
<ixxie> okay so the problem is haskellPackages doesn't have this recurseIntoAttrs?
<lexcomplains> no such problem in windows
<sphalerite_> LnL: thing is, if there's not a lot (e.g. one derivation) to build I'd prefer for it to be built locally rather than having to copy everything over to the remote builder
<rnhmjoj[m]> sphalerite_: I didn't thought of that. you still set it later after you fail the attempts
<sphalerite_> rnhmjoj[m]: no, I just don't set one and log in via SSH
<LnL> sphalerite_: I understand, there's just no way to do that except for --builders '' that I know of
<sphalerite_> I have quite a few machines where there's no root passowrd and no sudo users, and I only do root stuff by sshing in
<sphalerite_> LnL: also --builders '' seems to be restricted to root only with no warning if it's passed by a user. In fact I need to put an issue in for that
<LnL> no, trusted users can do that
<LnL> nix.trustedUsers = [ "lnl" ];
<sphalerite_> ah, fair enough. It should still warn you if you don't have the necessary access to do it though
<LnL> yeah, there's an issue for that I think
<LnL> it's a debug message instead of a warning IIRC
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] yegortimoshenko closed pull request #35160: clojure: 1.9.0.273 -> 1.9.0.329 (master...20180219.005905/clojure-1.9.0.329) https://git.io/vA8DZ
NixOS_GitHub has left #nixos [#nixos]
<ij> Does midi work with vlc by default?
Arcaelyx has quit [Ping timeout: 276 seconds]
<ij> or rather out of the box
leat has joined #nixos
Arcaelyx has joined #nixos
aerozephyr has joined #nixos
nixer001 has joined #nixos
<sphalerite_> ij: I don't think VLC includes a synthesiser so no
<sphalerite_> nvm it seems to support fluidsynth
<sphalerite_> you might need to give it a soundfont though
<nixer001> Hi! Is there a way to ask for nix-expressions for absent packages for official channel? For example, I can't seem to find "osspd" package, which is OSS emulation daemon for PulseAudio (that actually works, compared to aoss etc).
<sphalerite_> nixer001: you can open an issue, but I'm not sure how far that'll get you
<sphalerite_> nixer001: you can package it yourself of course
Arcaelyx has quit [Ping timeout: 268 seconds]
<sphalerite_> nixer001: but I think the easiest solution for your problem might in fact be to use padsp which comes with pusleaudio instead
<ij> sphalerite_, I was surprised it didn't work, even though it's got a fluidsynth in deps, yeah. Turns out it's just a .so.
betaboon has joined #nixos
<sphalerite_> ij: I'm guessing it'll work if you go to settings, show all, Input/Codecs -> Audio codecs -> FluidSynth and give it a soundfont
jensens has quit [Ping timeout: 260 seconds]
<ij> I'll try that but that's frustrating to do each time on every computer I want to play a midi once a year.
<ij> Maybe I could patch that.
<lexcomplains> Hello, NixOS 17 09, i3wm, asus laptop with nvidia gpu. A problem: monitor displays incorrect transparent images from last frames, in other words, when DM is booted, monitor still displays transparent images of booting process, or images of previous frames, apps. Any fix?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #35152: leo-editor: 5.5 -> 5.6 (master...update/leo-5.6) https://git.io/vA86Z
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 3 new commits to master: https://git.io/vA4kz
<NixOS_GitHub> nixpkgs/master 933822d Will Dietz: leo-editor: add local copy of pyqt56 since it was globally removed
<NixOS_GitHub> nixpkgs/master 83cc0cd Joachim F: Merge pull request #35152 from dtzWill/update/leo-5.6...
<NixOS_GitHub> nixpkgs/master 4139a6f Will Dietz: Revert "Revert "Merge pull request #30031 from dtzWill/update/leo-5.6""...
NixOS_GitHub has left #nixos [#nixos]
<nixer001> sphalerite_: padsp does not support running legacy i386 on x64 host. osspd is much more advanced. Thanks for suggesting how to proceed!
lonokhov has joined #nixos
<sphalerite_> nixer001: aah, ok. Hang on, there should be a way around that too
<sphalerite_> nixer001: try $(nix-build '<nixpkgs>' --no-out-link -A pulseaudio --argstr system i686-linux)/bin/padsp instead of just plain padsp
Itkovian has quit [Read error: Connection reset by peer]
Itkovian has joined #nixos
<ij> Suppose that when two packages, say vlc and soundfont-fluid, are simultaneously installed in nixos, they should start using each other, but unless explicitly asked to, vlc won't require it being built. How should that interaction happen? Can VLC figure that out independenctly or do I need to make a programs.vlc section in configuration.nix?
<sphalerite_> ij: vlc would need to search relevant profiles for appropriate files
<sphalerite_> ij: in the same way that fontconfig would search {/run/current-system,~/.nix-profile}/share/fonts
<ij> ah!
jensens has joined #nixos
<ij> I have fonts on my system, but there's no /run/current-system/share at all. (Btw, what's /run/current-system/sw?)
<sphalerite_> err, yes I mean /run/current-system/sw/share :)
<sphalerite_> sw is something (a buildEnv? I'm not sure exactly) that combines all the systemPackages
<ij> I was more interested in what it stands for. :)
<sphalerite_> maybe software?
<sphalerite_> idk
<ij> I guess so.
davidak has joined #nixos
avn has quit [Ping timeout: 248 seconds]
<sphalerite_> it is indeed a buildEnv
<ij> That was a symlink gatherer, right?
<sphalerite_> yes, although it does a bit more than just creating a symlink forest (symlinkJoin does that)
humanoyd has joined #nixos
<sphalerite_> it allows you to specify which paths to link, how to handle collisions, and post-build steps
<sphalerite_> nixpkgs/nixos/modules/config/system-path.nix :)
nuncanada has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] gebner closed pull request #35146: radare2: 2.2.0 -> 2.3.0 (master...update/radare2-2.3.0) https://git.io/vA827
NixOS_GitHub has left #nixos [#nixos]
<ij> Why don't I have stdlib function manuals? strcpy, glob
<sphalerite_> install manpages
vidbina has quit [Ping timeout: 276 seconds]
davidak has quit [Ping timeout: 256 seconds]
<ij> Vlc has this in its source within "ifdef _POSIX_VERSION": glob ("/usr/share/sounds/sf2/*.sf2", GLOB_NOESCAPE, NULL, &gl);". I could patch that after I find out what glob accepts.
ssmike has joined #nixos
jensens has quit [Ping timeout: 240 seconds]
<sphalerite_> ij: ideally make it search each entry in XDG_DATA_DIRS instead. That would be sensible to upstream as well :)
<sphalerite_> did you find the manpage?
<ij> Yup.
<nixer001> sphalerite_: sorry for late response, but padsp connects to paserver with same architecture. Since on x64, x64 version of PA daemon is running, i386 padsp won't connect to it. I have tested this case on Debian and Arch platforms and osspd is designed specifically to address this.
ssmike has quit [Client Quit]
<sphalerite_> nixer001: one more shot: does enabling hardware.pulseaudio.support32Bit maybe make it work?
asuryawanshi has quit [Remote host closed the connection]
<sphalerite_> If not yeah I guess you really do need osspd
asuryawanshi has joined #nixos
<sphalerite_> nixer001: I'm not entirely inclined to believe that a 32-bit client can't connect to an amd64 server. The protocol is network-transparent so it shouldn't care about that stuff at all…
<nixer001> sphalerite_: nope, this won't work, sphalerite_. I have already tried using 32bit pulsedaemon, but it will conflict with running 64bit daemon. The 32bit support was enabled on Debian and Arch, but they are related to libasound plugins that emulate 32bit alsa interface only.
vidbina has joined #nixos
<nixer001> sphalerite_: this is specifically about emulating OSS from 32bit arch on 64bit host with Alsa+Pulse. The Alsa 32bit arch on 64bit Alsa+Pulse are unrelated to this case.
<nixer001> sphalerite_: this is useful for running legacy 32bit proprietary linux-native games or applications. Not much applications require 32bit OSS now.
<sphalerite_> right. How I see this working is that 32-bit padsp provides OSS emulation, and connects to the 64-bit pulseaudio server (which is fine because the pulseaudio protocol is word size-agnostic)
<nixer001> sphalerite_: yes, the thing is that I have spend whole day trying to make 32bit padsp work with 64bit server. It needs 32bit server, which then conflicts with existing running 64bit server.
<nixer001> sphalerite_: I will try to bring osspd into the tree, once I learn to write expressions. :) I have noted your offer how to build 32-bit package, your advices were very valuable! thank you!
<sphalerite_> nixer001: I still think you could make this work, in the worst case by making the 32-bit client talk to the 64-bit server via a TCP socket
<sphalerite_> pacmd load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth_anonymous=1
<sphalerite_> then PULSE_SERVER=localhost padsp …
<sphalerite_> with the 32-bit padsp
ertes has joined #nixos
vidbina has quit [Ping timeout: 240 seconds]
<nixer001> sphalerite_: noted and will test this!
reinhardt has joined #nixos
reinhardt has quit [Remote host closed the connection]
reinhardt has joined #nixos
niklob has joined #nixos
orivej has joined #nixos
<schoppenhauer> hi. is anyone using libboost under nixos?
<clever> some are
<schoppenhauer> there is no pkgconfig for boost. how can I use it in a nix-shell?
<schoppenhauer> I can manually figure out the cppflags, but that is not really satisfactory.
Myrl-saki has joined #nixos
<schoppenhauer> clever: do you? do you know this?
<clever> schoppenhauer: are you using nix-shell?
<schoppenhauer> clever: yes
<sphalerite_> clever: there's just no pkgconfig in the package
<clever> sphalerite_: what arguments are you using with nix-shell?
<schoppenhauer> clever: nix-shell -p cairo -p pkgconfig -p clang -p boost
avn has joined #nixos
<clever> schoppenhauer: and which #include is failing?
hask_bee_3 has joined #nixos
<sphalerite_> boost generally doesn't provide pkgconfig definitions
<hask_bee_3> What exactly is <nixpkgs> and where is it documented? In the Nix and Nixpkgs manuals, it's kind of assumed we already know what it is.
<sphalerite_> hask_bee_3: it's looked up in NIX_PATH https://nixos.org/nix/manual/#sec-common-env
<clever> hask_bee_3: nix-instantiate --find-file nixpkgs, and echo $NIX_PATH
<schoppenhauer> clever: the includes work. but I cannot pass -lboost
<hask_bee_3> ah sweet so it's just a location of a nix dictionary?
<clever> hask_bee_3: it can also exist outside of /nix
<clever> schoppenhauer: boost doesnt have a libboost.so
<clever> schoppenhauer: which component of boost are you trying to use?
<schoppenhauer> clever: variant and optional
ottidmes has joined #nixos
<clever> schoppenhauer: maybe -lboost_system ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rnhmjoj opened pull request #35169: nixos/tests: fix test failure due to preferTempAddress changes (master...ipv6-fix) https://git.io/vA4m6
NixOS_GitHub has left #nixos [#nixos]
<schoppenhauer> clever: ok, this works.
<schoppenhauer> clever: thank you.
<clever> yep
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 2 new commits to master: https://git.io/vA4Ys
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 8b1cf10 Vladimír Čunát: Merge #35169: nixos/tests: fix ipv6 test failure
<NixOS_GitHub> nixpkgs/master a1dc3ab rnhmjoj: nixos/tests: fix test failure due to preferTempAddress changes
nixer001 has quit [Quit: Konversation terminated!]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat closed pull request #35169: nixos/tests: fix test failure due to preferTempAddress changes (master...ipv6-fix) https://git.io/vA4m6
NixOS_GitHub has left #nixos [#nixos]
reinhardt has quit [Remote host closed the connection]
<ij> sphalerite_, When programs look for XDG_DATA_DIR`s, should they read info only from the first one existing or from all?
<sphalerite_> ij: all of them typically
<ij> sphalerite_, It looks like VLC utility functions only return one. :P
<ij> That shouldn't stop anything though.
* sphalerite_ just had a thought: I should grep my entire nix store for /usr/ and find all the occurrences and change them to use XDG_DATA_DIRS :D
<sphalerite_> ij: link?
<clever> sphalerite_: one thing that helps, grep -r /usr/ $(nix-store -qR /run/current-system)
<clever> that should limit it to the current closure
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dotlambda opened pull request #35170: pythonPackages.pytest-mock: fix build (staging...pytest-mock) https://git.io/vA4Yp
NixOS_GitHub has left #nixos [#nixos]
<sphalerite_> clever: that's not as much fun :p
<clever> your going to find outputs from things that you already fixed :P
<ij> vim-fugitive's :Gbrowse's awesome
<sphalerite_> sssshhhh no I'll rebuild my entire system, delete the old gen, and gc after every fix ;)
<clever> lol
vidbina has joined #nixos
<sphalerite_> ij: does that open it in the web interface??
asuryawanshi has quit [Ping timeout: 240 seconds]
<clever> sphalerite_: thats one of the few ways to brick nixos :P
<clever> make sure it boots before you GC it to death
<ij> sphalerite_, What do you mean? Does fugitive open the link in the browser? Yes, if you wish, but I use the !-suffixed variant, which copies to clipboard.
<sphalerite_> ij: ooooh that's awesome, I use vim-fugitive but didn't know about that
<ij> I also did a range there, see? (with V)
<sphalerite_> that's amazing
<sphalerite_> ij: I'm guessing the idea is that it leaves the path search to its caller when appropriate
<ij> Yeah, but only a single one.
<sphalerite_> hm that's not ideal
<sphalerite_> ah well
jensens has joined #nixos
<clever> sphalerite_: ive also noticed a weird bug with opening links lately
<clever> teamspeak opens things in firefox, but chrome is the default
<Mic92> ixxie: nix-search follows the ecma script regex syntax: http://www.cplusplus.com/reference/regex/
<clever> sphalerite_: oh, and i just remembered, chrome is in nix-env due to other things, maybe teamspeak can only search /run/current-system/ ?
<sphalerite_> clever: shouldn't it be using xdg-open?
<Mic92> ij: correction it is extended POSIX syntax + case insenstive
<sphalerite_> clever: try just `xdg-open`ing a URL
<Mic92> ij: I meant ixxie
<sphalerite_> Mic92: pretty sure `nix search` uses C++ regexes
<sphalerite_> so your first answer was right
<Mic92> sphalerite_: but the extended flag is set
<sphalerite_> oh so it is
<sphalerite_> ok
<clever> sphalerite_: xdg-open works fine from a shell
<sphalerite_> clever: so maybe its $PATH is screwed up or it's just not using xdg-open
Itkovian_ has joined #nixos
<clever> sphalerite_: from past debug, i know it uses xdg-open
<clever> let me strace it again
<ixxie> Mic92: or did your correction refer to a different one?
<Mic92> ixxie: it is extended posix regex syntax
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] P-E-Meunier opened pull request #35171: BuildRustCrate: more general overrides, and handling the "dylib" crate type (master...build-rust-crate-ln) https://git.io/vA43B
NixOS_GitHub has left #nixos [#nixos]
<clever> [pid 26834] execve("/run/current-system/sw/bin/xdg-open", ["/run/current-system/sw/bin/xdg-o"..., "https://nixos.org/nixos/options."...], 0x32164e0 /* 65 vars */) = 0
<clever> sphalerite_: yep, very first thing it runs is xdg-open
<manveru> symphorien: i just checked https://github.com/NixOS/nixpkgs/issues/34393 but can't reproduce it on 1.12... is that the same for you?
<ixxie> Mic92: but case insensitive by default
<clever> sphalerite_: hmmm, crazy idea...
<Mic92> ixxie: yes
<ixxie> Mic92: do you have a clue about getting nix search to find haskellPackages?
<clever> nope
Itkovian has quit [Ping timeout: 265 seconds]
TrentP has joined #nixos
<Mic92> ixxie: it seems to only query top-level attributes at the moment
<sphalerite_> ixxie: you could probably use an overlay like self: super: {haskellPackages = super.recurseIntoAttrs super.haskellPackages;}
<ixxie> sphalerite_: how do I use that in a nix search query?
<ixxie> Mic92: I see
<sphalerite_> ixxie: stick it in your ~/.config/nixpkgs/overlays/search-haskell.nix and run nix search with -u once
<sphalerite_> ixxie: just confirmed it works
<ixxie> cool
<ixxie> thanks sphalerite_
<sphalerite_> huh, why is recurseIntoAttrs top-level and not in lib?
roberth has quit [Ping timeout: 260 seconds]
<hyper_ch2> sphalerite_: btw, I'm moving more and more rss feeds to rss2email.... well, I did add them all to rss2email but removing them from quiterss when I see I got new entry in mail account.... nixos email server and roundcube <3
simukis has joined #nixos
__Sander__ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Profpatsch opened pull request #35172: powertop: split man page into "man" output (master...powertop-man-output) https://git.io/vA4sX
NixOS_GitHub has left #nixos [#nixos]
<sphalerite_> hyper_ch2: great! I'll start using it eventually too :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Profpatsch closed pull request #35172: powertop: split man page into "man" output (master...powertop-man-output) https://git.io/vA4sX
NixOS_GitHub has left #nixos [#nixos]
peel has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] manveru opened pull request #35173: makeTest: Only allow test names of up to 50 characters (master...max-test-name-length) https://git.io/vA4GJ
NixOS_GitHub has left #nixos [#nixos]
<hyper_ch2> sphalerite_: what rss reader are you currently using?
<sphalerite_> hyper_ch2: none
ma27 has joined #nixos
roberth has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
vidbina has quit [Ping timeout: 276 seconds]
vidbina has joined #nixos
davidak has joined #nixos
cinimod_ has joined #nixos
spear2 has quit [Remote host closed the connection]
<ij> sphalerite_, FYI: Submitted a bug: https://trac.videolan.org/vlc/ticket/19795
vidbina has quit [Ping timeout: 265 seconds]
<sphalerite_> ij: alright! I'm guessing you didn't complete the patch then?
<ij> Not for now, no.
<sphalerite_> are you planning to?
<sphalerite_> If not maybe I'll do it one of these days
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra pushed 4 new commits to master: https://git.io/vA4CR
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nix/master 5a082ad Will Dietz: configure.ac: check if lzma has MT support, fix deb build/etc.
<NixOS_GitHub> nix/master a0bdc96 Will Dietz: compression: print warning if parallel requested but not supported
<NixOS_GitHub> nix/master c620903 Will Dietz: compression: make parallel sink separate class
<sphalerite_> Is there a way to pass a path containing a . in an attribute name to the command-line tools with -A?
<sphalerite_> I have a unit called tinc.lugnet and I can't just do nix-build '<nixpkgs/nixos>' -A config.system.build.units.tinc.lugnet
<clever> sphalerite_: 'config.foo."a.b"' i think
<clever> ive had to do that once before
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dotlambda opened pull request #35174: home-assistant: pin voluptuous version (staging...home-assistant) https://git.io/vA4CK
NixOS_GitHub has left #nixos [#nixos]
<sphalerite_> clever: it says the attribute doesn't exist…
<sphalerite_> oh whoops I misesd out the .service bit
<sphalerite_> yep that works, thanks!
<ij> sphalerite_, It's a tiny bit trickier than I'd expected. Would you be strtok'ing the $XDG_DATA_DIRS(with the default from the spec)?
<ottidmes> Is there someway to access the file location as part a module definition? I want to base an option of the module on the file location
gm152 has joined #nixos
<sphalerite_> ij: yeah I think so
<sphalerite_> ottidmes: toString ./. I think
asymmetric has joined #nixos
<sphalerite_> ottidmes: what black magic are you trying to do? D:
vidbina has joined #nixos
<ottidmes> sphalerite_: Yeah, I know the ./. trick, but I was wondering if I could do without. I have a directory structure for my configs and one assumption is that the root folder of a host is its hostname, so I was thinking, instead of making an assertion they should be equal, why not just base the name on the directory to begin with, no duplication
<ottidmes> sphalerite_: with "they should be equal" I meant the hostName I define in my config and the root folder name of a host
<sphalerite_> ottidmes: baseNameOf ./. ?
<sphalerite_> I don't really get what part of your requirement ./. isn't meeting
<ottidmes> sphalerite_: Well, I cannot abstract that, I would have to write that for each host, its not that bad, it is definitely a valid solution, but it made me wonder if this information is available elsewhere
<ij> sphalerite_, Would you include the patch in nixpkgs source?
<sphalerite_> ij: yeah, with a link referring to the upstream report so it can get removed when it's accepted and integrated into an upstream release
<sphalerite_> https://github.com/lheckemann/nixpkgs/blob/05f96bf376bc04bb7cc447150b8cb182af84b35b/pkgs/applications/networking/irc/weechat/default.nix#L40-L47 actually I fetched it rather than copying it in in this case which probably makes sense
raynold has quit [Quit: Connection closed for inactivity]
<m0rphism1> Hi, I'm trying to get started with Rust on NixOS. Specifically, I'm trying to have a two local packages: a hello world library and a hello world application which uses this library. Is someone familiar with how I could achieve this?
mrkgnao has joined #nixos
<sphalerite_> m0rphism1: personally I usually use the rust overlay and build stuff in `nix-shell -p cc rustChannels.stable.rust`
niklob has quit [Remote host closed the connection]
<sphalerite_> there might be better ways now though, I haven't done any rust stuff recently
niklob has joined #nixos
<sphalerite_> gchristensen is actively developing rust stuff and uses something called carnix I believe, which I haven't looked into at all
<m0rphism1> sphalerite_: Thanks for the pointers.
<m0rphism1> sphalerite_: How do you manage dependencies between local rust packages?
<sphalerite_> honestly? I haven't done enough rust stuff to encounter that question :p I don't do much rust
<sphalerite_> you can probably use cargo install like on other distros, although it's not very nixy of course
<m0rphism1> sphalerite_: For Haskell and C++, I tend to define a recursive set of my local packages, where each package has a default.nix, but I'm not sure how I can do the same with Rust
<m0rphism1> sphalerite_: ok, thanks anyways!
<sphalerite_> I think carnix might help you along that route. Not sure though
<m0rphism1> sphalerite_: thanks, I'll give it a try
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dotlambda opened pull request #35175: pythonPackages.magic-wormhole: 0.10.4 -> 0.10.5 (master...magic-wormhole) https://git.io/vA48z
NixOS_GitHub has left #nixos [#nixos]
elasticdog has quit [Ping timeout: 264 seconds]
elasticdog has joined #nixos
Arcaelyx has joined #nixos
Tucky has quit [Quit: WeeChat 2.0.1]
Adluc has quit [Ping timeout: 240 seconds]
kelleyNif has joined #nixos
snajpa has quit [Ping timeout: 276 seconds]
jensens has quit [Remote host closed the connection]
kelleyNif1 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master c10288c Shea Levy: riscv: Use binutils 2.30 for linker fixes.
<NixOS_GitHub> nixpkgs/master ca6710b Shea Levy: binutils: Add 2.30.
<NixOS_GitHub> [nixpkgs] shlevy pushed 2 new commits to master: https://git.io/vA4Bn
NixOS_GitHub has left #nixos [#nixos]
kelleyNif has quit [Read error: Connection reset by peer]
jensens has joined #nixos
coot has joined #nixos
freeman42x]NixOS has joined #nixos
snajpa has joined #nixos
asymmetric has quit [Quit: Leaving]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra pushed 3 new commits to master: https://git.io/vA4R3
<NixOS_GitHub> nix/master de4934a Shea Levy: Allow plugins to define new settings.
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nix/master 75a1d96 Eelco Dolstra: Merge branch 'register-settings' of https://github.com/shlevy/nix
<NixOS_GitHub> nix/master ed73d40 Eelco Dolstra: Config::handleUnknownSettings(): Remove unused 'fatal' argument
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra closed pull request #1867: Allow plugins to define new settings. (master...register-settings) https://git.io/vA30D
NixOS_GitHub has left #nixos [#nixos]
ma27 has quit [Ping timeout: 255 seconds]
ma27 has joined #nixos
fendor has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] abbradar opened pull request #35176: vmTools: update distributions (master...update-vm) https://git.io/vA4RP
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] abbradar opened pull request #35177: debBuild: install all packages at once to avoid dependency management (master...fix-debbuild) https://git.io/vA4R9
NixOS_GitHub has left #nixos [#nixos]
asuryawanshi has joined #nixos
dan_b has joined #nixos
Adluc has joined #nixos
rauno has quit [Ping timeout: 240 seconds]
robstr has quit [Remote host closed the connection]
robstr has joined #nixos
pie__ has joined #nixos
robstr has quit [Ping timeout: 255 seconds]
robstr has joined #nixos
pie_ has quit [Ping timeout: 240 seconds]
<genesis> where locks are stored ?
knupfer has joined #nixos
reinzelmann has quit [Quit: Leaving]
<genesis> nix env "waiting for locks or build slots..." , need to clean something :)
<clever> genesis: is this with hydra or nix-build on CLI?
<genesis> nix-env on cli
<clever> genesis: any use of build slaves?
omger has quit [Ping timeout: 248 seconds]
<genesis> i've some weird pb with the fetching, i'd to stop nix-env earlier and try to restard daemon
<clever> genesis: try running it with -vvv and see what it says
<genesis> no i'm the only user (afaik) of this computer
Rusty1_ has joined #nixos
sigmundv has joined #nixos
vidbina has quit [Ping timeout: 256 seconds]
niklob has quit [Ping timeout: 260 seconds]
<genesis> | | locking path ‘/nix/store/7h5a7p7y8jc0pbzj057hn4i1ibvia7cc-golly-3.1’
<genesis> | | wait for a while
<genesis> | | waiting for children
<genesis> looping.
<clever> genesis: does /nix/store/7h5a7p7y8jc0pbzj057hn4i1ibvia7cc-golly-3.1.lock exist?
omger has joined #nixos
<genesis> yes
<clever> stop the nix-env, then as root, check "ls -l /proc/*/fd/* | grep 7h5a7p7y8jc0pbzj057hn4i1ibvia7cc"
<genesis> lrwx------ 1 root root 64 19 févr. 14:50 /proc/2986/fd/8 -> /nix/store/7h5a7p7y8jc0pbzj057hn4i1ibvia7cc-golly-3.1.lock
<genesis> oki something stills using it.
<clever> genesis: and then ps aux | grep 2986
<genesis> nix-daemon 2981
<clever> ps aux | grep 2981
<genesis> ho my previous nix-env ;)
romildo has joined #nixos
<clever> why hasnt it finished?
<genesis> in a bad state :)
<clever> if you kill the nix-env, the nix-daemon should clean the locks up automatically
<genesis> i badly stop it with a keyboard shortcut :D
<clever> ctrl+z?
<genesis> i admit.
<clever> ah
<clever> then just `fg` will resume it, and finish the previous command
romildo has left #nixos [#nixos]
<genesis> yep thanks for help
<genesis> http://nixpaste.lbr.uno/zdu-YygX?nix my fetching pb
asuryawanshi has quit [Remote host closed the connection]
<genesis> sometime i've only 1 char columns on the fetcher :S
vidbina has joined #nixos
<genesis> anyway, it doesn't want to download anymore.
pkill9 has joined #nixos
asuryawanshi has joined #nixos
<clever> genesis: thats a bug with the new nix 2.0 stuff, its getting fragments of the curl output, and then appending \n's to them
<genesis> yes, not too much annoying, except when it's stop moving ;)
Capprentice has joined #nixos
coot has quit [Quit: coot]
NinjaTrappeur has quit [Quit: WeeChat 2.0.1]
asuryawanshi has quit [Remote host closed the connection]
<genesis> ps aux | grep defunc
<genesis> root 3862 0.0 0.0 0 0 ? Zs 15:00 0:00 [download-from-b] <defunct>
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] shlevy opened pull request #1881: Disable build users when building on Linux without seccomp (master...no-seccomp-no-root) https://git.io/vA4gH
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 2 new commits to master: https://git.io/vA4g7
<NixOS_GitHub> nixpkgs/master e37b756 Michael Raskin: Merge pull request #35110 from oxij/pkgs/pretty-fetchurl...
<NixOS_GitHub> nixpkgs/master a89899c Jan Malakhovski: fetchurl: cleanup, better errors...
goibhniu has quit [Ping timeout: 276 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #35174: home-assistant: pin voluptuous version (staging...home-assistant) https://git.io/vA4CK
NixOS_GitHub has left #nixos [#nixos]
Arcaelyx has quit [Ping timeout: 248 seconds]
<aminechikhaoui> Hi, is there a way to genereate a configuration.nix from an existent system configuration ? e.g If I'm inside an AWS vm where I set the configFile to be empty on AMI generation
92AACVK9K has joined #nixos
<92AACVK9K> [nixpkgs] 7c6f434c closed pull request #27688: nixos/networking-interfaces: make static routes configurable (master...routes) https://git.io/v7Z44
92AACVK9K has left #nixos [#nixos]
07EAAZFW0 has joined #nixos
07EAAZFW0 has left #nixos [#nixos]
<07EAAZFW0> nixpkgs/master d00c91c rnhmjoj: nixos/networking-interfaces: make static routes configurable
<07EAAZFW0> nixpkgs/master f41111c rnhmjoj: nixos/tests: add test for static routes
<07EAAZFW0> [nixpkgs] 7c6f434c pushed 7 new commits to master: https://git.io/vA42p
<07EAAZFW0> nixpkgs/master c1bed05 rnhmjoj: nixos/networking-interfaces: rename IP addresses/routes options
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c closed pull request #35111: stdenv.mkDerivation: rename `meta.evaluates` -> `meta.available` (master...stdenv/available-evaluates) https://git.io/vA8L7
NixOS_GitHub has left #nixos [#nixos]
peacememories has joined #nixos
goibhniu has joined #nixos
omger has quit [Ping timeout: 256 seconds]
Arcaelyx has joined #nixos
coot has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 2 new commits to master: https://git.io/vA4Vt
<NixOS_GitHub> nixpkgs/master cfa3e7e Michael Raskin: Merge pull request #34798 from oxij/pkgs/aspell-dicts...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 3f9ada0 SLNOS: aspellDicts: add more dictionaries and some documentation
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/gcc-7 0c8939b Vladimír Čunát: Merge branch 'master' into gcc-7...
<NixOS_GitHub> nixpkgs/gcc-7 8820620 Vladimír Čunát: Merge branch 'staging' into gcc-7...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] vcunat pushed 2 new commits to gcc-7: https://git.io/vA4Vn
cacatoes has quit [Ping timeout: 252 seconds]
coot has quit [Ping timeout: 248 seconds]
<Profpatsch> How do you people ensure that a sed/substitute command actually replaces something?
<clever> Profpatsch: one option is to switch to a proper patch, then it will fail safe
<Profpatsch> Because normally what you want is the build failing when a replacement doesn’t do anything, e.g. because an update changed the line searched for.
<Profpatsch> clever: Yeah, but that’s too sensible for updates.
<Profpatsch> And updating patches is a hassle.
<clever> test that the commands work in a check phase?
<clever> so if it winds up broken, the build fails
<Profpatsch> e.g. I want to set RABBITMQ_SCRIPTS_DIR=`dirname $SCRIPT_PATH`
<Profpatsch> to RABBITMQ_SCRIPTS_DIR=/nix/store/…
<Profpatsch> And if upstream changed that script to say RABBITMQ_SCRIPTS_DIR=`dirname $(readlink $SCRIPT_PATH)`
<Profpatsch> my patch would silently fail in the future.
tilman_ has joined #nixos
<Profpatsch> Failing if nothing is substituted feels like it should be the default behaviour for me in builders.
<Profpatsch> Because it’s update-safe.
<hyper_ch2> MoreTea: you don't happen to be here?
self has joined #nixos
mood has quit [Quit: Gone.]
self is now known as Guest75444
<Dezgeg> I guess someone would need to implement such substitute command that fails if no substitutions... maybe in awk?
mood has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 43522dc Shea Levy: riscv: Use gnumake42HEAD.
<NixOS_GitHub> nixpkgs/master fb8a09e Shea Levy: gnumake: Add 4.2.90pre2491_38c8a11 for proper glibc 2.27 support.
<NixOS_GitHub> [nixpkgs] shlevy pushed 2 new commits to master: https://git.io/vA4rI
NixOS_GitHub has left #nixos [#nixos]
<maurer> So, I upgraded nixos recently, and now am encountering:
<Profpatsch> I’m not the first to notice that.
<manveru> yeah, looks like awk is better because sed is line-based...
<maurer> warning: in configuration file '/etc/nix/nix.conf': unknown setting 'signed-binary-caches'
ma27 has quit [Ping timeout: 260 seconds]
<maurer> followed by signature errors
<Dezgeg> "This might fork for you: sed '/search-string/{s//replacement-string/;h};${x;/./{x;q0};x;q1}' file"
<Dezgeg> s/fork/work/
<maurer> (As an example signature error:
<maurer> error: imported archive of ‘/nix/store/b1c25bfpgqijc8nyljd52jmnpjrbgj6z-channel-rust-nightly.toml’ lacks a signature
<clever> maurer: are you mixing nix versions?
<maurer> clever: Not intentionally?
<maurer> I ran nixos-rebuild --upgrade switch
<maurer> and now nix-env/nix-shell has this result
<clever> maurer: have you recently changed nix.package or nixpkgs?
<clever> maurer: hmmm, i would expect that to work
<clever> maurer: what does `type nix-shell` say?
<maurer> I've never touched nix.package, I'm using a custom nixpkgs for this nix-shell invocation...
<maurer> clever: nix-shell is /home/maurer/.nix-profile/bin/nix-shell
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] limeytexan opened pull request #35178: perl-BSD-Resource: init at 1.2911 (master...perl-BSD-Resource) https://git.io/vA4rw
NixOS_GitHub has left #nixos [#nixos]
<clever> maurer: uninstall that nix
<clever> maurer: the nix in the os was updated, and that nix hasnt updated, so your mixing nix's
mood has quit [Client Quit]
<maurer> nix-env cannot uninstall it, again due to the desync
rauno has joined #nixos
ma27 has joined #nixos
<maurer> lemme try adjusting my PATH manually I guess
<clever> maurer: manually run the /run/current-system/sw/bin/nix-env for the uninstall
<clever> no need to edit PATH itself
tilman__ has joined #nixos
<maurer> OK, it's working again
mood has joined #nixos
tilman__ has quit [Client Quit]
alex`` has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 7 new commits to master: https://git.io/vA4oY
<NixOS_GitHub> nixpkgs/master e1782e3 Jan Malakhovski: nixos: add system.boot.loader.initrdFile option and use it where appropriate
<NixOS_GitHub> nixpkgs/master 8200e08 Jan Malakhovski: nixos: move nixosLabel to its own module
<NixOS_GitHub> nixpkgs/master 09512be Jan Malakhovski: nixos: use nixosLabel in more places
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 3 new commits to glibc-2.27: https://git.io/vA4oR
<NixOS_GitHub> nixpkgs/glibc-2.27 fae4caa Shea Levy: Merge branch 'gcc-7' into glibc-2.27
<NixOS_GitHub> nixpkgs/glibc-2.27 c682e12 Shea Levy: Merge branch 'master' into glibc-2.27...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/glibc-2.27 c48fe8c Shea Levy: help2man: Make safe to use in bootstrap stdenv.
jtojnar has quit [Remote host closed the connection]
sigmundv has quit [Ping timeout: 256 seconds]
<fearlessKim[m]> how can I run locally the checkMeta check done by grahamOfBorg ? do I set config.checkMeta = true in configuration.nix ?
<clever> fearlessKim[m]: if you want it to effect nix-build, it has to go into your config.nix
alex``` has joined #nixos
rauno has quit [Ping timeout: 240 seconds]
m0rphism1 has quit [Quit: WeeChat 2.0]
<fearlessKim[m]> clever: I added it, so it will run on next nox-review ? what if I want to run just the checkMeta over nixpkgs ?
<gchristensen> ack I thought I documented that
tilman__ has joined #nixos
mkoenig has joined #nixos
mkoenig_ has quit [Ping timeout: 268 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] shlevy opened pull request #1882: Don't silently succeed seccomp setup when !HAVE_SECCOMP. (master...no-seccomp-no-filterSyscalls) https://git.io/vA4Kb
NixOS_GitHub has left #nixos [#nixos]
tilman_ has quit [Ping timeout: 260 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] shlevy closed pull request #1881: Disable build users when building on Linux without seccomp (master...no-seccomp-no-root) https://git.io/vA4gH
NixOS_GitHub has left #nixos [#nixos]
<ottidmes> What does `loeOf` actually do? I wanted to have a "list or element of list" type, but it does not work the way I expect it does, I wrote my own that does work like the name suggests, but I was just wondering what it is supposed to do. I have not seen any use of it in nixpkgs
MercurialAlchemi has quit [Ping timeout: 256 seconds]
hask_bee_3 has quit [Quit: Textual IRC Client: www.textualapp.com]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dotlambda opened pull request #35179: matrix-synapse: fix pynacl dependency (master...matrix-synapse) https://git.io/vA468
NixOS_GitHub has left #nixos [#nixos]
<infinisil> ottidmes: i can explain, but am on my phone right now
* infinisil starts his laptop
sigmundv has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] oxij closed pull request #11529: nixos: networking cleanup (master...nixos-networking-cleanup) https://git.io/vR61Q
NixOS_GitHub has left #nixos [#nixos]
fendor has quit [Ping timeout: 256 seconds]
asuryawanshi has joined #nixos
rauno has joined #nixos
<fearlessKim[m]> gchristensen: cool page !! thanks
<gchristensen> :)
civodul has joined #nixos
<infinisil> ottidmes: an example of loaOf is users.users
<ottidmes> infinisil: Ah, but I know of loaOf, I am curious about loeOf though ;)
<infinisil> Ohhh
<infinisil> I can't find loeOf?
<infinisil> where is it defined?
zzamboni1 has joined #nixos
<ottidmes> infinisil: Since I like loaOf so much, I thought, what else like that could I do, well I could remove all those singleton calls
<infinisil> ahh
<infinisil> you want this yourself
* infinisil thinks
<ottidmes> infinisil: Apparently it is removed in master
<fearlessKim[m]> please add a "disable-overlay" to nox-review. I exported NIX_PATH=nixpkgs-overlays=''" but seems like it still took something from my overlay.
<infinisil> yeah
* infinisil does a git bisect
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/staging a34b027 Shea Levy: Merge branch 'linux-headers-4.15' into staging
<NixOS_GitHub> nixpkgs/staging fd0f15f Shea Levy: linuxHeaders: Bump default to 4.15.
<NixOS_GitHub> [nixpkgs] shlevy pushed 2 new commits to staging: https://git.io/vA4iS
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy closed pull request #35150: linuxHeaders: Bump default to 4.15. (staging...linux-headers-4.15) https://git.io/vA8rs
NixOS_GitHub has left #nixos [#nixos]
asuryawanshi has quit [Ping timeout: 268 seconds]
<thoughtpolice> shlevy: Sounds like you're having good luck so far :)
<shlevy> thoughtpolice: Yep :)
<ottidmes> infinisil: I have defined my own loeOf based on loaOf, which works fine, I was just wondering, what was it even supposed to do, cannot have more than one element? has to be of type string? many questions about that definition, but it is good to see that it is removed
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nix/master b8bed7d Tuomas Tynkkynen: libexpr: Optimize prim_attrNames a bit...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nix] shlevy pushed 7 new commits to master: https://git.io/vA4PU
<NixOS_GitHub> nix/master f67a700 Tuomas Tynkkynen: libexpr: Pre-reserve space in string in unescapeStr()...
<NixOS_GitHub> nix/master 0845cdf Tuomas Tynkkynen: libexpr: Rely on Boehm returning zeroed memory in EvalState::allocEnv()...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] shlevy closed pull request #1876: Minor interpreter performance improvements (master...perf-fixes) https://git.io/vAWFt
NixOS_GitHub has left #nixos [#nixos]
<infinisil> ottidmes: found it: https://github.com/NixOS/nixpkgs/pull/30135
<shlevy> thoughtpolice: by the way sorear asked for you on #riscv when he found out you were working on this :)
zzamboni1 has quit [Ping timeout: 256 seconds]
erasmas has joined #nixos
<thoughtpolice> shlevy: Have you got Nix working reliably yet? I'd like to help but at this rate I won't be un-busy (~1wk or so) until after you're done! :)
<thoughtpolice> shlevy: Heh, he pinged me. We both sit in #yosys so we've interacted a bit.
<thoughtpolice> (The creator of Yosys is also the creator of PicoRV32 and does some other RISC-V stuff)
szicari has joined #nixos
tilman__ has quit []
<thoughtpolice> Well... And also Haskell-wise we've interacted. Looooooong ago *spooky mystery sounding voice*
<ottidmes> infinisil: Thanks for the reference :)
<shlevy> thoughtpolice: Yeah, I've been able to do native builds from riscv-nix via qemu-user :)
<shlevy> thoughtpolice: Working on getting a kernel build now so I can switch to qemu-system
cement has joined #nixos
<shlevy> And then I'm hopeful native stdenv will be straightforward
<infinisil> ottidmes: maybe coercedTo could be of use to you too
<thoughtpolice> shlevy: Ah, yeah. So what I was going to do on my Fedora machine was try bootstrapping using *their* kernel and their little buildroot thingy. Then install Nix inside that to use qemu-system immediately
<thoughtpolice> (qemu-user seems to vary in reliability IME depending on the arch, but it sounds like RISC-V is pretty good!
<shlevy> Well, want to get kernel building from Nix anyway :)
<infinisil> Man, git bisect is really nice, I just did `git bisect run nix-instantiate lib --eval -A types.loeOf` to find where it got removed, couple second later the commit is found
<shlevy> So far I actually got the build to complete but them 'make install' failed due to missing make target, so I'm guessing they just forgot to add an install target when they added it upstream
<thoughtpolice> shlevy: For HiFive, we'll probably want to use their kernel for now anyway
Guest75444 has quit [Read error: Connection reset by peer]
<shlevy> thoughtpolice: I am using theirs
<thoughtpolice> They don't have any upstream drivers in 4.15, just ABI support lol
<thoughtpolice> Ah, ok, misread then :)
<shlevy> I'm using our build process
<shlevy> but their source
<shlevy> (which as of yesterday was purely on-top of 4.16-rc1, which is nice)
<ottidmes> infinisil: I see now that it was like a hard coded either for strings, instead of matching the semantics of loaOf, I could indeed define it with coercedTo that converts an either x or listOf x to a list of x, but I no already have my own loeOf implementation
<thoughtpolice> shlevy: I think Linux is like the only thing now that still needs patches, which is a plus...
<ottidmes> infinisil: That git bisect is pretty amazing, never heard of it before!
<shlevy> thoughtpolice: Yeah, so far it's just that and qemu
<shlevy> Oh, and boehm/libatomic_ops, but I wrote those patches and they're being accepted upstream
<infinisil> ottidmes: it is indeed! Everytime I use it I'm amazed by it yet again. It's especially powerful with nixpkgs, since the git hash determines all dependencies for building something.
<thoughtpolice> Ah, nice
<shlevy> We don't have libseccomp though, which means multi-user Nix is unsafe (builds can make setuid binaries)
<thoughtpolice> Is that just missing upstream (Linux)?
<shlevy> I'll look at that once I get NixOS otherwise usable
<shlevy> Yeah
<shlevy> I don't know if there's a riscv port
<shlevy> I mean, it's in the kernel I think, just not the userspace lib
<thoughtpolice> Right, that's what I meant, but yeah
<thoughtpolice> Oh, no, I meant the opposite. Well then
<shlevy> Lemme ask :)
<thoughtpolice> shlevy: Well in any case I won't have anything to do at this rate!!!
<thoughtpolice> Except fix bugs maybe :)
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/gcc-7 be8062d Vladimír Čunát: Merge branch 'staging' into gcc-7
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to gcc-7: https://git.io/vA4XA
winem_ has joined #nixos
ixxie has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dotlambda opened pull request #35180: attic: uninit (master...attic) https://git.io/vA41S
NixOS_GitHub has left #nixos [#nixos]
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
simukis has quit [Ping timeout: 248 seconds]
vidbina has quit [Ping timeout: 276 seconds]
winem_ has quit [Ping timeout: 240 seconds]
knupfer has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
<fearlessKim[m]> gchristensen: when I run your script I hit "Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS", I met this in other cases as well. How can I work around it ?
<gchristensen> ah
<gchristensen> right
<gchristensen> fearlessKim[m]: updated the command to run
self has joined #nixos
self is now known as Guest50325
peel has quit [Quit: ZNC 1.6.5 - http://znc.in]
zzamboni has joined #nixos
katyucha has joined #nixos
rauno has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] oxij opened pull request #35181: mono: add 5.8.108 (current stable) (master...pkgs/mono58) https://git.io/vA4Mp
NixOS_GitHub has left #nixos [#nixos]
peacememories has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] xurei opened pull request #35182: perl-Gtk2GladeXML: init at 1.007 (master...perl/Gtk2GladeXML) https://git.io/vA4DB
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] xurei opened pull request #35183: perl-Gtk2TrayIcon: init at 0.06 (master...perl/Gtk2TrayIcon) https://git.io/vA4Da
NixOS_GitHub has left #nixos [#nixos]
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
taktoa has joined #nixos
peacememories has joined #nixos
Drakonis has joined #nixos
dbmikus has joined #nixos
smola has quit []
<fearlessKim[m]> gchristensen: ty, it exited with 0 so I suppose everything is fine
smola has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #35184: sddm: minor refactoring, test both with and without plasma5 (master...feature/sddm-test-with-and-without-plasma5) https://git.io/vA4yc
NixOS_GitHub has left #nixos [#nixos]
vidbina has joined #nixos
<gchristensen> should be!
dbmikus has quit [Client Quit]
leat has quit [Ping timeout: 256 seconds]
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
vidbina has quit [Ping timeout: 240 seconds]
dbmikus has joined #nixos
orivej has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] oxij opened pull request #35185: nixos: fix fallout from #27688 (master...nixos/fix-27688) https://git.io/vA4S8
NixOS_GitHub has left #nixos [#nixos]
dbmikus has quit [Client Quit]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #35186: virtualbox-host: unbreak after #27688 (master...fix/virtualbox-addresses) https://git.io/vA4Sg
NixOS_GitHub has left #nixos [#nixos]
dbmikus has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill closed pull request #35186: virtualbox-host: unbreak after #27688 (master...fix/virtualbox-addresses) https://git.io/vA4Sg
NixOS_GitHub has left #nixos [#nixos]
vidbina has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to glibc-2.27: https://git.io/vA49z
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/glibc-2.27 3aa0651 Shea Levy: Merge branch 'gcc-7' into glibc-2.27
tertle||eltret has quit [Quit: Connection closed for inactivity]
<fearlessKim[m]> grahamofborg won't trigger when a PR is WIP ? one of my PR has just been marked with the label WIP and graham has disappeared :'(
hyper_ch2 has quit [Quit: Page closed]
katyucha has quit [Ping timeout: 248 seconds]
orivej has quit [Ping timeout: 248 seconds]
<fearlessKim[m]> we can't run a nox-review from it ? was hoping to offload the computation there
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 0500cf7 Tim Steinbach: plymouth: Fix reference to NixOS version
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vA4HI
NixOS_GitHub has left #nixos [#nixos]
katyucha has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] sorki opened pull request #35188: use overlayfs by default for netboot and iso (master...overlayfs) https://git.io/vA4HQ
NixOS_GitHub has left #nixos [#nixos]
katyucha has quit [Ping timeout: 256 seconds]
zzamboni has quit [Remote host closed the connection]
ryantrinkle has quit [Ping timeout: 260 seconds]
Itkovian_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ixxie has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill closed pull request #35184: sddm: minor refactoring, test both with and without plasma5 (master...feature/sddm-test-with-and-without-plasma5) https://git.io/vA4yc
NixOS_GitHub has left #nixos [#nixos]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/2a6c7aebcd2 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] yegortimoshenko created yegortimoshenko-patch-1 (+1 new commit): https://git.io/vA47O
<NixOS_GitHub> nixpkgs/yegortimoshenko-patch-1 3a7c519 Yegor Timoshenko: aseprite: remove buy link
NixOS_GitHub has left #nixos [#nixos]
<srk> Dezgeg: you would need to add hackery to mount to also prefix with /mnt-root(s)
<Dezgeg> yes, that's the intention
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] yegortimoshenko deleted yegortimoshenko-patch-1 at 3a7c519: https://git.io/vA47u
NixOS_GitHub has left #nixos [#nixos]
<Dezgeg> or maybe the mount command could be run in chroot somehow (but might be too hard)
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 256 seconds]
Mateon3 is now known as Mateon1
<srk> we can play with that but I see it as a cosmetic issue and fixes outweight that
<Dezgeg> well, it becomes hard/impossible to change it later if people start to depend on the proposed weird behaviour
<srk> yeah, from the interface point of view it's not exactly pretty. neither adding that with bash in stage-1 is :(
<Dezgeg> well, a couple of lines above in stage-1 there is already stuff like # Filter out x- options, which busybox doesn't do yet.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra closed pull request #1882: Don't silently succeed seccomp setup when !HAVE_SECCOMP. (master...no-seccomp-no-filterSyscalls) https://git.io/vA4Kb
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra pushed 2 new commits to master: https://git.io/vA45D
<NixOS_GitHub> nix/master e59a8a6 Shea Levy: Don't silently succeed seccomp setup when !HAVE_SECCOMP....
<NixOS_GitHub> nix/master 623fcb0 Eelco Dolstra: Merge pull request #1882 from shlevy/no-seccomp-no-filterSyscalls...
NixOS_GitHub has left #nixos [#nixos]
Drakonis has quit [Read error: Connection reset by peer]
dan_b has quit [Ping timeout: 268 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] primeos pushed 1 new commit to master: https://git.io/vA4d3
<NixOS_GitHub> nixpkgs/master d2919c9 Michael Weiss: jekyll: 3.4.1 -> 3.7.2
NixOS_GitHub has left #nixos [#nixos]
<viric> Dezgeg: is crosscompiling working for you on 17.09?
<Dezgeg> I haven't tried, you need to ask dtz or Sonarpulse
<shlevy> viric: Working very well for me on master
<viric> shlevy: ok
<viric> I wanted memtester for the pi the other day...
Itkovian has joined #nixos
<viric> shlevy: I will try master then.
leat has joined #nixos
<Dezgeg> memtester is in my native cache (on 9b25b9347d97caf55732213dbf45653f866f8114), I think
<viric> ah good
<lexcomplains> What simple commands should I type to get running https://bintray.com/probono/AppImages/download_file?file_path=VLC-3.0.0.git4ff2515.glibc2.17-x86_64.AppImage ? when I ldd file, it says libfuse.so.2 => not found ; libglib-2.0.so.0 => not found ; libz.so.1 => not found ; when I run with nix-shell -p glib.out zlib.out fuse.out , still ldd can't find libs. Should I use patchelf? If yes, then why ldd correctly determine path for libc
<lexcomplains> without patchelf?
<viric> Dezgeg: I had a bitflip in a backup, I bet that in the pi2
<viric> Dezgeg: I don't know whether I will need it statically built
<Dezgeg> ok
<viric> I have an OpenElec in the pi2 now, as a tv
<viric> kodi.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] the-kenny pushed 1 new commit to master: https://git.io/vA4Ft
<NixOS_GitHub> nixpkgs/master 2cafea2 Moritz Ulrich: Virtualbox: Fix type error in `networking.interfaces.vboxnet0.ipv4.addresses`...
NixOS_GitHub has left #nixos [#nixos]
<Profpatsch> If I patch sources with a path and they are not recognized build result (Erlang .beam files) anymore and stripped from the closure, what’s the recommended way of manually adding them?
<genesis> lexcomplains : why do u try to use an appimage of vlc ?
<Profpatsch> propagatedBuildInputs sounds like too much.
<viric> Dezgeg: and I discovered that openelec doesn't even have a way to install gcc
yann-kaelig has joined #nixos
<lexcomplains> genesis , because I just want to use appImage of VLC version 3.0. and because there is no nix package of vlc 3.0 in nixpkgs
<simpson> lexcomplains: I suspect that patching nixpkgs to have a newer VLC will lead to more happiness.
<genesis> sure, appimagekit is broken by design
<genesis> hope i'll have time to look deeper in nix-bundle.
<lexcomplains> simpson , you right, but I don't have time to contribute new package and build it. I just want quickly get this particular binary to run, right now. Maybe in long term someone (or I) will contribute vlc 3.0 to nixpkgs, but in long term. and I need fix now. do we have short straightforward fix? should I execute patchelf with particular arguments or something?
<simpson> lexcomplains: That's not how Nix tends to work. I'm sure that it's possible, with concerted effort, to make AppImages run on NixOS, but I don't think that we have that in place right now.
drewr has joined #nixos
<lexcomplains> ok
<simpson> VLC 2.2.8 is in nixpkgs, but I have no idea whether a version bump will suffice.
ma27 has quit [Ping timeout: 256 seconds]
ma27 has joined #nixos
<genesis> lexcomplains : ask on #appimage anyway
boi has quit [Quit: Page closed]
lonokhov has quit [Quit: Lost terminal]
cinimod_ has quit [Quit: Connection closed for inactivity]
Guanin_ has joined #nixos
<simpson> lexcomplains: A version bump netted me a configure error: "configure: error: Cannot find native C99 compiler: please define BUILDCC."
coot has joined #nixos
<lexcomplains> genesis , I could, but, I don't beleive it is their problem. in other distro like debian, I would install those packages and appimage would just work out of the box correctly, with no hustle.
<lexcomplains> linux-vdso.so.1 (0x00007fffda1a0000) libfuse.so.2 => not found libpthread.so.0 => /nix/store/d54amiggq6bw23jw6mdsgamvs6v1g3bh-glibc-2.25-123/lib/libpthread.so.0 (0x00007f97d1d58000) libglib-2.0.so.0 => not found libz.so.1 => not found libc.so.6 => /nix/store/d54amiggq6bw23jw6mdsgamvs6v1g3bh-glibc-2.25-123/lib/libc.so.6 (0x00007f97d19b8000) /lib64/ld-linux-x86-64.so.2 => /nix
<lexcomplains> sorry for copy paste of ldd output
Guanin has quit [Ping timeout: 264 seconds]
<genesis> as you wish.
ryanartecona has joined #nixos
<lexcomplains> I'm wondering what is the way, to tell binary to find those libs. because they are in nixpkgs. But I'm not and C build engineer, to resolve compiling issues, nor nixOs certified professional
<simpson> There's no such thing as NixOS certification.
<genesis> it could :-)
<simpson> Fixing C build issues is mostly about knowing how to aggressively kick machines until they work.
<srk> lexcomplains: just create a simple derivation for that utilizing patchelf
<simpson> lexcomplains: https://gist.github.com/MostAwesomeDude/cd40b0196c28f5a88300e4aa465efa05 is how far I've gotten. I can't tell why VLC's unhappy here, sorry.
<lexcomplains> oh... hmmm... maybe I could write an stdenv.mkDerivation around this binary, specify dependecies and it may work...
<lexcomplains> simpson no problem, sorry for taking your time, all good
<katona> lexcomplains: extract the appimage and run the binary with steam-run
<simpson> lexcomplains: I don't really care TBH. I'm concerned that if you urgently need VLC 3.0, you have almost certainly made a poor plan.
m0rphism has joined #nixos
<lexcomplains> katona I will try, thnx
jb554 has joined #nixos
goibhniu has quit [Ping timeout: 248 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 3f9c900 Shea Levy: Merge branch 'master' of github.com:NixOS/nixpkgs
<NixOS_GitHub> nixpkgs/master d1cb2ee Shea Levy: nixUnstable: 2.0pre5951_690ac7c9 -> 2.0pre5967_623fcb07....
<NixOS_GitHub> [nixpkgs] shlevy pushed 2 new commits to master: https://git.io/vA4NE
NixOS_GitHub has left #nixos [#nixos]
<Profpatsch> lexcomplains: I just rewrote the rabbitmq packaging, am I nixOS certified enough?
<acowley> I have a build where i have to use a response-file enabled clang wrapper that I made to deal with passing hundreds of nix store paths as command line options. Would there be general interest in folding such a change into the main nixpkgs clang wrapper?
<katona> Anyone using gnome on nixos, could you please go to settings and check under the screen option whether it recognises your monitor? I only have Undefined
<katona> And under different distros it usually recognises it
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vA4NN
<NixOS_GitHub> nixpkgs/master 6173f2f Shea Levy: linux_riscv: Add 4.16-rc1....
NixOS_GitHub has left #nixos [#nixos]
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lexcomplains> Profpatsch, not yet, you may fork all nixpkgs, maintain your own repo version of it, and write extensions for nix language syntax and standart library, then you may pass grade mark for Junior Certificate.
raynold has joined #nixos
__Sander__ has quit [Quit: Konversation terminated!]
<Profpatsch> lexcomplains: Err.
<Profpatsch> Let me search.
<alp> katona, it says "integrated display" (in French though) here
Itkovian has quit [Read error: Connection reset by peer]
<Profpatsch> lexcomplains: Fork nixpkgs, check https://gitlab.techcultivation.org/Profpatsch/nixpkgs-techcultivation
Guanin__ has joined #nixos
<Profpatsch> lexcomplains: Extensions for nix language syntax, check https://github.com/NixOS/nix/pull/948
<katona> alp: thank you :) for some reason it doesn't like my amdgpu then
zombified has quit [Quit: bye bye!]
<lexcomplains> O_O
<lexcomplains> oh my...
<Profpatsch> lexcomplains: Extending (and modifying) the standard library, check https://github.com/NixOS/nixpkgs/blob/master/lib/generators.nix
* lexcomplains amazed...
Guanin_ has quit [Ping timeout: 240 seconds]
<Profpatsch> You come around a bit after a while. :)
<lexcomplains> you won PURE FUNCTIONAL badge!
<Profpatsch> Thanks!
coot has quit [Read error: Connection reset by peer]
<lexcomplains> nice pony by the way
<Profpatsch> ikr, somebody drew it for me a while ago.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dotlambda opened pull request #35191: [WIP] pythonPackages.cram: fix tests (staging...cram) https://git.io/vA4xO
NixOS_GitHub has left #nixos [#nixos]
<lexcomplains> Profpatsch, few questions for nix rockstar, why did you got envolved in to Nix ecosystem? Don't you find hard to switching between different programming languages? when they use same keywords, but meaning is different
<Profpatsch> lexcomplains: I got involved because I started using it and found it lacking in a few places.
<Profpatsch> So I fix stuff I need fixed or would like to be improved.
<Profpatsch> Programming languages are not a very big hindrance, really, they are all pretty similar once you’ve learned a few.
nuncanada2 has joined #nixos
<Profpatsch> e.g. I was able to change a Perl script recently even though I’d never learned Perl.
nuncanada has quit [Ping timeout: 240 seconds]
<lexcomplains> > it lacking in a few places, So I fix stuff I need fixed or would like to be improved. - sounds fair . could be a good role model for new users.
<srhb> There was talk of a container-backed test system at some point -- did anything come of it?
* srhb wants faster iterations
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master fd2f2bb Shea Levy: riscv-pk: Add a variant with a kernel
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vA4pt
NixOS_GitHub has left #nixos [#nixos]
roberth has quit [Ping timeout: 240 seconds]
aerozephyr has quit [Quit: WeeChat 2.0]
mounty has quit [Ping timeout: 248 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c closed pull request #35185: nixos: fix fallout from #27688 (master...nixos/fix-27688) https://git.io/vA4S8
NixOS_GitHub has left #nixos [#nixos]
goibhniu has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl opened pull request #35192: ppl: fix build (master...ppl-typename) https://git.io/vA4hu
NixOS_GitHub has left #nixos [#nixos]
klntsky has quit [Quit: WeeChat 2.0.1]
jensens has quit [Ping timeout: 240 seconds]
<simpson> lexcomplains, genesis: Is there an open bug on NixOS/nixpkgs for AppImage woes, by chance? A place where you've put your errors?
ivanivan has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl closed pull request #34915: ocamlPackages.bitv: init at 1.3 (master...ocaml-bitv) https://git.io/vAYwB
NixOS_GitHub has left #nixos [#nixos]
sigmundv has quit [Ping timeout: 268 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 0565e1e Jörg Thalheim: afl: fix build, by switch to gcc as compiler...
<NixOS_GitHub> nixpkgs/master e38cb9b Jörg Thalheim: afl: disable aarch64
<NixOS_GitHub> [nixpkgs] dezgeg pushed 2 new commits to master: https://git.io/vA4jC
NixOS_GitHub has left #nixos [#nixos]
<infinisil> <Profpatsch> Programming languages are not a very big hindrance, really, they are all pretty similar once you’ve learned a few.
<infinisil> Not true with all languages though!
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 closed pull request #35167: cc-wrapper tests: 4 and 5 regardless of default (master...fix/clang-libcxx-4-5-tests) https://git.io/vA85N
NixOS_GitHub has left #nixos [#nixos]
<lexcomplains> katona , i mounted it (worked), and tried steam-run AppRun (not worked) . then I tried to launch mounted version of it in pkgs.buildFHSUserEnv and it did worked. it launched, however without a GUI.
<simpson> There's learning to program, to think about programs, to think in a particular language, to grok the patterns of a family of languages, to understand meta-levels, etc.
<simpson> lexcomplains: Yeah, poking around this binary more, I've come to the conclusion that the FHS user-env, although a little heavy, is probably the sanest way to run arbitrary AppImages.
<simpson> This puts the score, for me, at 2-0, Nix leading AppImage.
ma27 has quit [Ping timeout: 252 seconds]
<lexcomplains> haha)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master f14b6ea Michael Weiss: jekyll: Update the dependencies...
<NixOS_GitHub> [nixpkgs] primeos pushed 1 new commit to master: https://git.io/vA4jD
NixOS_GitHub has left #nixos [#nixos]
mrkgnao has quit [Ping timeout: 256 seconds]
<genesis> simpson : no, i don't open too much ticket on a same project.
<genesis> appimagekit is build by cmake, custom sh script, custom make turnaround and it's a real nightmare
<simpson> No worries, that's what Nix is for. Get it right once, and then it's always right.
<genesis> that's why i stop contributing the project, i'm still #4 in term of contribution.
<genesis> what they promess could only be reach with something like nix, that's why i'm interested in nix in first place
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vABem
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 8d0c8d2 Ruben Maher: flow: 0.65.0 -> 0.66.0
<Profpatsch> infinisil: I think I could understand Forth code, I’ve taken some excursions into Lisp, love writing Haskell, Python, Bash, Scala, Java/C# …
<genesis> trying to solve the appimage issue to solve the dependance path.
<Profpatsch> what else is there? Ada & APL maybe. :)
<infinisil> Profpatsch: But knowing e.g. Java doesn't let you program in Haskell
<Profpatsch> Sure, you need to check a few marks.
<infinisil> Some skills do transfer, but some don't
<genesis> simpson : how i see the thing : i improve myself in nix and fork the runtime to a decent version (without glib) and use nix to build decent appimage
<simpson> "skill transfer" sounds like HR speak. Every language is different, but every language is similar. Some languages are more similar than others.
<simpson> (Also, as usual, Haskell is Just Another Programming Language here.)
<simpson> genesis: Sounds like a good plan.
<Profpatsch> A good sweep would be learning bash, C, some Lisp, Haskell, a JVM language, a scripting language (python/perl/ruby/lua), and one or two exotics (Forth, Ada, Prolog)
<Profpatsch> Took me around five years to at least learn the basics in each of them and become advanced in one or two.
<simpson> My list is Python, Haskell or another ML, Scheme or another Lisp, Factor or another Forth, and Kanren or another logical language.
<simpson> Spend a month with each.
<genesis> simpson : for the moment, i stop nix waiting my PR to merge, and make a z80/cpc linux complete toolchain in nix, to write a child dream of mine : a cpc demo :)
tmaekawa has joined #nixos
<simpson> genesis: That sounds cool and I'm excited to see your future PRs.
<Profpatsch> simpson: +1
<genesis> simpson : plz i've already 6 pr waiting , if you want to look at
<genesis> i answerd all reviews.
<genesis> (github account : bignaux)
<simpson> genesis: I don't have commit bit, sorry, so all I could say at best is "yes plz merge".
<genesis> nevermind, i've to be patient i guess :D
<simpson> (I'm kind of a flaky contributor. I have lots of PRs where I *haven't* answered feedback.)
<dgpratt> my desktop environment is in a bad state, how can I restart it (I'm logged in to another tty)?
<dgpratt> it's lightdm/gnome3 if it matters
<Profpatsch> dgpratt: sudo systemctl restart display-manager
tmaekawa has quit [Client Quit]
mounty has joined #nixos
<dgpratt> hmm...maybe it's the display driver that's screwed up? is it possible to restart that? maybe I should just reboot?
<clever> dgpratt: the driver gets restarted when display-manager restarts
yegortimoshenko has quit [Ping timeout: 255 seconds]
throwboy has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] dtzWill opened pull request #1883: configure.ac: define HAVE_SECCOMP macro when using seccomp, fix build/tests (master...fix/seccomp-define) https://git.io/vABvL
NixOS_GitHub has left #nixos [#nixos]
hask_bee_3 has joined #nixos
<throwboy> Is there some (easily undersdandable) documentation for developing python with Nix/NixOS?
coot has joined #nixos
<srhb> throwboy: Does that disqualify the nixpkgs python user guide?
yegortimoshenko has joined #nixos
<throwboy> srhb: I have already read that. It goes into the details of how stuff actally works, but I could not grasp what I should actually do if I just wanted to start a simple project.
<hask_bee_3> Can you think of a Haskell package that's included in Stack and that's very unlikely to have its non-Haskell dependencies already installed on a clean macOS or Linux?
<srhb> hask_bee_3: Any of the cv bindings?
<srhb> hask_bee_3: most numerical bindings
<throwboy> As a Nix (and also Python) newbie I am kind of lost. There seem to be lots of different options (pypi in nix, nix-integrated, virtualenv).
<lexcomplains> throwboy there is https://nixos.org/nixpkgs/manual/#python , however it wasn't fast and easy for me. If if your goal is not to develop nix package, but a python app, TLDR use any familiar toolchain that saves you time, e.g. docker, VM,etc
<srhb> throwboy: Try following 9.11.1.1.3.1. and nothing else
<srhb> throwboy: That should get you started :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nix/master a6c0b77 Will Dietz: configure.ac: define HAVE_SECCOMP macro when using seccomp, fix build/tests...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nix] shlevy pushed 1 new commit to master: https://git.io/vABvb
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] shlevy closed pull request #1883: configure.ac: define HAVE_SECCOMP macro when using seccomp, fix build/tests (master...fix/seccomp-define) https://git.io/vABvL
NixOS_GitHub has left #nixos [#nixos]
<lexcomplains> I could understand your pain, and tend to agree that Nix is not easy to understand for newbie mortals like us
<srk> docker saves you time? how? :D
simukis has joined #nixos
<simpson> lexcomplains: Sorry to be frank, but how do you think any of us learned Nix? We read code, we wrote code, we asked questions, we made mistakes.
<simpson> It took only a couple of weekends for learning Nix to have paid off, but it *is* a steep curve at the beginning. That's how capability-aware systems work; people are used to capability-unsafe computing and it's a shock.
<lexcomplains> skr, because I'm familiar with it, and stuff inside just work! I could also configure containers in simple bash script like manner. I enjoy, appreciate and celebrate such simplicity after a pain expirienced while tried to get binaries just work in NixOs
<srk> lexcomplains: try nixops to see the real power of nix when it comes to deployments
<lexcomplains> simpson , you are correct
<lexcomplains> srk, I will, srk, maybe, someday
<throwboy> So my idea (for starting to develop python on nix) was to write an build.nix with python + packages and then point my IDE to that "environment".
<throwboy> Is that in any way sensible?
ivanivan has quit [Ping timeout: 276 seconds]
<srhb> throwboy: Yes, though the usual name is default.nix :)
<srk> uh, nix2.0pre5967.. 38 out of 50 tests failed
<lexcomplains> srk, unfortunately I didn't found DOCS on NixOps or Nix itself that allow use it as Fabric\Ansible devops tooling replacement in prod that easy to understand and extend
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #35193: nixUnstable: bump for minor fix to unbreak seccomp builds (master...fix/nixUnstable-seccomp) https://git.io/vABfR
NixOS_GitHub has left #nixos [#nixos]
<srhb> throwboy: I would suggest trying out something like that shell.nix first though, it's very fast to get a feel of how it works
<srhb> throwboy: Essentially you just get a throwaway python environment in a shell.
<srk> lexcomplains: same thing holds as simpson told you, just need to TRY it :) you can figure out how to use it in production after
<simpson> I don't think that any configuration management tool is easy to understand. nixops is at least not much more complex than Nix and SSH and cloud-specific tooling.
<srhb> throwboy: Once you've got that, I'd progress to the actual buildPythonPackage type stuff.
humanoyd has quit [Quit: WeeChat 2.0.1]
<srk> simpson: I find nixops quite straightforward due to heavy-lifting done by nix :) it's just need to store metadata of your deployments and run nix-copy-closure
<throwboy> srhb: I have seen that most people use nix-shell, however I seem to not completely understand it jet. When start a nix-shell, is it really just for that shell? How would I develop within that one shell?
<srhb> throwboy: Well, you could launch your editor from there and it'd inherit all the relevant python paths for instance :)
<srhb> throwboy: Have you ever used virtualenv? It's like that, only much more general.
<thoughtpolice> bgamari: So, what's the status of cross compilation, at the moment? shlevy seems to be using it fine for RISC-V, and I remember you saying on Twitter that it was in a good spot where you could cross compile full Linux + GHC + Haskell apps to a NixOS sdimage and boot that. That's awesome. Does this all work upstream yet?
<throwboy> srhb: I guess I have. but only heavily wrapped by an IDE
zombified has joined #nixos
<thoughtpolice> bgamari: I haven't talked to Sonarpulse recently, but back around, mmm, ~Nov, he told me it was all messed up (and trying to cross compile ARMv7 on `master` gave me the same impressions)
zombified has quit [Client Quit]
<srhb> throwboy: I would suggest that it's easier to understand what's going on if you try a more barebones approach for a while. It will also make it easier to eventually configure the IDE.
<bgamari> thoughtpolice, if you use my branch things should more or less just work
<throwboy> srhb: makes sense
<bgamari> dtz has been helpfully pushing bits of it upstream
<lexcomplains> throwboy , I run my proprietary binaries of WindIDE from FHS-like container, pkgs.buildFHSUserEnv , and point it to script project outside FHS, to get python script work in NixOs I use shebangs like .#!/usr/bin/env nix-shell #!nix-shell -p python35 -i python3.5..
<shlevy> bgamari: Oh, what's new on your branch?
<bgamari> thoughtpolice, the current state of my branch is https://github.com/bgamari/nixpkgs/tree/ben-cross3
<bgamari> shlevy, it's not entirely clear
<bgamari> I have to rebase
<bgamari> and work out what is still left
<shlevy> Likely to be of use in the riscv effort?
<thoughtpolice> bgamari: Mmmm, that's sort of what I've been doing already, just with a branch from John. :) Though yours does look more polished
<thoughtpolice> (And cross building SD images is what I need anyway)
reinzelmann has joined #nixos
<bgamari> I think there is only 100 or so commits, most of which are only necessary to get nixos running
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Profpatsch opened pull request #35194: rabbitmq-server: 3.6.10 -> 3.6.15 (and various improvements) (master...rabbitmq-3.6.15-fixes) https://git.io/vABfx
NixOS_GitHub has left #nixos [#nixos]
<lexcomplains> throwboy if you are real beginner, and your goal to execute simple python code, use any web repl ide like https://repl.it/
<bgamari> if you don't need a full nixos image then I suspect master should work quite well already
<shlevy> bgamari: Ah, I'm not there yet but I'll want that soon... I guess I'll start taking stuff from your branc when I'm there
<thoughtpolice> bgamari: The real question is whether those are packages (e.g. "I had to get GTK working again") or just actual .nix file bumps
<throwboy> lexcomplains: I'll probably get to that stuff later. I just want to get to the basics rn.
katyucha has joined #nixos
* bgamari really does intend on helping to push this upstream himself
<thoughtpolice> bgamari: But I'd be willing to help upstream this, for example, anything that can be merged with little closure size increase/rebuilding.
<bgamari> but I have a bit of a deadline this week
<shlevy> bgamari: Do you think we can get it in by the 18.03 branchoff in a week?
<shlevy> Ah damn
<thoughtpolice> I think everyone does, yeah
<thoughtpolice> (Same here)
<srhb> throwboy: Play around with nix-shell with different dependencies in scope. You'll get the hang of it, I'm sure :)
<throwboy> lexcomplains: I know basic python, my current goal is to set it up nicely on nixos.
<shlevy> bgamari: Is there any of it that you think would be inappropriate to backport after we've branched?
<shlevy> If so we can prioritize ustreaming that
<lexcomplains> gl hf throwboy
<bgamari> thoughtpolice, most of the changes are pretty minor (e.g. just shuffling dependencies)
<throwboy> thx lexcomplains
betaboon has quit [Quit: WeeChat 1.9.1]
* bgamari looks
<thoughtpolice> bgamari: Right, that's basically what I've been doing, but that typically does imply a rebuild, the main thing is whether "rebuild" means "lots of compile time" or "rebuild this /etc file" I guess. But looking at it there are some Linux bumps, etc etc
<thoughtpolice> bgamari: But that's all to be expected really, I guess.
<bgamari> right, there is a fair amount of rebuilding
<bgamari> shlevy, I'm not sure what the usual criterion for backporting is
<bgamari> shlevy, perhaps we could try to sneak changes to things "low" in the dependency tree
<shlevy> Do we have a way to build disk images without qemu/root?
<bgamari> before the branch
<bgamari> shlevy, it's a bit tricky
<gchristensen> shlevy: talk to copumpkin :)
<bgamari> shlevy, building sd images is currently a bit of a mess
<bgamari> shlevy, it requires quite some headstands
<bgamari> since you can't use root
<thoughtpolice> We have an sdimage builder thingy here at $WORK and yes, it is weird
<shlevy> bgamari: As a rough guide, if you're willing to bet it won't be noticeable to anyone not opting in to noticing your work then it's probably fine
<thoughtpolice> (Ours is like quadruple-y convoluted because it's an FPGA build too, so)
<shlevy> Ugh I'm just going to run a VM :P
<thoughtpolice> However, honestly, you can just build the .system closure. That's what I would like to do
<Dezgeg> there is make-ext4-fs.nix
<shlevy> No, you know what, I'm just going to stuff everything into the initramfs until I get bgamari's stuff
<Dezgeg> (don't look at the implementation)
<clever> shlevy: the nixos expressions already boot a vm to make disk images
<thoughtpolice> shlevy: For example, after this is done, there's no reason Hydra couldn't cross build, say, an armv7 NixOS .system image, right?
<Dezgeg> better look at nixos/modules/installer/cd-dvd/sd-image.nix which uses it
<thoughtpolice> I realize Hydra is a pretty sacred resource, but having at least *one* thing to CI would be good
<clever> thoughtpolice: the biggest problem with any cross-compile in nix, is that it has a different hash from a native compile
<bgamari> perhaps I'll quickly try rebasing
<shlevy> thoughtpolice: Right
<clever> thoughtpolice: so nix-env and nixos-rebuild will refuse to link against the cross-compiled libraries
<clever> thoughtpolice: and they will want to rebuild the world, natively, on a slow arm board
<thoughtpolice> One alternative I've considered is the one everyone else does. Which is just to qemu-system emulate full machines and put them on a local network.
aarvar has joined #nixos
<clever> thoughtpolice: qemu-user can do that with less overhead
<thoughtpolice> For me, the rebuild thing isn't a problem; I *want* to push the full closure manually/switch
<clever> thoughtpolice: qemu-user just magically allows an x86-linux kernel to run arm-linux binaries
<thoughtpolice> clever: Ehhh, IDK, I had some fussy problems with it for packages like Guile, last I tried.
<bgamari> thoughtpolice, yes, guile is a sticking point
<thoughtpolice> Oh I'm well aware, I've spent much time with it (especially recently) :)
<bgamari> thoughtpolice, I had to force use of 2.0 iirc
<bgamari> since guile 2.2 was broken
<thoughtpolice> I simply fixed that one by just adding a quick armv7 builder to my /etc/nix/remote-systems.conf
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #35155: xrdp: 0.9.3 -> 0.9.5 [CVE-2017-16927] (master...patch-91) https://git.io/vA8Xj
<infinisil> Is cross-compiled stuff bit-wise identical to non-cross-compiled stuff?
<shlevy> Yeah, I'm switching to qemu-system to avoid those headaches
<thoughtpolice> and building Guile through that
<thoughtpolice> (on a real board)
<shlevy> infinisil: Almost certainly not
<bgamari> infinisil, indeed not
<thoughtpolice> clever: Anyway I guess I'm saying qemu-system is more robust, is all
<shlevy> infinisil: Theoretically there's no reason it should be any different, other than store path references
<infinisil> So why is it not?
<infinisil> because it takes effort to do i guess
<infinisil> and nobody cares
<Dezgeg> autotools :P
<shlevy> infinisil: But no one writes toolchains that way, unfortunately. Cross is always a second-class citizen
<bgamari> infinisil, I would say it would be nearly impossible
<gchristensen> infinisil: "and nobody cares" seems like an awfully harsh, damning thing to say without actually knowing that to be true
<shlevy> bgamari: Why?
robstr has quit [Remote host closed the connection]
ma27 has joined #nixos
<gchristensen> if "because it took effort" was a reason for anything, NixOS wouldn't exist
shabius has quit [Quit: Leaving]
robstr has joined #nixos
<gchristensen> please don't throw away the effort of everyone who does care
<infinisil> Hmm true, sry about that
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #35195: llvmPackages_{4,5}: musl compat (master...fix/llvm-musl) https://git.io/vABUt
NixOS_GitHub has left #nixos [#nixos]
<bgamari> shlevy, because there are plenty of packages low in the dependency tree with rather blatant bugs with respect to cross
<thoughtpolice> Well, I guess the question is, "why isn't every compile a cross compile for all supported architectures". It's a good question because, in theory, there's nothing seemingly "about" a compiler that requires it to care about dirty specifics. It's tricky in detail.
<gchristensen> thank you
<bgamari> shlevy, that requiring working around
<Dezgeg> e.g. anything that uses help2man to build manpages won't be able to build manpages when cross building
<bgamari> autotools doesn't make cross easy
<Dezgeg> because it works like "./foo --help | help2man > man.1" or something
<shlevy> bgamari: Ah, OK, yeah. I thought you were saying from a compiler fundamentals perspective
<bgamari> it's better than most of the alternatives, but it's still terrible
<thoughtpolice> bgamari: Anyway, some of these commits are deja vu for me because I'm pretty sure I patched some similar stuff.
<shlevy> Dezgeg: That's fine, we already have to handle the concept of native vs target dependencies
<clever> Dezgeg: it would need to put help2man in the nativeBuildInputs, so nix knows to provide the right build of help2man
<Dezgeg> also all those random autoconf try-to-compile-and-run checks, like "does this platform have working getcwd()" where you can't run the checks when cross-building, thus get a random answer when cross-compiling
<thoughtpolice> That can probably just go up. I don't think e.g. has so many revdeps to make a rebuild horrible
<Dezgeg> well, that doesn't work if the command has platform-specific options
<Dezgeg> and you'd need to hack the build system anyway to look foo in path, not use ./foo
<dtz> grahamc: borg is temporarily sick, maybe, right? O:)
<shlevy> Dezgeg: Then the command should take its target as a flag, not compiled in :P
<bgamari> thoughtpolice, that particular pattern is infuriatingly common
<dtz> oh no maybe not!!
<bgamari> thoughtpolice, yes, we should probably try to get that up
<clever> Dezgeg: oh, right, ./foo, ow
<thoughtpolice> bgamari: yes it is
<gchristensen> dtz: what is it doing?
<dtz> D:
<clever> Dezgeg: you would need to build the current package twice, lol
<clever> Dezgeg: once for the host, then depend on itself, to generate the target docs
<Dezgeg> which is still not enough in case --help is target-dependant
<clever> Dezgeg: thats where qemu-user + cross-compile could come in handy, cross-compile for performace, qemu-user so ./foo works
<dtz> re:cross I think a good goal is to be at least as good as other solutions/approaches
<dtz> some packages are just too silly to handle, and will be fixed as folks are motivated
<shlevy> grahamc: Looks like you need --read-write-mode for ofborg?
detran has joined #nixos
<gchristensen> what is going on?
<gchristensen> what have I missed?
<shlevy> Some import-from-derivation
<shlevy> nix-instantiate needs --read-write-mode to properly handle import-from-derivation
<gchristensen> is this for a PR?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Profpatsch opened pull request #35196: replace: split man output (master...replace-man-output) https://git.io/vABUB
NixOS_GitHub has left #nixos [#nixos]
<shlevy> Unless it's intentional that you're not supporting it, which is probably a good idea actually
<gchristensen> uhh
<gchristensen> did someone merge some IFD?
<gchristensen> we should revert that
<Dezgeg> probably there shouldn't be IFD in nixpkgs
<gchristensen> yeah, master is busted...
<Profpatsch> gchristensen: What’s IFD?
<shlevy> There shouldn't be IFD for top-level eval
<shlevy> import from derivation
<Profpatsch> Ah
<gchristensen> it is intentionally not supported
<infinisil> shlevy: but it should be fine where hydra doesn't evaluate it?
shabius has joined #nixos
<shlevy> gchristensen: if OfBorg were in C++ you could catch the InvalidPathError and have a nice message :P
<shlevy> infinisil: Yeah
<gchristensen> nice :)
Guanin__ has quit [Read error: Connection reset by peer]
<infinisil> Would it be alright to have a `latest` passthru for packages that uses IFD to build from master or something like this?
<Profpatsch> shlevy: Isn’t the nix API exported as C interface anyway? For the Perl bindings?
<shlevy> Profpatsch: The perl bindings use C++
<Profpatsch> Ah, ok.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc pushed 1 new commit to master: https://git.io/vABUP
<NixOS_GitHub> nixpkgs/master 4419a31 Graham Christensen: Revert "jekyll: Update the dependencies"...
NixOS_GitHub has left #nixos [#nixos]
<shlevy> But anyway, this is specifically a C++ exception
<gchristensen> shlevy: maybe a `sys` FFI crate for Nix :)
mounty has quit [Read error: Connection reset by peer]
ma27 has quit [Ping timeout: 252 seconds]
<Profpatsch> Well, it shouldn’t be too hard to create a C++ executable that wraps this exception, right?
<Profpatsch> Or in the extreme case patch it into the ofborg nix.
<lexcomplains> simpson, you asking good questions and making sensible statements. > how do you think any of us learned Nix? - tbh, I think some solid % of core community contributors, learned Nix by working directly with people who invented nix, for companies who sponsor nix marked expansion. because otherwise how any one like me could get productive with a language that lacks javadoc\python-doc like API & stdlib refference. I don't want to hur
<shlevy> Profpatsch: Sure, hydra has its own evaluator instead of nix-instantiate too
<clever> dtz: which commit is doing IFD?
szicari has quit [Quit: szicari]
<shlevy> clever: 4419a31 reverted it
szicari has joined #nixos
<dtz> no clue! and .. oh yay :)
<shlevy> gchristensen: We should have an ofborg on-call rota and let trusted people send an alert :)
<shlevy> gchristensen: You have to swoop in way too often
<gchristensen> yeah!
<gchristensen> __soon__ I'll be able to send a proper page when master fails to evaluate
<lexcomplains> simpson, nixOs has selling points for me, and advantages, I admit. but If I point to flaws, I want people to agree and admit flaws. or engage in construtive factual based arguing
knupfer has joined #nixos
simpson has quit [Ping timeout: 248 seconds]
robstr has quit [Remote host closed the connection]
<dtz> ty grahamc and everyone else ^_^
<shlevy> nice :)
robstr has joined #nixos
simpson has joined #nixos
ryantrinkle has joined #nixos
robstr has quit [Remote host closed the connection]
robstr has joined #nixos
Guanin has joined #nixos
vidbina has quit [Ping timeout: 256 seconds]
coot has quit [Ping timeout: 260 seconds]
ma27 has joined #nixos
<gchristensen> thanks for the ping :)
Guanin_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jonafato opened pull request #35197: gnomeExtensions.battery-status: init at v6 (master...gnome-shell-extension-battery-status-6) https://git.io/vABTP
NixOS_GitHub has left #nixos [#nixos]
<gchristensen> actually, I went ahead and added the status check: https://nix.ci/status
<srhb> Does anyone know of a module that exposes a helper function to create values for its options? I'm wondering where to put such a thing and how to expose it.
<srhb> Preferably without exporting a bare path.
Guanin has quit [Ping timeout: 264 seconds]
<srhb> I can stick it in pkgs somewhere of course, but that's a bit sad.
<Profpatsch> gchristensen: Why is it that the eval check always takes the longest?
<Profpatsch> Shouldn’t eval succeed even before the package can begin to build?
<gchristensen> Profpatsch: the "beginning evaluations"?
<Profpatsch> yeah
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dotlambda opened pull request #35198: python: updates and fixes (staging...python) https://git.io/vABTd
NixOS_GitHub has left #nixos [#nixos]
<gchristensen> I should probably add more info, but "beginning evaluations" means it is running the grahamcofborg-eval-* things
<bgamari> dtz, you have been quite busy!
<bgamari> I hadn't realized just how many patches you managed to upstream
ma27 has quit [Ping timeout: 256 seconds]
<dtz> 😸
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #35046: sayonara: init at 1.0.0-git5-20180115 (master...sayonara-player) https://git.io/vAClj
NixOS_GitHub has left #nixos [#nixos]
klntsky has joined #nixos
ma27 has joined #nixos
<srhb> M-x describe-char
<gchristensen> "friendly"
<srhb> (GRINNING CAT FACE WITH SMILING EYES)
<srhb> If anyone else was wondering...
<LnL> yeah, that's what it looks like in my client :p
<dtz> teehee ty
ryanartecona has quit [Quit: ryanartecona]
mekeor has joined #nixos
<gchristensen> complicated, when do we start doing cross rebuild estimates, musl estimates, eval checks, etc. for all these combinations
reinzelmann has quit [Quit: Leaving]
<gchristensen> we're gonna need a bigger boat
<LnL> we're going to have to split/distribute evals then
<clever> LnL: i have an idea i was thinking of, allowing nix to use threads to speed up an eval
<dgpratt> well this is strange and unfortunate: I'm running NixOS in a VirtualBox VM and when I connect a monitor to the host machine, the graphical environment of the VM goes all wonky (this is more a lament than a request for help -- of all the things it could be, NixOS itself would be a very unlikely culprit)
vidbina has joined #nixos
<srhb> dgpratt: I've given up on VirtualBox... Too many weird issues like that. Though I guess that doesn't help much :)
lopsided98 has quit [Remote host closed the connection]
lopsided98 has joined #nixos
robstr has quit [Remote host closed the connection]
robstr has joined #nixos
jensens has joined #nixos
<samueldr> oracle too has given up on virtualbox
<clever> i still use it when i need to run a windows VM on my laptop
<clever> but there is not hot-plugging of monitors, so i havent noticed the above issue
<clever> the guest tools work surprisingly well, resizing the virtual gpu to match the window size and syncing the clipboard
<disasm> kvm/qemu if I have to touch windows :)
<hask_bee_3> On my local machine, I have a particular nixpkgs revision. Question: How do I find out the corresponding commit (SHA-1) in the repository https://github.com/NixOS/nixpkgs ?
robstr has quit [Ping timeout: 240 seconds]
<clever> disasm: qemu doesnt support dynamically changing the resolution of the guest gpu so seamlessly
<disasm> got tired for recompiling virtualbox every change to include vmtools on nixos. And no licensing issues :)
<clever> hask_bee_3: what is the absolute path to that nixpkgs?
taktoa has quit [Remote host closed the connection]
<LnL> hask_bee_3: cat $(nix-instantiate --eval -E '<nixpkgs>')/.git-revision
lopsided98 has quit [Remote host closed the connection]
<disasm> clever: I use spice with the guest additions
robstr has joined #nixos
<clever> disasm: hmmm, i should look into those...
<disasm> the scale mode with remmina works well :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rnhmjoj closed pull request #35064: nixos/networking: start dhcpcd even when defaultGateway6 is set (master...dgw) https://git.io/vAWZG
NixOS_GitHub has left #nixos [#nixos]
szicari has quit [Quit: szicari]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nix/master 70eb641 Eelco Dolstra: Update release notes...
<NixOS_GitHub> [nix] edolstra pushed 1 new commit to master: https://git.io/vABLH
NixOS_GitHub has left #nixos [#nixos]
kp__ has joined #nixos
<hask_bee_3> clever $NIX_PATH is a symlink to a particular folder. $NIX_PATH/nixpkgs is a symlink to yet another folder. That's the one you want?
<clever> hask_bee_3: yeah, run realpath on that
lopsided98 has joined #nixos
<hask_bee_3> clever /nix/store/p2hayhk6imxv9bm7ld4l28qnsnfcnqcq-nixpkgs-18.03pre128469.e4e1f0462f6/nixpkgs
<clever> hask_bee_3: e4e1f0462f6 is the git revision
<hask_bee_3> ah nice
<hask_bee_3> clever Is this platform dependent?
<hask_bee_3> or does this revision work for all platforms?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra pushed 1 new commit to master: https://git.io/vABLp
<NixOS_GitHub> nix/master d7fdfe3 Eelco Dolstra: Remove macOS multi-user instructions...
NixOS_GitHub has left #nixos [#nixos]
<clever> the code should work on all platforms, but the testing has only ran for some
<hask_bee_3> clever what code and what testing?
<clever> via https://github.com/NixOS/nixpkgs-channels/commit/e4e1f0462f6 i can see the commit exists only in the nixos-unstable-small and nixpkgs-unstable branches
<clever> hask_bee_3: that depends on which channel your on, what does `sudo nix-channel --list` say?
<hask_bee_3> clever it lists nothing at all
<clever> hask_bee_3: which distro are you on?
<hask_bee_3> (Incidentally, I'm on macOS)
<dtz> any brave soul willing to merge https://github.com/NixOS/nixpkgs/pull/35195 ? 🤗
<dtz> or non-brave soul
<dtz> if it looks like it requires bravery nevermind :D
<clever> hask_bee_3: ah, then your most likely on the nixpkgs-unstable channel, which tests that basic things work on all platforms
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c closed pull request #35195: llvmPackages_{4,5}: musl compat (master...fix/llvm-musl) https://git.io/vABUt
NixOS_GitHub has left #nixos [#nixos]
<gchristensen> is it ok to put python in llvm LnL?
katyucha has quit [Ping timeout: 248 seconds]
<clever> hask_bee_3: also, apple is naughty, sudo sets HOME to the wrong value, so the command i gave above listed the channels for the wrong user
<hask_bee_3> :)
szicari has joined #nixos
<LnL> gchristensen: depends
<dtz> yay ty whoever that was <3
Itkovian has joined #nixos
<gchristensen> michaelraskin who seems to be creeping :)
<LnL> gchristensen: it's only for musl, so doesn't matter for darwin bootstrapping
<gchristensen> ah right
<gchristensen> boy howdy I somewhat fear the various complexities we're growing
<LnL> yeah, cross and new platforms are increasing the amount of conditionals quite drastically
<clever> LnL: as an example, i think it would be very simple to perform this map in parallel: https://gist.github.com/cleverca22/c2d134c315b0b02d8d7807034735a326
<clever> given enough cores, it could reduce a 36 second job down to 2 seconds
<niksnut> eh, since when do we support musl in nixpkgs?
<niksnut> that sort of stuff should be kept in a branch
<clever> niksnut: what do you think about adding a parallel map, to speed up the example in that gist?
<niksnut> this takes me back to the bad old days when we built part of the initrd and bootstrap tools using dietlibc and klibc
<hask_bee_3> clever, so nixpkgs-unstable is the safest channel to use to build Mac/Linux cross platform programs?
<niksnut> so you needed adhoc patches everywhere
<gchristensen> scary
<clever> hask_bee_3: yeah, that should be fine
<hask_bee_3> ok thank you
<gchristensen> this musl support seems more separate, more akin to the architecture
<LnL> clever: have you seen the recent memoize?
<dtz> musl is quite a bit better--alpine uses it, for example, as a pretty significant example of suitability. But also musl fixes are almost always fixing broken code, so everyone wins O:). Recent glibc has become more posix-enforcing as well so that helps too-- quite fewer patches than previously would be needed.
<clever> LnL: nope
ixxie has quit [Ping timeout: 256 seconds]
JonReed has joined #nixos
<JonReed> Hi guys, what is the state of SeLinux on Nixos? Is it possible to run it?
ivanivan has joined #nixos
<clever> LnL: do you have more details?
<LnL> trying to find the commit
<clever> ah
<niksnut> clever: there is a parallel nix evaluator somewhere
<ivanivan> I'd like to customize my keyboard layout (dumpkeys, edit,...). Can anyone advise how I'd do this on NixOS?
<clever> LnL: ah, ise, thats why i didnt find it with a quick search
<clever> LnL: ahhh, thats a second half of what i was planning, that would be a lot more of an invasive change
<clever> caching thunks and their outputs
<disasm> ivanivan: a lot of that will depend on your window manager your using
MP2E has joined #nixos
cnidario has joined #nixos
<ivanivan> I'm using Gnome desktop
MP2E has quit [Remote host closed the connection]
ryanartecona has joined #nixos
<niksnut> was what I meant
<LnL> oh!
<clever> LnL: memoise looks simple, but you have to insert it everywhere you want gains, one of the other ideas i had was to alter the parser, to just memoize everything
<niksnut> it would not be hard to add a parallelMap on top of that
<clever> niksnut: my idea, was to treat parallelMap similar to trace, you give it a list of thunks that you forceValue, like: map (x: x.config.system.build.toplevel) systems
<clever> niksnut: and also something to actually return, just: systems
<clever> so it can fully resolve the toplevel derivation, but still return the entire tree, if you wish to do more complex things later on in the expression
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra pushed 1 new commit to master: https://git.io/vABmC
<NixOS_GitHub> nix/master d4e9353 Eelco Dolstra: Fix incorrect (and unnecessary) format string...
NixOS_GitHub has left #nixos [#nixos]
<clever> niksnut: looks like you already found a lot of edge cases i hadnt thought about, my initial idea was to just tweak the forceValue implementation so it wouldnt falsely detect another thread's blackhole
Ross has quit [Ping timeout: 260 seconds]
cnidario has quit [Remote host closed the connection]
simukis has quit [Ping timeout: 240 seconds]
szicari has quit [Quit: szicari]
Ross has joined #nixos
ivanivan has quit [Quit: WeeChat 2.0]
endformationage has joined #nixos
ma27 has quit [Ping timeout: 256 seconds]
throwboy has left #nixos [#nixos]
ma27 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] primeos opened pull request #35199: [CI-test] jekyll: Update the dependencies (master...jekyll) https://git.io/vABOo
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] deepfire opened pull request #35200: ghc 8.4: update configuration (master...ghc-8.4) https://git.io/vABOh
NixOS_GitHub has left #nixos [#nixos]
szicari has joined #nixos
katyucha has joined #nixos
MP2E has joined #nixos
szicari has quit [Client Quit]
robstr has quit [Remote host closed the connection]
Guest50325 has quit [Ping timeout: 255 seconds]
hask_bee_3 has quit [Quit: Textual IRC Client: www.textualapp.com]
self has joined #nixos
self is now known as Guest11861
i-am-the-slime has joined #nixos
<i-am-the-slime> how can I make my login manager look nice?
<i-am-the-slime> I don't really care which one it is I just want it to look nice
<gchristensen> I usually use sddm and it looks nice
<sphalerite_> ^
<sphalerite_> I think I have the KDE/Plasma greeter for it, it's pretty simple but looks decent
<i-am-the-slime> It's completely blue on startup
<i-am-the-slime> And has a round user image for me.
<gchristensen> oh, that isn't nice?
<i-am-the-slime> I don't find it nice.
<i-am-the-slime> If I could set a picture for myself and a background picture I might settle for it.
<gchristensen> I'm out of ideas, sorry
ma27 has quit [Quit: WeeChat 2.0]
ma27 has joined #nixos
<samueldr> background I don't know, but afaik it loads either one of .face .face.icon or .face.png (all symlinked for me) for the user image
<samueldr> (that file would be in your home)
<i-am-the-slime> That's good to know already, let me try that.
<samueldr> SDDM reads user icon from either ~/.face.icon or FacesDir/username.face.icon
<samueldr> so, .face.icon
<sphalerite_> i-am-the-slime: yeah that's the screen I have too
<i-am-the-slime> What file could that be?
<i-am-the-slime> What file type, I mean.
<samueldr> png for me
<samueldr> might be able to load anything qtquick(?) can load
<i-am-the-slime> After i was logged in once, it uses my background picture on the lockscreen, which is also nice.
<sphalerite_> I'd assume png or jpg would work
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] xurei opened pull request #35201: postman : 5.5.2 -> 5.5.3 (master...app/postman) https://git.io/vABsr
NixOS_GitHub has left #nixos [#nixos]
<samueldr> that's a sane assumption
<sphalerite_> fun fact: building 6 gccs on a scaleway C1 takes a while
<samueldr> a while is around how many hours?
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sphalerite_> idk, started this morning (12h ago)
<sphalerite_> not done yet
<gchristensen> jeeze, lucky you don't have timeouts
<sphalerite_> the actual thing I'm trying to work out is which commit broke attr on ARM
klntsky has quit [Remote host closed the connection]
zarel has joined #nixos
hamishmack has quit [Quit: hamishmack]
<i-am-the-slime> the user image worked out
szicari has joined #nixos
hamishmack has joined #nixos
<i-am-the-slime> wow there's even a video with a video background for the lockscreen on the page you linked to
Guest11861 has quit [Read error: Connection reset by peer]
<dtz> sphalerite_: are you sure it's broken? aarch64 builder only today (I think?) got the /bin/sh fix (err, un-break :P) needed to successfully build attr
<dtz> sphalerite_: if it still seems broken, info/link would be appreciated!
<samueldr> last time I played around with SDDM customizations (on 17.03) the QML/qtquick(?) wasn't built with what was needed for (at least webm) vides to run
<sphalerite_> dtz: was it a getopts-related thing?
<i-am-the-slime> ah :(
<samueldr> haven't resurrected my work since I migrated to auto-login and starting i3lock on session start
<i-am-the-slime> samueldr: I'm happy doing that
<i-am-the-slime> with slock
<samueldr> (I don't see sddm anymore)
<i-am-the-slime> But I don't know how
jensens has quit [Ping timeout: 256 seconds]
<i-am-the-slime> Where do you run i3lock?
<i-am-the-slime> There are so many .X files
zarel has quit [Ping timeout: 240 seconds]
<i-am-the-slime> It's like the X-Files to me.
<dtz> i forget, I know attr was an early example of why we needed more features in /bin/sh
hamishmack has quit [Ping timeout: 268 seconds]
<sphalerite_> i-am-the-slime: hah
<sphalerite_> dtz: seems weird to me that this would only cause failure on ARM though?
<dtz> sphalerite_: yep, getopts!
<samueldr> i-am-the-slime: depends on whether you run with a graphical session like kde or xfce or if you've written your own .xsession
<samueldr> for the former (xfce, kde) use their own systems to auto-start software
<samueldr> and for the latter, add your locker (with &) early
<dtz> sphalerite_: been seeing it for a good while, promise that's what it is. Other builders were experiencing such mass failures I guess they were updated more quickly. Or maybe they're updated more often regardless, idk. :).
<i-am-the-slime> I have an ~/.xinitrc at least
<sphalerite_> dtz: good to know
<sphalerite_> dtz: thanks!
i-am-the-slime has quit [Remote host closed the connection]
<dtz> sphalerite_: it was... unclear that there was an issue and how to fix it, needed to update both nix version and nixpkgs or maybe just one depending.. :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lsix opened pull request #35202: ddrescue: 1.22 -> 1.23 (master...ddrescue-1.23) https://git.io/vABGD
NixOS_GitHub has left #nixos [#nixos]
<dtz> and was probably the largest instance of "why does it build for me but not you" I've ever seen in Nix, haha, you're not alone in being a bit startled :)
<sphalerite_> ah ok
phry has joined #nixos
szicari has quit [Quit: szicari]
katona has quit [Quit: Connection closed for inactivity]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] dezgeg opened pull request #1884: libexpr: Don't create lots of temporary strings in Bindings::lexicographicOrder (master...string-temps) https://git.io/vABZC
NixOS_GitHub has left #nixos [#nixos]
asuryawanshi has quit [Ping timeout: 248 seconds]
ertes has quit [Ping timeout: 256 seconds]
<phry> Hi there :)
<phry> I'm trying to build a derivation for a Firefox Native Messaging Host Application and could need some help.
<phry> The thing is: firefox looks for these host applications in the specific path /usr/lib/mozilla/native-messaging-hosts - but I have no idea how my derivation can write to that path so that it is visible for Firefox. Can someone help me with that? :)
<sphalerite_> phry: you need to get it to look elsewhere
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti closed pull request #35200: ghc 8.4: update configuration (master...ghc-8.4) https://git.io/vABOh
NixOS_GitHub has left #nixos [#nixos]
<sphalerite_> There are probably ways around it but they're very fiddly and undesirable
jmiven_ has joined #nixos
i-am-the-slime has joined #nixos
szicari has joined #nixos
<i-am-the-slime> This looks nice: https://store.kde.org/browse/cat/101/
<i-am-the-slime> Look at the name, too
ivanivan has joined #nixos
<phry> sphalerite_: I don't think I can get FF to look elsewhere (except for $HOME/.mozilla/native-messaging-hosts/ which I guess will share the same problems) without changing the FF source :/
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] shlevy pushed 1 new commit to master: https://git.io/vABZb
<NixOS_GitHub> nix/master 056d28a Tuomas Tynkkynen: libexpr: Don't create lots of temporary strings in Bindings::lexicographicOrder...
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] shlevy closed pull request #1884: libexpr: Don't create lots of temporary strings in Bindings::lexicographicOrder (master...string-temps) https://git.io/vABZC
NixOS_GitHub has left #nixos [#nixos]
gem has joined #nixos
<phry> and yes, of course I can add a symlink to the path in the homedir, but I guess that defeats the purpose of wrinting a derivation in the first place :/
<sphalerite_> no, that won't help either ebcause of the build sandbox stuff
<sphalerite_> it wouldn't actually be visible to the builder
<phry> it doesn't need it at build time, just at runtime if that makes any difference
jmiven has quit [Ping timeout: 264 seconds]
jmiven_ is now known as jmiven
zarel has joined #nixos
<symphorien> phry: https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/security/browserpass/default.nix#L27 << you can try to look how other software do that
<phry> uh, nifty. I was looking for passff, but forgot about browserpass
<symphorien> otherwise, a moderately ugly way is to make a wrapper of firefox creating the symlink in the home before execing firefox
<gem> Hey
<symphorien> that's standard for systemd service to create there respective /var/lib stuff
<phry> okay, thanks for the info :)
<phry> I guess I'll try to replicate what browserpass is doing here, if that actually works I was just off by two folders :)
<symphorien> (using execStartPre)
kelleyNif1 has quit [Quit: Leaving.]
jb554 has quit [Ping timeout: 256 seconds]
i-am-the-slime has quit [Remote host closed the connection]
szicari has quit [Quit: szicari]
katyucha has quit [Ping timeout: 260 seconds]
<phry> hrm. I fear the browserpass approach isn't event working with browserpass for me :/
hamishmack has joined #nixos
szicari has joined #nixos
<phry> and of course, there's an open issue for that xD gonna dig deeper :)
szicari has quit [Client Quit]
ivanivan has quit [Quit: WeeChat 2.0]
katona has joined #nixos
<sphalerite_> dtz: not quite sure I understand what I need to do to get this working. The branch I'm running off has #35016 merged in it but AFAIU I need to get a newer nix..? but to get a newer nix I need to build from there which I can't because I don't ahve the newer nix?
<dtz> lol it sounds like you got it just right :P:P
<sphalerite_> do I need to use 1.11.x?
<dtz> although I think just using a sufficiently recent nixpkgs cures things?
<sphalerite_> how recent is sufficiently recent? is current nixos-unstable recent enough?
<dtz> might need to temporarily use nix "stable" with sufficiently new nixpkgs
<dtz> since if you already have a broken-ish nix-unstable it can't build busybox so you can't build your way out
<sphalerite_> right
<sphalerite_> trying that, thanks
<dtz> uhhh I think so? This is a few days old at least I think, but I'm not sure if unstable is one some strange dry spell
<dtz> oh okay, great, I was gonna try to check :). GL sir!
jb554 has joined #nixos
<dtz> lol but don't use master since nixUnstable doesn't build there currently :D:D
<dtz> O:)
deepfire has joined #nixos
<deepfire> peti, hello!
deepfire has quit [Client Quit]
throwup has joined #nixos
deepfire has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 521ffc2 Michael Weiss: jekyll: Update the dependencies without breaking the evaluation...
<NixOS_GitHub> [nixpkgs] primeos pushed 1 new commit to master: https://git.io/vABc5
NixOS_GitHub has left #nixos [#nixos]
<throwup> can I set nix to only use a certain amount of resources? my cpu just got unconfortably hot while trying to install some python packages
szicari has joined #nixos
<symphorien> if you use the daemon, systemd has probably facilities to do that
self has joined #nixos
self is now known as Guest99414
<thoughtpolice> shlevy: d1cb2ee899c397d76c7f9617c512e635f92c0641 breaks nixos-install it seems
<thoughtpolice> So nixos-rebuild broke :/
<shlevy> erm, ignore the issuecomment
<throwup> how would I set cpu scaling/ max temps on NixOS (configuration.nix)?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 4 new commits to master: https://git.io/vABCV
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master cbae401 Will Dietz: nixUnstable: bump for minor fix to unbreak seccomp builds
<NixOS_GitHub> nixpkgs/master a0c5d2d Shea Levy: Merge branch 'master' of github.com:NixOS/nixpkgs
<NixOS_GitHub> nixpkgs/master 7ce1f0b Shea Levy: linuxManualConfig: Fix build on non-modular kernels
orivej has joined #nixos
<dtz> thanks shlevy !
zarel has quit [Quit: Leaving]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill closed pull request #35193: nixUnstable: bump for minor fix to unbreak seccomp builds (master...fix/nixUnstable-seccomp) https://git.io/vABfR
NixOS_GitHub has left #nixos [#nixos]
coot has joined #nixos
<symphorien> throwup: man systemd.resource-control
<symphorien> there are options there
<deepfire> peti, I hope my IRC connection stays alive sufficiently long so I can help with any nh questions..
<thoughtpolice> shlevy: confirmed, thanks!
hiratara has quit [Ping timeout: 260 seconds]
<symphorien> throwup: from configuration.nix, something like systemd.services.nix-daemon.serviceConfig.CPUQuota="20%"
<symphorien> (untested, just reading the man page)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vABWZ
<NixOS_GitHub> nixpkgs/master 54d4394 Olivier Bourdoux: perl-Gtk2TrayIcon: init at 0.06
<NixOS_GitHub> nixpkgs/master 7cb7d2a Jörg Thalheim: Merge pull request #35183 from xurei/perl/Gtk2TrayIcon...
NixOS_GitHub has left #nixos [#nixos]
kelleyNif has joined #nixos
earldouglas has quit [Quit: leaving]
hiratara has joined #nixos
kelleyNif has quit [Client Quit]
<throwup> symphorien: which man page configuration.nix or systemd.resource-control?
kelleyNif has joined #nixos
<symphorien> systemd.resource-control
<symphorien> for options the man page is nice but I find https://nixos.org/nixos/options.html#systemd+service more handy
<sphalerite_> dtz: also, any news on publicly available ALLVM? Has it been delayed, or have I just missed it?
kelleyNif has quit [Client Quit]
<dtz> sphalerite_: delayed, I'll be sure to let you know! But appreciate the pings ^_^
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] manveru opened pull request #35203: gem-config: add ethon (master...patch-1) https://git.io/vABWP
NixOS_GitHub has left #nixos [#nixos]
szicari has quit [Quit: szicari]
szicari has joined #nixos
marusich has joined #nixos
mizu_no_oto has joined #nixos
<throwup> is there no simple option to just not allow nix to spawn multiple building instances?
JonReed has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<gchristensen> -j
<gchristensen> -j 1
<throwup> gchristensen: I just found that, I think it will do the job.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vABlo
<NixOS_GitHub> nixpkgs/master bd7d5b3 Shea Levy: linux: Don't try to install firmware on newer kernels....
NixOS_GitHub has left #nixos [#nixos]
<throwup> does anyone here know why nix would suddenly eat up so much CPU? I just wanted to install python + some modules
<sphalerite_> dtz: alright, thanks for letting me know :) also, nix 1.11.x doesn't seem to want to build attr from nixos-unstable either
kelleyNif has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dotlambda opened pull request #35204: pythonPackages.pypandoc: mark as broken (master...pypandoc) https://git.io/vAB8O
NixOS_GitHub has left #nixos [#nixos]
<cransom> throwup: it's compiling if the derivations you are installing are not in cache
<dtz> sphalerite_: allvm-tools are now public, but the "main" nixpkgs part isn't just yet. working on it! Tools aren't all that useful without the rest but.. it's not entirely vaporware! :D
<dtz> o_O
<dtz> ...sandbox is enabled, right? O:)
<throwup> cransom: but I have previously compiled stuff (prop drivers) on this machine on nixos with normal temps.
alex`` has quit [Quit: WeeChat 2.0.1]
<sphalerite_> dtz: yep
yann-kaelig has quit []
<throwup> maybe it's because of all the tests the python packages want to run?
<sphalerite_> dtz: and awesome! where do I find it?
alex`` has joined #nixos
<dtz> (it's not been announced anywhere yet, waiting for other bits and some feedback, but it's here: https://github.com/allvm/allvm-tools)
szicari has quit [Quit: szicari]
<sphalerite_> sweet
kelleyNif has quit [Quit: Leaving.]
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
ryanartecona has quit [Quit: ryanartecona]
hiratara has quit [Quit: ZNC - http://znc.in]
hiratara has joined #nixos
<throwup> so I've just been trying to install python (+ packages) with "nix-env -if default.nix". This is taking unexpectedly long (everything is compiled). Is this expected or am I doing something wrong?
kelleyNif has joined #nixos
coot has quit [Quit: coot]
Ross has quit [Ping timeout: 256 seconds]
<gchristensen> please paste your default.nix
detran has quit [Ping timeout: 260 seconds]
Ross has joined #nixos
<genesis> nix is very fast comparing gentoo portage ...
lexcomplains has quit [Ping timeout: 260 seconds]
<throwup> with import <nixpkgs> {};
<throwup> 2
<throwup> 3 python35.withPackages (ps: with ps; [ numpy toolz matplotlib pylint ])
<throwup> ~
<throwup> ~
<infinisil> genesis: wait, from reading a bit, is gentoo's portage a 100% stateful package manager? As in you run commands to add dependencies and instructions or something like that?
<throwup> sorry for the strange formatting
pie___ has joined #nixos
<gchristensen> throwup: next time, please use a pastebin. can you paste to a pastebin (like http://nixpaste.lbr.uno/) the output of the nix-env command?
<simpson> infinisil: It's a ports-tree-based-tool which modifies the state of / directly, yes.
<throwup> gchristensen: sure
<genesis> was inspiring from bsd port
<infinisil> So no files it generates? The packages are managed only through this emerge tool?
ma27 has quit [Ping timeout: 240 seconds]
<simpson> There's an on-disk database. /var/portage/why-cant-i-forget-how-to-gentoo
pie__ has quit [Ping timeout: 248 seconds]
<genesis> it's very similar, in his thesis on nix, the authors refer at gentoo at many points
<infinisil> similar to nix?
<genesis> yes
<infinisil> this doesn't sound similar to nix at all, maybe I'm misunderstanding
<genesis> it's old, gentoo inspired openembedded that is more similar in the way it produce recipe not on / but in a target
<simpson> infinisil: The pattern of hacking on a ports tree is extremely similar, as is the concept of building from source and referring directly to upstream tarballs, which are then locally patched and configured to point to Gentoo-controlled libraries.
<throwup> gchristensen: did I mess up something there?
mizu_no_oto has joined #nixos
<genesis> but gentoo has never build a real infrastructure for binaries.
<infinisil> simpson: Hmm I see
jb554 has quit [Ping timeout: 256 seconds]
<gchristensen> throwup: can you paste the output from when you run nix-env -if ./default.nix
Minijackson[m] has joined #nixos
<genesis> the main interest with nix is that quite everything is derivation
dbmikus has quit [Ping timeout: 240 seconds]
<genesis> when gentoo has only a subset of things derivable through USE flags and custom configuration
<genesis> and when you write ebuild, you can easily forget dependancies if you have them ...
<throwup> gchristensen: it does only output that it replaces the old package atm, because its already installed and has no changes applied to it.
<gchristensen> and it uses a lot of CPU to do that?
<infinisil> throwup: Try `nix-shell -p '(import <nixpkgs>{}).python35.withPackages (ps: with ps; [ numpy toolz matplotlib pylint ])'` just to see
<throwup> gchristensen: no, only when it actually installed new modules/packages.
coot has joined #nixos
<throwup> gchristensen: practically no startup time, because the packages are cached now (if that's how it works)
fragamus has joined #nixos
kelleyNif has quit [Quit: Leaving.]
<gchristensen> ah
<fragamus> hi i have a question: when using stack2nix is it advisable to maintain the stack side and use stack2nix as a conversion for builds on nix or should one maintain the project on the nix end of things
kelleyNif has joined #nixos
<throwup> ah?
alex`` has quit [Ping timeout: 256 seconds]
alex``` has quit [Ping timeout: 260 seconds]
<infinisil> fragamus: keep using stack2nix, you don't want to update the generated file manually..
<fragamus> ok cool
<gchristensen> samueldr: can you update that PR graph?
<gchristensen> samueldr: and maybe show just the last 6mo, zoomed in?
<LnL> oh, what's that? :)
<gchristensen> its a graph of PRs over time, merged / unmerged
<gchristensen> I forget the URL
<samueldr> gchristensen: I'm starting the script (remotely), then when I'm back home (30-45 mins) I can send you the raw gnumeric with the dubious graphs
<LnL> don't think I've seen that before
<dalaing> anyone else running into this? https://github.com/NixOS/hydra/issues/537
<throwup> gchristensen: sorry if I'm being annoying , but have you found out something?
dnovosel has joined #nixos
<gchristensen> throwup: I have nothing to tell you
<clever> fragamus: i also prefer always building with nix, and just basically ignoring stack entirely
<gchristensen> sorry
<infinisil> clever: stack pretty much doesn't work with putting it in the store with nix-build, because it needs to fetch and build every dependency every time
<throwup> gchristensen: ok, thanks for trying to help anyways!
<infinisil> so that's why I'm trying to stay away from it too
<fragamus> ok i thought everybody was embracing stack
<infinisil> fragamus: not on nix
<clever> infinisil: also, stack leaves things linking into the store in .stack-work, and then garbage collection breaks builds
<fragamus> are we giving anything up when we ditch stack
<gchristensen> dalaing: import from derivation isn't permitted in restricted mode / hydra
<clever> fragamus: the ghc flags in the stack file are ignored
<fragamus> nixos is so cool i want to be on nixos
<infinisil> fragamus: Just Do It!
<gchristensen> dalaing: (import "${path}/lib") <- this is importing from derivation I think
<fragamus> I'LL DO IT!!!!
<dalaing> gchristensen: sure, I'm seeing the same error from a different usage though
<gchristensen> dalaing: ok, how do you get it?
<dalaing> basically, anything that uses cabal2nix is throwing that error
<LnL> yeah, that's a known issue
<gchristensen> oh I see
<dalaing> I updated hydra
<dalaing> anything using cabal2nix seems to be dying
<dalaing> which is most of our stuff
<dalaing> is there a way to turn off restricted mode?
<fragamus> clever: can you give me a list of packages to put into my configuration.nix
<clever> dalaing: cabal2nix should work fine, its callCabal2nix that causes the issue
<dalaing> I've tried winding back hydra, but it's tied to whatever nixUnstable was in the tree at the time and I'm struggling to wind that back appropriately
<clever> fragamus: in general, you shouldnt put development stuff into configuration.nix, but open a nix-shell with them
throwup has quit [Remote host closed the connection]
<LnL> dalaing: you can rollback both
<dalaing> ah, ok
<fragamus> ok I know how to do that, but what packages
<dalaing> I've tried, struggling to wind back nixUnstable
pie___ is now known as pie_
<clever> fragamus: nix-shell -p stack2nix, then use it to generate a default.nix, and leave that shell, then you can just nix-build -A project, to build a given cabal project inside the stack project
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<LnL> dalaing: try let old = import /src/nixpkgs {}; in { services.hydra.package = old.hydra; }
tertle||eltret has joined #nixos
<dalaing> the error is from before I realised that I had to wind back nixUnstable as well
<Guanin_> Hi, I'm still moving my server to nixOS - Is there a way to reuse my raid correctly? it is a group of 11 luks devices, and inside them is a mdadm raid. How do I unlock them with a keyfile and mount the raid afterwards?
<LnL> yeah packageOverrides will only rollback one, importing an entire older package set will use the older versions of everything
jsgrant_ has joined #nixos
<clever> Guanin_: to start with, you will want to manually unlock all 11 luks devices, and assemble the mdadm raid, then mount it to the right spot under /mnt/, and run nixos-generate-config --root /mnt/
<dalaing> ah, cool - I was mentally preparing myself for much messier surgery :)
<clever> Guanin_: then read the config it generates in /mnt/etc/nixos/, it configures some of it for you
<Guanin_> I'm already on an installed system, is --show-hardware-config sufficient?
<clever> Guanin_: but luks isnt auto-detected, youll need to add something like this to configuration.nix: ....
<LnL> dalaing: it's possible you might also need to set nix.package, but just hydra is probably enough
<clever> Guanin_: of what OS?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jcrben opened pull request #35206: Remove Xfce-specific display manager tip (master...patch-1) https://git.io/vABEV
NixOS_GitHub has left #nixos [#nixos]
<clever> Guanin_: boot.initrd.luks.devices = [ { name = "root"; device = "/dev/nvme0n1p2"; preLVM = true; } ];
<dalaing> I can't find an existing issue for callCabal2Nix / hydra colliding in this way - should I create one?
<Guanin_> I already installed nixOS
kelleyNif has quit [Quit: Leaving.]
<clever> Guanin_: a configuration.nix entry like this, says that nvme0n1p2 is a luks device, it should be opened under the name root, and it should be opened before lvm is initialized
<clever> Guanin_: you will need to fill that list with every luks device you have
<clever> Guanin_: ah, is the raid array entirely seperate from the nixos root fs?
<dalaing> LnL: thanks heaps :)
<clever> dalaing: id say yes, ive also run into the same issue last week
<clever> dalaing: the key detail, is that all import from derivation is broken in hydra evals
kelleyNif has joined #nixos
<LnL> thought there already was an issue
<LnL> but I might be wrong
erasmas has quit [Quit: leaving]
<sphalerite_> I'm trying to debug nix using gdb and I've added `set debug-file-directory ~/.nix-profile/lib/debug` as suggested in the nixpkgs manual (separateDebugInfo) but I'm still getting Reading symbols from nix-store...(no debugging symbols found)...done.
<sphalerite_> Any ideas?
<sphalerite_> ~/.nix-profile/lib/debug does contain appropriate debug symbols AFAICT
<clever> sphalerite_: last time i delt with that, i had to manually add the right storepaths to the search path
<clever> sphalerite_: but i did want to also make a plugin, that could mess with nix-store -q, to find the debug for any given binary, and fetch that debug off cache.nixos.org automatically
<jsgrant_> clever: Oneshot seems to have worked; Ty.
* jsgrant_ gave up on that ultrabook for now; One of my desktops & one laptop is fine for now. ;^)
<sphalerite_> clever: in this case I'm debugging nix with your build-extra-platforms patch so it was built locally anyway, including the debug symbols
ryanartecona has joined #nixos
<sphalerite_> so they're definitely there and it should be simple really
<clever> sphalerite_: id try passing an absolute path and see what happens
<Guanin_> clever, yes, the raid is seperate from the root fs
<clever> Guanin_: ahh, one min then
cement has quit [Ping timeout: 256 seconds]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Guanin_> As far as I can see, it is supported to do luks with keyfile decryption inside a mdadm device, but not the other way round
<sphalerite_> aaaah got it
<sphalerite_> clever: turns out the debugging symbols weren't in the profile after all
<clever> Guanin_: to start with, youll want to look at the options in https://nixos.org/nixos/options.html#boot.initrd.luks
<clever> sphalerite_: ah, thats probably meta.outputsToInstall i think
<sphalerite_> fun fact, nix-env -iA nixUnstable{,.debug} will *not* make the two outputs coexist peacefully…
<clever> Guanin_: that will cause nixos to open the luks devices within the initrd, while booting
<clever> sphalerite_: ive already seen users run into that problem when they try to install .dev to get headers working :P
alexteves_ has quit [Remote host closed the connection]
<Guanin_> clever, but as far as I tried it so far, boot.initrd.luks will only open the luks devices but not mount the file systems, so the keyfile is not available, as it resides in the fs of /
<angerman> clever: feel free to ping me around here as well if you want to highlight something :-)
alexteves_ has joined #nixos
kelleyNif has quit [Quit: Leaving.]
<clever> angerman: sure
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
<clever> Guanin_: ah, yeah, this all happens before nixos begins mounting things
knupfer has quit [Ping timeout: 260 seconds]
<Guanin_> I guess it might be a suitable approach to create a luks lv, fill it from /dev/urandom and add the block device as a keyfile for the raid?
mizu_no_oto has joined #nixos
<clever> Guanin_: it looks like nixos doesnt have much support right now for opening luks devices unrelated to the rootfs, or opening things with keyfiles
<Guanin_> ah, I meant lvm lv
<clever> Guanin_: simplest thing i can think of, is to create a systemd service that opens things after the machine has booted
<clever> Guanin_: and just throw a wall of bash at it
<Guanin_> Mh, at least the bash line is already done - I'm using it to mount the raid at the moment
<clever> jsgrant_: can you gist that systemd one-shot service for Guanin_?
orivej has quit [Ping timeout: 248 seconds]
snajpa has quit [Ping timeout: 256 seconds]
Adluc has quit [Ping timeout: 276 seconds]
srk has quit [Ping timeout: 240 seconds]
alexteves_ has quit [Ping timeout: 265 seconds]
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
kelleyNif has joined #nixos
vidbina has quit [Ping timeout: 240 seconds]
<ottidmes> Is there an equivalent for concatLists for attrsets? I know how to implement it, but I was wondering if I somehow missed this particular function when reading lib/attrsets.nix
gem has quit [Remote host closed the connection]
gem has joined #nixos
<Guanin_> sorry if it is horrible to look at - can someone explain, why this fails? I am getting "value is a string while a list was expected" at line 3 https://gist.github.com/anonymous/b9f535c172daa60fad0df484acb61bac
<Guanin_> But as far as I understand the option that I set there, it should be a string?
<clever> ottidmes: // will merge the set without recursion
<clever> Guanin_: try + instead of ++
<sphalerite_> Guanin_: ++ is for lists, use +
<sphalerite_> damn, too slow :p
kelleyNif has quit [Quit: Leaving.]
marusich has quit [Ping timeout: 264 seconds]
<sphalerite_> Guanin_: you can also use antiquotation like "${part}_crypt", "/dev/${part}"
<clever> Guanin_: also, you could do "sd${letter}1" and then drop the 'sd' and '1' from the list on 15
<Guanin_> I need a moment to test it, because my network is pretty unreliable right now
<Guanin_> Thanks for the hints, that seems reasonable :)
jtojnar has joined #nixos
<sphalerite_> Guanin_: you may also want to consider not using letters, but stable ids for the disks as found in /dev/disk/by-id, as they may vary according to the phase of the moon
<gem> Hey!
<Guanin_> Yes, that is also a thing I should keep in mind, but right now it is stable so far (as all sd* are part of the same raid, with the same keyfile)
kelleyNif has joined #nixos