gchristensen changed the topic of #nixos-dev to: NixOS Development (#nixos for questions) | https://hydra.nixos.org/jobset/nixos/trunk-combined https://channels.nix.gsc.io/graph.html | 18.03 release managers: fpletz and vcunat | https://logs.nix.samueldr.com/nixos-dev
phreedom_ has quit [Remote host closed the connection]
phreedom has joined #nixos-dev
<ekleog> domenkozar: for nixos weekly, https://github.com/NixOS/nixpkgs/pull/44439 ? :)
<{^_^}> #44439 (by Ekleog, 3 days ago, open): [RFC] Use `meta.tests` to link from packages to the tests that test them
orivej has quit [Ping timeout: 244 seconds]
kalbasit has quit [Quit: WeeChat 2.1]
ma27 has quit [Quit: WeeChat 2.0]
Sonarpulse has quit [Ping timeout: 244 seconds]
Drakonis has joined #nixos-dev
ma27 has joined #nixos-dev
<samueldr> I'll be chatty a bit tonight I think, first time *actively* looking into merging things
<samueldr> many things rely on tcl/tk (directly and transitively) anything else than just merging here? → https://github.com/NixOS/nixpkgs/pull/35069
<{^_^}> #35069 (by NickHu, 24 weeks ago, open): tcl/tk: 8.6.6 -> 8.6.8 and create library symlink
<samueldr> how would you handle that one?
Sonarpulse has joined #nixos-dev
<Drakonis> samueldr, help me out with something
<Drakonis> i'm still not certain how i'm supposed to handle this
lassulus_ has joined #nixos-dev
<samueldr> drakonis: handle what exactly?
<Drakonis> i have to declare an variable that points to an terminal
<Drakonis> konsole, xterm, gnome-terminal
<Drakonis> rclone-browser expects that variable to be declared
<Drakonis> i assume it might be some debian thing it assumes
lassulus has quit [Ping timeout: 244 seconds]
lassulus_ is now known as lassulus
<Drakonis> perhaps i'll just wrap xterm and be done with it
<samueldr> how does it expect it?
<samueldr> this is probably a runtime thing that's not to be done when packaging
<ekleog> drakonis: can you just use sensible-terminal?
<Drakonis> it expects an environment variable called $TERMINAL
<Drakonis> it points to any terminal emulator it can run rclone with
<samueldr> that's definitely not a packaging-time thing imho
<Drakonis> definetely not
<Drakonis> i think the solution might be on the libreoffice package, as it does something similar for theming
<samueldr> drakonis: could you share a link to where in the source of the program it uses that?
<ekleog> well, could wrap it with TERMINAL=${TERMINAL:-sensible-terminal}, I guess
<Drakonis> hmm, which function for that?
<ekleog> (modulo the fact I can't find sensible-terminal on my NixOS system)
<samueldr> ekleog: sensible-terminal... where did you pull that from?
<samueldr> yeah
<Drakonis> xterm is common for any gui application tho
<Drakonis> until we have wayland available
<samueldr> » terminal = QStandardPaths::findExecutable("x-terminal-emulator");
<samueldr> TERMINAL is to override that
<Drakonis> yes, but it is only present on debian and derivatives
<samueldr> ah, yeah, my bad
<samueldr> I hadn't looked at the doc before saying that
<samueldr> I thought it would find it using one of the XDG mime-like things
<Drakonis> it kicks in when missing
<Drakonis> its part of their alternatives system
<samueldr> and not just use PATH
<Drakonis> ekleog, how do i wrap it with that again?
<ekleog> samueldr: oh. so after a bit of investigation, I guess I mistook it with sensible-browser… we'd need an x-terminal-emulator, xdg-terminal or equivalent :/
<Drakonis> x-terminal-emulator is pretty much anything that emulates an terminal
<samueldr> ekleog: yeah, it could make even more sense than the debian implementation
<Drakonis> i want to put xterm there because its part of the standard x environment
<Drakonis> its not going to cause any issues
<ekleog> ,locate x-terminal-emulator
<ekleog> ,locate xdg-terminal
<{^_^}> Found in packages: firejail
<{^_^}> Couldn't find any packages
<ekleog> hmm? x-terminal-emulator in firejail? but why?
<Drakonis> fyi, x-terminal-emulator is an symlink to an terminal emulator
<samueldr> drakonis: I think we both know how alternatives work in debian
<Drakonis> yes yes
<samueldr> drakonis: if you do, ensure to do it as ekleog shown, so that setting TERMINAL outside will override the default value you set
<Drakonis> yes, but where would i chuck it into?
<Drakonis> wrapProgram $out/bin/rclone-browser --prefix PATH : "${rclone}/bin"
<Drakonis> inside the prefix?
<samueldr> did you find the manual section for wrapProgram?
<Drakonis> no, i should do that immediatly
<Drakonis> thanks
<ekleog> drakonis: I think the best option would be to package xdg-terminal on nixos and depend on it with a wrapper TERMINAL=${TERMINAL:-xdg-terminal} :)
<samueldr> (sorry if it sounded blunt, the manual things are a bit all around)
<Drakonis> yeah i get you
<ekleog> samueldr: about your earlier question with how to handle https://github.com/NixOS/nixpkgs/pull/35069 , I'm not really habilitated to answer, but do you think --enable-64bit would work on i686?
<{^_^}> #35069 (by NickHu, 24 weeks ago, open): tcl/tk: 8.6.6 -> 8.6.8 and create library symlink
<samueldr> ekleog: makes sense that it wouldn't, but it's hard to know for sure
<samueldr> (other than trying)
<samueldr> --enable-64bit
<samueldr> enable 64bit support (where applicable).
<samueldr> so it's probably fine?
<Drakonis> doesn't look like an official util though
<ekleog> probably indeed :) wonder, though, do we still have even one i686-only accessible builder to test with?
<ekleog> drakonis: it likely isn't developed by the xdg group, indeed, but it looks to do what we're hoping for, ie. figure out the right terminal to call depending on the user's available terminals :)
<samueldr> I tend to agree with ekleog
<Drakonis> hm actually
<Drakonis> it is here
<Drakonis> it should technically be available through xdg-utils
<ekleog> oh, so that's likely something failed in our packaging of xdg-utils :)
<Drakonis> i'm on the case
<ekleog> great :D
<jtojnar> bad thing glib actually does not support xdg-terminal https://discourse.nixos.org/t/changing-programs-used-to-launch-an-application-in-gnome3/632/4
<Drakonis> that's no good
<Drakonis> oic
<Drakonis> what a disappointment
<Drakonis> well, i'll have it run xterm then
<ekleog> so a patch would likely add it… wonder why it's commented out, though
<jtojnar> and the GSettings schema from xdg-terminal is not supposed to be used anymore
<Drakonis> there's a bunch of angry followups lmao
<Drakonis> so, which solution should we use??
<samueldr> it's commented since its inception
<jtojnar> the issue is there is no standard way
<ekleog> weird
<samueldr> quite
<Drakonis> jtojnar, this looks like an gnome problem
<ekleog> drakonis: I'd think 1. add a patch to xdg-utils to enable xdg-terminal, 2. use it by default
<Drakonis> if you're using the gui "run on terminal" option
<jtojnar> xdg-utils is not really a freedesktop standard
<jtojnar> thus it is a Linux desktop problem
<samueldr> hmmm, they do say "provide a set of defacto standards" though
<Drakonis> we even use those
<Drakonis> well, it warrants an update
<jtojnar> well the standards are desktop-entry-spec and shared-mime-info-spec
<Drakonis> we're on 1.1.3
<Drakonis> rather, 1.1.2
<jtojnar> xdg-utils is just an implementation with ton of unspecified cruft
<ekleog> drakonis: oh, and anywhere along the series, report a bug to xdg-utils to ask them to enable xdg-terminal by default, maybe? :)
<Drakonis> would be nice
<ekleog> jtojnar: I agree with you there's no standard way, but isn't xdg-terminal the “least bad” option we could have?
<jtojnar> does any DE ship xdg-utils?
<Drakonis> they all do that though
<ekleog> AFAIK most distros ship xdg-utils, likely pre-installed in whatever DE package they have (eg. nixos does on the computer I'm currently using)
<ekleog> s/package/meta-&/
<Drakonis> there's CVEs on it
<jtojnar> I guess I will add proper default terminal spec to my to do list
<Drakonis> v. nice
<Drakonis> but, what's the current solution for the time being?
<jtojnar> in glib-based apps, it is not possible cleanly (see discourse thread), not sure about Qt
<Drakonis> the application i'm trying to use is qt based
<Drakonis> the binaries it tries to run don't exist btw
<Drakonis> nevermind, i am bad at reading shell
<ekleog> no current cve for xdg-terminal, though, is it?
<ekleog> jtojnar: from a bit before you came in, `terminal = QStandardPaths::findExecutable("x-terminal-emulator");` / “TERMINAL is to override that” (from samueldr)
<Drakonis> its not for xdg-terminal though
<Drakonis> CVE-2017-18266
<Drakonis> its for xdg-open, as for the script
<Drakonis> doesn't seem to be running here
<Drakonis> xdg-terminal: line 229: detectDE: command not found
<Drakonis> xdg-terminal: line 165: exit_failure_operation_impossible: command not found
<Drakonis> ah it depends on another shellscript, great.
<ekleog> drakonis: did you run it from a patched built xdg-utils?
<Drakonis> no not yet
<Drakonis> i'm not entirely sure how to patch the makefile because my shell fu is weaj
<Drakonis> weak.
<ekleog> 1. clone the repository, 2. change the makefile by removing the #, 3. git diff, 4. add the output of git diff as a patch in the derivation :)
<Drakonis> oic, ty
<ekleog> I guess we should have that in documentation somewhere, don't know whether it's already there, and if it is, where, though
<samueldr> you could commit and git format-patch to even get a nice git commit summary in there
<samueldr> (I moved to using git format-patch as you can easily dump a couple of commit-like patches)
<samueldr> first time using nox-review, is it me or is it slow?
<samueldr> the fetching parts specifically
<samueldr> I run it inside a fully-fetched nixpkgs repo
<samueldr> (btw, not complaining, I am doubting I'm thinking I may be misuing it)
<samueldr> misusing*
<Drakonis> so, what's the patch format?
<Drakonis> old file new file old line new line?
<samueldr> it's the usual patch format, which turns out is what `git diff` outputs
<Drakonis> ok, so throw that into a file then set that as input?
<samueldr> look at other patches in nixpkgs, `find . -iname '*.patch'` for how they are integrated into derivations
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nixos-dev
<Drakonis> yeah okay i got that done
<Drakonis> there may be other problems
<Drakonis> xdg-terminal: configured terminal program '' not found or not executable
<Drakonis> this line precedes /home/drakonis/.nix-profile/bin/xdg-terminal: line 508: kreadconfig: command not found
<Drakonis> the line above
<Drakonis> ekleog, doesn't look like enabling xdg terminal will help
<Drakonis> because nobody's using it
<jtojnar> the closest to a standard is the debianism
<Drakonis> yes indeed
<Drakonis> however the debianism is useful
<Drakonis> now if only everyone had that
<Drakonis> are you an gnome developer?
<Drakonis> actually, what do you do
<Drakonis> i have an solution that might be interesting
<Drakonis> but its specific to nix
<jtojnar> nope, just a downstream developer
Sonarpulse has quit [Ping timeout: 240 seconds]
<Drakonis> package categories would serve well in this case
<Drakonis> keeping an list of packages that provide terminal implementations
<jtojnar> but if we have come up with a sensible proposal, we can try to push it upstream
<Drakonis> that's fine, so what i have in mind goes off the window
<jtojnar> drakonis: so something like debian's alternatives?
<Drakonis> possibly
<Drakonis> but i'm thinking of it as a setup for something like debian's tagging system
<Drakonis> package tagging
<Drakonis> it would be similar in practice, but the alternatives would be compiled off the tagging system
<Drakonis> an package tagged with "provides terminal", once installed, will enter the list of terminal alternatives
<Drakonis> it shouldn't be too terrible in practice, i think
<ekleog> <drakonis> ekleog, doesn't look like enabling xdg terminal will help <drakonis> because nobody's using it <-- you can make your derivation use it by wrapping it with a TERMINAL=${TERMINAL:-xdg-terminal} wrapper :)
<Drakonis> ekleog, actually, its broken because its not set
<Drakonis> it depends on variables nothing sets up
<ekleog> ?
<Drakonis> here /home/drakonis/.nix-profile/bin/xdg-terminal: line 508: kreadconfig: command not found
<Drakonis> xdg-terminal: configured terminal program '' not found or not executable
<Drakonis> here be dragons
<ekleog> to me, the problem of the debianism, is that it's either a symlink at a global location (so not usable for nix) or a symlink in some dependency of the derivation, in which case it forces an additional unneeded dependency
<ekleog> ,locate kreadconfig
<{^_^}> Found in packages: kdeFrameworks.kconfig.dev
<Drakonis> its not used anymore
<Drakonis> hmm
<ekleog> hmm that's something that'd require some hackery to get right, I guess :/
<Drakonis> yeah
<ekleog> actually no
<Drakonis> no?
<ekleog> well, it's hackery, but… adding /run/current-system/sw/bin to the path could do it
<Drakonis> which thing are you refering to?
<ekleog> and I think there's precedent for hardcoding /run/current-system/sw/bin when there's no really better option (seem to remember having done it once for, something like a wrapper)
<Drakonis> alternatives or the package?
<ekleog> drakonis: wrapping xdg-terminal in PATH=$PATH:/run/current-system/sw/bin
<ekleog> s/in/with/
<ekleog> which should make it work enough to be usable from a wrapper for your derivation (forgot its name) that'd set it with TERMINAL=${TERMINAL:-xdg-terminal}
<ekleog> while still not adding a dependency on all of kde
<Drakonis> i'd rather avoid the hackery and have something i can use in the future
<ekleog> would likely require making sure that kdeFrameworks.kconfig.dev is actually added to the environment packages on kde-enabled nixos systems, though, I guess
<Drakonis> to solve these problems
<ekleog> issue is, nix doesn't allow for optional dependencies, afaik (and having kreadconfig defined as nix-shell -p kdeFrameworks.kconfig.dev --run kreadconfig would likely be worse)
<ekleog> so the only way to get xdg-terminal to work appears to be through some equivalent of this
<ekleog> and what you are looking for is something that is exactly the equivalent of xdg-terminal : figure out which terminal is available for the current system
<ekleog> so the two solutions are either work around xdg-terminal's weaknesses, or write a nix-specific xdg-terminal equivalent from scratch :)
<Drakonis> yes i am
<Drakonis> the latter seems more interesting though
<Drakonis> except i wouldn't intend it just for terminals
<Drakonis> seems super wasteful
<ekleog> oh, if you're motivated for doing this as a project, then forget all I said and good luck! :)
<Drakonis> its going to be a difficult long term project :v
<Drakonis> i just want to get something done beforehand
<Drakonis> i have an project in elixir i want to finish before getting into this
ma27 has quit [Quit: WeeChat 2.0]
FRidh has joined #nixos-dev
Drakonis has quit [Remote host closed the connection]
ma27 has joined #nixos-dev
<srhb> What did the rollback of hydra-eval do? Trunk evals still look very weird https://hydra.nixos.org/jobset/nixos/trunk-combined#tabs-errors
<niksnut> it wasn't rolled back
<niksnut> some memory settings were changed
<niksnut> hydra-eval-jobs now restarts itself when the heap grows above a certain size
<niksnut> that's why you get those repeated warnings
<srhb> I see, thanks. :)
<niksnut> oh, I didn't notice the 'Too many heap sections' at the end :-(
<srhb> Yeah, it's not quite good just yet. :/
<domenkozar> last chance to submit nixos weekly news :)
ma27 has quit [Quit: WeeChat 2.0]
orivej has joined #nixos-dev
ma27 has joined #nixos-dev
ma27 has quit [Quit: WeeChat 2.0]
ma27 has joined #nixos-dev
init_6 has joined #nixos-dev
ma27 has quit [Client Quit]
ma27 has joined #nixos-dev
ma27 has quit [Client Quit]
ma27 has joined #nixos-dev
ma27 has quit [Client Quit]
ma27 has joined #nixos-dev
orivej has quit [Ping timeout: 256 seconds]
Lisanna has joined #nixos-dev
NinjaTrappeur has quit [Quit: WeeChat 2.2]
NinjaTrappeur has joined #nixos-dev
<genesis> using fetchzip, nix-env doesn't populate my build directory with the unzipped file, even with sourceRoot = ".";
<genesis> http://nixpaste.lbr.uno/m2QP5wU7?nix if someone has an idea.
<LnL> hrm, nix repl creates result symlinks now
timokau has joined #nixos-dev
init_6 has quit []
timokau[m] has joined #nixos-dev
init_6 has joined #nixos-dev
ma27 has quit [Quit: WeeChat 2.0]
ma27 has joined #nixos-dev
<jtojnar> https://nixos.org/nixpkgs/packages-unstable.json.gz is not being updated again?
<jtojnar> it has gucharmap-10.0.4, but nixos-unstable has 11.0.1
ma27 has quit [Quit: WeeChat 2.0]
ma27 has joined #nixos-dev
ma27 has quit [Quit: WeeChat 2.0]
ma27 has joined #nixos-dev
ma27 has quit [Quit: WeeChat 2.0]
ma27 has joined #nixos-dev
__Sander__ has joined #nixos-dev
ma27 has quit [Quit: WeeChat 2.0]
ma27 has joined #nixos-dev
vcunat has joined #nixos-dev
ma27 has quit [Client Quit]
ma27 has joined #nixos-dev
ma27 has quit [Client Quit]
ma27 has joined #nixos-dev
acowley has quit [Quit: ZNC - http://znc.in]
ma27 has quit [Client Quit]
ma27 has joined #nixos-dev
ma27 has quit [Client Quit]
ma27 has joined #nixos-dev
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos-dev
ma27 has quit [Quit: WeeChat 2.0]
ma27 has joined #nixos-dev
pierron is now known as nbp
nbp is now known as pierron
pierron is now known as nbp
orivej has joined #nixos-dev
<samueldr> jtojnar: current channel commit still has that issue
<samueldr> error: 'mkHomepage' at /Users/samuel/tmp/nixpkgs/nixpkgs/pkgs/development/r-modules/default.nix:54:18 called with unexpected argument 'biocVersion', at /Users/samuel/tmp/nixpkgs/nixpkgs/pkgs/development/r-modules/default.nix:35:21
<samueldr> (verifying if master has that issue)
<samueldr> it should be fixed next time the channel moves
<samueldr> btw, just throwing this here, if the json files stop updating, you can clone nixos-homepage; nix-shell; make nixpkgs/packages-unstable.json.gz; (assuming it's the unstable one that failed)
Sonarpulse has joined #nixos-dev
layus has joined #nixos-dev
<jtojnar> samueldr: well I am only interested in it because of repology
<samueldr> yeah, I figured
<samueldr> still useful to figure out what broke
__Sander__ has quit [Quit: Konversation terminated!]
Mic92 has quit [Ping timeout: 256 seconds]
pie__ has joined #nixos-dev
pie_ has quit [Ping timeout: 256 seconds]
init_6 has quit [Ping timeout: 256 seconds]
Drakonis[m] has joined #nixos-dev
Drakonis[m] has joined #nixos-dev
Drakonis[m] has quit [Changing host]
ma27 has quit [Quit: WeeChat 2.0]
ma27 has joined #nixos-dev
Drakonis has joined #nixos-dev
ma27 has quit [Quit: WeeChat 2.0]
ma27 has joined #nixos-dev
ma27 has quit [Client Quit]
ma27 has joined #nixos-dev
ma27 has quit [Client Quit]
ma27 has joined #nixos-dev
ma27 has quit [Client Quit]
ma27 has joined #nixos-dev
ma27 has quit [Quit: WeeChat 2.0]
ma27 has joined #nixos-dev
ma27 has quit [Client Quit]
ma27 has joined #nixos-dev
acowley has joined #nixos-dev
Sonarpulse has quit [Ping timeout: 240 seconds]
vcunat has quit [Ping timeout: 240 seconds]
FRidh has quit [Ping timeout: 244 seconds]
sir_guy_carleton has joined #nixos-dev
orivej has quit [Ping timeout: 240 seconds]
Sonarpulse has joined #nixos-dev
ma27 has quit [Quit: WeeChat 2.0]
Sonarpulse has quit [Quit: Leaving]
Ericson2314 has joined #nixos-dev
Ericson2314 is now known as Sonarpulse
Sonarpulse is now known as Ericson2314
orivej has joined #nixos-dev
CrystalGamma[m] has left #nixos-dev ["User left"]
Lisanna has quit [Ping timeout: 244 seconds]
Drakonis has quit [Remote host closed the connection]
ldleworker has joined #nixos-dev
ben has quit [*.net *.split]
coconnor has quit [*.net *.split]
cransom has quit [*.net *.split]
ldlework has quit [*.net *.split]
Ericson2314 has quit [Ping timeout: 268 seconds]
cransom has joined #nixos-dev
ldleworker is now known as ldlework
phreedom has quit [Ping timeout: 250 seconds]
phreedom has joined #nixos-dev