jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos-dev
<worldofpeace>
jtojnar: what was weird is that for certain things, like elementary's greeter, there were problems with it's theme being applied without that environment variable being set
<worldofpeace>
not sure if I need to make their settings.ini globally available and everything will just work
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos-dev
<jtojnar>
worldofpeace: maybe something is stripping XDG_DATA_DIRS but not GTL_DATA_PREFIX
<jtojnar>
worldofpeace: by the way, according to the gtkcssprovider.c, it can contain only single value, so profileRelativeEnvVars will not work
arianvp has quit [Quit: WeeChat 2.6]
arianvp has joined #nixos-dev
<worldofpeace>
jtojnar: right, I'm going to try a couple of things later today. and the comments in the source are pretty helpful as documentation itself. but I'm this 🤞 close to having everything working.
FRidh has quit [Ping timeout: 276 seconds]
<worldofpeace>
appears that making NIX_GSETTINGS_OVERRIDES_DIR set with sessionVariables fixed that issue. Do you think GTK_DATA_PREFIX could still be set in environment.nix jtojnar ?
<worldofpeace>
but just a single value config.system.path
niksnut has quit [Read error: Connection reset by peer]
<jtojnar>
worldofpeace: I would try removing it and see if anything breaks
<worldofpeace>
maybe it was set before because of gtk2?
<jtojnar>
worldofpeace: yeah, it appears to be so
<jtojnar>
gtk2 does not seem to support finding themes in XDG_DATA_DIRS
<worldofpeace>
Right, this time we can have it set globally so those things just work jtojnar
<jtojnar>
you would need Nix to support something like semi-fixed-output derivations, allowing you to include extra attributes into consideration
<emily>
well, like I said even a warning on first use or such would be good enough, it just seems kind of bad that every fetch* breaks fairly invisibly if you update a package but forget to update the hash
<arianvp>
when I want to package a rust binary in nixpkgs do I use carnix or buildRustPackage ?
<arianvp>
both seem to have upsides and downsides. buildRustPackage is a fixe-doutput-derivation so pretty horrible for reproducibility
<jtojnar>
emily: well Nix is pretty simple and stupid (in a good way) and there is no technical way to know the hash URL has changed but the hash did not
<arianvp>
but carnix adds many many bytes to nixexprs.tar.gz
<jtojnar>
emily: I would suggest using update-source-version command from common-updater-scripts (or better adding an updateScript and using update.nix). That way you cannot forget to update the hash
<infinisil>
I miss you {^_^}
<jtojnar>
worldofpeace: I guess I am confused by the duality, do we really need both /etc/environment and pam_env.so?
<jtojnar>
or could we just use one of them for everything and deprecate the other
<jtojnar>
that would solve the question whether and which way to add the values
<Profpatsch>
infinisil: Graham is away for two weeks and everything collapses oO
<Profpatsch>
We need to work on our bus-factor
<worldofpeace>
jtojnar: I'm looking for that also, we could just do everything with pam_env.so. Though I'm thinking this is part of the deprecation process.
<worldofpeace>
jtojnar: to followup with this change I'm planning to move environment.variables -> environment.sessionVariables.
<jtojnar>
if pam_env.so is functionally superior to /etc/environment, is not `environment.variables = config.environment.sessionVariables;` superfluous?
<worldofpeace>
Probably jtojnar, though I don't think I can go about doing this all in one go.
justanotheruser has quit [Ping timeout: 246 seconds]
<emily>
jtojnar: re update-source-version or updateScript: ok, yes, I'll accept that answer! I'd love to do this, I've been meaning to ask about how to do more (semi-)automated updates for the packages I maintain. but is there any documentation on the best way to go about this or what tools are usable inside nixpkgs? I couldn't find anything :(
<Taneb>
Aaah, the most recent eval of 19.09 seems to have a lot more failures
justanotheruser has joined #nixos-dev
<jtojnar>
emily: updateScripts are documented in stdenv chapter of the manual
<jtojnar>
and you can get some usage info by running `nix-shell maintainers/scripts/update.nix` and `update-source-version`
evanjs| has joined #nixos-dev
<jtojnar>
but no consolidated guide, I have writing one on my to-do list
<worldofpeace>
In particular it's https://github.com/NixOS/nixpkgs/pull/68313, there's some issues with darwin that I'd like to confirm to open a bug report. But I can't really go about claiming things in the report without actually knowing.
evanjs| has joined #nixos-dev
<Taneb>
Someone ping me when {^_^}'s awake so I can give globin karma
<ddima>
emily: wrt checking the hash - yeah, I was wondering the same. While it would be nice if there was a better mechanism "deeper inside" a pragmatic approach could be to whip up a git commit hook with a small linter. But I've not thought too much about it yet either.