gchristensen changed the topic of #nixos to: NixOS 18.03 and Nix 2.0 are released! || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat
blankhart has joined #nixos
roconnor has quit [Remote host closed the connection]
roconnor has joined #nixos
stumble has quit [Ping timeout: 264 seconds]
aminb has joined #nixos
sigmundv__ has joined #nixos
<srk> hm, I'm trying to build a simple C app (https://github.com/xobs/novena-eeprom) which requires linux/i2c.h but I don't know how to pass linuxHeader path to Makefile
<srk> ah, ok, it looks like it's just too old
pxc has joined #nixos
asuryawanshi has joined #nixos
<srk> solved. was actually missing i2c.h (only importing i2c-dev.h)
kandinski has joined #nixos
halfbit has quit [Ping timeout: 240 seconds]
<kandinski> hi, I'm running bundix to try and add stuff to someone else's jekyll project, but the bundix rull doesn't leave a `result` anywhere after running. I'm new to Ruby and not that nixos-knowledgeable, so I might be doing things wrong. I'm on nixos-unstable, and all three of ruby_2_5, bundler and bundix were installed with `nix-env -iA`.
<srk> bundix just generates files to be used with your custom derivation
<srk> which includes these
<kandinski> yes, the vendor directory is full of stuff
<kandinski> it's the next step that I don't know what to do with. `bundler exec` failed because of issues compiling native gems.
jackdk has joined #nixos
nckx has quit [Quit: Updating my GNU GuixSD server — gnu.org/s/guix]
<srk> this uses files generated by bundix in the same directory
<kandinski> srk: so I should write my own default.nix by hand then?
<srk> yes, you can use the one I've sent you
<srk> as a template
<srk> we just use bundix -l to generate required files
<kandinski> right, the only new file I can see besides the vendor directory is a 'gemset.nix'
<srk> you also need Gemfile and Gemfile.lock
<kandinski> Yes, those were already in the project, and are unchanged by running bundix.
<srk> sounds promising :)
<gchristensen> I think bundix has a flag to update the Gemset.lock? otherwise you'd need to do it yourself
griff_ has quit [Quit: griff_]
<manveru> -l will update the lock if needed
<kandinski> hmm, let's try that
<srk> heh, yeah, that's kind-of undocumented
<kandinski> `bundix -l` left Gemfile.lock unchanged. So now I write default.nix where the executable is... jekyll? I'm sorry, but I'm new to ruby and the only instructions I got were to run `bundler exec jekyll serve --watch` on github.com/composeconference/composeconference
<{^_^}> [nixpkgs] @ElvishJerricco opened pull request #40710 → Make getHaskellBuildInputs / shellFor work with overrideCabal (Fixes #40266) → https://git.io/vpAM1
Sonarpulse has quit [Ping timeout: 256 seconds]
Have-Quick has joined #nixos
<manveru> with import <nixpkgs> {}; let; gems = bundlerEnv { name = "gems"; gemdir = ./.; }; in stdenv.mkDerivation { name = "whatever-i-need-for-jekyll"; buildInputs = [ gems ]; }
<manveru> that should probably do it for a nix-shell
<kandinski> manveru: thanks. I'll explore from here.
<manveru> ah, misses a `inherit ruby` in the bundlerEnv
<kandinski> thanks also srk
<manveru> i gotta sleep :)
acarrico has quit [Ping timeout: 256 seconds]
aither has quit [Ping timeout: 264 seconds]
jackdk has quit [Ping timeout: 260 seconds]
snajpa has quit [Ping timeout: 248 seconds]
srk has quit [Ping timeout: 248 seconds]
jackdk has joined #nixos
snajpa has joined #nixos
acarrico has joined #nixos
srk has joined #nixos
pie_ has quit [Remote host closed the connection]
ryantrinkle has quit [Read error: Connection reset by peer]
pie_ has joined #nixos
aither has joined #nixos
ryantrinkle has joined #nixos
<petersjt014[m]> Hi:
<petersjt014[m]> I'm trying to run a tomcat server and nix is overwriting some of my settings--I don't know where it wants me to put them
Rusty1_ has joined #nixos
<petersjt014[m]> I'm trying to set a port in `server.xml` and it's being changed back by what I'm 90% sure is [this](https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/web-servers/tomcat.nix#L217) file/line
<{^_^}> [nixpkgs] @dezgeg pushed commit from @dtzWill to staging « qt-5.10: don't use features that require new-ish kernels, stay compat »: https://git.io/vpADC
<petersjt014[m]> It's presumably one of [these](https://nixos.org/nixos/options.html#.tomcat.) options, but I can't find any relevant examples :|
<{^_^}> [nixpkgs] @dezgeg closed pull request #40577 → Don't let Qt require a minimum kernel of 3.17+ (even if we're building against headers satisfying that requirement) → https://git.io/vpdLe
ericsagnes has joined #nixos
<{^_^}> [nixpkgs] @dezgeg pushed 108 commits to staging: https://git.io/vpAD2
<{^_^}> → c41675bc by @ElvishJerricco: GHCJS 8.2
<{^_^}> → 64df9b6b by @ElvishJerricco: GHCJS 8.4
<srk> petersjt014[m]: try looking at the implementing module
<{^_^}> → f252c726 by @nyarly: hiro: init at 0.1.4
<srk> petersjt014[m]: you can easily find out which variables go where
<clever> petersjt014[m]: if you specify a serverXml in your nixos config, it will use that string as the contents, if not, it uses the result of the sed call you linked
<petersjt014[m]> What would the option/syntax look like? The only thing I'd know to do would be to just write out a file, and that seems clunky
<petersjt014[m]> unless it's not under `services.tomcat`
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/94cb35748e2 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
silver has quit [Read error: Connection reset by peer]
<petersjt014[m]> either the conditional is not there or I'm looking right at it
Supersonic112 is now known as Supersonic
<petersjt014[m]> wait i think i see
<petersjt014[m]> mayber
<petersjt014[m]> hmm
oltoAltn has joined #nixos
pikajude has quit [Quit: ZNC 1.6.6 - http://znc.in]
olto has quit [Ping timeout: 240 seconds]
pikajude has joined #nixos
<petersjt014[m]> If I'm understanding [this](https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/web-servers/tomcat.nix#L219) line correctly, then I can't put the webapp in the default directory
mbrgm has quit [Ping timeout: 268 seconds]
broccoli_ has quit [Ping timeout: 240 seconds]
mog has joined #nixos
mbrgm has joined #nixos
acarrico has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @dtzWill opened pull request #40711 → [NOMERGE] llvm: fix cross-compilation, alternative approach → https://git.io/vpAyr
pxc has quit [Ping timeout: 256 seconds]
drakonis has joined #nixos
drakonis_ has joined #nixos
drakonis_ has quit [Client Quit]
pxc has joined #nixos
acarrico has joined #nixos
sanscoeur has quit [Ping timeout: 248 seconds]
broccoli_ has joined #nixos
<ajmccluskey> jackdk: You want to get hoogle working locally for a Haskell package?
broccoli_ has quit [Ping timeout: 265 seconds]
markus1199 has joined #nixos
<jackdk> yeah, I'm doing the approach in https://stackoverflow.com/a/34583430/429232 at the moment. My actual goal was to find a good way to open installed haddocks, but that might be an XY problem
<ajmccluskey> Assuming you're using `ghcWithHoogle` as you mentioned in #haskell, you should be able to `nix-shell --run 'hoogle server --local'` and then hit `localhost:8080` to search for things and view haddocks.
<ajmccluskey> Pretty sure there's a flag to change the port too -- I just haven't needed it.
<jackdk> (there is, it's `-p`p
<jackdk> s/p$/)/
markus1189 has quit [Ping timeout: 255 seconds]
<ajmccluskey> Right. I just click through hoogle to get to the haddocks.
<jackdk> yeah so to make that ghcWithHoogle work I had to adapt the contents of the SO link to overwrite the compiler in haskellPackages with one that's withHoogle
hamishmack has joined #nixos
<jackdk> also having good hoogle support means I can set my editor up to take advantage, which is a win
<ajmccluskey> That's the only place I've used this.
asuryawanshi has quit [Remote host closed the connection]
<jackdk> oh, interesting. It's both a "compiler selection" thing and a "shell specific" thing, so I'm not sure which is more correct. nix seems very TIMTOWTDI sometimes
<ajmccluskey> And it's taking a different approach of overriding the derivation when you're in a shell and adding hoogle with build/exe/test deps as a build dependency.
<ajmccluskey> TIMTOWTDI?
<ajmccluskey> I haven't played with it much -- this came from a colleague who set it up.
nuncanada has quit [Quit: Leaving]
asuryawanshi has joined #nixos
asuryawanshi has quit [Ping timeout: 260 seconds]
mrkgnao has joined #nixos
<drakonis> is anyone else having trouble with kde 5?
<drakonis> ie: no configuration modules?
srl295 has quit [Quit: Connection closed for inactivity]
ryantrinkle has quit [Ping timeout: 264 seconds]
sigmundv__ has quit [Ping timeout: 256 seconds]
<pxc> drakonis: not atm, but I have. Do you have any KDE software in your user profile? sometimes I have problems if my user profile contains old KDE stuff and I'm using KDE on NixOS
lassulus_ has joined #nixos
<drakonis> hmm
<drakonis> that depends
lassulus has quit [Ping timeout: 264 seconds]
<drakonis> it shouldn't impact kde being unable to see any configuration modules
mahalel_ has joined #nixos
bulldog has joined #nixos
<drakonis> it didn't have kservice
<drakonis> are you
<drakonis> really
acarrico has quit [Ping timeout: 240 seconds]
<pxc> drakonis: so adding that manually fixed it?
<bulldog> hello, I'm trying to fix an infinite recursion in my config: https://pastebin.com/KFqZMmKM
<drakonis> no not yet
<bulldog> it only started happening (the infinite recursion error) after an update to 18.04
<drakonis> still not fixed, maybe i have to start the service
<bulldog> the problem goes away if I get rid of the firefox overlay, but I want to keep the overlay!
<drakonis> oh boy, i have collisons between qt4 and qt5
<drakonis> phonon being a jerk
<drakonis> shouldn't be relevant however
vi21b has joined #nixos
<drakonis> "System Settings was unable to find any views, and hence has nothing to display."
freeman42x]NixOS has quit [Ping timeout: 268 seconds]
mizu_no_oto has joined #nixos
mizu_no_oto has quit [Client Quit]
mahalel_ has quit [Ping timeout: 240 seconds]
drakonis has quit [Remote host closed the connection]
mahalel_ has joined #nixos
Arcaelyx has joined #nixos
iqubic has joined #nixos
alex`` has quit [Quit: WeeChat 2.1]
mrkgnao has quit [Ping timeout: 256 seconds]
alex`` has joined #nixos
mrkgnao has joined #nixos
blankhart has quit [Quit: WeeChat 1.9.1]
<Drakonis[m]> wow i have icons on libreoffice now. awesome
<Drakonis[m]> and the wrapper works now
<Drakonis[m]> wowsers
<Drakonis[m]> MichaelRaskin: this is good
<Drakonis[m]> kde however is broken in new and spetacular ways
<bulldog> oh ok, figured out my recursion error
<Drakonis[m]> I do feel hilariously inept at using nix
<adisbladis[m]> Drakonis: How is KDE broken?
<adisbladis[m]> And which channel?
sary has quit [Ping timeout: 240 seconds]
drakonis has joined #nixos
sary has joined #nixos
<drakonis> hmm, i'm not sure how to actually purge my home and start over
mahalel_ has left #nixos [#nixos]
balsoft has joined #nixos
<{^_^}> [nixpkgs] @aespinosa opened pull request #40712 → hadoop: 2.2.0 -> 3.1.0 → https://git.io/vpA5J
drakonis has quit [Remote host closed the connection]
schoppenhauer has quit [Ping timeout: 248 seconds]
griff_ has joined #nixos
schoppenhauer has joined #nixos
ryantrinkle has joined #nixos
rauno has quit [Ping timeout: 260 seconds]
jperras has quit [Ping timeout: 268 seconds]
nallar has joined #nixos
Ross has quit [Ping timeout: 240 seconds]
nallar is now known as Ross
v0latil3 has joined #nixos
sir_guy_carleton has joined #nixos
<sir_guy_carleton> hello
<v0latil3> hello
balsoft has quit [Quit: balsoft]
nckx has joined #nixos
reinzelmann has joined #nixos
<boomshroom> sir_guy_carleton, v0latil3: Sup?
griff_ has quit [Quit: griff_]
<v0latil3> being sad about logstash6 plugins being broken in nix
<v0latil3> It's okay though I don't need it
<v0latil3> I was going to use prune filter like it shows in the example in logstash.nix but I can just use journalctl options to do the same thing
<v0latil3> Less overhead anyways I guess
Rusty1_ has quit [Quit: Konversation terminated!]
jperras has joined #nixos
aarvar has quit [Ping timeout: 240 seconds]
vi21b has quit [Remote host closed the connection]
jperras has quit [Ping timeout: 268 seconds]
taktoa has quit [Read error: Connection reset by peer]
tertle||eltret has quit [Quit: Connection closed for inactivity]
<yrashk> how can I get a committer's attention to review my `init` PR? I've had https://github.com/NixOS/nixpkgs/pull/36957 sitting almost idle for two months now, while all other PRs I've done were merged in pretty quickly. Am I missing some crucial ceremony here?
<sir_guy_carleton> hmm, nix is telling me gnupg is an undefined variable, yet i have on my installation right now
mduggie has left #nixos ["Leaving"]
<iqubic> sir_guy_carleton: try pkgs.gnupg
rodgort has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @yrashk closed pull request #36957 → ape: init at 6.7-131003 → https://git.io/vxTFo
<iqubic> I hate when there is latency with my bluetooth headset.
<iqubic> Is there a way to fix that?
mtjmullen has quit [Quit: WeeChat 2.0]
<sir_guy_carleton> iqubic: no go, is says attribute 'gnup' is missing
mtjmullen has joined #nixos
endformationage has quit [Quit: WeeChat 1.9.1]
<{^_^}> [nixpkgs] @yrashk opened pull request #40713 → ape: init at 6.7-131003 → https://git.io/vpAFV
<iqubic> that sounds like you misspelled it.
<iqubic> did you mean to say 'gnupg' here in irc?
<sir_guy_carleton> yeah i did; or rather i misspelled it here which lead me to realize it misspelled it there, but differently.
<iqubic> Cool. Did that work?
<sir_guy_carleton> spelling was never my strong suit
<sir_guy_carleton> yeah
<iqubic> Good.
rauno has joined #nixos
sir_guy_carleton has quit [Quit: Leaving]
jperras has joined #nixos
rodgort has joined #nixos
<johnw> mine eithre
jperras has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @jensbin opened pull request #40714 → typora: 0.9.47 -> 0.9.48 → https://git.io/vpAFN
guillaum1 has quit [Ping timeout: 240 seconds]
robstr has joined #nixos
jackdk has quit [Ping timeout: 265 seconds]
jackdk has joined #nixos
mrkgnao has quit [Ping timeout: 256 seconds]
bulldog has quit [Ping timeout: 260 seconds]
mrkgnao has joined #nixos
iqubic` has joined #nixos
iqubic` has left #nixos [#nixos]
jensbin has joined #nixos
iqubic has quit [Ping timeout: 276 seconds]
stumble has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/50bbc56b0bd (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
Ariakenom has joined #nixos
<ryantrinkle> are there archived nixos download pages anywhere?
<ryantrinkle> in particular, i'm looking for nixos 17.09 AMIs
<ryantrinkle> 18.03 has a memory usage issue that makes it impossible to nix-copy-closure certain things to small machines
orivej_ has quit [Ping timeout: 268 seconds]
<etu> ryantrinkle: https://nixos.org/channels/
<etu> Links to different channels and has isos :)
lassulus_ is now known as lassulus
<ryantrinkle> etu: thanks :) do you know if there's a way to get to the AMIs from that?
<elvishjerricco> ryantrinkle: I could have swore they fixed the memory issues in Nix 2.0.1 or 2.0.2... Maybe I'm misremembering
<etu> No idea what that is, but if it existed you can probably use an old channel and build it yourself.
<ryantrinkle> elvishjerricco: there does seem to be a fix, but it isn't present on nixos-unstable, afaict
<ryantrinkle> so the only published AMI to which someone can immediately deploy is 17.09
<elvishjerricco> ryantrinkle: Did you try it with `nix.package = pkgs.nixUnstable;`? No idea if _that's_ up to date :P
<ryantrinkle> etu: yeah, i'm writing something for beginners though, so i'm trying to do as much as possible in the normal/offical ways
<ryantrinkle> not "use ryan's janky AMI"
<etu> I see
* etu still don't know what that is :D
<ryantrinkle> it puts nix in a somewhat uncomfortable light if the first impression is "here are a bunch of custom workarounds you need to use"
<ryantrinkle> oh, AMI is amazon machine image
<ryantrinkle> the "Launch" links on this page
<etu> oh
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Wharncliffe has quit [Quit: Lost terminal]
logzet has joined #nixos
griff_ has joined #nixos
johann__ has joined #nixos
johann__ has quit [Client Quit]
<adisbladis[m]> I'm having some issues using virt-manager on nixos. When I try to add an image and press the forward button the UI freezes
johann__ has joined #nixos
<adisbladis[m]> Anyone else seen similar issues?
<adisbladis[m]> elvishjerricco: Some of the memory issues are fixed
<adisbladis[m]> I still get OOM on large rebuilds
<MichaelRaskin> drakonis: rest assured I haven't actually changed anything since our last conversation around LibreOffice
<etu> disasm: Any opinions on: https://github.com/NixOS/nixpkgs/pull/40565 ? :)
<{^_^}> [nixpkgs] @7c6f434c merged pull request #40713 → ape: init at 6.7-131003 → https://git.io/vpAFV
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/vpAAY
<{^_^}> → 63f2c2f7 by @yrashk: ape: init at 6.7-131003
<{^_^}> → 499b9e79 by @7c6f434c: Merge pull request #40713 from yrashk/attempto-ape
<MichaelRaskin> yrashk: there is a certain amount of luck involved. Bad luck in this specific case
<adisbladis[m]> ryantrinkle: You know that nix1 is still around, right?
<adisbladis[m]> You can use it on 18.03/unstable
Ariakenom has quit [Read error: Connection reset by peer]
<yrashk> MichaelRaskin: thanks for merging it :)
<MichaelRaskin> Sometimes pinging someone who has worked on a similar topic might help. I try to skim the GitHub events, but I don't have energy to actually read all of them, so I will catch only obviously interesting things, but will probably review or ping someone more qualified if you direct-mention me. I am not the only one like that; I mean, most people don't even try to skim the full notification stream.
<MichaelRaskin> By the way, «many comments, you and cleverca22 involved» might have created a false impression if someone tried to skim the open PR page for a quick merge.
<MichaelRaskin> In any case it is a luck-based game indeed.
leat has quit [Ping timeout: 256 seconds]
Have-Quick has quit [Quit: Have-Quick]
xAFFE has joined #nixos
griff_ has quit [Quit: griff_]
taktoa has joined #nixos
<{^_^}> [nixpkgs] @7c6f434c merged pull request #40676 → firejail: 0.9.52 -> 0.9.54 → https://git.io/vpNrF
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/vpAxJ
<{^_^}> → b1890946 by R. RyanTM: firejail: 0.9.52 -> 0.9.54
<{^_^}> → ec752bc4 by @7c6f434c: Merge pull request #40676 from r-ryantm/auto-update/firejail
Tucky has joined #nixos
guillaum1 has joined #nixos
knupfer has joined #nixos
Ariakenom has joined #nixos
ahmedtd has quit [Remote host closed the connection]
MichaelRaskin has quit [Quit: MichaelRaskin]
ahmedtd has joined #nixos
hamishmack has joined #nixos
MarcWeber has joined #nixos
coot has joined #nixos
<MarcWeber> I'm running out of gids - is an easy fix known?
<MarcWeber> Where does the hardcoded limit 499 in the .pl script come from?
<ikwildrpepper> MarcWeber: wikipedia says it's common in distributions: Many Linux systems reserve the GID number range 0 to 99 for statically allocated groups, and either 100−499 or 100−999 for groups dynamically allocated by the system in post-installation scripts. These ranges are often specified in /etc/login.defs, for useradd, groupadd and similar tools.
<ikwildrpepper> probably just arbitrary
mmercier has joined #nixos
jensens has joined #nixos
jperras has joined #nixos
<MarcWeber> The activation script dies with no gids left.
spyke has joined #nixos
<MarcWeber> There is some limitation in ntfs I'm not using.
<MarcWeber> sry nfs
<MarcWeber> So I'll just increase the value and see what happens..
hyper_ch2 has joined #nixos
jperras has quit [Ping timeout: 240 seconds]
kreetx has joined #nixos
johanot has joined #nixos
<{^_^}> [nixpkgs] @hrdinka merged pull request #40656 → nsd: 4.1.20 -> 4.1.21 → https://git.io/vpNqU
<{^_^}> [nixpkgs] @hrdinka pushed 2 commits to master: https://git.io/vpAjq
<{^_^}> → ffd3f884 by R. RyanTM: nsd: 4.1.20 -> 4.1.21
<{^_^}> → 4c07c563 by @hrdinka: Merge pull request #40656 from r-ryantm/auto-update/nsd
johanot has quit [Quit: Leaving.]
ryantrinkle has quit [Ping timeout: 256 seconds]
johanot has joined #nixos
xy2_ has joined #nixos
nico202 has joined #nixos
<nico202> Hi, does nix-build compiling with meson+ninja run the tests automatically?
jackdk has quit [Ping timeout: 256 seconds]
xy2_ has quit [Ping timeout: 240 seconds]
civodul has joined #nixos
stumble has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
stumble has joined #nixos
<boomshroom> Good night, guys!
boomshroom has quit [Quit: WeeChat 2.0]
johanot has quit [Quit: Leaving.]
johanot has joined #nixos
johanot has quit [Client Quit]
spyke has quit [Quit: Leaving]
johnw has quit [Ping timeout: 250 seconds]
johanot has joined #nixos
jperras has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #40603 → mattermost: 4.8.0 -> 4.10.0 → https://git.io/vpF9M
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpxfU
<{^_^}> → e76711fe by @ryantm: mattermost: 4.8.0 -> 4.10.0
<{^_^}> → b6495376 by @Mic92: Merge pull request #40603 from ryantm/mattermost_4_10
regulus_ has quit [Remote host closed the connection]
regulus_ has joined #nixos
jperras has quit [Ping timeout: 265 seconds]
Izorkin has quit [Read error: Connection reset by peer]
thc202 has joined #nixos
knupfer has quit [Ping timeout: 265 seconds]
<nico202> do you know why calling a package with callpackage ./package.nix { stdenv = clangStdeng; } still makes it try to use gcc (and fails)?
<tilpner> What package is it?
<nico202> tilpner: my own. It's like {stdenv, meson, ninja, eigen, libusb1}: stdenv.mkDerivation rec { things }
jensbin has quit [Quit: Leaving]
* tilpner doesn't see anything wrong with that one line
<nico202> default.nix works, clang.nix does not
orivej has joined #nixos
<{^_^}> [nixpkgs] @dywedir opened pull request #40716 → iosevka: 1.14.2 -> 1.14.3 → https://git.io/vpxUE
orivej has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #40663 → lsscsi: 0.28 -> 0.29 → https://git.io/vpN3h
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « lsscsi: 0.28 -> 0.29 (#40663) »: https://git.io/vpxTG
mmercier has quit [Ping timeout: 240 seconds]
wangoe has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #40714 → typora: 0.9.47 -> 0.9.48 → https://git.io/vpAFN
<{^_^}> [nixpkgs] @xeji pushed commit from @jensbin to master « typora: 0.9.47 -> 0.9.48 (#40714) »: https://git.io/vpxTV
periklis has joined #nixos
<nico202> this is strange because on another server it's working
goboss has joined #nixos
xAFFE has left #nixos ["Disconnected: Replaced by new connection"]
fendor has joined #nixos
xAFFE has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #40716 → iosevka: 1.14.2 -> 1.14.3 → https://git.io/vpxUE
<{^_^}> [nixpkgs] @xeji pushed 3 commits to master: https://git.io/vpxTj
<{^_^}> → e63bc58d by @dywedir: iosevka: 1.14.2 -> 1.14.3
<{^_^}> → e4465950 by @dywedir: iosevka-bin: 1.14.0 -> 1.14.3
<{^_^}> → 831e8ce8 by @xeji: Merge pull request #40716 from dywedir/iosevka
sigmundv__ has joined #nixos
<woffs> nico202, still too much environment influence in nix
alex`` has quit [Quit: WeeChat 2.1]
<{^_^}> [nixpkgs] @xeji merged pull request #40684 → duperemove: 0.10 -> 0.11 → https://git.io/vpNyG
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « duperemove: 0.10 -> 0.11 (#40684) »: https://git.io/vpxkw
MP2E has quit [Remote host closed the connection]
freusque has joined #nixos
schjetne has joined #nixos
<noefk> is it possible to use/extract content from a file in nix as a parameter/option of another module in nixos?
<noefk> using cjdns which generates the PRIVATE_IPV6 address and puts it in /etc/cjdns.public
<noefk> now I want to get that IP and use it to configure some other services with it but can't figure out how :(
periklis has quit [Ping timeout: 260 seconds]
__Sander__ has joined #nixos
patrl has joined #nixos
smallville7123 has joined #nixos
mmercier has joined #nixos
<{^_^}> [nixpkgs] @dotlambda merged pull request #40498 → pythonPackages.docker-pycreds: 0.2.2 -> 0.2.3 → https://git.io/vpHRM
<{^_^}> [nixpkgs] @dotlambda pushed 2 commits to master: https://git.io/vpxq4
<{^_^}> → d38852ce by @andreabedini: pythonPackages.docker_pycreds: 0.2.2 -> 0.2.3
<{^_^}> → c80f36df by @dotlambda: Merge pull request #40498 from andreabedini/fix/pythonPackages-docker-pycreds-update
tmaekawa has joined #nixos
<stumble> noefk: Have you tried builtins.readFile?
goboss has quit [Quit: Page closed]
<sphalerite> knewstuff: library naming 10/10
johann__ has quit [Quit: Leaving.]
jperras has joined #nixos
orivej has joined #nixos
Izorkin has joined #nixos
<noefk> stumble: nope, I will take a look at that, thanks
jperras has quit [Ping timeout: 256 seconds]
simukis has joined #nixos
ericsagnes has quit [Ping timeout: 240 seconds]
Ariakenom has quit [Ping timeout: 265 seconds]
kreetx has quit [Quit: leaving]
kreetx has joined #nixos
fendor has quit [Ping timeout: 260 seconds]
fendor has joined #nixos
<{^_^}> [nixpkgs] @hedning opened pull request #40717 → inkscape: disable parallelBuilding to avoid non-deterministic failure → https://git.io/vpx3d
orivej has quit [Ping timeout: 268 seconds]
NightTrain has joined #nixos
johann__ has joined #nixos
fendor has quit [Ping timeout: 256 seconds]
Plato[m] has joined #nixos
<Plato[m]> I'm writing a nix derivation for a simple bash script that uses curl. Am I correct that I have to replace "curl" by "${curl}/bin/curl"?
<Plato[m]> In some...postPatch phase or something?
Ariakenom has joined #nixos
griff_ has joined #nixos
juri2mol has joined #nixos
ilyaigpetrov has joined #nixos
spear2 has joined #nixos
karlguy has quit [Ping timeout: 265 seconds]
<Izorkin> dotlambda: updated commit, please recheck
<infinisil> Plato[m]: if it's your own script you want to get working with nix, you would either use @curl@ wherever you need curl in your script, then use `substitute in.sh out.sh --subst-var-by curl "${pkgs.curl}/bin/curl"`
larsvm has quit [Ping timeout: 255 seconds]
<infinisil> Plato[m]: Or you could prefix PATH with a path the binaries you need on it, you can do this with `makeWrapper in.sh out.sh --prefix PATH : "${makeBinPath [ pkgs.curl ]}"`
<infinisil> (disregard my failed english there)
<srhb> Plato[m]: I tend to do exactly what you're doing unless I have to refer to the same binary many times.
smallville7123 has quit [Quit: rosa]
<srhb> (When generating my own scripts, that is, not when patching others)
<rauno> Hey guys
<rauno> having problems with locales using nixops
<rauno> for example warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
<rauno> when trying to nixops ssh or nixops deploy
<Plato[m]> infinisil: Ah, I see. The @curl@ variant _and_ the makeWrapper variant are out of the question here (since other non-nix people have to call the script, too, and creating a separate script for a script seems silly).
larsvm has joined #nixos
<Plato[m]> Or am I misunderstanding makeWrapper?
<infinisil> Yeah the second one is usually the one I prefer too
<infinisil> Oh wait
<infinisil> No the second one should work fine
<Plato[m]> This creates a bash script that changes the path and calls the original script, right?
<infinisil> You can just write a normal script and makeWrapper will convert it to a "nix-compatible" one (that doesn't need all the binaries already installed)
ericsagnes has joined #nixos
<Plato[m]> Oh wow...that sounds like magic.
<infinisil> Yeah, but the original, unwrapped script can be used like normal for the people who have the correct binaries installed
<Plato[m]> I'll try makeWrapper, then.
<infinisil> And usually you have curl installed on NixOS too, so for most people it would still work
<infinisil> But I prefer to use makeWrapper to always have the correct dependencies
<Plato[m]> Just to be thorough, my original approach used "substituteInplace in.sh --replace curl ${pkgs.curl}/bin/curl" in postPatch. It didn't work, however.
<Plato[m]> Any idea why?
<Plato[m]> (curl wasn't replaced)
<Plato[m]> Is postPatch always executed, or only if "patches" isn't empty?
<clever> always
<infinisil> It should probably be in fixupPhase or postFixup
<infinisil> And to replace the string "curl" might change other places where you used curl, which might be unintended
<LnL> Plato[m]: yes, but overriding the entire patchPhase would disable the default patches implementation
<Plato[m]> Yep, that's what I thought, too. Not a good solution, really. I mean, it _is_ my script, I could do something like CURL_REPLACE_ME_PLEASE="curl" and then use that.
<LnL> (and the pre/post hooks)
<Plato[m]> But then, the wrapper sounds more reasonable.
<infinisil> Plato[m]: I'd just use makeWrapper (or the inplace equivalent "wrapProgram")
mounty has joined #nixos
<srhb> Plato[m]: If it's your own script, why not just write the full paths directly in it? That is ${curl}/bin/curl ?
<Plato[m]> srhb: The script has to be callable by non-nix users.
<srhb> Oh, I missed that, sorry.
<Plato[m]> np :)
<srhb> Is there any Nix 1.x compatible workaround for renaming a ./.foo path to something legal?
griff_ has quit [Quit: griff_]
<nico202> how do I cross-compile (build: linux, host: windows) on nixOS with meson? I can't find mingw64-g++ (it's windows only)
<steveeJ> I don't know what to think of this: /nix/store/zqh3l3lyw32q1ayb15bnvg9f24j5v2p0-bash-4.4-p12/bin/bash: error while loading shared libraries: libdl.so.2: cannot open shared object file: Permission denied
<infinisil> srhb: What's the problem with it?
<steveeJ> this happens when I run a specific Docker container
<srhb> infinisil: It's an illegal store path.
<srhb> infinisil: In nix 2.0 builtins.path can rewrite it to something non-dotted.
<infinisil> Ah it's a store path
Synthetica has quit [Quit: Connection closed for inactivity]
<infinisil> srhb: Does lib.replaceStrings work?
deepfire` has quit [Ping timeout: 240 seconds]
<srhb> infinisil: Not sure how I'd use that for this.
<infinisil> > lib.replaceStrings ["."] ["-"] "./.foo"
<{^_^}> "-/-foo"
<infinisil> srhb: Or is that not what you need?
<srhb> That's not what I need. I need to import it to the store but under a different (legal) name :)
<infinisil> Oh I see
<infinisil> srhb: Wait and how does nix 2.0 solve that exactly?
<srhb> builtins.path { path = illegalpath; name = legalname; }
<infinisil> Ah I see, nice. Yeah I don't know of a way to do this for Nix <2.0
<srhb> Me neither. Was a long shot. :D
juri2mol has quit [Quit: sleep]
deepfire` has joined #nixos
<infinisil> srhb: Oh, how about filterSource and importing the parent directory
<infinisil> That should work
<srhb> infinisil: Haha, hacky, but yes, that should work. :D
seppellll has quit [Ping timeout: 260 seconds]
coot has quit [Read error: Connection reset by peer]
<srhb> Thanks!
<infinisil> :D
orivej has joined #nixos
coot has joined #nixos
<rauno> so anyone has some experience with nixops and the locale issues i described above ?
NightTrain has quit [Quit: Lost terminal]
jedai has joined #nixos
<{^_^}> [nixpkgs] @YorikSar opened pull request #40718 → chromium: 66.0.3359.139 -> 66.0.3359.181 → https://git.io/vpxC9
patrl has quit [Ping timeout: 240 seconds]
camsbury has joined #nixos
norfumpit has quit [Quit: norfumpit]
<noefk> this seems overly complicated but works...
<ij> Does anyone have any input on this issue? Docker ignores firewall by default. https://github.com/NixOS/nixpkgs/issues/40507
<noefk> toString (builtins.match "CJDNS_IPV6=(.+)\n[A-Z].*" (builtins.readFile ./cjdns.public) )
norfumpit has joined #nixos
<infinisil> noefk: You haven't seen the ipv6 parser written in nix if you think this is complicated :P
<noefk> lol
<noefk> now I must look at it to make myself feel better
<ij> Speaking about complex matchers, I wrote a gitignore filterSource filter in nix.
<infinisil> noefk: Having a hard time finding it right now..
johanot has quit [Quit: Leaving.]
<infinisil> Oh found it, but not sure where I got it from, it's certainly not mine
<noefk> infinisil: nice :D
bbsl has joined #nixos
<infinisil> Beautiful yet horrifying at the same time
Synthetica has joined #nixos
orivej has quit [Ping timeout: 276 seconds]
<bbsl> how do I access postgreql while running it on localhost on nixos? :o I seemes like it does'nt work the way Im used to in other distros
<srhb> bbsl: It should.
<srhb> sudo -u postgres psql
Rusty1_ has joined #nixos
stumble has quit [Remote host closed the connection]
<bbsl> hmm ok that works at least, I will test some more ..
<LnL> most other distros also use a postgres user AFAIK
leat has joined #nixos
<bbsl> last time I used nixos it used 'root' if I dont remember it wrong
jperras has joined #nixos
tmaekawa has quit [Quit: tmaekawa]
<LnL> yeah it used to be root but we changed it so it's the same as most other defaults
<infinisil> And a separate user is more secure
desttinghim[m] has joined #nixos
<srhb> Also postgres disallowed using root, that might have had some impact :P
<LnL> no, the service itself never ran as root
<srhb> Didn't they disallow peer auth as root as well?
<LnL> just the default database setup
<srhb> Maybe I'm misremembering.
<LnL> not that I know of, but it's possible
spear2 has quit [Quit: Leaving]
stumble has joined #nixos
<srhb> Come to think of it that could be rather nasty, so probably not.
jperras has quit [Ping timeout: 260 seconds]
acarrico has joined #nixos
deepfire` has quit [Ping timeout: 256 seconds]
chpatrick has joined #nixos
waleee has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<{^_^}> [nixpkgs] @primeos pushed to master « androidStudioPackages.{dev,canary}: 3.2.0.13 -> 3.2.0.14 »: https://git.io/vpxlQ
johann__ has quit [Quit: Leaving.]
orivej has joined #nixos
stumble has quit [Read error: Connection reset by peer]
rauno has quit [Ping timeout: 268 seconds]
knupfer has joined #nixos
pie_ has quit [Ping timeout: 264 seconds]
patrl has joined #nixos
<{^_^}> [nixpkgs] @voobscout opened pull request #40719 → coreutils: fix tests failing on f2fs → https://git.io/vpx4Y
<{^_^}> [nixpkgs] @tkerber opened pull request #40720 → astroid: 0.10.2 -> 0.11.1 → https://git.io/vpx4C
stumble has joined #nixos
johann__ has joined #nixos
<camsbury> Hey all! Is it possible to name your nixos-rebuild images so that the grub experience is a bit better?
<etu> camsbury: -p or --profile-name is mentioned in the man page. It might do what you want :)
<camsbury> yeah doesn't seem to be quite what I want
<{^_^}> [nixpkgs] @lheckemann opened pull request #40721 → kdeApplications.konquest: init at 2.4 → https://git.io/vpx4H
<camsbury> I want to label the images themselves, not a stream of them
<etu> Then I don't think so :(
<camsbury> but it is a good start at least
<camsbury> thanks though!
<camsbury> just seems only natural to add labels to these
<camsbury> like commit messages in a git log
cryp2nomicon has joined #nixos
<etu> I think that depends on how you use it :)
stumble` has joined #nixos
fendor has joined #nixos
alex`` has joined #nixos
stumble has quit [Remote host closed the connection]
maingo has quit [Quit: Connection closed for inactivity]
freusque has quit [Quit: WeeChat 2.0]
orbekk has quit [Quit: WeeChat 2.0]
ajs124 has joined #nixos
Willi_Butz_ has quit [Quit: WeeChat 1.9.1]
orivej has quit [Ping timeout: 268 seconds]
reinzelmann has quit [Quit: Leaving]
alexteves has joined #nixos
WilliButz has joined #nixos
WilliButz has quit [Client Quit]
jmeredith_ has quit [Quit: Connection closed for inactivity]
orivej has joined #nixos
WilliButz has joined #nixos
xAFFE has left #nixos ["Error from remote client"]
smallville7123 has joined #nixos
freusque has joined #nixos
leat has quit [Quit: WeeChat 2.0.1]
WilliButz has quit [Quit: WeeChat 1.7.1]
WilliButz has joined #nixos
leat has joined #nixos
WilliButz has quit [Client Quit]
WilliButz has joined #nixos
<bbsl> im trying to build a rust binary but I keep getting "note: /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/ld: cannot find -lmysqlclient" even though Iv added libmysql to the env Im trying to build in, any ideas?
WilliButz has quit [Client Quit]
WilliButz has joined #nixos
alexteves_ has joined #nixos
jperras has joined #nixos
rauno has joined #nixos
<rauno> error: cannot open connection to remote store 'daemon': current Nix store schema is version 10, but I only support 7 << any idea about this error ?
smallville7123 has quit [Quit: rosa]
<joepie91> hmmm. is there a reason why nixops uses the XML output mode of nix-instantiate? considering that the comments in the code even explicitly state that the postprocessing of the XML output results in an equivalent result to if it were to parse the --json output
<eacameron> Is there a better way of "installing" a dependency without adding it to path than this? `nix-shell -p git --run 'which git'` ?
<aminechikhaoui> joepie91: I think some resources are already using the json output
freeman42x]NixOS has joined #nixos
<aminechikhaoui> I guess it's just a matter of refactoring for the rest
civodul has joined #nixos
camsbury has quit [Remote host closed the connection]
camsbury has joined #nixos
asuryawanshi has joined #nixos
deepfire` has joined #nixos
<joepie91> aminechikhaoui: ah, so it's more a case of "nobody has done it yet"? and does that mean that the --json output feature is newer than the --xml feature or something?
<LnL> bbsl: maybe the library is not in $mysql/lib but a subdir?
asuryawanshi has quit [Ping timeout: 240 seconds]
camsbury has quit [Ping timeout: 264 seconds]
acarrico has quit [Ping timeout: 260 seconds]
knupfer has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @uqam-fob opened pull request #40723 → Remove all references to absent nixos-prepare-root → https://git.io/vpxzV
coot has quit [Quit: coot]
<desttinghim[m]> I'm getting an error when trying to run some of the bluez-* utilities: `no module named 'dbus'`
<fendor> is there a reason why ghc 8.4. is not packages yet?
ryantrinkle has joined #nixos
<desttinghim[m]> I tried installing python36Packages.dbus-python but that didn't change anything
balsoft has joined #nixos
johann__ has quit [Quit: Leaving.]
<{^_^}> [nixpkgs] @thoughtpolice merged pull request #40671 → jhiccup: 2.0.8 -> 2.0.9 → https://git.io/vpNEp
<{^_^}> [nixpkgs] @thoughtpolice pushed commit from R. RyanTM to master « jhiccup: 2.0.8 -> 2.0.9 »: https://git.io/vpxgb
<{^_^}> [nixpkgs] @thoughtpolice merged pull request #40670 → gtkwave: 3.3.89 -> 3.3.90 → https://git.io/vpNBq
<{^_^}> [nixpkgs] @thoughtpolice pushed commit from R. RyanTM to master « gtkwave: 3.3.89 -> 3.3.90 »: https://git.io/vpx2U
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nixos
<joepie91> the variable doesn't actually exist in scope as far as I can tell
<Dezgeg> it's a global
<joepie91> doesn't look like one, and it looks like the actual intention is to log `out`, not `xml`
<joepie91> unless there's something I'm missing
<Dezgeg> ohh the 'xml' one, oops
earldouglas has left #nixos [#nixos]
<{^_^}> [nixpkgs] @yurrriq opened pull request #40724 → m-cli: init at 0.2.5 → https://git.io/vpxaB
smallville7123 has joined #nixos
earldouglas has joined #nixos
griff__ has joined #nixos
patrl has quit [Quit: WeeChat 2.0]
<joepie91> Dezgeg: do you work on nixops, or should I file an issue about it? :P
smallville7123 has quit [Client Quit]
<Dezgeg> open an issue :P
<joepie91> ack
asuryawanshi has joined #nixos
aarvar has joined #nixos
cryp2nomicon has quit [Quit: leaving]
asuryawanshi has quit [Remote host closed the connection]
ryantrinkle has quit [Ping timeout: 248 seconds]
asuryawanshi has joined #nixos
deepfire` has quit [Ping timeout: 240 seconds]
erasmas has joined #nixos
acarrico has joined #nixos
<{^_^}> [nixpkgs] @edolstra merged pull request #40723 → Remove all references to absent nixos-prepare-root → https://git.io/vpxzV
<{^_^}> [nixpkgs] @edolstra pushed 2 commits to master: https://git.io/vpxwW
<{^_^}> → 536a4117 by @uqam-fob: Remove all references to absent nixos-prepare-root
<{^_^}> → e86be691 by @edolstra: Merge pull request #40723 from uqam-fob/master
<{^_^}> [nixpkgs] @xeji pushed to staging « staging: fix eval error (undefined 'ncursesReal') »: https://git.io/vpxwB
jensens has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @yurrriq opened pull request #40725 → autojump: rework → https://git.io/vpxw2
raynold has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @dbohdan opened pull request #40726 → s2png: init at 0.7.2 → https://git.io/vpxrT
pie_ has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/31712afa7b0 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
logzet has quit [Remote host closed the connection]
camsbury has joined #nixos
camsbury has quit [Remote host closed the connection]
camsbury has joined #nixos
camsbury has quit [Read error: Connection reset by peer]
camsbury has joined #nixos
fragamus has joined #nixos
wangoe has quit [Quit: WeeChat 1.9.1]
deepfire` has joined #nixos
dbmikus has joined #nixos
alhariel has quit [Remote host closed the connection]
jedai has quit [Ping timeout: 264 seconds]
endformationage has joined #nixos
betaboon has quit [Quit: WeeChat 2.0]
nipav has joined #nixos
<desttinghim[m]> What is the best way to get started learning/writing derivations?
<LnL> !pills
<LnL> that and the stdenv section in the manual
hyper_ch2 has quit [Quit: Page closed]
<nikivi> I am trying to install node with nix, but not sure how
<clever> nikivi: nix-shell -p nodejs
<eacameron> clever: Is there a better way of "installing" a dependency without adding it to path than this? `nix-shell -p git --run 'which git'` ?
<eacameron> I.e. I just want to get the path to a `git` and start using that.
<nikivi> clever it entered me in nix-shell after, is this okay?
<clever> eacameron: why are you running which against it?
<clever> eacameron: nix-build prints the path to stdout
<nikivi> I am on darwin btw
<clever> nikivi: yes, and node will be in $PATH in that shell
<nikivi> what if I want to have node globally
<clever> nikivi: nix-env -iA nixpkgs.nodejs
<nikivi> reading through this now so apologise for silly questions https://nixos.org/nix/manual/#ch-basic-package-mgmt
<nikivi> its quite long
<eacameron> clever: Oh...doh!
<eacameron> Thanks.
<nikivi> so what happened when I ran nix-shell -p nodejs
<nikivi> I ran it in my ~/
<clever> nikivi: it added nodejs to $PATH and thats it
<nikivi> If I just control + c I won't leave any files anywhere?
<nikivi> ctrl+d*
<clever> nikivi: correct, and you use exit to exit, or eof
<nikivi> Whats preferred way to search for packages in nix to install?
<clever> eacameron: but also, nix wont know that your depending on git if you keep the path in a random var like that, so its best so use the result symlink nix-build makes
<nikivi> Say I wanted to install tsc for typescript, what would I do to know what to type
<pxc> nikivi: `nix search`
<clever> nikivi: nox, nix search, nix-repl, https://nixos.org/nixos/packages.html
<eacameron> clever: I just want to use it during the run of a single script
<clever> eacameron: if a garbage collection happens in the middle of that script running, it might delete git on you
<nikivi> So after I quit from nix-shell after nix-shell -p nodejs
<eacameron> clever: Right...I realize that
<nikivi> node will not be in my PATH any more right?
<nikivi> So this is needed for what exactly?
<pxc> nikivi: right
<clever> nikivi: correct
<eacameron> clever: Does nix-shell solve that? I.e. is it "thread-safe"?
<eacameron> if you're in a shell while a gc runs...
<clever> eacameron: yeah
<rauno> Hey again :) how can i upgrade nix store schema version ?
<eacameron> The problem I'm having is that nix-shell is slow
<clever> eacameron: nix run is faster
<eacameron> I end up running it a dozen times in a row
<pxc> nikivi: nix-shell is a nice way of trying out software without globally installing it. It's an alternative to permanent installation
<eacameron> nix run?
<clever> eacameron: nix run nixpkgs.git
<nikivi> nix-env -iA nixpkgs.nodejs finished in 2 seconds
<nikivi> what is this magic
<eacameron> clever: it failes can't find nixpkgs in selection path
<pxc> clever: _why_ is it faster? I see that with nix-shell you specify package names but with nix-run it's attributes. Is that all there is to it?
<clever> nikivi: nix-shell already downloaded the package and left it cached in /nix/store/
<clever> eacameron: what i prefer doing is something like: nix-build '<nixpkgs>' -A git -o git ; export PATH=./git/bin:$PATH
<clever> pxc: nix-shell gives you a shell with gcc that is suitable for building things, so it has to run setup hooks and download build-time deps
<clever> pxc: nix run just gives a shell suitable for using X and nothing more
<nikivi> I read that nix is a Turing complete language which is used for configuration and building packages
<nikivi> What neat features does this turing completeness give?
<pxc> clever: oh! awesome. It's nice to have the command with the narrower purpose in Nix 2.0. I'm gonna have to make more use of it
orbekk has joined #nixos
<clever> nikivi: i can use a for loop in nixops to generate 10 machines, that each have 10 systemd services, and then just do `nixops deploy` and it spins up 100 instances of a program on AWS
jmeredith_ has joined #nixos
<joepie91> nikivi: in practice that means you can do arbitrary computation with it; ie. you're not limited to a particular set of configuration options / expression formats, you can do loops, you can build abstractions, and so on
xeji has joined #nixos
<joepie91> or well, sort-of-loops :)
jmeredith_ has quit [Client Quit]
<nikivi> You still use domain specific package managers with nix right? Like npm/pip and so on?
jmeredith has joined #nixos
dbmikus has quit [Ping timeout: 255 seconds]
nipav has quit [Quit: leaving]
<joepie91> nikivi: basically, think of Nix (the language) as an expression-based programming language where every program evaluates to a single (possibly complex) value; that resulting value is what is used as eg. the configuration of your system or a package, but it means that you can generate that value based on arbitrary logic and abstractions like you would with a regular programming language
balsoft has quit [Quit: balsoft]
<joepie91> unlike most configuration formats which have a specific structure, a specific set of keys and sections, and everything has to be specified literally
<nikivi> That sounds amazing, thank you for that joepie91
Tucky has quit [Quit: WeeChat 2.1]
<nikivi> I am just curious about it because it seems that nix is `pure` whilst something like pip or npm isn't
<nikivi> And just curious how it all bodes together
<{^_^}> [nixpkgs] @xeji merged pull request #40705 → elfutils: add patch that fixes compilation under gcc8 → https://git.io/vpAED
<{^_^}> [nixpkgs] @xeji pushed commit from @Synthetica9 to gcc8 « elfutils: add patch that fixes compilation under gcc8 (#40705) »: https://git.io/vpxXw
<joepie91> nikivi: as for domain-specific package managers, It Depends; it's possible with varying degrees of hackiness (and I definitely use eg. npm for development), but for a 'real' deployment - whether as a service on a server or as a local application - you'd want to convert your project's metadata to a Nix expression and let Nix handle the dependency management
<joepie91> there are tools for that for most domain-specific package formats
<joepie91> eg. node2nix
<clever> joepie91: and there is also yarn2nix
<joepie91> nikivi: you're correct on the difference in purity as well, which is why 'traditional' methods of dependency installation are typically poorly supported and not used for prod deployments :)
<joepie91> on NixOS, the same even applies for static binaries, which won't run without patching
<joepie91> (as there's no global dependency folder)
<{^_^}> [nixpkgs] @taku0 opened pull request #40728 → Firefox bin 60.0.1 → https://git.io/vpx1T
<eacameron> clever: Yeah I was trying avoid temp files like that...but I can see the concern.
<joepie91> nikivi: anyway, on non-NixOS, the usage of Nix won't interfere with whatever's already on your system, just the guarantees provided by Nix won't apply to anything that's installed by means other than Nix
<joepie91> on NixOS, it's all-in on Nix; which gives you some benefits (like eg. having your system's service management and kernel management integrated into Nix as well), but also means you don't have an 'escape hatch' in most cases
<eacameron> I'll see if I can find a way. I'm actually in haskell. I wonder if I could do `withTempFile $ \f -> system "nix-build -A nixpkgs.git -o '" <> f <> "'"; ... do stuff with git`
nipav has joined #nixos
nuncanada has joined #nixos
<{^_^}> [nixpkgs] @nlewo opened pull request #40729 → nixos/tests/hydra: build a trivial derivation → https://git.io/vpx1n
<nikivi> It's quite awesome that nix as package manager is available on systems like macOS and not just exclusive to nixOS
<clever> eacameron: id use withTempDirectory
<eacameron> clever: Oh?
<clever> eacameron: nix-build wont overwrite a file that already exists, and deleting it creates a race condition
<eacameron> clever: Ah
<clever> but nix-build can overwrite symlinks
<eacameron> Very good to know.
<eacameron> clever: But why couldn't I delete the temp file *before* calling nix-build?
leat has quit [Ping timeout: 240 seconds]
<clever> then its a race condition, somebody could steal the file name
mizu_no__ has joined #nixos
<clever> and cause problems
pxc has quit [Ping timeout: 256 seconds]
<eacameron> clever: Oh it's a race condition for the temp file. I guess I didn't realize that's how it worked but it makes sense
<stumble`> nikivi: I agree.
nixer has joined #nixos
nipav has quit [Quit: leaving]
<nixer> I package up my local source through a fixed output derivation, I compute the hashes by hand and store them in my repo. I'm running into an issue where sometimes I forget to update the hashes when I need to redeploy, and the source FOD doesn't get rebuilt. So I added a test to do nix-build -A source --check, but that doesn't seem to throw an error. Is that normal? Any ideas on how to do this easily?
<{^_^}> [nixpkgs] @xeji merged pull request #40669 → imagemagick7: 7.0.7-29 -> 7.0.7-32 → https://git.io/vpN49
ajp has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « imagemagick7: 7.0.7-29 -> 7.0.7-32 (#40669) »: https://git.io/vpxMy
<clever> nixer: i dont think --check can rebuild that kind of thing, you generally need to either give each version a unique name, or corrupt the hash by just replacing a few chars with ffff to make it fail
ajp has joined #nixos
pxc has joined #nixos
vi21b has joined #nixos
<fragamus> I am using ec2 user data and I got it to work but it does not invoke the /etc/nixos/configuration.nix how can i make that happen at ec2 launch?
srl295 has joined #nixos
<nixer> clever: I don't mind rebuilding it myself, but is there a way to actually check if the FOD has the correct hash? I thought that's what --check does?
mizu_no__ has quit [Quit: Computer has gone to sleep.]
<clever> nixer: there is also nix-prefetch-url -A
<{^_^}> [nixpkgs] @xeji merged pull request #40690 → enlightenment: add xkeyboard-config dependency → https://git.io/vpAeh
<{^_^}> [nixpkgs] @xeji pushed commit from @romildo to master « enlightenment: add xkeyboard-config dependency (#40690) »: https://git.io/vpxDy
coot has joined #nixos
judson has quit [Ping timeout: 246 seconds]
<nixer> fragamus: I thought the userdata gets written to /etc/nixos/configuration.nix, and then nixos-rebuild --switch is then called?
<nixer> clever: I can't point nix-prefetch-url to my local fs though, right?
<clever> $ nix-prefetch-url '<nixpkgs>' -A hello.src
<clever> path is '/nix/store/3x7dwzq014bblazs7kq20p9hyzz0qh8g-hello-2.10.tar.gz'
<clever> 0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i
<{^_^}> [nix] @NinjaTrappeur opened pull request #2167 → Fix `builtins.path` error handling → https://git.io/vpxyF
<{^_^}> [nixpkgs] @xeji merged pull request #40696 → ace: 6.4.7 -> 6.4.8 → https://git.io/vpAOG
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « ace: 6.4.7 -> 6.4.8 (#40696) »: https://git.io/vpxyp
knupfer has joined #nixos
gmarmstrong has joined #nixos
<fragamus> nixer: nope. I have to type nixos-rebuild switch myself
<eacameron> clever: even better would be a way to wrap this program and bring the dependencies without clobbering anything in the end user's path
nico202 has quit [Ping timeout: 256 seconds]
<clever> eacameron: yeah
<eacameron> clever: I feel like this exists
<nixer> fragamus: Are you putting nix in the userdata?
<norfumpit> I'm a bit confused about systemd user services. I've got a container within which I want to run a service as a non-root user. I've defined a user service, but trying to start it using systemctl --user gives "Failed to connect to bus [...]". Because systemd --user is not running. How do I have it running?
thblt has quit [Ping timeout: 240 seconds]
<fragamus> nixer: I'm not sure what you mean. I am putting in the configuration.nix that I want to use. I will make a gist of mine so you can tell me what I am doing wrong.
judson has joined #nixos
judson is now known as Guest95697
<nixer> fragamus: You can put whatever you want in configuration.nix into the userdata, and have your nodes configure themselves.
<fragamus> maybe I have a race condition, but I don't see it configuring automatically. lemme try again
<Taneb> "nix-shell --pure" is running my .bashrc even though I would expect it not to
<fragamus> nixer: ok I launched it, and now I will verify that the /etc/nixos/configuration.nix is loaded properly
sigmundv__ has quit [Ping timeout: 265 seconds]
<Taneb> Have I got incorrect assumptions about nix-shell or am I doing something wrong?
<fragamus> nixer: yes the configuration.nix I have in the gist above was loaded
asuryawanshi has quit [Ping timeout: 264 seconds]
grp has joined #nixos
<fragamus> OMG it worked
<fragamus> nixer: it worked
<fragamus> I must have logged in too fast
<cransom> fragamus: `systemctl status amazon-init.service` and you'd see how long it takes/when it happens/etc.
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Taneb> Ah, "Note that ~/.bashrc and (depending on your Bash installation) /etc/bashrc are still sourced, so any variables set there will affect the interactive shell."
kane_ has joined #nixos
romildo has joined #nixos
Lisanna has joined #nixos
maingo has joined #nixos
<kane_> Hi, does anyone have like in their dotfiles the packages needed for phone stuff to work in gnome?
__Sander__ has quit [Quit: Konversation terminated!]
infty has joined #nixos
xy2_ has joined #nixos
sanscoeur has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #40720 → astroid: 0.10.2 -> 0.11.1 → https://git.io/vpx4C
<{^_^}> [nixpkgs] @xeji pushed commit from @tkerber to master « astroid: 0.10.2 -> 0.11.1 (#40720) »: https://git.io/vpxQi
<gmarmstrong> What sort of phone stuff?
nixer has quit [Quit: Page closed]
Ariakenom has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @dtzWill opened pull request #40730 → xbps: init at 0.52 → https://git.io/vpx7I
<roconnor> is there a simple variant of mkDerivation for really simple builds. e.g I want to run graphviz to make a single file.
<clever> > runCommand "name" { buildInputs = [ graphviz ]; } "graphviz ${./input} -o $out"
<cransom> roconnor: `runCommand`
<{^_^}> access to path '/input' is forbidden in restricted mode
<clever> > runCommand "name" { buildInputs = [ graphviz ]; } "graphviz input-file.txt -o $out"
<{^_^}> "«derivation /nix/store/fbjbjs4xgslf58gkfxx906f7lh9msf5x-name.drv»"
<clever> though it needs the 1st example to actually find the file
<clever> the input can also be another derivation
juri2mol has joined #nixos
juri2mol has quit [Client Quit]
juri2mol has joined #nixos
drakonis has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #40703 → franz, maxx: switch to autoPatchelfHook → https://git.io/vpAce
<{^_^}> [nixpkgs] @xeji pushed 3 commits to master: https://git.io/vpx75
<{^_^}> → 33a94b04 by @gnidorah: franz: switch to autoPatchelfHook
<{^_^}> → 636fce50 by @gnidorah: maxx: switch to autoPatchelfHook
<{^_^}> → cfc016c7 by @xeji: Merge pull request #40703 from gnidorah/autopatchelf
<roconnor> Works like a charm!
<kane_> gmarmstrong: mtp stuff and the likes working in gnome files
<drakonis> oh boy oh boy, there's automatic elf patching?
<drakonis> this is pretty cool
bbsl has quit [Remote host closed the connection]
<eacameron> What's the easiest way to run wrapProgram on a haskell package. I have it working with runCommand but I have to copy the result and this seems like it should be easy.
infty has quit [Quit: WeeChat 2.0]
<{^_^}> [nixpkgs] @xeji merged pull request #40619 → nixos/xsslock: add module → https://git.io/vpbs3
<{^_^}> [nixpkgs] @xeji pushed commit from @Ma27 to master « nixos/xss-lock: add module (#40619) »: https://git.io/vpx5m
fendor has quit [Remote host closed the connection]
fendor has joined #nixos
<elvishjerricco> eacameron: I think you're just supposed to do `ln -s foo $out/bin/foo; wrapProgram $out/bin/foo ...`
<eacameron> elvishjerricco: I see. So just `mkdir -p "$out/bin"` first and then do that.
<dmj`> I have a dynamic library (C++ compiled, being exposed from C) that I’d like to be configured when I enter a nix-shell for my haskell project, so I don’t have to keep cabal configuring —enable-extra-library. I could put it into extra-lib-dirs, but then I’d need a hardcoded path to the nix store in my package.yaml, advice?
asuryawanshi has joined #nixos
<elvishjerricco> dmj`: Something I've started to do is have my nix-shells provide a `CABAL_CONFIG` environment variable. cabal-install will pick this up and use it rather than ~/.cabal/config, which is great because that file comes with repository stanzas and whatnot by default, which we'd rather not have. You can also put extra libs / frameworks / include dirs / etc. in there.
h30 has quit [Quit: WeeChat 1.6]
mmercier has quit [Ping timeout: 264 seconds]
leat has joined #nixos
<dmj`> elvishjerricco: I have my C library defined in the extra-libraries section, when I call cabal configure and watch what it does verbosely, it doesn’t pass the flag —extra-lib-dirs to the compiled Setup.hs
<elvishjerricco> dmj`: Right because you have to tell cabal-install about --extra-lib-dirs. Listing the lib in the cabal file and having the package as a build input for the nix shell isn't enough for cabal-install to know where to find the lib.
Ariakenom has joined #nixos
waleee has quit [Quit: WeeChat 2.1]
<elvishjerricco> You'd have to pass --extra-lib-dirs to cabal-install because it doesn't know where the lib is otherwise. Or, if you use this CABAL_CONFIG thing, you can simply add it to a file and point the environment variable there; then cabal-install will pick it up without needing any extra args.
<dmj`> elvishjerricco: but if I add extra-lib-dirs to my cabal file, and then call cabal configure it should know right...
<elvishjerricco> dmj`: Oh are you hard coding the nix store path in the cabal file?
<elvishjerricco> That would work but it's not a good plan
<dmj`> elvishjerricco: I’m trying to not have to do that
jperras has quit [Quit: WeeChat 2.1]
jD91mZM2 has joined #nixos
<elvishjerricco> dmj`: Right, so there's nothing you could reasonably put into `extra-lib-dirs` in the cabal file, right?
<dmj`> elvishjerricco: unless I do something like /nix/store/*-mylib/, but I doubt wildcards are recognized :)
<elvishjerricco> Hah.
<elvishjerricco> Yea so there are two main options
<elvishjerricco> The better one (now that I think about it), is to use the pkgconfig-depends field in the cabal file
<dmj`> elvishjerricco: optionally, I could hardcode the path, but then have a cabal flag for nix which would read extra-lib-dirs, this would require pinning nixpkgs though
<elvishjerricco> If the lib has a pkg-config directory
<elvishjerricco> The more heavy handed one is to use the CABAL_CONFIG environment variable and config the dirs in there
<dmj`> elvishjerricco: what would I put in the pkg-config directory
<elvishjerricco> dmj`: I'm not really sure how pkg-config works. But most libraries install the pkg-config stuff on their own
<Baughn> So... nix-shell provides the paths to every included package through buildPackages.
asuryawanshi has quit [Ping timeout: 260 seconds]
<Baughn> But this is *not* an array? I'm confused.
<elvishjerricco> dmj`: But it's easy to test. In the nix-shell just try pkg-config --list-all and see if your lib is in there.
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
kane_ has quit [Ping timeout: 260 seconds]
fendor has quit [Ping timeout: 240 seconds]
arianvp2 has joined #nixos
<arianvp2> does `nix build` have a way to check reproducbility?
<arianvp2> like `nix-build --check` (which is undocumented for some reason?)
<elvishjerricco> arianvp2: Nope
asuryawanshi has joined #nixos
<elvishjerricco> It's missing a number of things, unfortunately :/
<arianvp2> Is there an easy way to check reproducibility otherwise?
<elvishjerricco> nix-build --check :P
<arianvp2> I was thinking of: make a version of the derivation with different name
<arianvp2> and then hash the outputs and check if they're the same
<arianvp2> so some higher order derivation called "checkReproducible"
<arianvp2> that should work right?
<elvishjerricco> arianvp2: Seems like more work than just using nix-build --check
gmarmstrong has quit [Quit: Quit]
acarrico has quit [Ping timeout: 255 seconds]
drakonis has quit [Read error: Connection reset by peer]
<Guest95697> Does anyone know why, when I start a new Chrome instance (i.e. after updating), media keys are no longer recognized?
arianvp2 has quit [Ping timeout: 260 seconds]
Guest95697 is now known as judson
<judson> (That was me)
<judson> (NickServ is *so* picky)
dbmikus has joined #nixos
coot has quit [Read error: Connection reset by peer]
coot has joined #nixos
krey has joined #nixos
<Izorkin> joachifm: please recheck PR 33835
mmercier has joined #nixos
juri2mol has quit [Quit: sleep]
mmercier has quit [Client Quit]
juri2mol has joined #nixos
knupfer has quit [Ping timeout: 265 seconds]
<Izorkin> globin: how to need to merge PR 33176 (mariadb galera)?
johnw has joined #nixos
ihar has quit [Quit: WeeChat 2.0]
romildo has left #nixos ["Leaving"]
ihar has joined #nixos
chpatrick has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @maralorn opened pull request #40732 → Rust 1.25.0 -> 1.26.0 → https://git.io/vpxpe
<nikivi> I am trying to install rust with nix so I searched for it in nix pkgs https://nixos.org/nixos/packages.html#rust
<nikivi> however how do I know which one is the correct one
<elvishjerricco> Was builtins.genericClosure new in 2.0, or was that in 1.11?
<nikivi> there is 'rust-src' but also 'rustc-1.24.0'
acarrico has joined #nixos
<nikivi> I tried to run: nix-env -iA nixos.rustc
<nikivi> But got: error: attribute 'nixos' in selection path 'nixos.rustc' not found
<mkaito> How can I do this without incurring infinite recursion? services.nginx.virtualHosts = mkForce (mapAttrs disableSSL config.services.nginx.virtualHosts)
<johnw> try: nix-env -f '<nixos>' -iA rustc
<johnw> mkaito: use lib.recursiveUpdate
boomshroom has joined #nixos
<goibhniu> hi nikivi are you on NixOS?
<nikivi> goibhniu macOS
<boomshroom> Good morning, or whatever time you're in!
<johnw> oh, I think recursiveUpdate doesn't allow applying a function
<mkaito> nikivi: try nixpkgs.rustc? or whatever your channel is called. try sudo nix-channel --list, first word is channel id
<nikivi> johnw I am worried of running this command
<nikivi> I am not running nixOS
<mkaito> oh then ommit sudo
<mkaito> if you're on macos, it's likely nixpkgs.rustc
<nikivi> mkaito sudo nix-channel --list -> returns empty
<mkaito> ommit sudo?
<nikivi> empty
<mkaito> errr ok
<mkaito> try nix-env -iA nixpkgs.rustc anyway
<goibhniu> ah, have you added a channel at all?
<nikivi> Is it correct to assume all packages for macOS are under nixpkgs?
<mkaito> it should yes
<mkaito> the first element is the channel name, which on nix on non-nixos is nixpkgs by default
<nikivi> goibhniu I just installed nix with the bash script on official site
<nikivi> trying to move all brew commands to nix now
<mkaito> then channel nixpkgs should exist
<goibhniu> cool, maybe you need to run `nix-channel --update`?
<nikivi> created 0 symlinks in user environment
<mkaito> try --list again
<nikivi> empty :|
<mkaito> huh
<mkaito> that's... interesting
<goibhniu> what's in ~/.nix-channels ?
<johnw> xos
<nikivi> ls: /Users/nikivi/.nix-channels: No such file or directory
* goibhniu has no idea is the install script is supposed to set up the channel
<mkaito> it should
<mkaito> it did for me on archlinux before I switched to nixos
<mkaito> it set it up for nixpkgs-unstable
<nikivi> one thing to note maybe is that I installed nix few months ago ver 1.xx but didn't use it
<nikivi> wanted to upgrade so ran the install script again and followed the instructions
rihards has joined #nixos
<nikivi> maybe that's the reason
<mkaito> I'm not sure if you need to nuke /nix first or something like that
<mkaito> I never did that
<nikivi> nix-env -iA nixpkgs returns error: attribute 'rustc' in selection path 'rustc' not found
<goibhniu> well, you can try adding the channel manually instead
<norfumpit> how do i declaratively enable a systemd user service?
kai_w has quit [Quit: kai_w]
<nikivi> nix-env -iA nixpkgs.rustc*
<{^_^}> [nixpkgs] @xeji merged pull request #40681 → e2fsprogs: 1.44.1 -> 1.44.2 → https://git.io/vpNDO
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to staging « e2fsprogs: 1.44.1 -> 1.44.2 (#40681) »: https://git.io/vpxhx
<nikivi> goibhniu how can I go about adding manual channel
<nikivi> I am trying to read up on what channel even is now
vi21b has quit [Remote host closed the connection]
xeji has quit [Quit: WeeChat 2.0]
johnw has quit [Quit: ZNC - http://znc.in]
<mkaito> nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
<nikivi> oh nvm, nix-env -iA nixpkgs.rustc worked
<mkaito> figured it would
<mkaito> not like I've told you 3 times to try that :D
johnw has joined #nixos
<mkaito> still weird that channels are empty tho
<nikivi> just I created an alias: alias ni='nix-env -iA nixpkgs.'
<nikivi> and then ran 'ni rustc'
<nikivi> and it failed for some rason
<nikivi> reason*
<clever> nikivi: i'm pretty sure that will run `nix-env -iA nixpkgs. rustc`
<clever> and the space breaks it
<nikivi> oh my bad
Arcaelyx has quit [Quit: Textual IRC Client: www.textualapp.com]
<clever> you probably want a function
<nikivi> I guess it should be zsh func then
<mkaito> johnw: recursiveUpdate seems to still throw the same error -_-
juri2mol has quit [Quit: sleep]
juri2mol has joined #nixos
<nikivi> I am so confused. which ni -> ni: aliased to nix-env -iA
<nikivi> but I just checked everywhere and I removed this alias from zsh
<nikivi> and opened new terminal, the alias is still there
<{^_^}> [nixpkgs] @maralorn closed pull request #40732 → Rust 1.25.0 -> 1.26.0 → https://git.io/vpxpe
<nikivi> Where is it being aliased from I have no idea
<srhb> nikivi: grep more. :-P
<srhb> nikivi: This looks confined to ~/.dotfiles
<nikivi> I commented the function out because it says it is trying to override ni alias
<nikivi> srhb I have all my configs in ~/.dotfiles
<nikivi> And I source only things inside ~/.dotfiles
<srhb> There's _some_ evidence to the contrary. :P
Mateon3 has joined #nixos
<nikivi> srhb you are right, it was here https://github.com/spwhitt/nix-zsh-completions
<srhb> Great. :)
Mateon1 has quit [Ping timeout: 268 seconds]
Mateon3 is now known as Mateon1
<nikivi> I was always wary of grepping ~. Seems like it searches too much, RIP my CPU
<mkaito> try ag/rg
logzet has joined #nixos
<srhb> nikivi: grep is really fast. I occasionally grep -R through /
<srhb> Because it's "Good Enough" :-P
<mkaito> grep is damn fast, yeah. ag/rg just ignore some things :P
<johnw> find ... -print0 | xargs -P4 grep is even faster
<johnw> (well, probably only for systems with SSDs)
jperras has joined #nixos
<johnw> mkaito: hmm
<johnw> mkaito: does it work if you do it using an overlay?
camsbury has quit [Ping timeout: 248 seconds]
<mkaito> that would be interesting to weave into this
<mkaito> the situation is that I've got a bunch of things defined for a server, and I'm trying to deploy it to a local container using nixops for testing, so I want to disable ACME stuff.
juri2mol has quit [Quit: disconnect]
<{^_^}> [nixpkgs] @dtzWill opened pull request #40733 → {g,w}llvm: 1.2.0 -> 1.2.1 → https://git.io/vppvv
camsbury has joined #nixos
knupfer has joined #nixos
<{^_^}> [nixpkgs] @efx opened pull request #40734 → lastpass-cli: 1.3.0 -> 1.3.1 → https://git.io/vppvb
freeman42x[nix] has joined #nixos
Lisanna has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @dtzWill merged pull request #40733 → {g,w}llvm: 1.2.0 -> 1.2.1 → https://git.io/vppvv
<{^_^}> [nixpkgs] @dtzWill pushed 3 commits to master: https://git.io/vppfd
<{^_^}> → 208abdba by @dtzWill: gllvm: 1.2.0 -> 1.2.1
<{^_^}> → 41ede7f4 by @dtzWill: wllvm: 1.2.0 -> 1.2.1
<{^_^}> → 6a8aa56a by @dtzWill: Merge pull request #40733 from dtzWill/update/gllvm-wllvm-1.2.1
kane_ has joined #nixos
<kane_> Anyone have an IPhone working in gnome(file transfer, pictures, etc)? I enabled the usbmuxd service and I have libimobiledevice. I'm wondering if gvfs has the afc mount backend.
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
xy2_ has quit [Ping timeout: 264 seconds]
<{^_^}> [nix] @grahamc opened pull request #2168 → manual: document why ~/.netrc doesn't work → https://git.io/vppJ6
<{^_^}> [nixpkgs] @dtzWill merged pull request #40730 → xbps: init at 0.52 → https://git.io/vpx7I
<{^_^}> [nixpkgs] @dtzWill pushed 3 commits to master: https://git.io/vppJX
<{^_^}> → 0c30d659 by @dtzWill: xbps: init at 0.52
<{^_^}> → a9d3d4dc by @dtzWill: xbps: limit to platforms.linux
<{^_^}> → 61fd8d63 by @dtzWill: Merge pull request #40730 from dtzWill/feature/xbps
<infinisil> kane_: I know how it works with ifuse
<kane_> infinisil: After some looking it seems that libimobiledevice needs this patch to work on newer ios https://github.com/libimobiledevice/libimobiledevice/commit/5a85432719fb3d18027d528f87d2a44b76fd3e12
asuryawanshi has quit [Ping timeout: 276 seconds]
alexteves_ has quit [Ping timeout: 256 seconds]
<infinisil> Oh yeah I only used it with iOS <=10
mrkgnao has quit [Ping timeout: 255 seconds]
<kane_> I'll try building it with the patch and maybe commit it :)
<{^_^}> [nixpkgs] @dotlambda opened pull request #40735 → nixos/tests/home-assistant: ignore "Timer got out of sync" error → https://git.io/vppUt
<nikivi> What is a good CI product to use with nix?
<nikivi> For personal GitHub projects mostly
chisui has joined #nixos
<srhb> Anything you can self-host and control the store properly with.
<dmj`> elvishjerricco: I ended up using pkgs.lib.overrideDerivation on myPackage.env inside of shell.nix, and adding DYNLIB=“${dynamicLibrary}”, and then cabal configure —extra-lib-dirs=$DYNLIB
<infinisil> nikivi: Um, hydra?
<dmj`> elvishjerricco: #yolo
<{^_^}> [nixpkgs] @xeji merged pull request #40613 → iasl: 20180313 -> 20180508 → https://git.io/vpbew
<{^_^}> [nixpkgs] @xeji pushed commit from @Synthetica9 to master « iasl: 20180313 -> 20180508 (#40613) »: https://git.io/vppUD
<elvishjerricco> dmj`: yuck. Why not just do the pkgconfig stuff?
<elvishjerricco> Sounds much easier.
<dmj`> elvishjerricco: pkg-config isn’t present in my shell
<dmj`> will the pkg-config route implicitly configure cabal-install with that path
<elvishjerricco> dmj`: I think it's only not there if you have no pkgcongfig-depends in your cabal file / cabal2nix. It will do that implicitly yes (and it will work correctly in the nix-build)
<dmj`> elvishjerricco: I have latest cabal2nix, and an extra-libraries section in my cabal file, when invoking cabal2nix it just adds my library to librarySystemDepends = [ myLib ];
<elvishjerricco> dmj`: Yea, you're supposed to use `pkgconfig-depends` in the cabal file instead of `extra-libraries`
goibhniu has quit [Ping timeout: 248 seconds]
xy2_ has joined #nixos
<dmj`> pkgconfig-depends is unrecognized by cabal
<dmj`> elvishjerricco: ^
<dmj`> elvishjerricco: hpack doesn’t like it?
<dmj`> WARNING: package.yaml: Ignoring unrecognized field $.library.pkgconfig-depends
<pxc> the install script currently at nixos.org/nix/install seems to go right ahead with a single-user install. How do I use the new systemd-based multi-user installer on non-NixOS?
<elvishjerricco> dmj`: Gah, yes that's true. This is exactly why cabal preprocessors are a dumb idea
<pxc> should I just grab the script from here? https://github.com/NixOS/nix/blob/2.0.2/scripts/install-multi-user.sh
spacefrogg has quit [Remote host closed the connection]
aw has quit [Remote host closed the connection]
<dmj`> elvishjerricco: nix-env -iA haskellPackages.hpack_0_28_2 -f ‘<nixpkgs>'
aw has joined #nixos
<dmj`> elvishjerricco: still broke \o/
<elvishjerricco> How so?
spacefrogg has joined #nixos
<{^_^}> [nixpkgs] @kwohlfahrt opened pull request #40736 → Fix houdini (missing libGL) → https://git.io/vppkT
<dmj`> elvishjerricco: newer hpack still doesn’t like pkgconfig-depends
<dmj`> elvishjerricco: but moving on, I added it the cabal file, and then regen’d with cabal2nix, now getting "setup: The pkg-config package ‘mylib' is required but it could not be found."
<elvishjerricco> dmj`: Cool, so I'm guessing your lib just needs to gen some pkgconfig stuff. I'm pretty sure there's an easy automated way to do that
<dmj`> elvishjerricco: and pkgconfig —list-all is empty
Sonarpulse has joined #nixos
<dmj`> elvishjerricco: pkgconfig stuff?
<elvishjerricco> dmj`: For example: cat $(nix-build "<nixpkgs>" -A zlib.dev)/lib/pkgconfig/zlib.pc
<elvishjerricco> Basically, the .pc file specifies how to use this library so that other tools can rely on it. Then you just put it in $dev/lib/pkgconfig/name.pc, and Nix automatically makes it available to packages that depend on it
<dmj`> elvishjerricco: so wait, can I just put pkgconfig-depends = [ zlib.dev ]; and nix will do the right thing
<dmj`> as long as pkgconfig-depends: zlib exists in my cabal file
jD91mZM2 has quit [Quit: WeeChat 2.0]
<elvishjerricco> dmj`: If you have `pkgconfig-depends: zlib` in your cabal file, cabal2nix will make sure the nix expression has the dependency listed automatically
<elvishjerricco> So right now, it's doing that correctly
<elvishjerricco> But you don't have a .pc file in your mylib output
<pxc> jD91mZM2: huh. Do I need to create nixbld and its users first, and then run the installer? on macOS, the installer creates the users, and I thought that's what gchristensen's new installer for systemd-using Linux distros did, too
<dmj`> elvishjerricco: I might have to create one manually I assume …
<elvishjerricco> dmj`: Yea I dunno if there's a particularly automated way to do it or not
<dmj`> elvishjerricco: do I need to make it a multiple output derivation (put the .pc files into dev)
<elvishjerricco> dmj`: Probably not
<elvishjerricco> That is convention, but I guess it depends on if the cabal2nix expression uses mylib or mylib.dev
<dmj`> elvishjerricco: cabal2nix seems to be wanting to put just mylib, not mylib.dev
<elvishjerricco> dmj`: Alright that's fine
<dmj`> elvishjerricco: so ok, I’ll try to make a pkg-config, but I have another question now
<dmj`> elvishjerricco: in haskell-mode, when I try to start cabal-repl, I get <command line>: can't load .so/.DLL for: liblmdb.dylib (dlopen(liblmdb.dylib, 5): image
<nikivi> Is it hard to make a nix deriviation?
<nikivi> I want to make one for this project https://github.com/getantibody/antibody
<nikivi> so I can install it with nix
<boomshroom> nikivi: Have you writen a PKGBUILD for Arch Linux? Because it's pretty similar in difficulty.
<nikivi> boomshroom never even used arch 😞
<nikivi> Only used macOS
<dmj`> elvishjerricco: oh, that problem with this one is that it’s an .so, and osx expects a dylib I guess
<boomshroom> nikivi: It's generally not too hard if you know how to build it normally. I'd recommend checking out the nixpkgs manual, in particular https://nixos.org/nixpkgs/manual/#sec-using-stdenv.
<pxc> nikivi: give it a try and see what happens. boomshroom has pointed you to the right starting point in the docs. Also review the docs on Go packaging: https://nixos.org/nixpkgs/manual/#sec-language-go
<eacameron> where is nix-prefetch-url. Is it not in a package?
<srhb> eacameron: It's nix (2)
<eacameron> srhb: ah. nix-shell -p nix is a thing...
<srhb> It is indeed. :)
griff_ has joined #nixos
<johnw> shlevy: nix-buffer-after-load-hook seems to be working well for now
<johnw> shlevy: I just group all my haskell-mode function into one function, and then add a function to haskell-mode-hook that calls nix-buffer, and then adds that setup function to nix-buffer-after-load-hook, so that it all happens in the right sequence
griff__ has quit [Ping timeout: 240 seconds]
<pxc> eacameron: this is probably a clumsy way to do things, but you can figure out which package a command comes from using realpath, which'll find its location in the Nix store, i.e. `realpath $(which nix-prefetch-url)`
rauno has quit [Ping timeout: 264 seconds]
rauno has joined #nixos
<srhb> And nix-locate will do it even if it's not installed: nix-locate bin/nix-prefetch-url
<srhb> To make things really easy, nix-locate lives in nix-index so you can't find it without nix-locate.
ben has quit [Quit: leaving]
<pxc> srhb: that's really handy! Thanks for the tip
<pxc> hahaha I found it because on NixOS we still have the command-not-found handler at least
ben has joined #nixos
ThatDocsLady has quit [Ping timeout: 256 seconds]
troydm has quit [Ping timeout: 240 seconds]
ThatDocsLady has joined #nixos
orivej has quit [Ping timeout: 265 seconds]
troydm has joined #nixos
nico202 has joined #nixos
<{^_^}> [nixpkgs] @Infinisil opened pull request #40737 → blockhash: init at 0.3 → https://git.io/vppmT
<{^_^}> [nixpkgs] @jwiegley opened pull request #40738 → rabbitmq_server: Don't use getconf optimization on non-Linux systems → https://git.io/vppmr
MichaelRaskin has joined #nixos
arianvp2 has joined #nixos
<arianvp2> err
<arianvp2> I ran nix-store --gc
<arianvp2> and it removed nix
<arianvp2> :(
<clever> arianvp2: what does ~/.nix-profile point to?
<kane_> nikivi: You might want this for antibody as well https://github.com/kamilchm/go2nix
<arianvp2> readlink ~/.nix-profile .nix-profile-1-link
<clever> arianvp2: theres your problem
<clever> arianvp2: that was supposed to point into a profile dir that is a gc root
<arianvp2> ❯ readlink ~/.nix-profile-1-link /nix/store/zflrin4jx05kpyiqp0bzqdxmay1rbj4k-user-environment
<clever> lrwxrwxrwx 1 clever users 45 Oct 11 2015 .nix-profile -> /nix/var/nix/profiles/per-user/clever/profile
<arianvp2> oh wait I remember this being a reported bug in nix
<arianvp2> domenkozar: had the exact same issue some time ago I think
<clever> arianvp2: profile-1-link must exist in /nix/var/nix/profiles
<clever> arianvp2: if it doesnt, nix wont know its in-use
<clever> arianvp2: also, your nix likely didnt delete itself, just the profile, try ls -l /nix/store/*/bin/nix-env
<arianvp2> yeh still there
<arianvp2> but I never added that ~/.nix-profile-1-link file myself. weirdly enough
<clever> arianvp2: fix .nix-profile to point to a path like what mine does, then manually run nix-env and nix-env -i its own path
<clever> arianvp2: you forgot to source nix.sh, which sets that up during the first run
<clever> or your manual install missed a step
<arianvp2> seems to be the same problem right
<clever> yeah
<arianvp2> source $HOME/.nix-profile/etc/profile.d/nix.sh is in my dotfiles
tmaekawa has joined #nixos
<clever> arianvp2: how did you install nix?
sigmundv__ has joined #nixos
<arianvp2> with the command on the website
tmaekawa has quit [Client Quit]
<clever> arianvp2: not sure how it broke then
<arianvp2> I'll add it to the bug report. is there anything useful I can add to the ticket except "happend to me too?"
<arianvp2> maybe there's some stuff I can debug
rihards has quit [Quit: rihards]
<clever> about all i can think of is a record of when you installed nix and how you may have updated
sanscoeur has quit [Remote host closed the connection]
nico202 has quit [Ping timeout: 265 seconds]
<arianvp2> clever: should I just simlink ~/.nix-profile to /nix/var/nix/profiles/per-user/arian/profile to fix it?
<clever> arianvp2: yeah
<arianvp2> thanks :)
troydm has quit [Ping timeout: 264 seconds]
sanscoeur has joined #nixos
sigmundv__ has quit [Ping timeout: 240 seconds]
<nikivi> I am trying to install this on nix https://github.com/rupa/z
<nikivi> but I don't think it exists
<nikivi> Searching for 'z' returns 1000's of results
<nikivi> jump around returns nothing
<srhb> nikivi: I don't think it exists either.
<kane_> nikivi: This works for antibody https://pastebin.com/etZ7t3Se
<pxc> ok, I'm going back to bed, but I'll share this for the benefit of future archaeologists of the IRC logs:
<nikivi> kane_ That's amazing. I am curious how do you test derivations you made?
<nikivi> kane_ Are you going to send PR to nixpkgs?
<pxc> the answer to my earlier question about how to use the new multi-user installer with Nix 2.0.2 is to pass `--daemon` as an argument to the install script. It gets passed on to the install script in the Nix release tarball, which knows what to do with it
grp has quit [Quit: box shutting down...]
<kane_> nikivi: It's very easy to made an expression for gopkgs (this was completly automatic). I'll pr it after I get the meta atributes and actually use it. :)
broccoli has joined #nixos
<kane_> nikivi: Save those files and run in the dir nix-build -E 'with import <nixpkgs> { }; callPackage ./default.nix {}'
<{^_^}> [nixpkgs] @phile314 opened pull request #40739 → Slimserver: 7.9.0 -> 7.9.1 → https://git.io/vpps2
<{^_^}> [nixpkgs] @shlevy pushed commit from @jwiegley to master « haskellPackages.developPackage: Add a defaulted provideDrv argument »: https://git.io/vppsr
<kane_> nikivi: This is when package overlays become fun
pxc has quit [Quit: WeeChat 2.1]
rauno has quit [Ping timeout: 248 seconds]
<nikivi> everything regarding development of nix and nixOS is completely open source right?
<{^_^}> [nixpkgs] @shlevy merged pull request #40582 → haskellPackages.developPackage: Add a defaulted provideShellEnv argument → https://git.io/vpdCu
<kane_> nikivi: Yep
freusque has quit [Quit: WeeChat 2.0]
<kane_> on github
<nikivi> I am curious how the results of https://nixos.org/nixos/packages.html# are so fast
<nikivi> its impressive
Lisanna has joined #nixos
<nikivi> Is there a reason why Hydra uses mostly Perl? https://github.com/NixOS/hydra
<nikivi> Just curious because I heard bad things about the language and its maintainability
<nikivi> but maybe its a good language for this domain
<kane_> Excellent language for this purpose.
<cransom> nix was originally a lot of perl, so hydra followed. there was an effort to rewrite hydra in haskell but i haven't heard anything about progress lately.
civodul has joined #nixos
rauno has joined #nixos
<nikivi> for some reason running: nix-env -iA nixpkgs.tldr
<nikivi> does nothing for me and quits
troydm has joined #nixos
<nikivi> but the package exists https://nixos.org/nixos/packages.html#tldr
<nikivi> which tldr returns nothing so it was not installed
<{^_^}> [nixpkgs] @xeji opened pull request #40740 → nixos/cjdns: fix service for i686 → https://git.io/vppZW
lopsided98_ has quit [Quit: Disconnected]
lopsided98 has joined #nixos
chisui has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<kane_> nikivi: try nixos.tldr
<nikivi> kane_ Will this run on darwin (macOS)?
arianvp2 has quit [Quit: Page closed]
<nikivi> error: attribute 'nixos' in selection path 'nixos.tldr' not found
<nikivi> nope
<kane_> no darwin the expression says " platforms = platforms.linux;"
<nikivi> So I have to make macOS specific expression and PR it?
orivej has joined #nixos
jperras has quit [Ping timeout: 256 seconds]
<thoughtpolice> No, just try changing the 'platforms' line in the tldr expression to say 'platforms = platforms.unix;' and try to use it. Then it will be available to build with nix-env
<thoughtpolice> Note that it still might not work on macOS for <a number of reasons you might have to fix>. Most things don't need totally separate expressions, however.
<kane_> ^
jperras has joined #nixos
<nikivi> thoughtpolice how can I run this changed expression?
<nikivi> Assuming I installed default.nix and changed it accordingly
<LnL> nikivi: darwin uses nixpkgs for the channel name so it would be nixpkgs.tldr instead
<nikivi> LnL I tried it with nixkgs.tldr
<nikivi> It returns nothing and package is not installed
<thoughtpolice> If you have a copy of nixpkgs somewhere, say in /home/me/nixpkgs, you can do: nix-env -f /home/me/nixpkgs -iA tldr
<thoughtpolice> And it will try to build and install it into your user profile
<LnL> yeah for a local checkout you need -f
<nikivi> I forked and cloned fork to ~/dev/forks
<LnL> but no error and not installed seems pretty strange
<nikivi> Is there descriptive flag maybe?
<LnL> I'd expect the channel version to fail with the allowUnsupported error
<nikivi> LnL I don't have any channels setup for some reason
<nikivi> I think that maybe the problem, I did however install many other packages like rust, yarn already with 0 errors
<mjacob> how can i pass something with spaces as a cmake define? "-DCMAKE_CXX_FLAGS=-std=c++14 -msse3 -g -mfpmath=sse -nostdlibinc -D_LIBCPP_HAS_MUSL_LIBC -I$IncludeOS_posix -I$libcxxabi_inc -I$libcxx_inc -I$musl_inc" passes 10 things to cmake instead of 1
<LnL> by default the nixpkgs channel will be owned by root
<LnL> not your local user
<mjacob> (in cmakeFlags)
<mjacob> adding two escaped \" doesn't seem to work either
<nikivi> Same thing happens with: `nix-env -iA nixpkgs.imgur-screenshot`
<nikivi> Just runs and returns nothing and no package instaled
<LnL> mjacob: you can't use cmakeFlags but you can with a preConfigure hook
<mjacob> LnL: that sound unnecessarily complicated, but i'll give it a try. thanks!
<LnL> mjacob: preConfigure = '' cmakeFlagsArray+=("-DFOO=foo bar") 'm
hotfuzz_ has joined #nixos
<LnL> mjacob: environment variables like makeFlags or cmakeFlags get split on spaces so those won't work
hotfuzz has quit [Ping timeout: 240 seconds]
<LnL> but I think the bash array variants work fine
ryantrinkle has joined #nixos
<mjacob> LnL: yes, that works as intended. thank you again.
<LnL> nikivi: so you don't see it in nix-env -q and the install command has exit code 0?
<nikivi> LnL nope, it's not in nix-env -q
<nikivi> Not sure about exit code, it just returns nothing
<LnL> echo $?
<LnL> I would really expect some error message tho
<{^_^}> [nixpkgs] @matthewbauer closed pull request #39743 → llvm: factor out compiler-rt, fix libstdcxxStdenv sanitizer headers → https://git.io/vpRAl
<{^_^}> [nixpkgs] @matthewbauer reopened pull request #39743 → llvm: factor out compiler-rt, fix libstdcxxStdenv sanitizer headers → https://git.io/vpRAl
emmanuelrosa has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer merged pull request #40717 → inkscape: disable parallelBuilding to avoid non-deterministic failure → https://git.io/vpx3d
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vppCo
<{^_^}> → 05a6e94f by @hedning: inkscape: disable parallelBuilding
<{^_^}> → 18e1aea5 by @matthewbauer: Merge pull request #40717 from hedning/fix-inkscape-build
reinzelmann has joined #nixos
<nikivi> nothing
reinzelmann has quit [Client Quit]
<{^_^}> [nixpkgs] @xeji merged pull request #40631 → linuxPackages.wireguard: 0.0.20180420 -> 0.0.20180514 → https://git.io/vpbiM
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « linuxPackages.wireguard: 0.0.20180420 -> 0.0.20180514 (#40631) »: https://git.io/vppCd
tnks has quit [Remote host closed the connection]
<LnL> hmm, same here
emmanuelrosa1 has joined #nixos
<LnL> nix-build '<nixpkgs>' -A tldr shows the supported error
emmanuelrosa has quit [Quit: Page closed]
<LnL> but nix-env -iA just acts like nothing happened :/
<LnL> pretty sure it used to
jbboehr has joined #nixos
mmercier has joined #nixos
<{^_^}> [nixpkgs] @xeji opened pull request #40741 → prometheus_1: 1.8.1 -> 1.8.2, fix build → https://git.io/vppWD
robstr has quit [Quit: WeeChat 1.9.1]
<kane_> nikivi: Hey can you test antibody on your machine. I need to see if it build's in darwin. Here's my fork: git clone https://github.com/worldofpeace/nixpkgs -b antibody --depth 1
<{^_^}> [nixpkgs] @dotlambda merged pull request #40735 → nixos/tests/home-assistant: ignore "Timer got out of sync" error → https://git.io/vppUt
<{^_^}> [nixpkgs] @dotlambda pushed to master « nixos/tests/home-assistant: ignore "Timer got out of sync" error (#40735) »: https://git.io/vppWj
<nikivi> I ran the command
<nikivi> and my shell broke :|
<nikivi> pressing tab prints eval):1: _cd: function definition file not found
<kane_> ?
<nikivi> opened new shell, tab works again
<nikivi> but I just ran your command and it clones it, what now?
<kane_> cd into and and run: nix-build default.nix -A antibody
<nikivi> It built
<nikivi> no errors
<nikivi> not sure where it built though, I see no binary
<kane_> cd into result/ and it's there
<nikivi> yep its there
<nikivi> so now I just wait till PR gets merged and I can have it globaly right?
<kane_> just run it with ./antibody.
<kane_> What channel are you on?
<nikivi> but what if I want it to have it present in nix-env -q
<nikivi> kane_ not sure, new to nix
<kane_> You can use a package overlay until it's merged and makes it into 18.03
<{^_^}> [nixpkgs] @worldofpeace opened pull request #40742 → antibody: init at 3.4.6 → https://git.io/vppl5
<nikivi> * reading about package overlays
<nikivi> I have a question though as I am not sure what things do you guys actually install with nix-env -iA
<nikivi> And what things you keep per project as I believe nix can create full working environments
mmercier has quit [Remote host closed the connection]
<nikivi> which from I get is one of the main selling points of nix
emmanuelrosa1 has left #nixos [#nixos]
<kane_> I only use nix-env -iA if I need something for like a day. Anything else goes into my dotfiles.
<nikivi> I don't get it
<nikivi> what do you mean for a day
<nikivi> For example I have zsh installed with nix
<nikivi> without it installed in nix-env -q I can't use zsh right?
<kane_> I've never used nix in macos before but you can declare your environment declaratively.
shabius has quit [Quit: Leaving]
<nikivi> kane_ so whats the difference of installing a package with nix-env -q and have it be declarative in your dots
<nikivi> I believe LnL uses mac, maybe he knows if you can do this too on mac
<kane_> This is my zsh stuff https://pastebin.com/KYH73Fac
shabius has joined #nixos
* nikivi wonder if I can do the same on macOS
<cransom> you can have a nixos-ish environment on a mac. https://github.com/LnL7/nix-darwin
<nikivi> Doesn't it take longer to maintain and edit the declarative configs?
<nikivi> for example instead of doing `alias ..` you would write it in a nix way I guess
<nikivi> which is much longer
<cransom> not really. its easier to manage than nix-env
simukis has quit [Ping timeout: 248 seconds]
<LnL> nix-darwin is the nixos way of doing stuff declaratively
<cransom> alias? i don't follow.
<shapr> srk: yay, thanks!
logzet has quit [Remote host closed the connection]
h30 has joined #nixos
<kane_> The imperative mindset will die with time :)
<johnw> kane_: yet that's an imperative statement, sadly
<kane_> lol
<johnw> we could phrase it as: the imperative mindset has no value for time indices beyond an existential value
shabius has quit [Quit: Leaving]
<nikivi> Is declarative paradigm straight up 'better' than imperative?
<johnw> I don't think it's about declarative vs. imperative
<johnw> it's about hidden vs. apparent semantics
<kane_> I as well
<johnw> well-typed imperative programs, where you can see the range of possible effects, are also easy to reason about
<johnw> but some foo :: Int -> Int that can do anything in world, that's not so cool
<johnw> IO is only one step up. In that case, we've just made a type that means "it can do anything in world"
<johnw> MonadEffect, for some specific effect, is much better
<johnw> in that realm, I have no issues at all with imperative programming (i.e., programming by making statements of effect in the context of other pure computations)
<kane_> Some people just really want nix install :)
<krey> is it possible to tell ahead of time whether a package will be built or grabbed from the binary cache?
h30 has quit [Quit: WeeChat 2.0]
<johnw> kane_: oh wow, sorry, I thought I was in #haskell
<kane_> lots of nix people use haskell too :)
<johnw> in Nix we have a few implicit effects; I'm enumerating them all in hnix using a MonadEffects monad, so that I can know the exact extent of them all
<{^_^}> [nixpkgs] @xeji opened pull request #40743 → nixos/tests/nexus: fix for i686 → https://git.io/vpp4E
<kane_> What do these effects affect
<johnw> that's the list so far, granted there are still about 10 builtins to write
<johnw> i haven't tried paring it down to a minimal surface yet
h30 has joined #nixos
ThatPako has quit [Quit: ZNC 1.7.0 - https://znc.in]
NightTrain has joined #nixos
Have-Quick has joined #nixos
shabius has joined #nixos
broccoli has quit [Ping timeout: 240 seconds]
goibhniu has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #40641 → Enable WINE on macOS → https://git.io/vpbMP
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/vppBZ
<{^_^}> → 0828bc5b by @angerman: wine: Enable on macOS
<{^_^}> → 974fa94f by @Ericson2314: Merge pull request #40641 from angerman/feature/darwin-wine
coot has quit [Quit: coot]
<{^_^}> [nixpkgs] @Ericson2314 closed pull request #40443 → haskell-generic-builder: Add extra framework dirs → https://git.io/vp9sn
<{^_^}> [nixpkgs] @Ericson2314 pushed 44 commits to staging: https://git.io/vppRU
<{^_^}> → e76711fe by @ryantm: mattermost: 4.8.0 -> 4.10.0
<{^_^}> → d38852ce by @andreabedini: pythonPackages.docker_pycreds: 0.2.2 -> 0.2.3
<{^_^}> → ffd3f884 by R. RyanTM: nsd: 4.1.20 -> 4.1.21
kane_ has left #nixos [#nixos]
hiratara has quit [Ping timeout: 276 seconds]
shabius has quit [Quit: Leaving]
hiratara has joined #nixos
broccoli has joined #nixos
krey has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @matthewbauer pushed to master « gcc5: remove patch »: https://git.io/vppRh
knupfer has quit [Ping timeout: 260 seconds]
kreetx has quit [Ping timeout: 256 seconds]
freeman42x[nix] has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #40442 → haskell-generic-builder: Add extra framework dirs → https://git.io/vp93H
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to staging: https://git.io/vpp0C
<{^_^}> → c6f742b7 by @Ericson2314: haskell-generic-builder: Add extra framework dirs
<{^_^}> → 2241dedb by @Ericson2314: Merge pull request #40442 from obsidiansystems/cabal-frameworks
<nikivi> I just tried to install Git with nix-env
<nikivi> but it installed git-minimal-2.16.2
<nikivi> it seems way to small to be actual git
<nikivi> is this okay?
<infinisil> nikivi: If you don't need more, sure, it almost had everything I ever needed
<infinisil> If you need the "full" one, you want `gitFull`
<nikivi> brew's Git package is 104.5MB
<infinisil> minimal git misses stuff like GUI interfaces, git svn support, and more
<nikivi> nix's is 0.07 MiB
<nikivi> that's crazy
<infinisil> Nice
<nikivi> I tried to run `nix-env --uninstall git` and it did nothing
<nikivi> returned nothing and git is still in nix-env -q
<{^_^}> [nixpkgs] @kirelagin opened pull request #40744 → WireGuard: Make tools available on other platforms → https://git.io/vpp0h
<infinisil> nikivi: Use nix-env -q to get the correct name for uninstalling
<infinisil> nikivi: A really nice trick is this: `nix-env -q | fzf | xargs -I{} nix-env -e {}` (fzf from the fzf package)
<infinisil> Shows a nice interactive CLI interface for selecting a package to uninstall, with searching functionality
<LnL> fzf — grep on steroids
<nikivi> fzf is amazing indeed
<nikivi> infinisil thanks for that
emmanuelrosa has joined #nixos
<nikivi> what happens if I press enter on the results, I am scared
<nikivi> oh it uninstalls it, didn't see the msg
justanotheruser has quit [Ping timeout: 248 seconds]
<nikivi> so nix-env -e is same as nix-env --uninstall?
<infinisil> Haha
<LnL> I think so, -u is --upgrade
<infinisil> Oh right, you wanted upgrade
rain1 has quit [Remote host closed the connection]
dbmikus has quit [Quit: WeeChat 2.1]
Synthetica has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @xeji opened pull request #40745 → nixos/tests/hardened: fix test → https://git.io/vppEy
hiratara has quit [Quit: ZNC - http://znc.in]
camsbury has quit [Remote host closed the connection]
hiratara has joined #nixos
camsbury has joined #nixos
camsbury has quit [Ping timeout: 248 seconds]
fragamus has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<{^_^}> [nixpkgs] @xeji merged pull request #40736 → Fix houdini (missing libGL) → https://git.io/vppkT
<{^_^}> [nixpkgs] @xeji pushed commit from @kwohlfahrt to staging « houdini: Fix libGL (#40736) »: https://git.io/vppu5
emmanuelrosa has left #nixos [#nixos]
rain1 has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #40739 → Slimserver: 7.9.0 -> 7.9.1 → https://git.io/vpps2
<{^_^}> [nixpkgs] @xeji pushed 3 commits to master: https://git.io/vppzS
<{^_^}> → 7a16fd61 by @phile314: slimserver: 7.9.0 -> 7.9.1
<{^_^}> → 986bc559 by @phile314: slimserver: Relax Audio::Scan dependency bounds
<{^_^}> → 9bbb5fa9 by @xeji: Merge pull request #40739 from phile314/slimserver
<eacameron> shlevy: grahamc: How do I actually use this nix-plugin thing?
<infinisil> eacameron: What are you referring to exactly?
<{^_^}> [nixpkgs] @xeji pushed to staging « Revert "houdini: Fix libGL (#40736)" »: https://git.io/vppgv
<eacameron> infinisil: ^
xy2_ has quit [Ping timeout: 255 seconds]
<infinisil> eacameron: Read the `plugin-files` part here: https://nixos.org/nix/manual/#description-41
<{^_^}> [nixpkgs] @xeji pushed commit from @kwohlfahrt to master « houdini: Fix libGL (#40736) »: https://git.io/vppgq
oltoAltn has quit [Quit: ZNC - https://znc.in]
olto has joined #nixos
lsyoyom has quit [Ping timeout: 260 seconds]
schoppenhauer has quit [Ping timeout: 268 seconds]
shabius has joined #nixos
schoppenhauer has joined #nixos
chisui has joined #nixos
<eacameron> infinisil: thank you
erasmas has quit [Quit: leaving]
<mjacob> what does "import ./." mean?
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lsyoyom has joined #nixos
<infinisil> mjacob: ./. resolves the current folder as an absolute path
<infinisil> mjacob: import is a function that takes a path and interprets its contents as nix
<infinisil> > ./.
<{^_^}> /
<mjacob> thanks, now it makes sense
chisui has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<mjacob> what exactly can i do with the second argument to <nixpkgs>?
<mjacob> (after importing it)
<infinisil> mjacob: You mean with the {} in `import <nixpkgs> {}`?
<mjacob> yes
<infinisil> mjacob: The 2 most useful ones are overlays and config
<infinisil> > pkgs = import <nixpkgs> { config = { allowUnfree = true; }; overlays = [(self: super: { foo = "1"; })]; }
<{^_^}> pkgs defined
justanotheruser has joined #nixos
<infinisil> The default is to use `~/.config/nixpkgs/config.nix` and `~/.config/nixpkgs/overlays` (and some variations of those)
<jack[m]> They have defaults, so you don't have to pass them.
<mjacob> what i'd like to do is to build some package from nixpkgs (in the example libcxx, because others depend on it) but with a custom patches musl and the libc
<boomshroom> mjacob: It's also extremely useful for cross compiling.
jbboehr has quit [Ping timeout: 265 seconds]
<mjacob> s/patches/patched/
<infinisil> mjacob: Then you want an overlay for it, overriding musl and libc with your changes
<boomshroom> mjacob: In that case, using crossSystem to build with musl and overlays to patch musl would be the way to go.
<boomshroom> { crossSystem = (import <nixpkgs> {}).lib.systems.examples.musl64; }
<stumble`> I've just heard (over in #emacs) that Guix can use Nix packages. Interesting. Can't find anything on the Guix web site to confirm that.
<infinisil> boomshroom: (Or directly `import <nixpkgs/lib>`)
<boomshroom> infinisil: That would be easier than what I've been doing.
<boomshroom> stumble`: `guix import nix ~/path/to/nixpkgs libreoffice` is the example given in the guix manual.
<stumble`> Great!
<stumble`> And that means Guix can install non-free software, which I'd previously thought it couldn't.
Have-Quick has quit [Quit: Have-Quick]
Sonarpulse has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @symphorien opened pull request #40746 → rust-bindgen: wrap with cc-wrapper to provide location of headers → https://git.io/vppaD
Have-Quick has joined #nixos
<stumble`> Apparently it can also import MELPA Emacs packages directly.
<stumble`> Oh, I think maybe Nix can do that too?
<stumble`> I knew that Nix had some of them, but I've only just noticed "Nixpkgs is regularly updated to mirror all these archives."
<infinisil> stumble`: nixpkgs has all melpa/elpa packages automatically generated available
<stumble`> Awesome.
mkoenig_ has joined #nixos
stumble` has quit [Ping timeout: 260 seconds]
mkoenig has quit [Ping timeout: 276 seconds]
ryantrinkle has quit [Ping timeout: 256 seconds]
<mjacob> boomshroom, infinisil: is it possible to use musl only for the last stage instead of bootstrapping completely with musl?
srl295 has quit [Quit: Connection closed for inactivity]
<clever> mjacob: that sort of sounds like a cross-compile setup, where gcc uses glibc, but targets musl
<mjacob> clever: yes, basically
<clever> and it could take advantage of other cross-compile things, and use a glibc cmake, rather then a musl cmake
<mjacob> i think it's even required, because my patched musl won't run on the build machine (without an emulator)
<clever> nix-repl> (import <nixpkgs> { crossSystem = (import <nixpkgs/lib>).systems.examples.musl64; }).hello
<clever> mjacob: this evaluates...
<clever> and it claims to only be building one thing, hello-2.10-x86_64-unknown-linux-musl
<clever> and the gcc its using is linked against glibc
mkoenig_ has quit [Remote host closed the connection]
<clever> and the resulting hello is musl, looks like it ticks all the boxes