<infinisil>
,tofu = To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<infinisil>
,notfound = nix-env -qaP does not show the package you are looking for but you are sure it should be there? Check out https://nixos.wiki/wiki/FAQ/notfound
<infinisil>
,ask = Don't ask if anyone uses software xyz, just ask your specific question. This helps solve your problem quicker, and allows people who haven't used xyz but may still be able to help you to do so.
<infinisil>
,help = Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the user somebody
<{^_^}>
help defined
<infinisil>
,help = Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<{^_^}>
help defined
<infinisil>
Alright, I ported all factoids
<infinisil>
Some more useful commands would be for stateVersion, callPackage and string escaping
<infinisil>
,stateVersion = Setting stateVersion to the latest release doesn't update anything and can only break your setup at best. If you want to regardless, Ctrl-F for "stateVersion" in https://nixos.org/nixos/manual/release-notes.html to see things that need to be manually upgraded with the new value
<{^_^}>
stateVersion defined
<infinisil>
,callPackage = If a Nix file ./foo.nix starts with something like `{ bar, baz }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<{^_^}>
callPackage defined
<infinisil>
,"escape" = "\""
<{^_^}>
"escape" defined
<infinisil>
,"escape' = "'"
<{^_^}>
"escape' defined
<infinisil>
,"escape$ = "\$"
<{^_^}>
"escape$ defined
<infinisil>
,"escape' = ' does not need to be escaped in " marks
<{^_^}>
"escape' defined
<gchristensen>
(this seems like maybe too much)
<infinisil>
,''escape" = " does not need to be escaped in '' marks
<{^_^}>
''escape" defined
<infinisil>
I'll go to #bottest to enter them, but they do seem rather useful
<infinisil>
Ohh.. but the command listing will include all of them
<gchristensen>
I'm not sure, maybe instsead a wiki page which shows all thee various esccaping examples and just a single ,escaping
<infinisil>
Oh yeah that would be better
<infinisil>
How about
<infinisil>
,escape" = " \" ' \$ "
<{^_^}>
escape" defined
<infinisil>
,escape'' = '' " ' $ ''
<{^_^}>
escape'' defined
<gchristensen>
ehhh
<gchristensen>
I think there is just too much to condense in to individual factoids
<infinisil>
It's a super short reference
<infinisil>
I'll define those two just in case somebody needs a reference, but a wiki page could be added later
<infinisil>
,escape'' = '' double quote: " single quote: ' dollar: $ two single quotes: ''' bash curly bois: ''${} any character x: ''\x ''
<{^_^}>
escape'' defined
<infinisil>
,escape" = " double quote: \" dollar: \$ two single quotes: '' bash curly bois: \${} ''
<{^_^}>
escape" defined
<infinisil>
,escape'' = '' double quote: " dollar: $ two single quotes: ''' bash curly bois: ''${} any character x: ''\x ''
<{^_^}>
escape'' defined
<infinisil>
There we go
<infinisil>
I think i got everything
<infinisil>
,escape" = " double quote: \" dollar: \$ two single quotes: '' bash curly bois: \${} "
<{^_^}>
escape" defined
<gchristensen>
man ... you sure/
<infinisil>
I am indeed not sure
<gchristensen>
do you need to escape a $ in a ".."?
<{^_^}>
→ 4e97ff87 by Timo Kaufmann: Add timokau to trusted users
<{^_^}>
→ 9889a92d by @samueldr: factoids: Adds !stateVersion
<{^_^}>
→ a50f1047 by @jlesquembre: Asking for ofborg access
<gchristensen>
I rly should setup something like Jenkins to handle deploying this stufff
<samueldr>
CI that deploys on green?
<samueldr>
I wonder if gitlab CI works with mirrors on gitlab.com
<gchristensen>
yeah, or, say, a weekly job to rebuild and reboot the aarch64 builder
<samueldr>
gitlab CI is... not bad, gitlab supports mirroring git repos, gitlab.com provides free CI for public projects, so fewer moving bits to manage
<samueldr>
at $client I used nix do create a docker image for use with gitlab CI
<gchristensen>
it'd proably need to run as an agent somewhere stateful with backups, so it can retain nixops' state and whatnot
<infinisil>
gchristensen++
<{^_^}>
gchristensen's karma increased to 1
<infinisil>
\o/
<gchristensen>
:o
<gchristensen>
with that I could also have a every-30-min job to scale up/down based on demand
<gchristensen>
/ price
<gchristensen>
^ this is something that 50% exists already, but is run on demand
<gchristensen>
ekleog: 'round?
<samueldr>
IIRC gitlab CI can do state, not entirely sure though, it may be cache and not state...
<gchristensen>
ofborg-0.1.5-deps-stripped/bin/github_comment_filter: No such file or directory cool, cool...
<LnL>
hrm, did my update break something?
<gchristensen>
:o
<LnL>
it includes a rustc/cargo update IIRC
<gchristensen>
the binaries used to be called 'foo_bar' and now they're called foo-bar
<gchristensen>
we'll have to fix that with symlinkns
<ekleog>
LnL: can now confirm that even on 2318765308d9018a5ef006726e38bc8f4a3b8158 the same 10 tests fail, both in a nix-shell --pure and a nix-shell (both started from the root of the `ofborg` repo)
<gchristensen>
thank you WilliButz :$
<gchristensen>
embarrassing
<WilliButz>
gchristensen: no problem %)
<LnL>
ekleog: testing, have you tried the command that travis runs?
<ekleog>
even nix-shell --run checkPhase fails :/
<ekleog>
ISTR it was something linked with <nix/config.nix> and I stopped investigating there last time because I had no idea what this file was about
<LnL>
oh, it uses that?
<LnL>
compare readlink -f $(command -v nix-store) with ps aux | grep nix-daemon
<LnL>
are those the same store paths?
<gchristensen>
ok so the good news WilliButz is we didn't lose any work
<ekleog>
ps aux doesn't give me the path, but readlink -f $(command -v nix-store) and sudo readlink /proc/$(pidof nix-daemon)/exe do return the same store path
<LnL>
hmm, <nix/config.nix> should work then
<LnL>
unless you're using distributed builds
<ekleog>
(not sure that's the same issue as last time, though, last time was much closer to the time I had switched to nix2)
<ekleog>
no distributed builds, just bare nixos
<LnL>
uh oh, I'm thinking of something now
<LnL>
nixos doesn't set NIX_REMOTE anymore
<LnL>
I changed some stuff around that to make it work on travis
<LnL>
nah, also looks fine
<ekleog>
still fails with nix-shell then NIX_REMOTE=daemon checkPhase, but it only fails 3 tests now :D
<ekleog>
only nix::tests::safely_build_attrs_failure nix::tests::safely_build_attrs_success tasks::build::tests::test_simple_build remaining
<LnL>
that's weird, I used "" if it's not set so that should be the same as auto
<{^_^}>
[ofborg] @Ekleog opened pull request #171 → Export NIX_REMOTE in the shell so that building on recent NixOS doesn't fail → https://git.io/vpVcc
<LnL>
test result: ok. 68 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
<ekleog>
not sure that's useful, but I've got to go now, so… :)
<LnL>
that pr will break travis
<ekleog>
oh.
<ekleog>
also, what? just tried with `NIX_REMOTE=auto` in the export statement, and now it fails 6 tests
<LnL>
so what I mentioned about <nix/config.nix> earlier is probably the issue
<ekleog>
so with false it fails 3 checks, just like with NIX_REMOTE=daemon \o/
<{^_^}>
[ofborg] @Ekleog opened pull request #172 → Default to building with nix2 → https://git.io/vpVCL
<{^_^}>
[ofborg] @Ekleog closed pull request #171 → Export NIX_REMOTE in the shell so that building on recent NixOS doesn't fail → https://git.io/vpVcc
<LnL>
I'll fix that and add some comments to the flags
orivej has quit [Ping timeout: 256 seconds]
<ekleog>
will try to investigate the remaining failures later, really got to go now :)
<ekleog>
thanks!
orivej has joined #nixos-borg
orivej has quit [Ping timeout: 264 seconds]
<gchristensen>
I should setup a binary cache ...
<gchristensen>
uploading releases to a dozen servers gets old extremely fast ;P