angerman has joined #nix-darwin
elvishjerricco has joined #nix-darwin
manveru has joined #nix-darwin
ejpcmac has joined #nix-darwin
copumpkin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
philr has quit [Ping timeout: 245 seconds]
trcc has joined #nix-darwin
nikivi has quit [Quit: ZNC is awesome]
nikivi has joined #nix-darwin
__Sander__ has joined #nix-darwin
philr has joined #nix-darwin
trcc_ has joined #nix-darwin
trcc has quit [Ping timeout: 250 seconds]
trcc_ has quit [Remote host closed the connection]
trcc has joined #nix-darwin
trcc has quit [Remote host closed the connection]
trcc has joined #nix-darwin
trcc has quit [Ping timeout: 250 seconds]
nD5Xjz has quit [Ping timeout: 245 seconds]
nD5Xjz has joined #nix-darwin
trcc has joined #nix-darwin
trcc has quit [Ping timeout: 246 seconds]
trcc has joined #nix-darwin
trcc has quit [Read error: Connection reset by peer]
trcc has joined #nix-darwin
jtojnar has quit [Quit: jtojnar]
nD5Xjz has quit [Ping timeout: 245 seconds]
nD5Xjz has joined #nix-darwin
copumpkin has joined #nix-darwin
socksy has joined #nix-darwin
<socksy> hi there. I just tried a nix shell command I set up for a work project, and alas, one of the dependencies isn't available on darwin. I don't really need it on MacOS, so I was wondering if anyone knew a good strategy for "if linux, use this package, if darwin, do this"? My nix-fu is poor
<LnL> like if stdenv.isDarwin then foo else bar? :D
<LnL> or [ foo ] ++ stdenv.lib.optional stdenv.isDarwin bar
<LnL> what's missing? the platforms might just be stricter than necessary
<socksy> ah, yeah, could be. The derivation that is missing is lumo, which just appears to be plain nodejs at first glance, but specifies linux https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/interpreters/clojurescript/lumo/default.nix#L254
<socksy> `buildInputs = [hello] ++ stdenv.lib.optional stdenv.isDarwin lumo;` seems like a good pattern, thanks
philr has quit [Ping timeout: 240 seconds]
<socksy> now of course there's a node-gyp project that detects it's building on darwin, then fails out for not having Security/Security.h. Oh how I wish node-gyp wasn't a thing
<LnL> yeah gyp is terrible
<socksy> any package that can provide these base macos files?
<LnL> yeah, we have fake packages for all the frameworks
<LnL> darwin.apple_sdk.frameworks.Security
<socksy> ah nice
trcc_ has joined #nix-darwin
trcc has quit [Ping timeout: 246 seconds]
trcc_ has quit [Ping timeout: 240 seconds]
<socksy> cool it all works now
<socksy> thanks for the help
socksy has quit [Quit: Page closed]
__Sander__ has quit [Quit: Konversation terminated!]
<johnw> it looks like yesterday's unstable update has broken ghc-8.4.4
<johnw> getting build output in a bit
peel_ has joined #nix-darwin
{^_^} has quit [Ping timeout: 240 seconds]
ejpcmac has quit [Ping timeout: 240 seconds]
peel has quit [Ping timeout: 240 seconds]
{^_^} has joined #nix-darwin
peel_ is now known as peel
ejpcmac has joined #nix-darwin
trcc has joined #nix-darwin
<LnL> hmm, it seems like `java --version` gets stuck in a gettimeofday loop -_-
<LnL> I'm also finding stuff that shouldn't work on linux either which is odd
trcc has quit []
philr has joined #nix-darwin