sphalerite changed the topic of #nixos to: NixOS stable: 19.03 \o/ https://discourse.nixos.org/t/nixos-19-03-release/2652 || 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, #nixcon ... nixcon videos: https://tinyurl.com/nixcon2018
goibhniu2 has quit [Remote host closed the connection]
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/c478fe7f86e (from 47 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
hamishmack has quit [Ping timeout: 252 seconds]
<infinisil> kandinski: You gotta be a bit more specific than that
<kandinski> infinisil: I'm sorry, so here goes: I recently upgraded from 18:03 I think to 18:09, and now I can't use Synergy the way I used to. It's the same version of Synergy, so that leads me to believe it's because Synergy doesn't play nice with Wayland, and I was wondering if configuring my system to use Xorg instead would be a solution.
<kandinski> to 19.03 sorry. Currently on Koi.
alexherbo25 has joined #nixos
alexherbo2 has quit [Ping timeout: 246 seconds]
ddellacosta has joined #nixos
<simpson> I thought that Wayland support on NixOS was opt-in and had to be explicitly requested in configuration?
<infinisil> simpson: Same can be said for X actually, because by default neither of them is enabled :)
jgt has joined #nixos
drakonis_ has joined #nixos
orivej has joined #nixos
<ashkitten> clever: honestly considering again my original idea to just add a wait command at the end of the initrd script to make sure it exits cleanly
<infinisil> kandinski: One of the most important things for debugging problems is to actually know what the problem is.. which you didn't mention
<kandinski> I just checked $XDG_SESSION_TYPE and it's wayland, but I haven't configured it explicitly.
drakonis2 has joined #nixos
<kandinski> my configuration.nix does enable services.xserver, but doesn't specify whether I want xorg or wayland. Wayland is turned on by default.
LogicAside has quit [Quit: ZNC 1.6.5+deb1+deb9u1 - http://znc.in]
drakonis1 has quit [Ping timeout: 252 seconds]
LogicAside has joined #nixos
<kandinski> And my goal in configuring it with xorg was to debug my issue (which you're right, infinisil, I don't really know the root cause of it, I only know Synergy connects but I can't move pointer control between hosts), and find whether it could be due to the s/xorg/wayland/g change, or some other cause.
<clever> ashkitten: aha
jgt has quit [Ping timeout: 250 seconds]
bourbon has left #nixos [#nixos]
drakonis_ has quit [Ping timeout: 248 seconds]
lightbulbjim[m] has joined #nixos
ddellacosta has quit [Quit: WeeChat 2.2]
buffet_ has joined #nixos
buffet has quit [Ping timeout: 258 seconds]
<ashkitten> clever: so then i don't understand why it was being killed
pie_ has quit [Ping timeout: 252 seconds]
orivej has quit [Ping timeout: 244 seconds]
<{^_^}> [nix] @matthewbauer closed pull request #2258 → Make installer allow preexisting by default → https://git.io/f4dWQ
<{^_^}> [nix] @matthewbauer closed pull request #2443 → Add XDG_DATA_DIRS to nix-profile.sh → https://git.io/fAdpW
<ashkitten> OH
<ashkitten> HOLD UP
selfsymmetric-mu has joined #nixos
<selfsymmetric-mu> How can I install emacspeak? I figured I could add it to `emacsWithPackages` but it's in `emacs-modes` for some reason?
<kandinski> Infinisil: giving it a second try: https://paste.debian.net/1081827/
<kandinski> I'm stuck at step three of testing my hypothesis.
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fj8eg
adamantium has joined #nixos
adamantium has quit [Client Quit]
bourbon has joined #nixos
Synthetica has quit [Quit: Connection closed for inactivity]
<bourbon> Aw crud, there goes the paste buffer
<ashkitten> clever: i think it's not being killed early, but i think switch_root is deleting something and it's not completing the tune (as long as it doesn't leave a persistent tone going i don't care)
<infinisil> kandinski: Can't you just paste your configuration.nix?
v0|d has joined #nixos
selfsymmetric-mu has quit [Remote host closed the connection]
<ashkitten> so, new problem. starting somewhat recently, my network connection has dropped every time i do a `nixos-rebuild switch`. i recently moved, so it could be the network topology or something but i'm not sure why it's happening and i want it to stop
<kandinski> infinisil: I can. I didn't think it was needed because it's the same configuration.nix from before the upgrade, and this is the only thing that has stopped working as before. Here goes: https://pastebin.com/pex2KrGU
<ashkitten> nmcli still says it's connected, but it doesn't resolve dns until i re-up the connection
<{^_^}> [nixpkgs] @risicle opened pull request #61607 → [r17.09] leptonica: patch multiple CVEs → https://git.io/fj8ew
<{^_^}> [nixpkgs] @risicle opened pull request #61608 → [r18.03] leptonica: patch multiple CVEs → https://git.io/fj8er
<infinisil> kandinski: That very much looks like a standard X setup
_ris has quit [Ping timeout: 255 seconds]
<infinisil> You would've surely noticed a difference between X and wayland
<kandinski> I have visually too
qubasa_ has joined #nixos
<infinisil> Huh what, are you using sway?
<kandinski> for instance, when I launch Firefox, now I see a black rectangle that eventually gets painted over. I didn't see that before.
ottidmes has quit [Quit: WeeChat 2.4]
<infinisil> Oh
<infinisil> gnome!
<kandinski> I just upgraded as-is.
<kandinski> and `echo $XDG_SESSION_TYPE` says "wayland"
<infinisil> Yeah it's gnome sorry, they switched their default to wayland
<kandinski> thence my question whether it would be possible to switch it back in /etc/nixos/configuration.conf
Rusty1 has joined #nixos
<infinisil> Since it's an upstream change that would be difficult..
<kandinski> So it goes.
* infinisil takes a look at the gnome module
<kandinski> infinisil: would you mind also helping me look this up by myself?
Qubasa has quit [Ping timeout: 244 seconds]
<infinisil> Well the first thing I usually do is take a closer look at the module, which is nixpkgs/nixos/modules/services/x11/desktop-managers/gnome3.nix in this case
hiroshi has quit [Quit: ZNC 1.7.2 - https://znc.in]
hiroshi- is now known as hiroshi
<infinisil> The gnome option would tell you this path
<infinisil> Don't see anything interesting though
<infinisil> And it's weird that it would still be under x11 when it's using wayland..
aveltras has quit [Quit: Connection closed for inactivity]
<infinisil> kandinski: Oh look what I found: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=818366
<infinisil> " This all came to my attention because for a while the popular Synaptic package manager was to be ejected from Debian for not working under Wayland. That bug has now been worked around to prevent removal (although it's still not functional in a Wayland environment)."
<infinisil> That blog post is from 5 days ago
<kandinski> synaptic is not synergy though :)
<kandinski> and synergy does start and even connect to the network. It just doesn't work as expected after connecting.
thc202 has quit [Ping timeout: 252 seconds]
<infinisil> Yeah I guess that's what they mean by "it's still not functional"
<infinisil> kandinski: From looking online, it seems that gnome should have something in its settings that allows you to use X, "GNOME on Xorg" or so
<kandinski> infinisil: the bug is about the package manager Synaptic, not about the KVM Synergy.
<kandinski> I'm looking at gnome options too now, thanks you!
<infinisil> Ah
<infinisil> Darn and I thought I had something there!
rwe has quit [Remote host closed the connection]
<kandinski> (yeah, I appreciate the effort, and it's a common mystake)
rwe has joined #nixos
jluttine has quit [Ping timeout: 255 seconds]
jgt has joined #nixos
<infinisil> Btw, for future pastes, consider using one of these instead:
<infinisil> ,paste
<{^_^}> Use a website such as [ https://gist.github.com/ http://ix.io/ https://hastebin.com/ https://paste.ee/ ] or similar services to share anything that's longer than a couple lines.
<infinisil> pastebin isn't very liked by IRC and related communities
jluttine has joined #nixos
<kandinski> infinisil: why so? I use the pastebinit command, which on Debian defaults to paste.debian.org. I didn realise that wasn true on nixos.
<infinisil> Oh, we should change that then haha
<kandinski> infinisil: I guess this is an easy PR to contribute, so nixos.pastebinit has the right behaviour.
<infinisil> kandinski: I can recommend gist, which is a package that puts stuff on gist.github.com
<kandinski> Let me give it a go, seems like a good onramp for beginners.
<infinisil> But yeah pastebin isn't liked because it has ads, is bloated and such
orivej has joined #nixos
<kandinski> (thanks again: I'll use gist in the future, but fixing the pastebinit command default seems the right thing to do)
<infinisil> Thing is though, there's no Nix paste
<infinisil> Not anymore at least
<infinisil> So there's no reasonable default we could use instead
<{^_^}> [nixpkgs] @aanderse merged pull request #61477 → anbox: unstable-2019-03-07 -> unstable-2019-05-03 → https://git.io/fjWQW
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to master: https://git.io/fj8eD
<infinisil> I guess anything is better than pastebin though xD
jgt has quit [Ping timeout: 250 seconds]
silver has quit [Read error: Connection reset by peer]
<kandinski> infinisil: sprunge.us seems a reasonable enough default.
<infinisil> Yeah just thought so too
<kandinski> infinisil: expect a PR sometime this weekend :)
<infinisil> ,paste = Use a website such as [ https://gist.github.com/ http://ix.io/ https://hastebin.com/ http://sprunge.us/ https://paste.ee/ ] or similar services to share anything that's longer than a couple lines.
<{^_^}> paste redefined, was defined as Use a website such as [ https://gist.github.com/ http://ix.io/ https://hastebin.com/ https://paste.ee/ ] or similar services to share anything that's longer than a couple lines.
<infinisil> Cool :)
<aanderse> sigh
<aanderse> 2 times now i've seen a nixos test...
<aanderse> which isn't in all-tests.nix
<aanderse> :\
mexisme_ has joined #nixos
niksnut has joined #nixos
<{^_^}> [nixpkgs] @Infinisil merged pull request #61365 → gimpPlugins.resynthesizer: drop → https://git.io/fjWmA
<{^_^}> [nixpkgs] @Infinisil pushed 5 commits to master: https://git.io/fj8e7
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @Infinisil merged pull request #61291 → gdcm: 2.8.9 -> 3.0.0 → https://git.io/fjCFS
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fj8eF
<infinisil> aanderse: Ah darn..
<aanderse> ah well. better to find and fix than not find at all
acarrico has joined #nixos
<gchristensen> aanderse++
<{^_^}> aanderse's karma got increased to 5
<{^_^}> [nixpkgs] @aanderse opened pull request #61609 → devede: fix runtime error → https://git.io/fj8eh
<aanderse> :D
<{^_^}> [nixpkgs] @worldofpeace opened pull request #61610 → graphene: init at 1.8.6 → https://git.io/fj8ej
alp has quit [Ping timeout: 258 seconds]
sb0 has joined #nixos
lostman has joined #nixos
<lostman> hey folks. Just switched to NixOS and I don't seem to have any man pages. How do I get that working? I tried `nix-shell -p pkgs.stdmanpages` and `man malloc` or anything else still doesn't work
<lostman> also, when i enter nix-shell I have `NIX_CFLAGS_COMPILE` and other env vars set up by nix. How do I get same behavior for the top-level shell for my user? I'd like that shell to use the wrapped clang and it seems to be using the unwrapped one
acarrico has quit [Ping timeout: 244 seconds]
esmerelda has quit [Ping timeout: 258 seconds]
<clever> ,nix-shell lostman
<clever> ,libraries lostman
<{^_^}> lostman: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<lostman> for some things that makes sense for others it doesn't. Does the normal shell always have to be a second class citizen?
<clever> compile time stuff and compilers in generaly just arent meant to work outside of nix-shell on nixos
<lostman> there are some common C libraries that I'd like to have access to
<lostman> without custom `shell.nix`
<matthewbauer> lostman: i don't think malloc is in the c++ manpages. you probably want `nix run nixpkgs.posix_man_pages -c man -w malloc`. nix-shell doesn't seem to set the MANPATH correctly?
<clever> lostman: https://gist.github.com/cleverca22/73d96d83a34b6bba24e19af3784f6237 this is part of my config.nix file
<lostman> @matthewbauer looks like it just doesn't work with `nix-shell`
<clever> lostman: lines 41-47 joins several of the man page packages up, and then i can `nix-env -iA nixos.manymans` to install them
<clever> and `man malloc` works normally outside nix-shell
esmerelda has joined #nixos
<lostman> right, but now I need `nix-shell` to develop in and normal shell to read man :(
<clever> man still works in nix-shell too
<clever> lostman: and you dont always need to use a shell.nix file, you can just run `nix-shell -p` to get a basic shell with just a compiler
<matthewbauer> lostman: you should be able to install the wrapped clang with `nix-env -iA nixpkgs.clang`
<lostman> @clever can I hook it up so it just gives me those basics always at all times when my user opens shell?
<matthewbauer> sometimes you can get the clang-unwrapped though
<lostman> @clever let me try all those mans
jgt has joined #nixos
selfsymmetric-mu has joined #nixos
mexisme_ has quit [Ping timeout: 252 seconds]
<matthewbauer> ugh manpath detection fails when a derivation doesn't have a bin output! it's relative to PATH, but PATH is never set for something like stdman; https://github.com/NixOS/nixpkgs/blame/master/pkgs/stdenv/generic/setup.sh#L180
jgt has quit [Ping timeout: 259 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
stites has joined #nixos
orivej has quit [Ping timeout: 258 seconds]
stites has quit [Quit: ZNC 1.6.6+deb1ubuntu0.1 - http://znc.in]
obadz has quit [Ping timeout: 248 seconds]
mexisme_ has joined #nixos
jb55 has quit [Ping timeout: 246 seconds]
obadz has joined #nixos
alicej has joined #nixos
<alicej> does anyone know if there is a package for emacs 26? or do I have to write some nix myself
hamishmack has joined #nixos
polman has quit [Ping timeout: 255 seconds]
<lostman> alicej: I have emacs from stable nixpkgs and the version is 26.1
<{^_^}> [nixpkgs] @nh2 opened pull request #61611 → openblas: Add enableStatic flag → https://git.io/fj8v6
<{^_^}> [nixpkgs] @worldofpeace opened pull request #61612 → geoclue: 2.5.2 -> 2.5.3 → https://git.io/fj8vi
toppler`` has quit [Ping timeout: 255 seconds]
jgt has joined #nixos
toppler`` has joined #nixos
polman has joined #nixos
<alicej> lostman: thanks i just updated my channel and now everything works :)
alicej has quit [Quit: Page closed]
sb0 has quit [Quit: Leaving]
jgt has quit [Ping timeout: 252 seconds]
polman has quit [Ping timeout: 255 seconds]
polman has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer opened pull request #61613 → [WIP] libdispatch: update to 10.12.6 → https://git.io/fj8vX
<lostman> alicej: you can also mix stable and unstable in configuration.nix to get some updates faster. Good example here: https://nixos.wiki/wiki/FAQ. That requires nixos-unstable added through nix-channel as root. It is also also possible to import specific commit of unstable channel directly in configuration.nix using fetchTarball
ashkitten has quit [Ping timeout: 256 seconds]
Supersonic has quit [Ping timeout: 264 seconds]
polman has quit [Ping timeout: 255 seconds]
polman has joined #nixos
MinceR_ has joined #nixos
<angerman> Can we make `/nix` be a symlink? Are there any fundamental issues that prevent us from that?
drakonis has quit [Quit: WeeChat 2.4]
<simpson> That's a fascinating idea. What did you want to achieve with that change?
Supersonic has joined #nixos
MinceR has quit [Ping timeout: 252 seconds]
teej has quit [Quit: Connection closed for inactivity]
<angerman> I have my nix store on an ssd.
<angerman> macOS doesn't allow me trivial mounting of devices into /nix
<angerman> so I'd rather have /nix -> /Volumes/NIX_STORE
_e has quit [Remote host closed the connection]
<angerman> simpson: now I can carry my nix-store with me around. Unplug from the desktop when I run around with my macbook.
<angerman> I have a script that does some automount shenanigans to get around the symlink issue. But not having to deal with that extra step would be much better.
<simpson> Interesting.
<angerman> simpson: I could also swap nix stores (if I ever needed to do so...)
polman has quit [Ping timeout: 255 seconds]
<simpson> angerman: This might be possible to some degree on Darwin; I don't know. It wouldn't be possible on NixOS.
<angerman> simpson: why would it not work on nixOS?
<simpson> angerman: You're right; maybe it's possible on NixOS.
polman has joined #nixos
mexisme_ has quit [Ping timeout: 252 seconds]
mexisme_ has joined #nixos
obadz has quit [Ping timeout: 252 seconds]
obadz has joined #nixos
<infinisil> ,locate man malloc
<{^_^}> Found in packages: manpages
drakonis has joined #nixos
drakonis_ has joined #nixos
drakonis2 has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @nh2 opened pull request #61614 → openblas: 0.3.5 -> 0.3.6 → https://git.io/fj8vb
drakonis has quit [Ping timeout: 252 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
botayhard has joined #nixos
o1lo01ol1o has quit [Ping timeout: 258 seconds]
jgt has joined #nixos
teej has joined #nixos
{^_^} has quit [Ping timeout: 250 seconds]
obadz has quit [Ping timeout: 258 seconds]
jgt has quit [Ping timeout: 252 seconds]
sb0 has joined #nixos
Supersonic has quit [Ping timeout: 252 seconds]
<lostman> any users of buildRustPackage here?
<rizary> i am using ubuntu, and i see that there are 2 nix.conf file under /etc/nix and ~/.config/nix/nix.conf. What is the difference between that? And why the nix.conf under .confid is in the 000 mod (not writeable, readable, executable).
<lostman> I'm wondering why cargoSha256 needs to be specified manually. It might be useful to pin it manually but in general couldn't it be computed automatically?
obadz has joined #nixos
lovesegfault has quit [Quit: WeeChat 2.4]
ricekrispie2 has quit [Read error: Connection reset by peer]
Supersonic has joined #nixos
lovesegfault has joined #nixos
mexisme_ has quit [Ping timeout: 244 seconds]
reinhardt has joined #nixos
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 252 seconds]
Miyu-saki has quit [Ping timeout: 252 seconds]
lovesegfault has quit [Quit: WeeChat 2.4]
lovesegfault has joined #nixos
sir_guy_carleton has quit [Quit: WeeChat 2.4]
rwe has quit [Remote host closed the connection]
rwe has joined #nixos
_e has joined #nixos
mexisme_ has joined #nixos
jgt has joined #nixos
knupfer has joined #nixos
rwe has quit [Ping timeout: 258 seconds]
jgt has quit [Ping timeout: 258 seconds]
Rusty1 has quit [Quit: Konversation terminated!]
ayerhart has joined #nixos
knupfer has quit [Ping timeout: 252 seconds]
wfranzini has quit [Ping timeout: 264 seconds]
ashkitten has joined #nixos
bollu has quit [Quit: Ping timeout (120 seconds)]
bollu has joined #nixos
laalf has quit [Ping timeout: 248 seconds]
laalf has joined #nixos
hmm has joined #nixos
emptyflask has quit [Ping timeout: 255 seconds]
shabius has joined #nixos
shabius has quit [Remote host closed the connection]
shabius has joined #nixos
rwe has joined #nixos
palo1 has joined #nixos
endformationage has quit [Ping timeout: 246 seconds]
hmm has quit [Quit: Page closed]
palo has quit [Ping timeout: 246 seconds]
palo1 is now known as palo
obadz has quit [Ping timeout: 255 seconds]
nD5Xjz_ has quit [Ping timeout: 255 seconds]
obadz has joined #nixos
domogled has joined #nixos
nD5Xjz has joined #nixos
hoijui has joined #nixos
jackdk has quit [Quit: Ping timeout (120 seconds)]
jgt has joined #nixos
ashkitten has quit [Ping timeout: 256 seconds]
jgt has quit [Ping timeout: 264 seconds]
logzet has joined #nixos
jgt has joined #nixos
Myhlamaeus has quit [Ping timeout: 258 seconds]
mexisme_ has quit [Ping timeout: 258 seconds]
Glider_IRC has joined #nixos
vk3wtf has quit [Quit: WeeChat 2.4]
PLPD-Bot has quit [Remote host closed the connection]
PLPD-Bot has joined #nixos
[Leary] has joined #nixos
vk3wtf has joined #nixos
hyper_ch2 has joined #nixos
Ariakenom has joined #nixos
jackdk has joined #nixos
Lears has quit [Ping timeout: 252 seconds]
Intensity has quit [Remote host closed the connection]
<jgt> I'm trying to build a JavaScript project with Nix, and it's failing with: error Couldn't find a package.json file in "/private/tmp/nix-build-riskbook-chat-ui.drv-0"
wangoe has joined #nixos
<jgt> how do I copy the package.json to the directory it builds the project from?
<jgt> isn't there some special variable like $out?
<jgt> and which buildPhase should the copy command go in? Is it configurePhase?
vk3wtf has quit [Quit: WeeChat 2.4]
buffet_ is now known as buffet
vk3wtf has joined #nixos
rwe has quit [Ping timeout: 245 seconds]
zupo has joined #nixos
cfricke has joined #nixos
detran has quit [Ping timeout: 245 seconds]
zupo has quit [Client Quit]
detran has joined #nixos
jb55 has joined #nixos
fusion809 has quit [Remote host closed the connection]
orivej has joined #nixos
fusion809 has joined #nixos
ksbrar[m] has joined #nixos
ym555_ is now known as ym555
rauno has joined #nixos
rwe has joined #nixos
wfranzini has joined #nixos
lovesegfault has quit [Ping timeout: 259 seconds]
schjetne has joined #nixos
lovesegfault has joined #nixos
lovesegfault has quit [Client Quit]
horner has joined #nixos
linarcx has joined #nixos
alp has joined #nixos
orivej has quit [Ping timeout: 245 seconds]
cfricke has quit [Ping timeout: 246 seconds]
cfricke has joined #nixos
fusion809 has quit [Remote host closed the connection]
alter-schjetne has joined #nixos
rwe has quit [Ping timeout: 246 seconds]
schjetne has quit [Ping timeout: 252 seconds]
<cizra> I'd like to try porting The Dark Mod to NixOS -- it's open-source but commonly distributed in binary format. Do we have any similar OpenGL+binary packages I could base the work on?
thc202 has joined #nixos
tbenst has joined #nixos
tbenst_ has quit [Ping timeout: 248 seconds]
<Yaniel> if sources are available it's very preferrable to build from those
<Yaniel> that game seems to have decent build instructions too
<Yaniel> but if you insist on repackaging the binary, I guess factorio would be a fine reference package?
<Yaniel> a bit overcomplicated due mod support & authenticated download URLs but if you have packaged things before it should be easy to isolate the relevant bits
linarcx has quit [Quit: WeeChat 2.4]
linarcx has joined #nixos
<cizra> Thanks! I've done a tiny bit of packaging - https://github.com/NixOS/nixpkgs/pull/61546
<cizra> Last when I tried to build from source, it kind of worked, but textures didn't display.
<cizra> Ideally, I'd like to do both, as a learning exercise for the binary version.
<Yaniel> I think I saw a warning about that in the wiki
toppler`` has quit [Ping timeout: 246 seconds]
<cizra> Yaniel: Yeah, but the same configuration worked fine with binary downloaded from TDM. Look into your darkmod.cfg inside your darkmod folder and check that the following settings are like shown below:
Makaveli7 has joined #nixos
vid has joined #nixos
MinceR_ is now known as MinceR
toppler`` has joined #nixos
zupo has joined #nixos
srid has quit [Quit: Ping timeout (120 seconds)]
srid has joined #nixos
rwe has joined #nixos
cfricke has quit [Quit: WeeChat 2.4]
<andi-> lostman: it can only be computed if there is a network connection. The way nix works you can get network connections during build time if you are an fixed output derivation AKA you specified the hash of the output.
logzet has quit [Ping timeout: 264 seconds]
logzet_ has joined #nixos
drakonis_ has quit [Ping timeout: 246 seconds]
linarcx has quit [Quit: WeeChat 2.4]
<andi-> I see that buildRustPackage workaround as a major hack.. It did bite us before and there is an open issue with it randomly generating different hashed but it usually doesn't surface because fixed output content will be retrieved from cache.nixos.org whenever it is there...
linarcx has joined #nixos
drakonis_ has joined #nixos
linarcx has quit [Client Quit]
is_null has joined #nixos
linarcx has joined #nixos
m0rphism has joined #nixos
goibhniu1 has joined #nixos
pie_ has joined #nixos
silver_ has joined #nixos
fendor has joined #nixos
MmeQuignon has joined #nixos
sigmundv has joined #nixos
rwe has quit [Ping timeout: 268 seconds]
<lostman> andi-: why is network connection necessary?
<lostman> andi-: I'd be nice if it was optional. Then I could put a specific SHA for releases but don't worry about it when I'm just developing something. I have a derivation that runs benchmarks on distributed builder for instance
mexisme_ has joined #nixos
<lostman> speaking of remote builders... it appears buildRustCrate builds dependencies first, on my local machine, and then copies them to my remote builder... weird!
mexisme_ has quit [Ping timeout: 246 seconds]
hoijui has quit [Ping timeout: 248 seconds]
linarcx has quit [Quit: WeeChat 2.4]
<andi-> lostman: well the way this hack works is that we call `cargo vendor` in the fixed output derivation. The trade-off that was made there is that you do not have to specify the dependencies and all their hashes because you (claim) that the output of the bundled vendor files is whatever is in that thing.
linarcx has joined #nixos
aveltras has joined #nixos
<andi-> Imo should it disappear and buildRustCrate be used instead
<andi-> Requires more tooling but also deduplicates compilation of dependencies
<lostman> buildRustCrate looks like bad idea. Skipping Cargo?
<lostman> I have a package that uses bindgen, links to external C libraries, uses conditional compilation... carnix just gave up. Also couldn't handle features, didn't generate derivations for benchmarks and so on. And good luck figuring out things like musl and producing fully static executables or compiling to WASM. I don' t think re-implementing Cargo in Nix is a feasible path
civodul has joined #nixos
polman has quit [Read error: Connection reset by peer]
polman has joined #nixos
Anton-Latukha has joined #nixos
hoijui has joined #nixos
<andi-> I don't think having a tool that wasn't made to preserve-bit-perfect results between versions is a good fit for our buildRustPackage either.. Perhaps you can implement the changes you would like to see? Maybe it would "suck less" then :-)
linarcx has quit [Quit: WeeChat 2.4]
linarcx has joined #nixos
sigmundv has quit [Ping timeout: 246 seconds]
<lostman> andi-: yeah, I'd like to try making buildRustPackage compute the SHA automatically. Unless I'm missing something it shouldn't be too hard?
<andi-> Well the hash of all the dependencies..
adamantium has joined #nixos
<lostman> andi-: I tried something like that recently with `nix hash-path --base16 $src > $out`. Is there a better way?
<andi-> Well you have to download them first
pie__ has joined #nixos
<lostman> andi-: for that I'll have to see what buildRustCrate does
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pie_ has quit [Ping timeout: 252 seconds]
<lostman> I thought Cargo is already good enough at reproducible builds with Cargo.lock. Is there a situation where running two builds with Cargo.lock results in different code?
phaebz has joined #nixos
domogled has quit [Read error: Connection reset by peer]
nD5Xjz has quit [Ping timeout: 252 seconds]
nD5Xjz_ has joined #nixos
domogled has joined #nixos
nD5Xjz has joined #nixos
nD5Xjz_ has quit [Ping timeout: 258 seconds]
rgrau` has joined #nixos
MmeQuignon has quit [Ping timeout: 252 seconds]
sigmundv has joined #nixos
rgrau` has quit [Client Quit]
<andi-> lostman: it is more about duplicating efforts for humans (declaring transitive dependencies of dependencies, …) and machines (producing the same .rlib file multiple times). Also it doesn't duplicate all the sources for every crate that uses them. I am thinking from a NixOS/NIxpkgs perspective. You seem to be primarily concerned about some out of tree software development cycle?
rwe has joined #nixos
tkral has quit [Read error: Connection reset by peer]
tkral has joined #nixos
fadenb has joined #nixos
knupfer has joined #nixos
<fadenb> Hey, I am a bit stuck and looking for a pointer to some example on how to define custom packages and modules outside of nixpkgs.
<fadenb> I have an overlay that is working just fine, I have an custom module I can load via import that works. What is the best way to combine those?
tkral has quit [Read error: Connection reset by peer]
zupo has joined #nixos
tkral has joined #nixos
shabius has quit [Ping timeout: 258 seconds]
shabius has joined #nixos
zupo has quit [Client Quit]
fusion809 has joined #nixos
dwdr has joined #nixos
zupo has joined #nixos
<andi-> fadenb: I usually use a pattern where `src = fetchGit "https://…"; module = src + "/module.nix";` Sometimes I expose the module as `module` attribute in passthru of a package if that is the only package & module in the repo.
zupo has joined #nixos
<fadenb> Hmm, i did something similar, feels a bit hacky :P
nD5Xjz has quit [Ping timeout: 246 seconds]
<andi-> fadenb: yeah :/ have you looked how NUR does it?
nD5Xjz has joined #nixos
<fadenb> no, not yet. Will take a look :)
linarcx has quit [Quit: WeeChat 2.4]
phaebz has quit [Ping timeout: 258 seconds]
linarcx has joined #nixos
knupfer has quit [Ping timeout: 250 seconds]
rwe has quit [Ping timeout: 258 seconds]
<alexarice[m]> does anyone know how display drivers are configured under wayland, everything I can find on the nixos manual seems to be about X?
tkral has quit [Ping timeout: 250 seconds]
alp has quit [Ping timeout: 258 seconds]
hoijui has quit [Remote host closed the connection]
<andi-> alexarice[m]: it just worked for me(tm). I have two GPUs in my laptop (nouveau & intel)
Makaveli7 has quit [Quit: WeeChat 2.4]
<alexarice[m]> andi-: Is there a way to see what driver is being used?
<andi-> alexarice[m]: I guess that dependes on the compositor your are running. I am using sway.
<andi-> I am trying to figure that out right now.
alp has joined #nixos
Makaveli7 has joined #nixos
sigmundv has quit [Ping timeout: 246 seconds]
alp has quit [Client Quit]
alp has joined #nixos
<alexarice[m]> andi-: Thanks, just trying to work out if performance issues are just nvidia based or if I'm missing something
alexherbo25 has quit [Ping timeout: 245 seconds]
logzet_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<andi-> alexarice[m]: uff nvidia and wayland. Not sure if thats worth the money for both the GPU and the issues..
<andi-> they are basically doing their own thing and most people just don't care about Nvidia at this point.
<alexarice[m]> andi-: I'm aware but it's what I have atm, should probably put the effort in to have a different config on desktop and laptop
orivej has joined #nixos
<andi-> alexarice[m]: did you configure the Nvidia blob at all? If not you are probably on noveau
<alexarice[m]> andi-: Nothing in my config mentions drivers anywhere so I'm guessing not
ym555 has quit [Ping timeout: 245 seconds]
<andi-> ok then you are probably on the opensource nvidia driver and potentially also on Intel if your device has that
<alexarice[m]> lsmod shows nouveau so I'm guessing that is active
alexherbo25 has joined #nixos
sigmundv has joined #nixos
Neptu has quit [Quit: Bye!]
rwe has joined #nixos
Avaq has joined #nixos
tkral has joined #nixos
ThatDocsLady has joined #nixos
adamantium has quit [Ping timeout: 258 seconds]
<lostman> andi-: right, you're talking about turning each dependency into own derivation? That's great. I just don't think it's feasible to achieve and maintain without Cargo and many features will probably be lost in the process. Tried `carnix` the other day and it failed with an error
nD5Xjz has quit [Ping timeout: 255 seconds]
wangoe has quit [Ping timeout: 268 seconds]
<andi-> lostman: what error? I have been using it for almost two years now.. It is a rough story but a lot better then one year ago.
<andi-> Also there have been alternative implementations that also use buildRustCrate that make use of cargos buildplan feature.
<lostman> andi-: error: attribute '_all' missing, at (string):1:42
<lostman> andi-: where can I find the alternative implementation?
ubert has joined #nixos
rprije has quit [Read error: Connection reset by peer]
rprije has joined #nixos
init_6 has joined #nixos
knupfer has joined #nixos
Avaq has quit [Ping timeout: 255 seconds]
nD5Xjz has joined #nixos
ben has quit [Ping timeout: 255 seconds]
nD5Xjz has quit [Ping timeout: 246 seconds]
<andi-> lostman: read the few weekly news articles. Don't remember their name.
rwe has quit [Ping timeout: 255 seconds]
nD5Xjz_ has joined #nixos
<Izorkin> etu: me resolved conversation in pr
nD5Xjz_ has quit [Ping timeout: 246 seconds]
nD5Xjz has joined #nixos
__monty__ has joined #nixos
sb0 has quit [Ping timeout: 258 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ivan> can I install nixos-install on NixOS? :-)
<ivan> I want to install another system over nbd
<etu> ,locate nixos-install
<etu> hmmm
<etu> Was worth a shot!
<immae> ivan: (pkgs.nixos {}).nixos-install
<infinisil> Bot is not even here (again)..
<immae> (I don’t know of any "usual" way to install it)
<andi-> ivan: yes you can
<andi-> it is installed on my machine without having specified it
<ivan> andi-: oh, haha, thanks, I don't know why I didn't bother to check
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
Izorkin has quit [Ping timeout: 257 seconds]
Makaveli7 has quit [Quit: WeeChat 2.4]
polman has quit [Ping timeout: 255 seconds]
Avaq has joined #nixos
nD5Xjz_ has joined #nixos
nD5Xjz has quit [Ping timeout: 245 seconds]
acarrico has joined #nixos
esmerelda has quit [Ping timeout: 246 seconds]
srid has quit [Ping timeout: 258 seconds]
nD5Xjz_ has quit [Ping timeout: 246 seconds]
nD5Xjz has joined #nixos
<buffet> hey -- im probably just stupid, but i cant seem to get chromium with wideVine (for netflix) to work. #8479 suggests that i need to enable the wideVine option and itll "just work". somebody up to help me get it running? apperently im too dumb
polman has joined #nixos
o1lo01ol1o has joined #nixos
srid has joined #nixos
<goibhniu1> hi buffet, does it show up in chrome://plugins?
srid has quit [Read error: Connection reset by peer]
hyper_ch2 has quit [Quit: Page closed]
srid has joined #nixos
nD5Xjz_ has joined #nixos
nD5Xjz has quit [Ping timeout: 252 seconds]
esmerelda has joined #nixos
knupfer has quit [Ping timeout: 255 seconds]
<buffet> goibhniu1: i cant reach chrome://plugins for some reason
zupo has joined #nixos
<buffet> also: no when i tried to enable option (dont know if theres a better way to do it -- i added an overlay that overwrote chromium) the build failed during some wideVine stage
<buffet> one second, ill redo that real quick
<goibhniu1> how are you installing chromium, via configuration.nix?
phaebz has joined #nixos
<buffet> goibhniu1: i normally have it in home-managers home.nix, for the overlay thing (which i cant seem to recreate rn) i added it to configuration.nix
<goibhniu1> cool, does `nix-env -q` list chromium (try as your user and as root)
<clever> buffet: configuration.nix overlays wont impact home-manager
rwe has joined #nixos
<buffet> http://ix.io/1JhE getting this. setting allowBroken = true; yields http://ix.io/1JhF
<clever> that error is why it is marked as broken
<buffet> clever: yes ik, this is why im currently installing via configuration.nix atm, and once i got it ill just port it over. seems easier to get it working *somehow* first
<buffet> so the package is just broken atm
<clever> yep
<buffet> :(
<buffet> fixing timr
<clever> you can also test it with just config.nix and `nix-build '<nixpkgs>' -A chromium`
<clever> no need for nixos-rebuild or home-manager
<buffet> i guess thats clever
{^_^} has joined #nixos
<etu> \o/
<etu> <3 {^_^}
<{^_^}> {^_^}'s karma got increased to 162
gchristensen has joined #nixos
gchristensen is now known as Guest59435
phaebz has quit [Ping timeout: 252 seconds]
Guest59435 has quit [Changing host]
Guest59435 has joined #nixos
phaebz has joined #nixos
Guest59435 is now known as gchristensen
nD5Xjz_ has quit [Ping timeout: 258 seconds]
nD5Xjz has joined #nixos
<stammon> I can't install waybar even though it's packaged for nixos. I'm on the nixos-unstable channel.
{^_^} has quit [Ping timeout: 248 seconds]
gchristensen has quit [Ping timeout: 248 seconds]
<buffet> stammon: what error are you getting?
<ivan> does anyone know how I might make grub-install work with my nbd device? ("error: cannot find a GRUB drive for /dev/nbd0p2") https://gist.github.com/ivan/57c88101284e2a93330cbf5c6be9470f
{^_^} has joined #nixos
hyper_ch2 has joined #nixos
nD5Xjz has quit [Ping timeout: 250 seconds]
<clever> ivan: grub-install must be pointed to the root of a device, not the partition
nD5Xjz has joined #nixos
<ivan> clever: /dev/nbd0 is the root block device
<ivan> grub is trying to find some device number that I guess isn't going to work at all with the remote nbd stuff
<clever> ivan: what does `fdisk -l /dev/nbd0` report?
<clever> yeah, it should be using p1 for stage 1.5
<clever> i'm guessing it cant figure out what the device will be called at boot-time, and cant generate the right config to refer to the /boot fs
<clever> have you looked into iscsi yet?
reinhardt has quit [Quit: Leaving]
<ivan> heh, not really
<ivan> have you used nixos-install with iscsi?
<clever> ive had trouble with nbd even connecting reliably in the past
<clever> ive ran 2 machines on iscsi before
<ivan> I'm using nbd just for the install
<clever> ah, why not just run the installer directly on the target?
<ivan> rescue environment with no zfs and kexec'ing into nixos didn't work so well
<clever> what happened when you tried to kexec it?
toppler`` has quit [Ping timeout: 246 seconds]
<ivan> I did something like https://gist.github.com/kylewlacy/c0781e9e8fb5acb50e78ad32c2b5de95 and I got disconnected after kexec with no SSH coming up
<ivan> no idea what really happened unless I get a KVM attached
<ivan> machine has DHCP
<clever> ivan: the systemd.network.enable stuff may be messing with the dhcp support
<ivan> I removed that line
<clever> and line 13, openssh allows itself thru the firewall automatically
<clever> how much ram, and how big is the initrd file?
toppler`` has joined #nixos
<ivan> ah I'll just install zfs-dkms in the rescue environment and chroot to finish this
<ivan> clever: 64GB RAM
<clever> heh, ok, not OOM! lol
rauno has quit [Ping timeout: 245 seconds]
mexisme_ has joined #nixos
jfuller has joined #nixos
fusion809 has quit [Remote host closed the connection]
{^_^} has quit [Ping timeout: 264 seconds]
mexisme_ has quit [Ping timeout: 252 seconds]
<ivan> apt-get install zfs-dkms's /var/lib/dkms/zfs/0.6.5.9/build/configure appears to be stuck in a loop stat'ing /var/lib/dkms/spl/0.6.5.9/4.19.43/x86_64/spl_config.h
<ivan> really playing on hard mode today
o1lo01ol1o has quit [Ping timeout: 244 seconds]
Izorkin has joined #nixos
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
{^_^} has joined #nixos
gchristensen has joined #nixos
is_null has quit [Ping timeout: 268 seconds]
gchristensen is now known as Guest16957
Guest16957 has joined #nixos
Guest16957 has quit [Changing host]
Guest16957 is now known as gchristensen
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/fc67de1802f (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<angerman> does `nix-shell` evaluate `default.nix`?
<gchristensen> yes if shell.nix doesn't exist
ricekrispie has joined #nixos
<angerman> gchristensen: but it doesnt seem like I can nix-shell -p attr-from-default.nix
<{^_^}> [nixpkgs] @marsam merged pull request #61273 → pythonPackages.block-io: 1.1.9 -> 1.1.10 → https://git.io/fjCH6
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/fj8qY
englishm has quit [Excess Flood]
npmccallum has joined #nixos
englishm has joined #nixos
<manveru> angerman: that'd be -A
<angerman> am I the only one who finds the cli highly confusing?
<manveru> no :)
<angerman> also the nix-build X -A Y -> nix build -f X Y ...
<manveru> the new CLI isn't really feature-complete yet, so the old is still around
<{^_^}> [nixpkgs] @basvandijk opened pull request #61633 → elasticsearch-curator: 5.6.0 -> 5.7.6 & upgrades of dependencies → https://git.io/fj8qR
<angerman> then again if I had any more time outside of the haskell.nix stuff, I'd probably try to fix a few minor issues I have with hydra. Eventually we'll all switch to domenkozar[m]'s hercules... but until then I'd still like a bit more insight into what hydra's actually doing. The amount of time I'm wondering what the hell is going on is the second biggest time sink after debuggung nix expressions.
<manveru> welcome to the club :D
<manveru> anyway, there's hope for better UX, but i think eelco is busy implementing flakes first
<manveru> to at least get rid of the super confusing channel concept
<manveru> and that should also improve hydra by unifying and simplifying the build inputs
<clever> manveru: how are channels confusing?
<manveru> clever: you never notice people in here asking about them?
<clever> its often just people adding the same channel to 2 users, and then one overrides the other
<manveru> like the typical "did you run this as root"?
<clever> and they update the wrong one
ng0 has joined #nixos
<manveru> and there's no unified way of specifying channels in nix itself, so you end up with all kinds of fetchFromGitHub/fetchGit/fetchTarball/niv/etc...
<niksnut> manveru: well, flakes replace channels, so hopefully they will give better UX
<clever> fetchtarball can now refer to channels, but its just an alias over github URL's basically
Neo-- has joined #nixos
lewo has joined #nixos
ng0 has quit [Client Quit]
<manveru> then the mapping of NIX_PATH to "<whatever>" is not really newcomer-friendly either :)
<manveru> niksnut: exactly
<manveru> i was just trying to epxress why i think channels are confusing compared to flakes
* angerman is tripping over cabal inconsistencies...
<niksnut> manveru: flakes replace NIX_PATH too :-)
<niksnut> and fetchFromWhatever
<manveru> niksnut: i read the docs :)
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever> manveru: i read the source, docs can be wrong, lol
<manveru> never!
rwe has quit [Ping timeout: 258 seconds]
<manveru> the doc is for the design, not sure how far along the code is
<niksnut> yeah, definitely don't trust the docs
orivej has quit [Ping timeout: 246 seconds]
<clever> manveru: `nix repl --help` claims --arg and --argstr work
<clever> this is what made it actually work
<manveru> :P
<clever> so if you are older then that rev, the --help is wrong, and it silently drops the args
<manveru> how would repl even take args...
<{^_^}> [nixpkgs] @bjornfor merged pull request #61586 → saleae-logic: 1.2.28 -> 1.2.18 → https://git.io/fjlDi
<{^_^}> [nixpkgs] @bjornfor pushed to master « saleae-logic: 1.2.28 -> 1.2.18 »: https://git.io/fj8qy
<clever> manveru: if you run it on a nix file, that defines a function
<manveru> i guess if you pass a file
<manveru> yeah, just never use it that way, so i didn't notice
<clever> nix repl '<nixpkgs>' --arg config '{ allowUnfree = true; }'
<manveru> NIXPKGS_ALLOW_UNFREE=1 ;)
<manveru> but ok, good to know
<clever> nix repl '<nixpkgs>' --argstr system x86_64-darwin --arg config '{ packageOverrides = pkgs: {}; }'
<clever> this forces it to evaluate for darwin (and use your darwin build slaves), and lets you specify overrides
<manveru> i'd just be happy if it had an .nixreplrc or something
<manveru> and supported vi bindings
chaoflow has quit [Quit: WeeChat 2.2]
orivej has joined #nixos
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/ec5cbc24de5 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
<angerman> so is there a way to annotate asserts with some more informative message?
<angerman> throw would be nice. but you can't do if x then throw; as far I know.
<clever> angerman: wrap them with builtins.trace i believe
<angerman> clever: the body? Hm...
<clever> angerman: nixos solved the assert problem, by not using asserts
<clever> you instead have a "nixos option" called assertions, which is a list of bool/string pairs
rprije has quit [Remote host closed the connection]
<clever> and then the top-level attr will check that they are all true, before contiuing
<clever> and trace the strings if they arent
rprije has joined #nixos
<angerman> \o/
<clever> then throw "\nFailed assertions:\n${concatStringsSep "\n" (map (x: "- ${x}") failedAssertions)}"
<clever> so the entire answer is wrapped with `if failed then throw else answer`
mekeor has joined #nixos
<{^_^}> [nixpkgs] @bjornfor pushed 2 commits to release-19.03: https://git.io/fj8mt
<angerman> clever: thanks.
<angerman> Guess this will be much better to understand than just some random "assert failed" https://www.irccloud.com/pastebin/qpIaclMC/
<clever> angerman: yep, that looks good
Avaq has quit [Quit: Leaving.]
iyzsong has joined #nixos
phaebz has quit [Ping timeout: 252 seconds]
justanotheruser has quit [Ping timeout: 246 seconds]
selfsymmetric-mu has quit [Remote host closed the connection]
ben__ has joined #nixos
ben__ is now known as ben
erictapen has quit [Ping timeout: 252 seconds]
iyzsong has quit [Ping timeout: 252 seconds]
iyzsong has joined #nixos
hhefesto has joined #nixos
orivej has quit [Ping timeout: 268 seconds]
{^_^} has quit [Ping timeout: 264 seconds]
gchristensen has quit [Ping timeout: 258 seconds]
avn has quit [Ping timeout: 246 seconds]
phaebz has joined #nixos
horner has quit [Quit: zzZzZzZzZZZzzz…]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
phaebz` has joined #nixos
phaebz has quit [Ping timeout: 264 seconds]
o1lo01ol1o has quit [Ping timeout: 264 seconds]
gchristensen has joined #nixos
{^_^} has joined #nixos
gchristensen has joined #nixos
gchristensen has quit [Changing host]
<gchristensen> Hi, the host running {^_^} and my services is having some hardware problems, and I am not able to repair them because I am at jury duty. So, availability will be spotty until I get home -- probably not until tonight. My apologies.
phaebz` has quit [Ping timeout: 264 seconds]
Neptu has joined #nixos
<pie__> > ({ a ? 1 }@args: args) {}
<{^_^}> { }
<pie__> is there some unintuitive reason that this is correct?
<pie__> I expected { a = 1; }
<gchristensen> args is the literal inputs
o1lo01ol1o has joined #nixos
<andi-> > (args@{ a ? 2}: args) {}
<{^_^}> { }
<andi-> but yeah it is the actual thing that was passed in.. being able to write it at the front and at the end always confuses me.. not sure why we need that
<adisbladis> ({ a ? 1 }@args: {inherit a;} // args) {}
<adisbladis> > ({ a ? 1 }@args: {inherit a;} // args) {}
<{^_^}> { a = 1; }
orivej has joined #nixos
vid has quit [Ping timeout: 268 seconds]
work_ has joined #nixos
rwe has joined #nixos
work_ has quit [Client Quit]
vid has joined #nixos
o1lo01ol1o has quit [Ping timeout: 250 seconds]
<pie__> ok i dont like this but be back in a few minutes :P
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
<pie__> is there any reason we couldnt have that populate the attribute names
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « oh-my-zsh: 2019-05-11 -> 2019-05-17 »: https://git.io/fj8Yf
<pie__> so that when you pass args to another function defaults still get evaluated properly
mekeor has quit [Ping timeout: 248 seconds]
botayhard has quit [Ping timeout: 246 seconds]
srid has quit [Ping timeout: 268 seconds]
ben has quit [Ping timeout: 252 seconds]
<infinisil> Yeah that could work
<infinisil> pie__: Actually no
<infinisil> With how it currently works, you can detect whether an attribute was passed or not at all
<infinisil> > (args@{ a ? 2 }: args ? a) {}
<{^_^}> false
<infinisil> > (args@{ a ? 2 }: args ? a) { a = 10; }
<{^_^}> true
<infinisil> And that can be useful in certain scenarios
Ariakenom has quit [Quit: Leaving]
jabranham has joined #nixos
jfuller has quit [Ping timeout: 248 seconds]
hyper_ch2 has quit [Quit: Page closed]
ng0 has joined #nixos
* pie__ scratches head
<pie__> hm
<pie__> this is a problem.
srid has joined #nixos
<pie__> i guess a new operation would need to be introduced to get it to work
dwdr has quit [Remote host closed the connection]
<gchristensen> adisbladis's workaround isn't sufficient?
dwdr has joined #nixos
<pie__> id like to avoid having to name all the arguments every time i just pipe an argument set through, it works, but i think its kind of ugly
rwe has quit [Ping timeout: 252 seconds]
<pie__> is it possible to at least inherit all attrs without naming them specificall?
<pie__> or is that just with
<pie__> (but with has different scoping)
<pie__> (semantics, something something)
<pie__> the reasons make sense but i think this is way clumsier than it should be, if theres any reasonable way to do this
<{^_^}> [nixpkgs] @nh2 closed pull request #61614 → openblas: 0.3.5 -> 0.3.6 → https://git.io/fj8vb
<{^_^}> [nixpkgs] @veprbl closed pull request #48674 → MCFM: init at 8.2 → https://git.io/fxV9S
endformationage has joined #nixos
camsbury has joined #nixos
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<pie__> i dont suppose theres a builtingfor getting things in the current scope or something
<infinisil> You could roll your own defaults mechanism
<catern> is there a direct way to get the path that "nix edit" uses?
<infinisil> > (args: { a = 1 } // args) {}
<{^_^}> error: syntax error, unexpected '}', expecting ';', at (string):253:16
<catern> I can do "EDITOR=echo nix edit whatever" as a hack, but I'd like to do it more directly
<infinisil> > (args: { a = 1; } // args) {}
<{^_^}> { a = 1; }
<{^_^}> [nixpkgs] @matthewbauer merged pull request #60573 → openblas: 0.3.5 -> 0.3.6 → https://git.io/fjZs5
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to staging: https://git.io/fj8YP
<infinisil> > (args: { a = 1; } // args) { a = 2; }
<{^_^}> { a = 2; }
<infinisil> pie__: ^^
<pie__> catern, i think its unsafeSomethingorOther
<pie__> builtins.unsafeGetAttrPos "attrname" attrset
<pie__> catern, ^
<catern> Interesting
<catern> I was hoping for a command line thing I could tell a user, I guess I'll just stick to telling them the EDITOR=echo hack
<infinisil> Well nix edit actually uses meta.position (which uses builtins.unsafeGetAttrPos underneath)
IRCsum has quit [Ping timeout: 252 seconds]
<infinisil> > hello.meta.position
<{^_^}> "/var/lib/nixbot/nixpkgs/master/repo/pkgs/applications/misc/hello/default.nix:15"
<pie__> infinisil, hm. i actually already do that for some stuff.
<catern> infinisil: ah, that's much better
fendor has quit [Ping timeout: 252 seconds]
<pie__> huh.
<pie__> infinisil, man how do you know all this stuff :P
MmeQuignon has joined #nixos
<infinisil> Looking at the source over time, I guess :)
<pie__> guess i spend too much time building random crap
<catern> "nix eval nixpkgs.hello.meta.position" is perfect to tell my users
<pie__> could probably also do nix eval builtins.unsafeGetAttrPos "name" attrset but yeah yours looks cleaner :p
<pie__> i always did find unsafeGetAttrPos's signature weird :I
fendor has joined #nixos
<infinisil> Would be `nix eval '(builtins.unsafeGetAttrPos "description" (import <nixpkgs> {}).hello.meta)'` then
<infinisil> More or less
<pie__> infinisil, ah
<pie__> oops
<pie__> cant do nixpkgs.hello.meta in that one?
<infinisil> Only one way to find out!
<clever> [clever@system76:~]$ nix eval '(with import <nixpkgs> {}; hello.meta.position)'
<clever> "/nix/store/i2digbjggcjmr419j51imq0xwk4qrq69-nixos-19.09pre177651.aeb464dfd37/nixos/pkgs/applications/misc/hello/default.nix:15"
emptyflask has joined #nixos
hansbauer[m] has joined #nixos
jabranha` has joined #nixos
<infinisil> Yeah but that's just the same as `nix eval nixpkgs.hello.meta.position`
<infinisil> If you wanted to use unsafeGetAttrPos directly then what I mentioned would be the way to go
jabranham has quit [Ping timeout: 255 seconds]
jabranha` has quit [Client Quit]
<pie__> infinisil, i dont understand why you need an import in one but not the otehr
iyzsong has quit [Ping timeout: 252 seconds]
<pie__> but i havent tried to execute it
<infinisil> nix eval without () is special and doesn't correspend to an expression directly
Ariakenom has joined #nixos
vid has quit [Ping timeout: 246 seconds]
<infinisil> I think `nix eval foo.*.*` gets translated to roughly `nix eval '(import <foo> {}).*.*'` (plus auto-calling of functions)
<infinisil> UM, I mean `nix eval '((import <foo> {}).*.*)'`
<infinisil> Parentheses around the argument makes nix eval treat it as a standard expression
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/ec5cbc24de5 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
<clever> infinisil: ive found that anoying
<pie__> infinisil, woo hidden magic :p
<pie__> or rather, inconsistency
<pie__> cmon nix is supposed to be the new cleaned up thing :p
<pie__> nix2
<{^_^}> nix#2722 (by Infinisil, 9 weeks ago, open): Inconsistent behavior of -A with functors
<pie__> looks scary
MmeQuignon has quit [Read error: Connection reset by peer]
<pie__> oh! nix just hit 1000 on the issue counter! :D
<pie__> 19 hours ago
<Taneb> :O
<{^_^}> [nixpkgs] @c0bw3b merged pull request #61563 → horst: 5.0 -> 5.1, cleanup a bit → https://git.io/fjlo8
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master: https://git.io/fj8O0
lsyoyom has quit [Ping timeout: 255 seconds]
rpg has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/f1cd68dc3db (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/db85ded4aae (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
sigmundv has quit [Ping timeout: 258 seconds]
fendor has quit [Ping timeout: 245 seconds]
dsx has left #nixos [#nixos]
<{^_^}> [nixpkgs] @Infinisil merged pull request #61512 → winstone: drop package and service → https://git.io/fjlmm
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fj8Og
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fj8O2
<{^_^}> [nixpkgs] @Infinisil merged pull request #61510 → libfaketime: refactor using `builtins.placeholder` → https://git.io/fjlqw
knupfer has joined #nixos
<{^_^}> [nixpkgs] @Infinisil merged pull request #61506 → pythonPackages.fasttext: init at 0.2.0 → https://git.io/fjlLQ
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fj8Oa
dsx has joined #nixos
ckoparkar has joined #nixos
garbas_ has joined #nixos
<{^_^}> [nixpkgs] @c0bw3b merged pull request #61147 → memtest86+: update / remove legacy memtest86 → https://git.io/fjcHc
<{^_^}> [nixpkgs] @c0bw3b pushed 3 commits to master: https://git.io/fj8Ow
garbas_ has quit [Client Quit]
fendor has joined #nixos
<NemesisD> is it possible to set up a nix cache server in a particular project's expression rather than globally?
<NemesisD> one that merges with the global cache servers that are configured
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
IRCsum has joined #nixos
ricekrispie2 has joined #nixos
IRCsum has quit [Excess Flood]
IRCsum has joined #nixos
<camsbury> NemesisD: you can use flags on `nix-build` and `nix-shell` for this
<camsbury> something like --substituters
<camsbury> you can look it up in the manual under the serving cache section
nahamu has quit [Ping timeout: 268 seconds]
<camsbury> you can also do `nix copy --from https://cache-url -f default.nix buildInputs` for example
lsyoyom has joined #nixos
<NemesisD> camsbury: my idea was that a project could have a project-specific cache defined in default.nix that way it gets stored in source control, is overrideable, etc
<camsbury> gotcha
nahamu has joined #nixos
ricekrispie has quit [Ping timeout: 268 seconds]
<camsbury> yeah good question... not sure about that
<camsbury> seems like it might have to be separate from the expression itself
<camsbury> would be great if it didn't have to be though
hhefesto has quit [Read error: Connection reset by peer]
<hansbauer[m]> hi! im having problems with the radeon hd 7290 apu with glitched graphics. do someone had this problem too?
emptyflask has quit [Quit: leaving]
fendor has quit [Remote host closed the connection]
fendor has joined #nixos
erasmas has joined #nixos
wfranzini has quit [Remote host closed the connection]
drakonis has joined #nixos
ubert has quit [Remote host closed the connection]
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
fendor has quit [Ping timeout: 258 seconds]
Profpatsch has joined #nixos
balsoft has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @Infinisil closed pull request #61607 → [r17.09] leptonica: patch multiple CVEs → https://git.io/fj8ew
<{^_^}> [nixpkgs] @Infinisil closed pull request #61608 → [r18.03] leptonica: patch multiple CVEs → https://git.io/fj8er
<{^_^}> [nixpkgs] @nlewo merged pull request #61294 → skaffold: 0.28.0 -> 0.29.0 → https://git.io/fjCbq
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/fj83L
drakonis has quit [Quit: WeeChat 2.4]
amninder has joined #nixos
amninder has quit [Client Quit]
jgt has quit [Ping timeout: 248 seconds]
hhefesto has joined #nixos
goibhniu1 has quit [Ping timeout: 245 seconds]
fendor has joined #nixos
Myhlamaeus has joined #nixos
jgt has joined #nixos
<DigitalKiwi> if you boot one profile, do a nixos-rebuild --upgrade switch, don't reboot, do a nix-collect-garbage -d, will it keep both the one you booted and the one you switched to?
drakonis has joined #nixos
IRCsum has quit [Ping timeout: 264 seconds]
rwe has joined #nixos
drakonis_ has quit [Ping timeout: 252 seconds]
<adisbladis> DigitalKiwi: Yes, it will keep both around
<adisbladis> DigitalKiwi: NixOS creates gc-roots in /nix/var/nix/gcroots/booted-system and /nix/var/nix/gcroots/current-system
<DigitalKiwi> cool, thanks. I thought that was how it worked but I wanted to make sure
IRCsum has joined #nixos
drakonis has quit [Ping timeout: 248 seconds]
{^_^} has quit [Ping timeout: 264 seconds]
rwe has quit [Remote host closed the connection]
gchristensen has quit [Ping timeout: 268 seconds]
rwe has joined #nixos
pie__ has quit [Ping timeout: 258 seconds]
rwe has quit [Ping timeout: 255 seconds]
<clever> DigitalKiwi: but it will delete the generation for the booted one, so once you do reboot it has no roots, and can be GC'd
lambda-11235 has joined #nixos
{^_^} has joined #nixos
fendor has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @c0bw3b opened pull request #61637 → [18.09] spectre-meltdown-checker: 0.39 -> 0.41 → https://git.io/fj83a
ben has joined #nixos
toppler`` has quit [Ping timeout: 246 seconds]
MmeQuignon has joined #nixos
<{^_^}> [nixpkgs] @veprbl closed pull request #42374 → singularity: add checkPhase → https://git.io/f4D9P
toppler`` has joined #nixos
MmeQuignon has quit [Ping timeout: 244 seconds]
gchristensen has joined #nixos
Neva has joined #nixos
<Neva> can i ask a question about NixOS here?
<Yaniel> if you dare
<adisbladis> :D
<Neva> i have a question about the keyboard layout settings
<Yaniel> I'm on the edge of my seat
<Neva> is it possible to assign multiple characters (like space and enter) to the same key, but a different amount of strokes (like 1 stroke: space, 2 strokes: enter) without *too* much coding?
<infinisil> That doesn't seem very NixOS related
<Neva> i guess, but still
<infinisil> Neva: What do you mean by "stroke"?
<Neva> i remember that nix uses a .nix file for the keyboard which loads a .kbd file (or so)
<Neva> like how often i hit/tap/stroke/... it
<Yaniel> nix does not load anything like that
<Yaniel> it writes configuration files for whatever you install with it
horner has joined #nixos
<infinisil> Neva: Okay but like, if you press the button once, should it be a space or should it wait for a potential second press?
<Neva> it should wait like a second or two for a another stroke, unless it's a different key
<infinisil> Hmm, I don't know of any program that would allow you to do that easily
<Yaniel> I think you need an IME for that
<gchristensen> Maybe xcape can do that.
<Yaniel> not sure if one like you describe exists
<infinisil> gchristensen: I don't think so, but yeah Neva look into xcape too, maybe what it can do will work too
<Neva> so if i press 65 (should be a) it waits if i press 65 again (which would result in say ae), but if i press 66 (should be b) then it straight away enters "ab"
<infinisil> for you
Thra11 has joined #nixos
<Yaniel> but what if you press b again
<Yaniel> shouldn't it only enter "a" and wait for another b
silver_ is now known as silver
<Neva> if not set to another key, then it doesn't wait
<Yaniel> yeah this sounds like a custom IME
<Neva> i used a and b, because in german we have a and ae (an umlaut), b doens't have any modifications
<infinisil> Yaniel: IME?
<Yaniel> Input Method Editor
<Neva> windows has one for japanese
<Yaniel> what you use to input chinese or japanese or korean
<Yaniel> or if you use the press-and-hold feature to input diacritics on macs
<Neva> yeah
<infinisil> That seems a bit overboard for this simple functionality
<Neva> which is why i asked
<Yaniel> well if you just want a way to input diacritics, that is covered by 1) dead keys 2) compose key
<Neva> i used to use nixos, that was a bit ago, but i wanted to get back to it, and saw the "Keyboard Layout Customization" page
<Yaniel> if your keyboard has dead keys everything should Just Work out of the box
<Yaniel> probably same thing if it has a compose key (never had one myself)
<Neva> since i've grown very, very used to the english keyboard (which also helps me developing), but i need a way to write german, at best without switching keyboards
<Yaniel> which english keyboard
<Neva> qwertyuiop[]
<Yaniel> the name of the layout please
<Yaniel> there are 9001 layouts that start with qwertyu
<Neva> Ubuntu names it "English (US)", windows calls it just "English"
<ben> i taught my terminal special keybindings for german umlauts and the wonky s, seems to work well enough
<Neva> Third, just with a small change in layout
<Neva> same amount of keys though
dontobey has quit [Ping timeout: 264 seconds]
<Yaniel> what is a "small change in layout"
<Yaniel> mirrored horizontally?
<Neva> the plus-minus symbol is the tilde, those small changes
mexisme_ has joined #nixos
knupfer has quit [Ping timeout: 252 seconds]
<Neva> but i have the same amount of keys
<Neva> apart from the plus minus and tilde, i don't think there are any differences actually, except that i have ctrl, fn, windows, alt, spacce, alt gr, ctrl
<Yaniel> in other words it's the 1st one but with a tall enter key
<Neva> (instead of fn, control, option, command, ...)
<Neva> well between shift and z there's also a key
<Neva> ISO, yes
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « haskell-tasty-hedgehog: current versions need hedgehog 1.x or later »: https://git.io/fj8sU
mexisme_ has quit [Ping timeout: 245 seconds]
bgamari has quit [Ping timeout: 246 seconds]
<Yaniel> you could switch the layout to US Intl
Thra11 has quit [Ping timeout: 268 seconds]
<Yaniel> or configure a compose key
<Neva> a compose key?
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage2nix: disable broken builds on Hydra »: https://git.io/fj8st
domogled has quit [Quit: domogled]
domogled has joined #nixos
hansbauer[m] has left #nixos ["User left"]
{^_^} has quit [Ping timeout: 252 seconds]
<Neva> I guess, i'll still look aournd a bit, but thatnks
<Neva> thanks*
Neva has quit [Quit: Page closed]
bgamari has joined #nixos
<Izorkin> .locate GLIB_GSETTINGS
domogled has quit [Quit: domogled]
domogled1 has joined #nixos
domogled1 is now known as domogled
englishm has quit [Read error: Connection reset by peer]
englishm has joined #nixos
MmeQuignon has joined #nixos
rpg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
civodul has quit [Ping timeout: 252 seconds]
talqu has joined #nixos
bgamari_ has joined #nixos
bgamari has quit [Ping timeout: 258 seconds]
rprije has quit [Read error: Connection reset by peer]
rprije has joined #nixos
Glider_IRC_ has joined #nixos
Torus[m] has joined #nixos
Neo-- has quit [Ping timeout: 264 seconds]
Glider_IRC has quit [Ping timeout: 258 seconds]
rpg has joined #nixos
init_6 has quit [Ping timeout: 246 seconds]
Orbstheorem has quit [Quit: WeeChat 1.8]
goibhniu1 has joined #nixos
ThatDocsLady has quit [Ping timeout: 252 seconds]
MmeQuignon has quit [Quit: WeeChat 2.4]
reinhardt has joined #nixos
tbenst_ has joined #nixos
tbenst_ has quit [Client Quit]
lunik1 has quit [Read error: Connection reset by peer]
tbenst_ has joined #nixos
lunik1 has joined #nixos
<tbenst_> I have some packages in nixpkgs pull requests that have yet to be merged. anyone know the preferred way to reference forks in configuration.nix or home.nix? Should I add each fork as a channel..?
_ris has joined #nixos
<clever> tbenst_: i just load the default.nix's in using callPackage in the packageOverrides or overlays
polman has quit [Excess Flood]
polman has joined #nixos
<tbenst_> clever, ah ok, I guess the problem there is I have pkgs across a couple branchs of my local nixpkgs folder, so I think I'd have to make a seperate folder for each / copy the default.nix file I guess
<tbenst_> I suppose duplicating the packages in another folder is the least evil option, thx!
orivej has quit [Ping timeout: 246 seconds]
<lunik1> is there an example config or anything in the manual about how to set up and configure apparmour?
fendor has joined #nixos
goibhniu1 has quit [Ping timeout: 268 seconds]
MichaelRaskin has joined #nixos
slack1256 has joined #nixos
ixxie has joined #nixos
rfold has joined #nixos
civodul has joined #nixos
ixxie has quit [Ping timeout: 245 seconds]
ixxie has joined #nixos
<Izorkin> How to fix build? source - https://pastebin.com/U7T0yz0p Error - Makefile:951: *** missing separator. Stop.
talqu has left #nixos ["Killed buffer"]
<tbenst_> clever, any idea what is wrong with my overlays here? https://gist.github.com/tbenst/47ca22c136795cde28603b673a69d80a
<tbenst_> I'm guessing I'm missing something for pythonPackages..
<clever> tbenst_: what error is it giving?
<clever> ah, i see it
<andi-> Izorkin: you are probably not using tabs in your makefile
<clever> so line 11 is refering to ps.nbdime, via the `with ps`
Orbstheorem has joined #nixos
<tbenst_> yes that's the error
<clever> tbenst_: line 7 is adding nbdime directly to pkgs, not the python packages
<clever> so you would do pkgs.nbdime
<clever> (which will likely fail if its a python based default.nix)
<tbenst_> hm I was worried as much
rprije has quit [Read error: Connection reset by peer]
rprije has joined #nixos
<tbenst_> how can I add to python packages instead?
Anton-Latukha has quit [Ping timeout: 258 seconds]
<tbenst_> pkg.pythonPackages.nbdime?
<tbenst_> `pythonPackages.nbdime = super.callPackage [...]` doesn't work
<Izorkin> andi-: need fix source file - default.nix ?
<clever> tbenst_: pythonPackages.nbdime=x; is identical to pythonPackages = { nbdime = x; };
<andi-> Izorkin: well the make error suggests that.. I haven't looked into the past just yet
<clever> tbenst_: both forms, wipe all other values from pythonPackages
<clever> 8009 pythonInterpreters = callPackage ./../development/interpreters/python {};
<clever> 8010 inherit (pythonInterpreters) python27 python35 python36 python37 pypy27 pypy35;
<clever> 19 # For the Python package set
<clever> 20 , packageOverrides ? (self: super: {})
<clever> tbenst_: found it
<clever> python37.override { packageOverrides = self: super: {}; }
<clever> tbenst_: this will let you apply python overlays to python37, and create a new python package set
<clever> you then use a nixpkgs overlay (what you have now) to replace pkgs.python37 with the result
Acou_Bass has quit [Ping timeout: 248 seconds]
Acou_Bass has joined #nixos
fendor has quit [Ping timeout: 258 seconds]
dwdr has quit [Remote host closed the connection]
<tbenst_> thanks!
<clever> tbenst_: yep, thats one way to get it working
<clever> tbenst_: if you add: python36 = super.python37.override {packageOverrides = self.pythonOverrides;}; to the overlays.nix, then you can just use pkgs.python37 later on
mwilsoncoding has joined #nixos
<clever> and when you do remove the overlay, python.nix wont change any
<mwilsoncoding> hey all- anyone know how to utilize a specific `wheel` version when building python packages?
wfranzini has joined #nixos
fendor has joined #nixos
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
erictapen has joined #nixos
reinhardt has quit [Quit: Leaving]
lambda-11235 has quit [Read error: Connection reset by peer]
lambda-11235 has joined #nixos
delan has joined #nixos
delan has joined #nixos
delan has quit [Changing host]
gchristensen has quit [Quit: Connection closed for inactivity]
Tucky has joined #nixos
alexherbo250 has joined #nixos
alexherbo25 has quit [Ping timeout: 244 seconds]
Tucky has quit [Ping timeout: 255 seconds]
knupfer has joined #nixos
orivej has joined #nixos
ckoparkar has quit [Ping timeout: 250 seconds]
jgt has quit [Ping timeout: 252 seconds]
ym555 has joined #nixos
mwilsoncoding has quit [Quit: Page closed]
rprije has quit [Remote host closed the connection]
eraserhd has quit [Read error: Connection reset by peer]
rprije has joined #nixos
<tbenst_> great thx clever!
eraserhd has joined #nixos
asymmetric has quit [Quit: Peace.]
tbenst_ has quit [Remote host closed the connection]
asymmetric has joined #nixos
ixxie has quit [Ping timeout: 248 seconds]
lambda-11235 has quit [Quit: Bye]
Copenhagen_Bram has quit [Read error: Connection reset by peer]
<catern> hmm, I want to pre-create a Nix database with the right path validity information so I can just copy it into a container (without having to actually enter the container and run Nix commands)
<catern> what are the files I should copy? just the SQLite database?
<catern> i.e. just the contents of /nix/var/nix/db? or do I need more things besides that?
Copenhagen_Bram has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<clever> catern: there is --dump-db and --load-db to deal with exporting/importing the db as a text file
<catern> Indeed, I'm very familiar with them
<clever> catern: and there are utils to generate a fake export, that contains the closure of a given path
<catern> But I don't want to use --load-db because using --load-db would require running a Nix command inside the container
<clever> it might be possible to run --load-db inside a derivation, with NIX_REMOTE=local?root=/tmp/dummy/
<catern> Instead I'd rather just be able to copy the already-formatted db into the container, pre-initialized with the right validity information
<clever> which would generate a db
<catern> Yep, that's what I'm thinking about doing
<catern> Would it then suffice to copy in /nix/var/nix/db to the container?
<clever> yeah
knupfer has quit [Ping timeout: 264 seconds]
slowz has quit [Ping timeout: 257 seconds]
<catern> It's mildly useful to have a Nix bootstrap script that doesn't actually need to have nix be mounted at /nix
jgt has joined #nixos
mexisme_ has joined #nixos
jgt has quit [Ping timeout: 252 seconds]
<LnL> what kind of containe?
<cizra> What's the recommended way of setting up project-specific environments? (for example, scons, clang, etc for C++)
lovesegfault has joined #nixos
<catern> LnL: my own homebrew thing
<LnL> I mean the format, the dockerTools functions have support for images with a nix db
asymmetric has quit [Quit: Peace.]
asymmetric has joined #nixos
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
camsbury has quit [Ping timeout: 244 seconds]
toppler`` has quit [Ping timeout: 246 seconds]
slack1256 has quit [Ping timeout: 252 seconds]
knupfer has joined #nixos
rprije has quit [Remote host closed the connection]
toppler`` has joined #nixos
rprije has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
fusion809 has joined #nixos
fendor has quit [Ping timeout: 246 seconds]
<genesis> cizra : you can write a shell.nix as i do here https://github.com/bignaux/Magick2CPC/blob/master/shell.nix
<genesis> then use nix-shell .
alexherbo250 has quit [Ping timeout: 246 seconds]
goibhniu1 has joined #nixos
silver_ has joined #nixos
<infinisil> genesis: (no need for the ".", it's implicit)
alexherbo250 has joined #nixos
<genesis> haha it was just an end of sentence
<genesis> i didn't mean nix-shell .
<cizra> genesis: Thanks!
silver has quit [Ping timeout: 252 seconds]
mexisme_ has quit [Ping timeout: 244 seconds]
asymmetric has quit [Quit: Peace.]
goibhniu1 has quit [Ping timeout: 258 seconds]
asymmetric has joined #nixos
goibhniu1 has joined #nixos
<cizra> Forgive my many dumb questions, but I'm trying to write a nixpkg -- does it HAVE to live inside the nixpkgs tree? Using an out-of-tree default.nix, I get this error: error: cannot auto-call a function that has an argument without a default value ('stdenv')
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
jgt has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
jgt has quit [Ping timeout: 250 seconds]
xkapastel has joined #nixos
<clever> ,callPackage cizra
<clever> one sec
<clever> 2019-04-03 01:30:01< {^_^}> If a Nix file foo.nix starts with something like `{ stdenv, cmake }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
knupfer has quit [Ping timeout: 248 seconds]
o1lo01ol1o has quit [Ping timeout: 245 seconds]
<cizra> Thanks!
__monty__ has quit [Quit: leaving]
goibhniu1 has quit [Ping timeout: 248 seconds]
goibhniu1 has joined #nixos
<infinisil> genesis: Haha I see
goibhniu1 has quit [Ping timeout: 258 seconds]
o1lo01ol1o has joined #nixos
<cizra> I'm trying to build The Dark Mod. I created a shell.nix containing dependencies, including binutils and scons. Yet scons cannot find strip, but I can run strip manually. How to fix scons?
drakonis has joined #nixos
ng0 has quit [Quit: Alexa, when is the end of world?]
<clever> catern: binutils will be in the shell by default, no need to add it
<cizra> Yeah, I noticed, but scons nevertheless doesn't see it.
<bennofs[m]> Is there a hydra jobset for nixpkgs branches for the nixos releases?
linarcx has quit [Quit: WeeChat 2.4]
erasmas has quit [Quit: Lost terminal]
<bennofs[m]> ah, those jobsets are under the nixos project, https://hydra.nixos.org/jobset/nixos/release-19.03#tabs-configuration for example
alp has quit [Ping timeout: 248 seconds]
abathur has joined #nixos
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
justanotheruser has joined #nixos
justanotheruser has quit [Excess Flood]
justanotheruser has joined #nixos
jgt has joined #nixos
sigmundv has joined #nixos
jgt has quit [Ping timeout: 252 seconds]
meizikyn has joined #nixos
<meizikyn> hello #nixos
domogled has quit [Read error: Connection reset by peer]
domogled has joined #nixos
meizikyn has quit [Client Quit]
meizikyn has joined #nixos
work_ has joined #nixos
<tdeo> how do i package a python library without a setup.py?
Rusty1 has joined #nixos
rfold has quit [Quit: WeeChat 2.4]
<manveru> cizra: not sure this compiles all the way, but it's a start :) https://www.irccloud.com/pastebin/DO1zyryf/default.nix
<manveru> big fan of thief, so would like to try the dark mod too :) will see if i can get a proper package for it tomorrow
mbrgm_ has joined #nixos
<meizikyn> manveru: just joined so I don't have buffer of what your talking about, but what game are you referring to?
mbrgm has quit [Ping timeout: 258 seconds]
mbrgm_ is now known as mbrgm
domogled has quit [Ping timeout: 246 seconds]
sigmundv has quit [Ping timeout: 244 seconds]
<meizikyn> thx
justanotheruser has quit [Ping timeout: 252 seconds]
<bennofs[m]> spidermonkey is part of the base system closure? o.o
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bennofs[m]> thanks polkit :/
rpg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
m0rphism has quit [Ping timeout: 258 seconds]
justanotheruser has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
justanotheruser has quit [Excess Flood]
justanotheruser has joined #nixos
<bourbon> hi - I'm trying to add telegraf to my default.nix, but my nixxing fails due to it not being supported on darwin
<bourbon> what can I look at to see what platforms are supported by a derivation?
<bourbon> still very very noob
justanotheruser has quit [Excess Flood]
justanotheruser has joined #nixos
horner has quit [Remote host closed the connection]
horner has joined #nixos
justanotheruser has quit [Client Quit]
jgt has joined #nixos
nDuff has joined #nixos
jgt has quit [Ping timeout: 252 seconds]
ym555 has quit [Ping timeout: 246 seconds]