matthewbauer has quit [Remote host closed the connection]
matthewbauer has joined #nix-darwin
<johnw> dude, I love Nix!
<johnw> added several more Mac apps
matthewbauer has quit [Ping timeout: 248 seconds]
nkpart has quit [Quit: Connection closed for inactivity]
<dhess> johnw: that's cool, but what happens when the app auto-updates?
<johnw> they can't
<dhess> what do you mean?
<johnw> they won't be able to auto-update
<johnw> everything is -w
<dhess> because they're in the store?
<johnw> yeah
<dhess> Hmm.
<johnw> i'll just turn off auto-update checks
<johnw> how does one ask for "all outputs"?
<johnw> instead of saying foo.out foo.dev foo.man, etc.?
<clever> foo.outputs is a list of strings, naming each output
<johnw> yeah
<johnw> how do I install them all at once?
<clever> why do you want to install several of them?
<clever> and is this with systemPackages or nix-env?
<johnw> that seems awfully repetitious to me
<johnw> systemPackages
<clever> you must never install .dev packages
<clever> that breaks a lot of things, and defeats a lot of the safeties in nix
<clever> and also breaks utils that make things simpler to use
<johnw> but I need the fftw3.h file
<clever> nix-shell -p fftw fftwFloat fftwLongDouble
<johnw> don't want to do that
<clever> build inside the shell this command provides
<johnw> nix-shell is a PITA
<clever> all of the setup hooks break when you install things like that
<johnw> well, it's installed, and it's working
<clever> which means every utility in nix that was meant to help you is now gone
<johnw> but I'd like to avoid the repetition
<johnw> i'm not going to use nix-shell every time I need these dependencies
<johnw> I've had this debate at length on the bug tracker
<clever> the design is that you make a shell.nix for the project, and put it at the root of the project
<clever> then you just run nix-shell with no args, and you get all the dependencies that project needs
<johnw> and it's not a good design
<clever> and what if you need a different version of fftw on a different project?
<johnw> it leaves me in situations where I'm on a plane, and I can't build my project because I didn't update dependencies in my upteen projects that aren't in systemPackages
<johnw> I need *everything* that I rely on to be in my global environment, without manually managing GC roots
<johnw> so that after I update and copy-closure to my laptop, and I can actually get work done away from the Internet
<johnw> all of these nix-shell based solutions seem to assume that I'm always in the same sort of environment as the other people who use them
<clever> yeah, it is a bit of a pain to use nix without internet access
<clever> but shell.nix can also fix that
<johnw> but I'm not; the Internet is not a given, redownloading from binary caches or tarbells is not a given
<clever> you can specify an exact nixpkgs revision in your shell.nix file
<clever> and then it wont change the versions when you upgrade nixos
<johnw> that only works though if all the dependencies for that nixpkgs revision happen to be in my store
<johnw> I don't work on this projec that uses fftw all the time
<clever> so they will remain in the cache longer, until you collect garbage
<johnw> so it if it dependend on nix-shell, it *would* get out of date with respect ot the rest of the system
<johnw> anyway, I've debated this at length other places; suffice it to say that my use of Nix is not nix-shell friendly
<clever> you could use a map function
<clever> map (pkg: [ pkg.dev pkg.man pkg ]) [ fftw fftwFloat fftwLongDouble ]
<johnw> cool, thanks clever!
<johnw> the length of -qR for what I have in my store for just the _current generation_ is 18,386
<johnw> I try very hard to make sure that if that ever updates, I won't be stuck without Internet when I really need to get work done. Otherwise, Nix would become sadly non-viable.
<johnw> cool, program built
<johnw> this one happens to be an unixified project that uses cmake
<johnw> just haven't gotten around to pulling it into the regime yet
<johnw> I could also "sandbox" these .dev outputs by locating them within a myEnvFun, so that at least I'd know that the dependencies are always there, and then I could run them build from tha Env. That my preferred way to "persist" nix-shell environments.
LnL has quit [Quit: exit 1]
LnL has joined #nix-darwin
the has quit [Remote host closed the connection]
hamishmack has quit [Quit: hamishmack]
hamishmack has joined #nix-darwin
shanemikel_ has joined #nix-darwin
shanemikel_ has left #nix-darwin [#nix-darwin]
philr has joined #nix-darwin
elasticdog has joined #nix-darwin
elasticdog has quit [Changing host]
elasticdog has joined #nix-darwin
periklis has joined #nix-darwin
periklis has quit [Ping timeout: 240 seconds]
<nikivi> "/Users/nikivi/.nix-profile/bin:/Users/nikivi/.nix-profile/sbin:/Users/nikivi/.nix-profile/lib/kde4/libexec:/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin:/nix/var/nix/profiles/default/lib/kde4/libexec:/Users/nikivi/.nix-profile/bin:/Users/nikivi/.nix-profile/sbin:/Users/nikivi/.nix-profile/lib/kde4/libexec:/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin:/nix/var/nix/profiles/default/lib/kde4/libexec:./node_mod
<nikivi> ules/.bin/:/Users/nikivi/.yarn/bin:/usr/local/opt/ruby/bin:/Users/nikivi/.nix-profile/bin:/Users/nikivi/.nix-profile/sbin:/Users/nikivi/.nix-profile/lib/kde4/libexec:"
<nikivi> Should of used a pastebin
<nikivi> But I want to find out why I have so many nix repeations in my $PATH
<nikivi> Specifically `/nix/var/nix/profiles/default/lib/kde4/libexec` shows so many times
<nikivi> I have no idea why
<nikivi> My zshrc for reference
<nikivi> It always prepends it but I don't ever do anything with nix
<nikivi> I just installed it
<nikivi> Anyone have a clue on what might cause this?
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #nix-darwin
<LnL> is this a single or multi-user install
<nikivi> Not sure tbh
<nikivi> I think single
<nikivi> `curl https://nixos.org/nix/install | sh`
<nikivi> I think I used this
<LnL> what does nix-info say
<LnL> probably multi-user then
<nikivi> command not found
<LnL> nix-shell -p nix-index --run nix-index :)
<nikivi> It is downloading tons of stuff
<nikivi> i.e. Downloading ‘https://cache.nixos.org/nar/10cyjcnr8f70s377g6m79xgjkx8gjb643fzvlm1jpglhbvxj8p5c.nar.xz’ (signed by ‘cache.nixos.org-1’) to ‘/nix/store/92lbamiwas2ajwlz8a0jfl59lvardz79-clang-4.0.1’.
<LnL> that's normal, nix shell uses the stdenv so it will download a few things like clang
szicari has joined #nix-darwin
nikivi has quit [Quit: ZNC 1.6.5 - http://znc.in]
nikivi has joined #nix-darwin
<nikivi> LnL I got this in the end of it https://hastebin.com/zivubuyawo
<LnL> err
<LnL> that's a totally different tool
<LnL> nix-shell -p nix-info --run nix-info
<LnL> nix-index is pretty cool tho, it creates an index of all nixpkgs so you can use nix-locate to search for paths in packages
<LnL> eg. nix-locate /bin/hello
<nikivi> That's output of 'nix-shell -p nix-index --run nix-index`
<LnL> yeah I typed the wrong thing
<nikivi> Got this
<nikivi> so yeah multi-user
<nikivi> Was that the issue with the $PATH
<LnL> ah, looks like nix-daemon.sh extends path
<LnL> so you'll get multiple entries if that gets loaded more then once
<nikivi> Yep
<nikivi> So what can I do about it
<nikivi> If anything
<LnL> since you're using zsh you can use typeset -U PATH
<nikivi> I should add that at end of my zshrc I assume, right?
<nikivi> I think this works, sweet
<nikivi> Thank you LnL
<acowley> Anyone know what's happening with the borg build failure on darwin here: https://github.com/NixOS/nixpkgs/pull/33950
<gchristensen> acowley: `lgogdownloader` says it isn't supported on darwin: https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/lgogdownloader/default.nix#L23 but ofborg is currently too dumb to know that and tries anyway
<acowley> Oh, I don't know what that is
<acowley> Ohhhh! Is that a dependee of tinyxml-2?
<LnL> just a random package that depends on tinyxml-2
<acowley> I didn't recognize the name and thought it was an ofborg internal thing
<dtz> oh I was just trying to confirm things work (and neatly document it for everyone to see), and yeah the lgogdownloader thing was expected to fail on Darwin sorry :)
<acowley> dtz: No, no, thank you for triggering the rebuild! I was worried ofborg was broken.
<gchristensen> it'd be good to make that error ress mysterious
<acowley> I just didn't read the rebuild request carefully enough. I thought it was just for tinyxml-2 itself.
<gchristensen> aye :) well... I stand by it ^ it isn't fair to say it failed if it explicitly notes it is not supported
Sonarpulse has joined #nix-darwin
periklis has joined #nix-darwin
philr has quit [Ping timeout: 248 seconds]
jtojnar has quit [Ping timeout: 248 seconds]
periklis has quit [Remote host closed the connection]
periklis has joined #nix-darwin
jtojnar has joined #nix-darwin
periklis has quit [Ping timeout: 240 seconds]
<johnw> since nix-collect-garbage deletes all of my source tarballs, no matter what options I have set, I've decided to start copying them all into a /cache directory before running nix-collect-garbage. What is the best way to get Nix to pull the binaries from that directory when it finds later that they're missing from /nix/store? How do I turn a bunch of files-with-hashnames into a binary cache?
<LnL> nix copy /nix/store/... file:///tmp/cache
<johnw> error: getting status of '/Users/johnw/file:/Volumes/mybook/Cache': No such file or directory
<johnw> this is with Nix 1.12
<LnL> oh forgot --to
<johnw> ah, nice!
<johnw> and now I have point to this binary cache using file://?
<LnL> yeah
<LnL> nix copy --to file:///tmp/cache [<paths>]
<johnw> nice, thank you!
<johnw> ok, now once I've downloaded a tarball, I should never need to download that same tarball ever again
<johnw> which begins to matter a lot more now that I'm building Mac apps, the inputs to some of which are nearly a gigabyte of tarball
* johnw stares at SageMath
<johnw> I finished Nixifying all of the Mac apps that I use that aren't from the App Store
jtojnar has quit [Ping timeout: 240 seconds]
jtojnar has joined #nix-darwin
jtojnar has quit [Ping timeout: 256 seconds]
<LnL> what's up with these new darwin failures...
mog has left #nix-darwin ["Leaving"]
jtojnar has joined #nix-darwin
<LnL> the hydra jobset overview ui is so misleading, +1 == -10 +11
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nix-darwin
hamishmack has quit [Read error: Connection reset by peer]
hamishmack has joined #nix-darwin
szicari has quit [Quit: szicari]
dustinm has quit [Quit: Leaving]
dustinm has joined #nix-darwin
johnw_ has joined #nix-darwin
<LnL> man, wish I had more time to work on nix stuff
<johnw_> LnL: agreed!
<dhess> LnL: I wish I had time to work on Hercules
* LnL is working on a "secret" project