00:11
pxc1 has joined #nix-darwin
00:15
pxc1 has quit [Ping timeout: 252 seconds]
00:35
Sonarpulse has quit [Ping timeout: 245 seconds]
01:04
contrapumpkin has joined #nix-darwin
02:11
pxc1 has joined #nix-darwin
02:16
pxc1 has quit [Ping timeout: 245 seconds]
02:27
pxc1 has joined #nix-darwin
02:32
pxc1 has quit [Ping timeout: 256 seconds]
02:44
pxc1 has joined #nix-darwin
02:48
pxc1 has quit [Ping timeout: 245 seconds]
03:11
philr has joined #nix-darwin
03:14
pxc has joined #nix-darwin
04:44
pxc1 has joined #nix-darwin
04:49
pxc1 has quit [Ping timeout: 260 seconds]
05:13
pxc has quit [Ping timeout: 245 seconds]
06:01
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:13
periklis has joined #nix-darwin
06:34
hamishmack has joined #nix-darwin
06:45
pxc1 has joined #nix-darwin
06:49
pxc1 has quit [Ping timeout: 245 seconds]
07:08
periklis has quit [Ping timeout: 252 seconds]
08:45
pxc1 has joined #nix-darwin
08:50
pxc1 has quit [Ping timeout: 260 seconds]
09:33
__Sander__ has joined #nix-darwin
10:10
philr has quit [Quit: WeeChat 2.1]
10:31
jtojnar has joined #nix-darwin
10:46
pxc1 has joined #nix-darwin
10:51
pxc1 has quit [Ping timeout: 256 seconds]
11:16
__Sander___ has joined #nix-darwin
11:19
__Sander__ has quit [Ping timeout: 245 seconds]
11:19
__Sander___ has quit [Client Quit]
11:20
__Sander___ has joined #nix-darwin
11:20
__Sander___ has quit [Client Quit]
11:20
__Sander__ has joined #nix-darwin
11:45
pxc1 has joined #nix-darwin
11:49
pxc1 has quit [Ping timeout: 252 seconds]
11:54
periklis has joined #nix-darwin
13:08
nD5Xjz has quit [Ping timeout: 276 seconds]
13:12
nD5Xjz has joined #nix-darwin
14:53
periklis has quit [Ping timeout: 260 seconds]
15:13
alexteve_ has joined #nix-darwin
15:13
alexteves has quit [Read error: Connection reset by peer]
15:17
alexteve_ has quit [Ping timeout: 245 seconds]
15:19
alexteves has joined #nix-darwin
15:31
__Sander__ has quit [Quit: Konversation terminated!]
15:44
<
nikivi >
Anyone here installed Git with Nix?
15:45
<
nikivi >
I get a really annoying error when I try to `git push` to GitHub from another app
15:45
<
nikivi >
SSL: can't load CA certificate file /bin/curl-ca-bundle.crt
15:45
<
nikivi >
But I don't have curl-ca-bundle.crt inside /bin/
15:45
<
nikivi >
The reason I think the issue is with Nix is because when I had git installed with brew, it worked
15:46
<
nikivi >
So not sure, perhaps I have to pass some environment variable to make it work now?
15:46
cransom has left #nix-darwin ["WeeChat 2.0"]
15:48
<
nikivi >
I have this env variable set: NIX_SSL_CERT_FILE=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt
15:49
<
nikivi >
So I tried to symlink it with: `sudo ln -s /nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt /bin/curl-ca-bundle.crt`
15:49
<
nikivi >
But I can't do that apparently
15:50
pxc has joined #nix-darwin
15:53
disasm has quit [Quit: WeeChat 2.0]
16:03
pxc has quit [Ping timeout: 245 seconds]
16:06
<
LnL >
wut /bin/cur-cabundle.crt?
16:06
<
LnL >
why in the world is it looking there
16:06
<
nikivi >
I have no ia
16:08
<
nikivi >
Apparently curl is looking for certificate there
16:08
<
nikivi >
Since Git offloads this to curl
16:09
<
mitchty >
are you running nix git? aka what does type git point to
16:10
<
nikivi >
mitchty which git -> /Users/nikivi/.nix-profile/bin/git
16:10
<
nikivi >
which curl -> /usr/bin/curl
16:10
<
nikivi >
I installed curl from Nix though now but it still uses /usr/bin/curl
16:10
<
mitchty >
run rehash
16:10
<
LnL >
what about nix-shell --pure -p cacert -p git --run 'git ls-remote ...'
16:11
<
nikivi >
mitchty how do I run rehash?
16:11
<
LnL >
well yes, with a https git url :)
16:11
<
mitchty >
type rehash in your terminal
16:12
<
mitchty >
i presume you're using zsh with that behavior
16:12
<
nikivi >
mitchty I am using zsh yes
16:12
<
nikivi >
which zsh -> /Users/nikivi/.nix-profile/bin/zsh
16:13
<
mitchty >
so the reason curl is still /usr/bin/curl, thats where it was originally, if you installed curl in nix just run rehash and it should pick it up there now
16:13
<
nikivi >
The thing is that I can run `git push` with no problems inside iTerm. But I issue `git push` inside Hazel app, this error occurs
16:13
<
mitchty >
what git is that using
16:13
<
nikivi >
mitchty not really sure and nowhere I can check it
16:14
<
nikivi >
only thing I know though is that it worked when I used homebrew
16:14
<
nikivi >
It might be because I also use 2FA on GitHub but I checked without it too and error happens still
16:15
<
nikivi >
mitchty It is
16:16
<
nikivi >
The full log of error in Hazel
16:16
<
nikivi >
The issue is with that certificate
16:19
<
mitchty >
out of curiosity, try closing hazel and running open -a hazel from within a working terminal session
16:19
<
nikivi >
mitchty Hazel is not a typical macOS application. It sits inside System Preferences
16:19
<
nikivi >
`open -a Hazel` fails
16:20
<
mitchty >
well then i'm out of easy ideas, thats a hack way to validate if the issue is simply environment related, which I presume it is
16:22
<
mitchty >
i'll admit i've never tried to run anything in nix from any gui environment except emacs, but that has an easy fix
16:22
<
nikivi >
The bundle is located here: /nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt
16:22
<
nikivi >
But I can't move it nor make a symlink to it
16:22
<
nikivi >
I wanted to symlink /bin/ca-bundle.crt to it
16:22
<
mitchty >
sip would prevent that
16:23
<
nikivi >
Can I generate this ca-bundle.crt somehow
16:24
<
nikivi >
found this but I am wary of using it
16:32
<
nikivi >
I ran `which git/curl` inside Hazel to debug and got these
16:32
<
nikivi >
/usr/bin/git & /usr/bin/curl
16:32
<
nikivi >
so maybe thats the issue
16:33
<
nikivi >
I am not actually sure why I installed Git with Nix tbh
16:34
<
nikivi >
and `which nix` in Hazel returns nix not found
16:34
<
nikivi >
I don't know why or how I can make Hazel see /nix
16:35
disasm has joined #nix-darwin
16:37
<
nikivi >
I ran that script inside Hazel and `which nix` after it
16:41
<
nikivi >
I have internet connection
16:41
<
mitchty >
seemingly USER isn't setup by hazel
16:41
<
mitchty >
try export USER=yourusername
16:44
<
nikivi >
The script I run
16:45
<
mitchty >
can hit that same uri via curl ok?
16:46
<
nikivi >
no you can't
16:46
<
mitchty >
also that export should come before the source
16:46
<
nikivi >
the .git should go away to curl it
16:46
<
mitchty >
that nix-daemon.sh script uses USER
16:47
<
mitchty >
example export NIX_USER_PROFILE_DIR="/nix/var/nix/profiles/per-user/$USER"
16:47
<
mitchty >
those errors you saw relate to no USER env variable
16:47
<
nikivi >
okay nix errors went away
16:47
<
mitchty >
actually, just run set in hazel
16:47
<
nikivi >
but curl still can't reach URL
16:47
<
nikivi >
or well Git can't
16:48
<
nikivi >
run set in Hazel?
16:48
<
nikivi >
before nix thing?
16:48
<
nikivi >
or doesn't matter
16:48
<
mitchty >
no just alone
16:49
<
mitchty >
that way you can diff the environment
16:49
<
mitchty >
aka run set with nothing to say /tmp/hazelenv
16:49
<
mitchty >
then after sourcing the nix-daemon.sh
16:49
<
mitchty >
and also compare that to set in a normal terminal
16:49
<
nikivi >
are there any sensetive stuff?
16:49
<
nikivi >
I can post the output here
16:50
<
nikivi >
how do you diff two outputs?
16:50
<
mitchty >
only if you store passwords or other silly things that shouldn't be in the environment
16:50
<
mitchty >
pipe them to a file and diff the files
16:52
<
mitchty >
it kinda sounds like hazel does sandboxing and sets up a minimal environment
16:53
<
nikivi >
thats a huge diff
16:54
<
nikivi >
thats the diff
16:54
<
nikivi >
It has GitHub TOKEN in there but thats not working
16:54
<
nikivi >
I have no idea how it got there and where I can unset it, looked everwhere :|
16:54
<
nikivi >
same about HOMEBREW_GITHUB_API_TOKEN
16:54
<
nikivi >
never set it, still there
16:55
<
nikivi >
So something is blocking curl to reaching the URL
16:57
<
nikivi >
Is running the nix if check expensive?
16:57
<
mitchty >
its a stat() on the filename
16:57
<
nikivi >
Just thinking in hopes we do solve it and I would have to put it in front of all my shell scripts
16:57
<
nikivi >
inside Hazel that s
16:57
<
nikivi >
oh then its fine
16:59
<
nikivi >
I am not sure what can block curl from reaching the URL
16:59
<
mitchty >
run curl -v url
17:01
<
nikivi >
Host is down
17:02
<
mitchty >
do you use little snitch?
17:02
<
nikivi >
I think I know the issue for curl
17:02
<
mitchty >
double check its not interfering
17:04
<
nikivi >
I love you mitchty
17:04
<
nikivi >
That solved it
17:04
<
nikivi >
So I'll just change all my shell scripts of Hazel to do the nix thing
17:04
<
nikivi >
Thank you very much for the help
17:04
<
nikivi >
I automate tons of stuff with Hazel:D
17:05
<
mitchty >
np, glad it worked
17:05
<
mitchty >
i just use shell scripts and cron, i'm lazy
17:05
<
nikivi >
It's strange though still that /usr/bin/git tried to search for that certificate
17:05
<
nikivi >
but nix git doesn't
17:05
<
nikivi >
or well maybe it searches for certificate inside /nix and finds it
17:06
<
mitchty >
likely an env variable that caused it to look there
17:06
<
nikivi >
I really want a clean system I fully understand
17:08
<
nikivi >
Is there any way to get nice man pages on macOS
17:08
<
nikivi >
for example `man set` gives nothing of value
17:08
<
nikivi >
I want an actual man page for set
17:08
<
nikivi >
same for many other utils
17:08
<
nikivi >
I read that Linux and BSD have those
17:08
<
mitchty >
man set sends me to the builtin(1) manpage
17:09
<
nikivi >
me too but that's useless
17:09
<
nikivi >
it doesn't say what set does there
17:11
<
mitchty >
well its a shell builtin, type set
17:13
<
mitchty >
in a nutshell though, typing set shows you your current environment
17:14
<
nikivi >
I thought env did that
17:15
<
nikivi >
or env only listed env variables
17:15
<
mitchty >
difference being /usr/bin/env is a totally different beast
17:18
<
mitchty >
no need to exec() anything to get your environment, also it doesn't show everything
17:18
<
mitchty >
anyway getting offish topic for the channel and i need lunch, good luck nikivi
17:21
<
nikivi >
have you guys read the original thesis on Nix? a/bib/2006/dolstra-thesis.pdf
17:36
Sonarpulse has joined #nix-darwin
17:43
pxc has joined #nix-darwin
18:07
<
gchristensen >
I'm getting "Undefined symbols for architecture x86_64 "_CFURLResourceIsReachable"" any ideas? I've put CoreFoundation and CoreServices in to the buildInputs of the nix-shell, this is from running `cargo install cargo-watch`
http://ix.io/1b5d
18:11
<
LnL >
probably because of the CF from 10.10
18:12
pxc1 has joined #nix-darwin
18:13
<
LnL >
try preConfigure = '' export NIX_CFLAGS_COMPILE="-F${CoreFoundation}/Library/Frameworks $NIX_CFLAGS_COMPILE" '';
18:17
<
gchristensen >
is Foundation different from CoreFoundation?
18:18
<
LnL >
but CF is part of the stdenv so in some cases you need to shuffle the -F flags around like that
18:24
pxc has quit [Ping timeout: 245 seconds]
18:27
pxc has joined #nix-darwin
18:28
Sonarpulse has quit [Ping timeout: 260 seconds]
18:28
<
gchristensen >
hmm no luck LnL. this error is coming from within clang-wrapper after compiling some rust sttuff
18:30
<
LnL >
uh, I didn't fix the frameworks reference :/
18:36
philr has joined #nix-darwin
19:18
<
LnL >
maybe ldflags?
19:19
Sonarpulse has joined #nix-darwin
19:46
jtojnar has quit [Remote host closed the connection]
19:56
philr has quit [Ping timeout: 245 seconds]
20:16
jtojnar has joined #nix-darwin
20:24
pxc has quit [Quit: WeeChat 2.1]
21:54
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:59
jtojnar has quit [Read error: Connection reset by peer]
22:00
jtojnar_ has joined #nix-darwin
22:00
jtojnar_ is now known as jtojnar
22:16
jtojnar_ has joined #nix-darwin
22:17
jtojnar has quit [Quit: jtojnar]
22:17
jtojnar_ is now known as jtojnar
22:31
hamishmack has joined #nix-darwin
23:20
jtojnar has quit [Quit: jtojnar]
23:20
jtojnar has joined #nix-darwin
23:53
pxc1 has quit [Ping timeout: 240 seconds]