gchristensen changed the topic of #nixos to: 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://botbot.me/freenode/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat
<tomberek> does one have to manually create the vpc, i am under the impression nixops can do it for you
sanscoeur has quit [Ping timeout: 268 seconds]
sanscoeu_ has quit [Ping timeout: 268 seconds]
LnL has quit [Ping timeout: 264 seconds]
cement has quit [Ping timeout: 252 seconds]
<clever> jxf: under nixos, spotify is trying to use alsa, but pulseaudio has configured a special alsa "driver", that connect to pulseaudio
<infinisil> Heh, happened to search for "enabe", and promptly found a typo in nixpkgs on a configureFlag, some --enable-foo configure flag
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #36464: squishyball: fix w/new ncurses (master...fix/squishyball-ncurses) https://git.io/vAN4g
NixOS_GitHub has left #nixos [#nixos]
Lisanna has joined #nixos
<clever> jxf: if you can find similar libraries in ubuntu (or even use the nix ones maybe?) and create an asound.conf, it may fix your issue
<clever> jxf: also, spotify is just electron, so it might be possible to repackage it
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Infinisil opened pull request #36465: weston: fix typo in configure flag (master...typo/weston) https://git.io/vAN49
NixOS_GitHub has left #nixos [#nixos]
<clever> though libcef.so looks odd
<Lisanna> uhm... how come one of the derivations in a split derivation has the same attrs as its parent?
<Lisanna> (baseDrv.outputs == baseDrv.output2.outputs)
<clever> Lisanna: the only difference is the .outPath
<tomberek> can someone please test "nixops/examples/vpc.nix" with nixopsUnstable (1.6)?
<Lisanna> ugh, that's really annoying
<clever> Lisanna: why?
<Lisanna> because it doesn't actually have those outputs
LnL has joined #nixos
<clever> Lisanna: ?
<Lisanna> I'm writing a function called mutateDrv, and I'm trying to get it to work on multi-output derivations
<clever> what will it mutate?
hakujin has quit [Ping timeout: 240 seconds]
<Lisanna> it mutates the output of the derivation, as if $out was opened again for writing
MP2E has quit [Remote host closed the connection]
<Lisanna> but Nix is complaining because it's not producing all of the expected outputs, because "outputs" is full of a bunch of unnecessary stuff
<Lisanna> pretty sure I've shown you the code for this before
<clever> Lisanna: ah, you would need to map over everything in outputs, and copy all of them from src to dst, and fix up cross-references between them
<clever> also, nixpkgs has something similar
<Lisanna> well, but that's the thing, I'm not actually operating on a multi-output derivation, I'm operating on one of the derivations that is *part* of a multi-output derivation
LnL has quit [Ping timeout: 248 seconds]
<Lisanna> i.e. mutateDrv baseDrv.out3
<clever> then you need to set outputs = [ "out3" ];
<clever> to declare that you only have 1
<Lisanna> yeah, but how do I know which one it is?
<clever> and keep in mind, you can always // { outputs = fulllist; }; after you call derivation
<Lisanna> well, that's the thing
<clever> the post-fix at the end of .outPath is the only thing i can think of
<clever> but at this point, does it even need the right output name?
<clever> outputs = [ "out" ]; ?
<Lisanna> the base re-written drv is just a runCommand, the extra attrs are appended afterwards
<Lisanna> not as input to derivation
vaninwagen has quit [Quit: Connection closed for inactivity]
erasmas has quit [Quit: leaving]
<Lisanna> so I'm already doing that, nix is doing this error checking at build time remember
<Lisanna> so it can't tell / doesn't care whether or not I set outputs in the call to derivation or afterwards
<Dezgeg> copy everything else except outputs ?
<Lisanna> I might just set outputs to [ "out" ]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #36466: virtualbox: drop headless patch that no longer applies, fixed upstream (master...fix/virtualboxHeadless) https://git.io/vANB6
NixOS_GitHub has left #nixos [#nixos]
<Lisanna> is it possible for a derivation which is part of a multi-output derivation to itself be a multi-output derivation?
<clever> jxf: https://github.com/NixOS/nixpkgs/pull/36467 and it still uses alsa
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] cleverca22 opened pull request #36467: spotify: 1.0.69 -> 1.0.72 (master...spotify) https://git.io/vANBX
NixOS_GitHub has left #nixos [#nixos]
<clever> Lisanna: the whole derivation is a single unit, which must produce all the outputs, and they cant be part of other derivations
<Lisanna> is there only one .drv file?
<clever> yes
<jxf> clever: Neat! How would I use nixpkgs from a PR?
<Lisanna> okay, so calling mutateDrv on baseDrv.out3 will essentially be creating a new single-output derivation from a multi-output derivation
<Lisanna> I guess that's okay :/
<clever> jxf: one option, nix-build https://github.com/cleverca22/nixpkgs/archive/9f4fa91d8fd.tar.gz -A spotify
<tomberek> @jxf nix-env -I <path-to-nixpkgs-checkout>
<clever> jxf: that will generate a result symlink pointing to the final build
<Lisanna> to add true multi-output support I'd need to do the thing you said, which would be to iterate over outputs and fixup cross-references
<clever> Lisanna: also, cycles cant exist between the outputs
<clever> Lisanna: ive had problems where the binaryes refer to lib and share, and share refers to lib, and lib refers to bin
<clever> and doc refers to all
<clever> and one of them also refers to doc
<Lisanna> ...oh god
jensens has quit [Ping timeout: 256 seconds]
<Lisanna> actually, I should be able to handle that
<Lisanna> the mutateDrv derivation will also just need to be a multi-output
<Lisanna> if I do all of the outpaths at the same time, they'll all be open for writing, and I can do the find/replace while I have all the outpaths open in the nix store
<clever> nix doesnt allow such cycles to ever exist
<clever> so the builds will fail it they happen
<Lisanna> Oh, okay
<ottidmes> Is there something in nixpkgs that would allow me to merge packages, I tried pkgs.buildEnv, which normally worked for me in this use case, but since its symlinking is not allowed when used in an initrd
<clever> ottidmes: symlinks work in the initrd
ryanartecona has quit [Quit: ryanartecona]
<ottidmes> I have serveral scripts generated with pkgs.writeScriptBin
<ottidmes> clever: I do this: for BIN in ${pkgs.sedutil-scripts-unwrapped}/bin/*; do copy_bin_and_libs $BIN done
<ottidmes> clever: But those bin paths are just symlinks to the actual scripts
<ottidmes> clever: Giving me the error: output '/nix/store/5pr7rhr7vj13scz9yflcw0c8m128kr70-extra-utils' is not allowed to refer to the following paths
anton_ has quit [Ping timeout: 252 seconds]
<clever> ottidmes: line 51 does cp -d, which results in the symlink staying intact, nix then pulls in ahh
<clever> ottidmes: thats a safety to prevent you from pulling in a crap-ton of things by mistake
<clever> ottidmes: just manually cp it with a different cp flag
<clever> ottidmes: cp -L ${pkgs.sedutil-scripts-unwrapped}/bin/* $out/bin/
<clever> ottidmes: line 49-52, its just a dumb wrapper around cp, and thats it
<ottidmes> clever: OK, thanks, but is there something other than buildEnv that would just combine the packages concretely, not symlinked?
pkill9 has quit [Ping timeout: 268 seconds]
anton_ has joined #nixos
<clever> ottidmes: not that i know of
<Lisanna> ottidmes I don't think so, but I know how to write that :)
<ottidmes> clever: I knew of the wrapper, but did not know the error orginated from it, never had it before
MP2E has joined #nixos
<clever> allowedReferences = [ "out" ]; # prevent accidents like glibc being included in the initrd
<clever> ottidmes: this line is the cause
grumble has quit [Quit: If you're reading this, I've been too lazy to come up with some ironically edgy quit message today.]
<ottidmes> clever: Ah, makes sense
<Lisanna> actually, nvm, merging derivations sounds hard
<clever> ottidmes: in this case, it forces extra-utils to have zero dependencies
<clever> copy it or fail :P
<ottidmes> clever: It worked :)
LnL has joined #nixos
grumble has joined #nixos
digitus has quit [Quit: digitus]
logzet has quit [Read error: Connection reset by peer]
sonarpulse has quit [Ping timeout: 245 seconds]
ottidmes has quit [Quit: WeeChat 1.9.1]
* clever heads off to bed
wangoe has quit [Ping timeout: 256 seconds]
cinimod has joined #nixos
<Lisanna> ugh... I'm still getting an "derivation <mydrv> does not have an output named 'output3'" error
<Lisanna> what does that even mean?
<Lisanna> I'm looking at https://github.com/NixOS/nix/blob/master/src/libexpr/primops.cc#L68 and it's not obvious
cinimod has quit [Ping timeout: 248 seconds]
pxc has quit [Ping timeout: 256 seconds]
Wharncliffe has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master a5147c5 Jan Tojnar: gnome3: automated update
<NixOS_GitHub> [nixpkgs] jtojnar pushed 2 new commits to master: https://git.io/vANEn
<NixOS_GitHub> nixpkgs/master 760b5ee Jan Tojnar: gnome3: add GNOME updatables to the attrset
NixOS_GitHub has left #nixos [#nixos]
pxc has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar closed pull request #36457: gnome3: minor update (master...gnome3-update) https://git.io/vANnK
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar opened pull request #36469: vala_0_38: 0.38.4 → 0.38.8 (master...vala-update) https://git.io/vANEV
NixOS_GitHub has left #nixos [#nixos]
pxc has quit [Ping timeout: 256 seconds]
jbetz has joined #nixos
<jbetz> how do I update an application on NixOS? VSCode, specifically
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vANu6
<NixOS_GitHub> nixpkgs/master 05412c9 Peter Hoeg: syncthing: 0.14.44 -> 0.14.45
NixOS_GitHub has left #nixos [#nixos]
mizu_no_oto has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to release-18.03: https://git.io/vANu1
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/release-18.03 df63bd6 Peter Hoeg: syncthing: 0.14.44 -> 0.14.45...
pxc has joined #nixos
ottidmes has joined #nixos
<ottidmes> clever: I just kexec'ed into grub :) well grub4dos, but still, a fork of grub
pxc has quit [Ping timeout: 256 seconds]
pie_ has joined #nixos
aarvar has quit [Ping timeout: 264 seconds]
Arcaelyx_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #36470: bareos: 15.2.4 -> 17.2.5 (master...auto-update/bareos) https://git.io/vANz8
NixOS_GitHub has left #nixos [#nixos]
Arcaelyx has quit [Ping timeout: 255 seconds]
thc202 has quit [Ping timeout: 240 seconds]
ottidmes has quit [Quit: WeeChat 1.9.1]
hellrazo1 has joined #nixos
Arcaelyx_ has quit [Ping timeout: 256 seconds]
johnw has quit [Ping timeout: 276 seconds]
hellrazor has quit [Ping timeout: 265 seconds]
<jtojnar> jbetz: how did you install it?
silver has quit [Read error: Connection reset by peer]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/glibc-2.27 b8e921e Shea Levy: rustc: 1.24.0 -> 1.24.1 and glibc-2.27 patch.
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to glibc-2.27: https://git.io/vANg4
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #36471: baresip: 0.5.6 -> 0.5.8 (master...auto-update/baresip) https://git.io/vANgu
NixOS_GitHub has left #nixos [#nixos]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Lisanna> for any multi-output derivation, does the sting context of multiOutputDrv.out3.outPath contain references to the other outputs?
<elvishjerricco> Does NixOps only let you bind subdomains with route53? Reading through the python is a little cryptic to me (not a python dev), but it seems to be that way
<dtz> Trololo? :P
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #36472: bftpd: 4.4 -> 4.8 (master...auto-update/bftpd) https://git.io/vAN2z
NixOS_GitHub has left #nixos [#nixos]
<jtojnar> jbetz: nix-channel --update && nix-env -u
<jtojnar> the second -u is --upgrade
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
<blankhart> so, i have a new puzzler
<blankhart> here is a makefile with nix commands: http://lpaste.net/363260
<blankhart> the nix-build commands succeed, as does the nix-shell command for the server; but the nix-shell command for the client fails claiming there are missing dependencies
<blankhart> i don't understand the asymmetry
<blankhart> this is the original derivation http://lpaste.net/363259
<blankhart> (the failure occurs on cabal configure after running nix-shell -A client)
<jbetz> jtojnar: thanks. and what if I want the very latest version?
<blankhart> is there a different attribute you need to use than ".env" when dropping into a shell for a GHCJS package?
jtojnar_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #36473: biboumi: 6.1 -> 7.2 (master...auto-update/biboumi) https://git.io/vANas
NixOS_GitHub has left #nixos [#nixos]
Synthetica has quit [Quit: Connection closed for inactivity]
jtojnar has quit [Ping timeout: 256 seconds]
jtojnar_ is now known as jtojnar
boxofrox has quit [Ping timeout: 240 seconds]
boxofrox has joined #nixos
<acowley> The Haskell generic builder adds a handy `env` attribute that can be used when entering a nix-shell. Is there a way to add to that derivation's buildInputs in a shell.nix that otherwise returns that value?
<acowley> myHaskellDerivation.env doesn't have an overrideDerivation attribute, which was the first thing I tried.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #36474: bibutils: 5.6 -> 6.2 (master...auto-update/bibutils) https://git.io/vANab
NixOS_GitHub has left #nixos [#nixos]
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] deepfire opened pull request #36475: ghc841: bump to 8.4.1-release (master...ghc-8.4) https://git.io/vANVT
NixOS_GitHub has left #nixos [#nixos]
<blankhart> can you override the myHaskellDerivation and then take .env of the result?
<blankhart> it looks like overrideAttrs is to be preferred
<elvishjerricco> blankhart: The right way to override Haskell drvs for changing arguments to the Haskell `mkDerivation` is to use `overrideCabal`
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] mt-caret opened pull request #36476: camlimages: fix regression (master...camlimages-fix) https://git.io/vANVZ
NixOS_GitHub has left #nixos [#nixos]
boomshroom has joined #nixos
<boomshroom> Hello!
<acowley> blankhart: Ah, thank you! overrideAttrs was my huckleberry
<elvishjerricco> e.g. `pkgs.haskell.lib.overrideCabal haskellDrv (old: { ... })
<boomshroom> I have a very unusal situation of my own making which is not working very well.
<blankhart> acowley: definitely defer to elvishjerricco on best practice here
<acowley> So many ways to override things. And boy howdy do I wish I had intellisense-style nix-repl-powered autocompletion when I type "." in a .nix file.
<elvishjerricco> blankhart: FWIW, I just recently got `shellFor` merged, which gives you a shell for a *list* of Haskell packages. Might be better than `.env` in some cases
<elvishjerricco> acowley: Make an LSP implementation for Nix ;)
* acowley faints
<acowley> That could be glorious! But I don't know if the precision of errors would be entirely satisfying.
<blankhart> elvishjerricco: that will be great for my project, eventually. can you think of a reason why a nix-build of a GHCJS package would succeed, even though cabal configure fails after calling nix-shell -A <package>.env (for the same package)?
<boomshroom> I have a simple nix installation in my student home directory for my university and I'm trying to install nix with my bootstrapped nix. After getting a nix installation of perl and DBI, I'm getting an error of undefined symbol: Perl_xs_boot_epilog
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm closed pull request #35556: biboumi: 6.1 -> 7.2 (master...auto-update/biboumi-6.1-to-7.2) https://git.io/vArkg
NixOS_GitHub has left #nixos [#nixos]
mbrgm has quit [Ping timeout: 268 seconds]
<elvishjerricco> blankhart: That's pretty odd. How does cabal configure fail?
<blankhart> cannot resolve dependencies.
<boomshroom> I'm hand added some of the library paths to the bootstrap download-using-manifests.pl and where it fails changes, but it still gives the same error in the end.
<blankhart> it basically can't find anything (shared local package, servant, aeson, ghcjs-base, nada)
mbrgm has joined #nixos
<elvishjerricco> blankhart: I think I've seen that before...
<elvishjerricco> I think you might have some crud in your global Cabal package db, so Cabal is trying to look there instead of the shell environment
<blankhart> there was this, but closed by the person who opened it https://github.com/NixOS/nixpkgs/issues/23915
acarrico has joined #nixos
<boomshroom> The nix installation of perl is 5.24.1 and is what my PATH is pointing to, while the system's perl is 5.18.2.
<blankhart> also, it's just the GHCJS side - the GHC side works fine under both nix-build and nix-shell
<elvishjerricco> This is one of the most consistent problems I've had with cabal+nix-shell. The ~/.cabal dir really screws stuff up.
cinimod has joined #nixos
<boomshroom> I should also mention that the nix store is not in /nix because I don't have root privileges. Instead it's in ~/.nix
<ryantm> gchristensen: I started doing some more automated build/commit/PRs, this time the PRs are automated, but my script waits 15 minutes after it submits a PR to limit the load.
<gchristensen> Oh I see
<ryantm> gchristensen: Let me know if you want me to space it out more.
<gchristensen> Ryantm if you want to make it a bit faster you can poll the stats url
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #36477: binaryen: 42 -> 44 (master...auto-update/binaryen) https://git.io/vANVh
NixOS_GitHub has left #nixos [#nixos]
<gchristensen> And wait until there are, say, only two pending jobs
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm closed pull request #35559: binaryen: 42 -> 44 (master...auto-update/binaryen-42-to-44) https://git.io/vArI2
NixOS_GitHub has left #nixos [#nixos]
plakband has joined #nixos
<ryantm> I need to figure out how to not duplicate my own PRs :(
<ryantm> gchristensen: What is the stats URL?
cinimod has quit [Ping timeout: 260 seconds]
<blankhart> elvishjerricco, does that mean there is no easy-to-generalize workaround?
<gchristensen> https://events.nix.ci/stats.php monitor that evaluator.consumers.messages.in_progress <= 2 perhaps
<gchristensen> s/in_progress/waiting
<elvishjerricco> blankhart: Well I'm just thinking it might be that you need to nuke your ~/.cabal directory
<blankhart> ah
<elvishjerricco> Assuming you don't have anything in there you care about (I never do)
<blankhart> no love lost. however, that didn't fix the issue
<ryantm> I made an issue to track doing that: https://github.com/ryantm/nix-update/issues/7
<elvishjerricco> blankhart: Darn... What happens when you do ghc-pkg list?
acarrico has quit [Ping timeout: 240 seconds]
<blankhart> i get a list of packages and a warning that some are broken
<elvishjerricco> oh that's weird. Does that list have the dependencies you expect?
<elvishjerricco> blankhart: Oh derp. Are you passing `--ghcjs` to `cabal`?
<blankhart> ah
<elvishjerricco> I just realized I should have said `ghcjs-pkg`
<blankhart> to cabal configure
<elvishjerricco> which made me think about `--jghcjs`
<elvishjerricco> `--ghcjs` *
<elvishjerricco> Yea I think you should only have to pass it to `cabal configure`
<blankhart> that did it. thank you for your time!!!
<blankhart> i should have been more upfront about my noob status
muzzy has joined #nixos
<gchristensen> ok ryantm I'm bringing up some extra hw too
drakonis has joined #nixos
marusich has joined #nixos
<infinisil> Whew, finally got a mailserver set up with https://github.com/r-raymond/nixos-mailserver
<infinisil> The most difficult part was DNS stuff, which unfortunately doesn't have a nixos module (yet)
<gchristensen> nice!
<infinisil> But I can definitely recommend nixos-mailserver, was really quick to set up and it has everything you'll ever need
<infinisil> (probably)
<gchristensen> wow this is so cool
<boomshroom> Looks like I got perl working. Now to hope the bootstrap builds.
<muzzy> so is it just a nix package?
<infinisil> gchristensen: Whoaaaaa
<infinisil> This guy really put some effort into it since I last checked it out
<infinisil> I actually was one of the first contributors, I refactored his code into a proper nixos module, amazing how far they got
<gchristensen> I hate that this is making me consider running a mailserver again
<dtz> xD
<infinisil> gchristensen: Well I decided a couple hours ago that I'd want that, and now I'm done already, and I had like 0 clues about mailservers
<gchristensen> :|
<gchristensen> can you keep me posted on your ups and downs?
<muzzy> I bookmarked it in case I ever feel like I need to run a mailserver
<infinisil> gchristensen: Sure
<gchristensen> thanks
<gchristensen> ryantm: you should be good to submit one every seven minutes
<gchristensen> maybe even faster :)
<infinisil> Whoa, setting up thunderbird for my new mail worked all automatic :O
<infinisil> On my iPhone I had to manually enter the mailserver
<vaibhavsagar> hey, has anyone looked into setting up transient build slaves on ec2 spot instances?
<vaibhavsagar> it's one of those ideas that is bizarre enough that I would expect a nixos module for it somewhere :)
<infinisil> In comparison I haven't even managed to send a mail with thunderbolt with my old @icloud.com email
s2mitrov has joined #nixos
pie_ has quit [Ping timeout: 256 seconds]
fragamus has joined #nixos
<boomshroom> In my effort to bootstrap nix on my university account, I'm having the libsodium tests fail due to `fork: retry: Resource temporarily unavailable`. I'm not permitted to raise the process count. Interestingly, the first time I tried, I got 21 failures and the second attempt I only got 7.
<s2mitrov> https://i.imgur.com/XS5oBzM.png Hey, can someone tell me how to make sure /nix doesn't run out of space during `nixos-install`?
<boomshroom> Is there a way to get around this such that the build succeeds without raising the process limit?
<infinisil> s2mitrov: Use a minimal config for the first install, then boot into the installed system and rebuild with your actual config
<s2mitrov> infinisil: how minimal? the one i have right now is pretty barebones (only added nix-repl, nix-prefetch-scripts to systemPackages, and disabled DE and added xmonad as my WM
<s2mitrov> I also uncommented bash completion, if that makes any difference
<infinisil> s2mitrov: Maybe just <nixpkgs/nixos/modules/profiles/minimal.nix>
<infinisil> s2mitrov: And xmonad is pretty big, it includes ghc
<infinisil> And X is pretty big too of course
<s2mitrov> I'll give that a try
<infinisil> How much RAM do you have?
<s2mitrov> My PC has 8GB but I'm just installing on a VM for now to get the hang of nix/nixOS which is limited to 4GB
<infinisil> Huh, 4GB should be plenty, and you got enough disk space for it too?
<gchristensen> <vaibhavsagar yes Hydra does this:)
<s2mitrov> lpaste.net/363265 is my config
<infinisil> Weird
<s2mitrov> i'd hope so. the VM has 50GB allotted
<infinisil> Well let's just hope the minimal config works
<infinisil> I need to go sleep now, good luck!
<s2mitrov> Thanks!
<vaibhavsagar> gchristensen: that's pretty awesome, I didn't know!
<hyper_ch> how to find out if something from staging was pushed to master?
<gchristensen> Yep we can talk more about it on the morning. I'm later for bed. Night!
<boomshroom> Take 3: 11 errors. Is it possible to disable tests?
<vaibhavsagar> good night!
blankhart has quit [Quit: WeeChat 1.9.1]
<boomshroom> How can I disable tests for a single nix-store --realise?
schoppenhauer has quit [Ping timeout: 256 seconds]
<vaibhavsagar> boomshroom: you'd have to do it from the derivation
<vaibhavsagar> something like `checkPhase = "true"`
schoppenhauer has joined #nixos
<boomshroom> vaibhavsagar: Would other packages use the overrided version as a dependency? This is a library that Nix itself depends on. The tests probably would pass if it weren't for ulimit.
<vaibhavsagar> boomshroom: if you made them use the overridden version, I think yes
<boomshroom> There are 4 other packages that Nix transitively depends on. How would I know which ones themselves require libsodium? (they are sqlite-autoconf, sqlite, and curl and sqlite libraries for perl)
johnw has joined #nixos
johnw has quit [Ping timeout: 265 seconds]
<boomshroom> If I've installed nix into a nonstandard prefix with a nonstandard store, where do I put config.nix? My nixos installation has it at ~/.config/nixpkgs/ while the nix pill specifies ~/.nixpkgs/
drakonis has quit [Read error: Connection reset by peer]
Lisanna has quit [Quit: Lisanna]
Lisanna has joined #nixos
Lisanna has quit [Client Quit]
Lisanna has joined #nixos
Mateon3 has joined #nixos
Lisanna has quit [Remote host closed the connection]
Mateon1 has quit [Ping timeout: 268 seconds]
Mateon3 is now known as Mateon1
Guest21612 has joined #nixos
<Guest21612> Does boot.loader.grub require a Bios Boot Partition?
<Guest21612> I was hoping to be able to use boot.loader.grub like boot.loader.systemd-boot
marusich has quit [Ping timeout: 245 seconds]
<Guest21612> Since that one doesn't require a Bios Boot Partition
marusich has joined #nixos
johnw has joined #nixos
johnw has quit [Ping timeout: 265 seconds]
hamishmack has quit [Ping timeout: 240 seconds]
<Guest21612> Is there also a way to run nixos-rebuild on /mnt instead of on your own system?
<muzzy> well I know nix-install has the --root option...
<Guest21612> nix-install?
johnw has joined #nixos
<Guest21612> I know that --root option for nixos-install
cinimod has joined #nixos
s2mitrov has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
cinimod has quit [Ping timeout: 240 seconds]
<Guest21612> The main problem is that every time I'm recovering from USB, running nixos-install results redownloading everything that already exists in the /nix/store in /mnt.
spear2 has quit [Remote host closed the connection]
plakband has quit [Ping timeout: 260 seconds]
pxc has joined #nixos
<boomshroom> Nix managed to build itself, but trying to run the bootstrapped version, complains about libz.so.1 being missing. Any tips?
<vaibhavsagar> boomshroom: you need zlib
<boomshroom> Shouldn't that have been installed when running `nix-env -i nix`?
<vaibhavsagar> I believe so, but I thought you were bootstrapping it
<boomshroom> I already had a manually built installation sitting in ~/opt. I used that to install nix to ~/.nix/ and ~/nix-profile.
<vaibhavsagar> can you do `ldd $(which nix)`?
<boomshroom> It's linked to the system zlib which does exist as nix is linked.
<vaibhavsagar> hmm, weird
hamishmack has joined #nixos
<Guest21612> Why is my mkpasswd -m sha-512 always wrong?
<Guest21612> I take the hash and put it in /etc/passwd. Try relogin and it never wokrs/
<Guest21612> Is there a way to check if th hash generated is correct?
marusich has quit [Quit: Leaving]
muzzy has quit [Remote host closed the connection]
Rusty1_ has quit [Quit: Konversation terminated!]
muzzy has joined #nixos
aarvar has joined #nixos
endformationage has quit [Quit: WeeChat 1.9.1]
<boomshroom> How can I check my nixpkgs version without nixos-version?
<boomshroom> NVM I think I found it
tomberek has quit [Quit: Page closed]
cinimod has joined #nixos
cinimod has quit [Ping timeout: 245 seconds]
<boomshroom> Nix version 2.0 was released?
<MP2E> yep, it's now the default in the nix unstable channel as well
<boomshroom> Updating NixOS now.
<boomshroom> I should mention my laptop has a dedicated nix partition and it's completely full to the point where Nix won't even let me delete anything.
mounty_ has quit [Ping timeout: 260 seconds]
boomshroom_ has joined #nixos
<boomshroom_> My browser claimed connections were closed
<dmj`> can someone help me with node2nix
<boomshroom_> I can't even do a GC on my laptop because the partition is too full. `error: opening lock file '.../channels.lock': No space left on device`
boomshroom has quit [Ping timeout: 260 seconds]
<Guest21612> When running nixos-install multiple times, appears that changing the password specification for a custom user doesn't update.
<Guest21612> So once you get it wrong in the beginning it's always wrong... I have to try wiping out the entire /mnt/etc
<boomshroom_> How can I get Nix running on my laptop again if it can't even lock the store?
muzzy has quit [Ping timeout: 256 seconds]
boomshroom_ is now known as boomshroom
<boomshroom> I can have my mac tell my desktop to build its packages for it? Sweet!
orivej has joined #nixos
<Guest21612> users.users.<name?>.passwordFile What kind of encrypted file does it expect?
Wharncliffe has quit [Quit: Lost terminal]
<boomshroom> What's a file in nix that's safe to delete to make room for a lock file?
<boomshroom> I should also ask whether /nix or /nix/store should be on the partition. If the store is shared, not including /nix/var seems like it would not detect GC roots of the other.
<vaibhavsagar> boomshroom: are there any other files that you could delete?
<vaibhavsagar> in /tmp for example
asuryawanshi has joined #nixos
<boomshroom> The partition is just /nix. It's separate from the rest of the machine. I suppose I could expand the partition slightly.
<boomshroom> Mac claims the ZFS dataset cannot be resized.
jtojnar_ has joined #nixos
jtojnar has quit [Ping timeout: 260 seconds]
jtojnar_ is now known as jtojnar
<vaibhavsagar> boomshroom: what about something in /nix/var/log/nix/drvs/?
<boomshroom> those are safe to delete?
<vaibhavsagar> no idea
<vaibhavsagar> but it looks like there's no harm
<vaibhavsagar> worth a shot anyway
<boomshroom> Now GCing
<boomshroom> I deleted one of the entries, it managed to delete 7 paths before running out of memory. Should I delete everything in there?
<{^_^}> Channel nixos-17.09 advanced to https://github.com/NixOS/nixpkgs/commit/30a782c036e (from 10 hours ago, history: https://channels.nix.gsc.io/nixos-17.09)
<vaibhavsagar> I wouldn't delete everything
<vaibhavsagar> look for a big file
<vaibhavsagar> the point is to delete the minimum so you can progress
<boomshroom> Most of the logs are 29K. there are a couple that reach 30K.
MercurialAlchemi has joined #nixos
<boomshroom> running nix-collect-garbage -d seems to create more data when run than it deletes. :(
<dmj`> Has anyone here used node2nix
cinimod has joined #nixos
winem_ has joined #nixos
<boomshroom> Store is finally being cleaned up!
MercurialAlchemi has quit [Ping timeout: 240 seconds]
winem_ has quit [Client Quit]
gcrl has joined #nixos
lopsided98 has quit [Ping timeout: 245 seconds]
winem_ has joined #nixos
lopsided98 has joined #nixos
winem_ has quit [Read error: Connection reset by peer]
asuryawanshi has quit [Remote host closed the connection]
loonquawl has quit [Quit: loonquawl]
<boomshroom> What's the recommended way to install nix 2.0 in an unprivileged environment? I'm willing to throw any my work to get nix on my student drive if it means not dealing with Perl anymore.
<jbetz> @djinn a -> [a]
<jbetz> oops, wrong channel
rogue_koder has quit [Read error: Connection reset by peer]
rogue_koder has joined #nixos
wladz has quit [Ping timeout: 240 seconds]
<boomshroom> jbetz: I spy Haskell?
wladz has joined #nixos
<jbetz> you do indeed
<boomshroom> Nix likes taking its sweet time with deleting trash.
Guest21612 has quit [Ping timeout: 245 seconds]
ElGoreLoco has joined #nixos
<tertle||eltret> nix-os rebuild switch
zzamboni has joined #nixos
ElGoreLoco has quit [Client Quit]
rauno has joined #nixos
<boomshroom> 114 MiB freed. It then tried to delete a link that didn't exist and it failed. Any idea why Nix would try to delete a nonexistant link?
MercurialAlchemi has joined #nixos
rauno has quit [Ping timeout: 252 seconds]
aarvar has quit [Ping timeout: 260 seconds]
MP2E has quit [Remote host closed the connection]
<symphorien> boomshroom: perl is a build dependency of virtually evrything so I guess you wouldn't get rid of it so easily
MP2E has joined #nixos
Swant has quit [Ping timeout: 606 seconds]
rauno has joined #nixos
<boomshroom> Well, I'll try some more tomorrow. Good night!
boomshroom has left #nixos [#nixos]
Swant has joined #nixos
avn has quit [Ping timeout: 240 seconds]
hyper_ch2 has joined #nixos
hotfuzz_ has quit [Read error: Connection reset by peer]
<hyper_ch2> Mic92: ha, recompiling is finished... yesterday at some point it just stopped compiling... I had to ctr-c the nixos-rebuild switch command
hotfuzz_ has joined #nixos
pxc has quit [Ping timeout: 240 seconds]
hyper_ch2 has quit [Ping timeout: 260 seconds]
hyper_ch2 has joined #nixos
hyper_ch2 has quit [Ping timeout: 260 seconds]
hyper_ch2 has joined #nixos
jtojnar has quit [Remote host closed the connection]
MichaelRaskin has quit [Quit: MichaelRaskin]
zzamboni1 has joined #nixos
roberth has joined #nixos
zzamboni1 has quit [Read error: Connection reset by peer]
zzamboni has quit [Read error: Connection reset by peer]
rauno has quit [Ping timeout: 268 seconds]
Itkovian has joined #nixos
hyper_ch2 has quit [Quit: Page closed]
asuryawanshi has joined #nixos
Tucky has joined #nixos
mduggie has joined #nixos
<mduggie> was there something weird going on with su and sudo in nixpkgs earlier today, or was that just me
<mduggie> something with wrapper.c
asuryawanshi has quit [Ping timeout: 252 seconds]
jtojnar has joined #nixos
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jensens has joined #nixos
mounty_ has joined #nixos
jbetz has left #nixos [#nixos]
rauno has joined #nixos
zzamboni has joined #nixos
tnks has left #nixos [#nixos]
tkral has joined #nixos
cinimod has quit [Remote host closed the connection]
cinimod has joined #nixos
ThatDocsLady has joined #nixos
asymmetric has joined #nixos
chisui has joined #nixos
mounty_ has quit [Ping timeout: 240 seconds]
jluttine has quit [Ping timeout: 260 seconds]
mduggie has quit [Quit: ZNC 1.6.6 - http://znc.in]
jluttine has joined #nixos
rindvieh has joined #nixos
civodul has joined #nixos
obadz- has joined #nixos
obadz has quit [Ping timeout: 260 seconds]
obadz- is now known as obadz
rogue_koder has quit [Quit: Konversation terminated!]
rogue_koder has joined #nixos
rogue_koder has quit [Client Quit]
rogue_koder_ has joined #nixos
rogue_koder_ has quit [Client Quit]
tkral has quit [Ping timeout: 256 seconds]
ThatDocsLady has quit [Ping timeout: 240 seconds]
marek has quit [Ping timeout: 260 seconds]
marek has joined #nixos
asymmetric has quit [Ping timeout: 256 seconds]
ThatDocsLady has joined #nixos
cinimod has quit [Ping timeout: 256 seconds]
mduggie has joined #nixos
ThatDocsLady_ has joined #nixos
<Mic92> hyper_ch: so what?
wangoe has joined #nixos
marek has quit [Ping timeout: 268 seconds]
ThatDocsLady has quit [Ping timeout: 276 seconds]
marek_ has joined #nixos
<{^_^}> Channel nixos-17.09 advanced to https://github.com/NixOS/nixpkgs/commit/df691948987 (from 12 hours ago, history: https://channels.nix.gsc.io/nixos-17.09)
marek_ has quit [Ping timeout: 245 seconds]
alex`` has joined #nixos
ThatDocsLady_ has quit [Ping timeout: 245 seconds]
marek_ has joined #nixos
cinimod has joined #nixos
ThatDocsLady has joined #nixos
Itkovian has joined #nixos
<mduggie> gonna make a PR on nixpkgs for the first time, is there a guide somewhere for doing this?
ThatDocsLady_ has joined #nixos
thc202 has joined #nixos
ThatDocsLady_ has quit [Read error: Connection reset by peer]
orivej_ has joined #nixos
ThatDocsLady has quit [Ping timeout: 240 seconds]
ThatDocsLady_ has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
periklis has joined #nixos
humanoyd has joined #nixos
raynold has quit [Quit: Connection closed for inactivity]
<manveru> can someone explain the difference between the rev and ref arguments to builtins.fetchGit?
<Ke> I would think rev is the commit hash and ref can be a commit, tag or branch
mariel__ has joined #nixos
lopsided98 has quit [Ping timeout: 245 seconds]
hyper_ch2 has joined #nixos
<Ke> just a guess though
__monty__ has joined #nixos
vaninwagen has joined #nixos
marek_ has quit [Ping timeout: 256 seconds]
ThatDocsLady_ has quit [Ping timeout: 260 seconds]
vaninwagen has quit [Client Quit]
vaninwagen has joined #nixos
marek_ has joined #nixos
periklis has quit [Ping timeout: 240 seconds]
<manveru> ok, thanks
zzamboni has quit [Quit: Leaving.]
<manveru> i was confused by https://github.com/NixOS/nix/commit/38539b943a060d9cdfc24d6e5d997c0885b8aa2f where rev is a branch name
lopsided98 has joined #nixos
<Ke> I guess that disproves my conjecture
<manveru> well, that was before ref existed
<manveru> anyway, got it working with rev :)
scribbler has joined #nixos
alex`` has quit [Ping timeout: 255 seconds]
zzamboni has joined #nixos
vidbina has joined #nixos
asuryawanshi has joined #nixos
zzamboni has quit [Ping timeout: 240 seconds]
scribbler has quit [Ping timeout: 256 seconds]
zzamboni has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
zzamboni has quit [Client Quit]
asuryawanshi has joined #nixos
nick_l has joined #nixos
<nick_l> In nixops, how do I refer to the AWS instance_id of machine name bobcat in the configuration of another machine?
<srk> just bobcat :)
<srk> nick_l: check /etc/hosts on one of the targets
cinimod has quit [Ping timeout: 268 seconds]
pie_ has joined #nixos
ottidmes has joined #nixos
<nick_l> srk: that contains mappings from host names to IPs I want to have the instance_id.
thblt has joined #nixos
<nick_l> srk: I am already using config.deployment.ec2.instanceId
wangoe has quit [Quit: WeeChat 1.9.1]
<nick_l> srk: but that only works for the current host being defined.
<nick_l> srk: I need something like nodes.bobat.config.deployment.ec2.instanceId is that exists?
<manveru> nick_l: i think you can access it via nodes
cinimod has joined #nixos
zzamboni has joined #nixos
<manveru> does nodes.bobcat.deployment.ec2.instanceId work?
<nick_l> manveru: no
<fearlessKim[m]> how - in nixops - can I add a file to the base image ? I would like to install a file in a well known location and use it as init program
<manveru> hmm
<nick_l> manveru: but with config preprended to deployment it does.
<nick_l> manveru: so, the thing I expected to work actually does.
TweyII has joined #nixos
<nick_l> That's a good thing.
<manveru> :D
<manveru> yeah, sorry, i forgot the details
<manveru> `domains = (mapAttrsToList (key: value: value.config.networking.domain) nodes);` i had this code still around
<manveru> so it's def with config
<nick_l> manveru: are you an active user of nixops?
<nick_l> manveru: or did you already abandon it?
<manveru> i'm still using it for a few machines, but only a few times a year to update stuff
<srk> manveru: cool
<srk> fearlessKim[m]: create a service with ExecStart pointing to your file
<manveru> it's just awesome for not having to keep the state of your servers in mind, it's all in nix :)
<srk> fearlessKim[m]: your file can then reside in a store as is common in nixos
wladz has quit [Ping timeout: 240 seconds]
<nick_l> manveru: but I guess you don't use a lot of cloud resources?
<srk> manveru: exactly, like currently I would like to have a bare minimum nixops for ssh only (none backend) that could work without any state
<manveru> fearlessKim[m]: i think you mean instead of systemd-init?
<fearlessKim[m]> srk I want to use the file as init so I don't think systemd will have been launched by then
wladz has joined #nixos
<srk> fearlessKim[m]: ah, I see, that's more hacking for you then but the same principle should apply
<fearlessKim[m]> manveru: I mean as a kernel argument init=my_init
<srk> right
<manveru> nick_l: nope, i've got a few servers on hetzner and a few VPS around the world for my VPNs
<fearlessKim[m]> The goal is to work around this problem https://github.com/NixOS/nixpkgs/pull/33067
<nick_l> manveru: I am basically have to figure out for each cloud resource whether nixops supports it.
<nick_l> having*
<fearlessKim[m]> by having my own init just creating the /dev/root symlink and then handover startup to legacy init
<manveru> nixops supports anything running nixos, it's just that the initial nixos install might not be supported
<michiel_l> Did anyone ever run into a "cannot connect to daemon at ‘/nix/var/nix/daemon-socket/socket’: Connection refused"?
<michiel_l> I've done a bind remount of /nix/store because I ran out of inodes
<manveru> what does `systemctl status nix-daemon` say?
<michiel_l> active, running
<manveru> you can force nix to ignore the daemon by setting `NIX_REMOTE=local` env var
<manveru> but maybe consider restarting the daemon
<michiel_l> Everytime I do that, I get
<michiel_l> Mar 08 11:04:05 ComCon systemd[1]: nix-daemon.service: Main process exited, code=exited, status=1/FAILURE
<michiel_l> Mar 08 11:04:05 ComCon systemd[1]: nix-daemon.service: Unit entered failed state.
<michiel_l> Mar 08 11:04:05 ComCon systemd[1]: nix-daemon.service: Failed with result 'exit-code'.
<michiel_l> Mar 08 11:04:05 ComCon systemd[1]: Stopped Nix Daemon.
vidbina has quit [Ping timeout: 268 seconds]
<manveru> what does `journalctl -xe` say about that?
<michiel_l> Mar 08 11:28:07 ComCon systemd[1]: Started Nix Daemon.
<michiel_l> -- Subject: Unit nix-daemon.service has finished start-up
<michiel_l> -- Defined-By: systemd
<michiel_l> ..
<michiel_l> -- Unit nix-daemon.service has finished starting up.
<michiel_l> -- The start-up result is done
<manveru> maybe try http://nixpaste.lbr.uno/ next time to paste many lines :)
<michiel_l> Will do
<manveru> but ok... seems like the reason why it failed is not in the logs?
<michiel_l> Well, while it worked it reported accepted connection from pid 21764, user root (trusted)
<michiel_l> Many lines with such reports
<michiel_l> Now there are none
<michiel_l> So I'm working from a bind mounted second disk
<michiel_l> @manveru: fixed it. I stopped nix-daemon and restarted nix-daemon.socket
<michiel_l> Thanks for helping!
MP2E has quit [Remote host closed the connection]
<manveru> cool :D
ottidmes has quit [Quit: WeeChat 1.9.1]
asymmetric has joined #nixos
ixxie has joined #nixos
sigmundv has joined #nixos
asymmetric has quit [Ping timeout: 252 seconds]
MarcWeber has quit [Remote host closed the connection]
chisui has quit [Ping timeout: 260 seconds]
Thra11 has joined #nixos
esteth has joined #nixos
<esteth> Hi folks. I submitted a PR to nixpkgs, do I need to do something to get a review, or should I just wait?
<NinjaTrappeur> esteh: you can just wait.
<LnL> is it still on the first page?
asymmetric has joined #nixos
ma27 has joined #nixos
aerozephyr has joined #nixos
asymmetric has quit [Client Quit]
__Sander__ has joined #nixos
justanotheruser has quit [Ping timeout: 256 seconds]
justan0theruser has joined #nixos
iyzsong has joined #nixos
justan0theruser has quit [Ping timeout: 256 seconds]
oida has quit [Ping timeout: 248 seconds]
justan0theruser has joined #nixos
Soft has joined #nixos
<esteth> LnL: It is not
<esteth> NinjaTrappeur: Thanks :)
<Soft> I am having problems getting Radeon RX Vega working with Xorg on nixos, here's relevant bits from glxinfo https://dpaste.de/geMw
<NinjaTrappeur> esteth, note that I am not a core contributor, I may be wrong ><
<NinjaTrappeur> but I did not needed to ping anybody so far
<Soft> dmesg says that amdgpu is in use
<esteth> NinjaTrappeur: That's OK, thanks anyway :) I can wait - it would just be easier for my colleagues to be able to nix-env -i rather than pulling my nixpkgs fork :)
<Soft> but it just doesn't seem work and I end up with llvmpipe
<goibhniu> Soft: can you share your configuration.nix please?
simukis has joined #nixos
<Soft> goibhniu: https://dpaste.de/Dfdc
<Soft> also I have amdgpu in boot.initrd.availableKernelModules
pkill9 has joined #nixos
<goibhniu> Soft: I don't think you need to adjust boot.initrd.availableKernelModules ... that's a pretty recent GPU, can you show what you get for `nix-info`?
ma271 has joined #nixos
ma27 has quit [Ping timeout: 256 seconds]
<goibhniu> Soft: maybe you should give nixos-unstable a shot
Shell has joined #nixos
<Soft> yeah I was wondering about that, could I maybe just get some of the derivation from unstable
patrl has joined #nixos
<sphalerite> esteth: depending on what it's about, you may want to ping the package maintainer
<clever> with nixos-unstable 831ef4756e3 i ran into kernel related issues that just stopped amdgpu from working entirely
<sphalerite> esteth: they do unfortunately sometimes get buried
<clever> a rollback without a reboot didnt fix it
<clever> but rebooting to an older generation (f607771d0f5) did fix it
<goibhniu> Soft: maybe you should try a newer kernel
<Shell> Hey all... how would I reference 389-ds-base in the Nix language? Trying to do that results in the language assuming 389 is a number and so trying to subtract ds-base from it, which is obviously incorrect.
<clever> Shell: pkgs."389-ds-base"
pie_ has quit [Ping timeout: 256 seconds]
<Shell> Ah. So I have to ask for pkgs rather than 389-ds-base in my package file?
Thra11 has quit [Ping timeout: 256 seconds]
<clever> you might be able to use { std, "389-ds-base" }@args: .... args."389-ds-base" as well
<clever> stdenv*
* Shell nods.
zzamboni has quit [Quit: Leaving.]
Thra11 has joined #nixos
zzamboni has joined #nixos
Neo-- has joined #nixos
<LnL> esteth: you can poke people here if nobody looked at it and it disappeared from the first page
ottidmes has joined #nixos
<Soft> hmm yeah unstable channel seems to have fixed the probelm , now I get the correct driver
alex`` has joined #nixos
alexteves has joined #nixos
freeman42x]NixOS has joined #nixos
<mfiano> So I just discovered that NixOS is not ideal to use for Common Lisp development
<NinjaTrappeur> Is there any way/tool/function to automatically infer a shell.nix from a default.nix derivation?
<sphalerite> NinjaTrappeur: nix-shell default.nix
<sphalerite> NinjaTrappeur: unless you want a shell with the derivation built and available, in which case `nix-shell -p`
<mfiano> My Lisp images in Emacs/SLIME are corrupt because CFFI cannot interface with foreign libraries such as SDL2 even though they are installed.
<sphalerite> mfiano: by "cannot interface" I'm guessing you mean "cannot find"?
<mfiano> Yes.
<sphalerite> This is usually addressed by wrappers that set LD_LIBRARY_PATH I think
<mfiano> That's not really possible in SLIME
<goibhniu> Soft: great! The next stable release is coming up, so you could switch to that soon.
<fadenb> obadz-: Are you using Citrix on NixOS (just stumbled about your i3wm issue with the ica client fullscreen)?
<NinjaTrappeur> sphalerite: http://nixpaste.lbr.uno/Lrpf1-OY?nix
<fadenb> I am having trouble getting the system to open .ica files with the ica client instead of open office
<NinjaTrappeur> My question was probably confusing, do you get what I am trying to achieve?
oida has joined #nixos
<sphalerite> NinjaTrappeur: oh right. In this case the package needs to be composed by the top-level nixpkgs expression, since it has some arguments that it doesn't know where to get
<sphalerite> NinjaTrappeur: if you want the nevironment for building godot, nix-shell nixpkgs -A godot
<sphalerite> NinjaTrappeur: if you want a shell containing godot, nix-shell -p '(import ./nixpkgs {}).godot'
<rawtaz> moin peeps
<sphalerite> mfiano: maybe you'll wnat to resort to an FHS user env then
<sphalerite> mfiano: which does some user namespacing magic to pretend you're in a FHS env
mduggie has quit [Ping timeout: 255 seconds]
<mfiano> How would I do that?
hakujin has joined #nixos
<NinjaTrappeur> sphalerite: Oh, exactly what I was looking for, thanks!
seanparsons has quit [Quit: ZNC 1.6.5 - http://znc.in]
seanparsons has joined #nixos
<genesis> i installed cached version of openshot-qt, i still have https://github.com/NixOS/nixpkgs/issues/24256
acarrico has joined #nixos
<genesis> i've this bug on libqxcb since 2-3 days.
hakujin has quit [Ping timeout: 265 seconds]
mduggie has joined #nixos
Jackneilll has quit [Read error: Connection reset by peer]
<mfiano> sphalerite: Thanks but I don't understand how to use it
<genesis> https://github.com/NixOS/nixpkgs/issues/36173 perharps this is more accurate :(
mariel__ has quit [Ping timeout: 256 seconds]
Jackneill has joined #nixos
Jackneill has quit [Remote host closed the connection]
<sphalerite> mfiano: write a shell.nix like in the example, then nix-shell --run 'ls /usr'
<sphalerite> or maybe 'ls /lib'
<mfiano> The problem is Emacs and the SLIME package/Quicklisp handles all the paths
<sphalerite> I'm not sure I've actually used it before myself so I don't know exactly where it puts paths
<sphalerite> can't you run emacs and SLIME and quicklisp in the FHS user env?
<mfiano> It should be able to find libraries in my home directory or pulled in with Quicklisp as well
<mfiano> This is all handled by Lisp tooling
<sphalerite> ah
darlan has joined #nixos
<sphalerite> https://github.com/cffi/cffi/blob/0328f9cf90e67ec00d70e9ba0fd5661e38dcd6d5/src/libraries.lisp#L31-L46 maybe set FOREIGN-LIBRARY-DIRECTORIES ? (caveat: I don't know jack about lisp really)
<mfiano> I was hoping to get back to Lisp development today after 2 weeks of OS installing. I might just have to revert one of my boxes
Jackneill has joined #nixos
darlan has quit [Quit: Communi 3.5.0 - http://communi.github.com]
jtojnar_ has joined #nixos
jtojnar has quit [Read error: Connection reset by peer]
jtojnar_ has quit [Remote host closed the connection]
jtojnar has joined #nixos
humanoyd has quit [Quit: WeeChat 2.0.1]
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nixos
pie_ has joined #nixos
leat has quit [Ping timeout: 256 seconds]
xeji has joined #nixos
xeji has quit [Quit: WeeChat 2.0]
ebzzry_ has joined #nixos
<sphalerite> mfiano: :( one other thing to consider might be running your distro of choice in systemd-nspawn/nsjail/whatever
ma27 has joined #nixos
tkral has joined #nixos
ma271 has quit [Ping timeout: 245 seconds]
tkral is now known as kadel
periklis has joined #nixos
<goibhniu> mfiano: maybe it's worth asking on #guix too ... they know a thing or two about lisp :D
<sphalerite> ^ !!!
ebzzry_ has quit [Ping timeout: 248 seconds]
ebzzry_ has joined #nixos
<mfiano> Ok thnaks
tkral has joined #nixos
cinimod has quit [Ping timeout: 260 seconds]
<kadel> hi everyone, stupid question from nixos noobie. Why root sees more packages than a regular user? If I run following command as root 'nix-env -qa | wc -l' and as a normal user, i get different numbers (root has more)
Itkovian_ has joined #nixos
<goibhniu> hi kadel, is your user using a different channel?
<etu> kadel: Have you enabled unfree for root but not for your user?
<etu> kadel: The search doesn't show unfree packages unless you have enabled it
Itkovian has quit [Ping timeout: 240 seconds]
vaninwagen has quit [Ping timeout: 255 seconds]
kadel has quit [Ping timeout: 240 seconds]
asuryawanshi has quit [Ping timeout: 240 seconds]
vaninwagen has joined #nixos
FRidh has joined #nixos
FRidh has quit [Remote host closed the connection]
orivej_ has quit [Ping timeout: 260 seconds]
patrl has quit [Quit: WeeChat 1.9.1]
* fearlessKim[m] sent a long message: fearlessKim[m]_2018-03-08_13:15:05.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/mXfUfFbTZHPganwhSHVcRJlE>
NickHu__ has joined #nixos
NickHu_ has joined #nixos
<NickHu_> Hi, can anyone tell me how to use the emacs proofgeneral package in NixOS? It doesn't work with emacsPackagesNg
<NickHu_> And I can't find any documentation describing how to use the old emacsPackages framework
Gohla has quit [Ping timeout: 256 seconds]
NickHu__ has quit [Ping timeout: 260 seconds]
cinimod has joined #nixos
thblt has quit [Ping timeout: 260 seconds]
pie_ has quit [Ping timeout: 248 seconds]
Gohla has joined #nixos
ma27 has quit [Ping timeout: 260 seconds]
ma27 has joined #nixos
<gchristensen> has anyone seen a case where nixops will prompt for an SSH password for a system after its firsts deployment? it places the SSH key it wants to use, but then seems to not use it. this is blocking my ability to fix ofborg's evaluation failures.
mariel__ has joined #nixos
kadel has joined #nixos
arjen-jonathan has joined #nixos
<globin> gchristensen: using an ssh-agent?
disasm has quit [Remote host closed the connection]
<gchristensen> I am, the weird thing is it works for some servers and not others: https://gist.github.com/grahamc/afcf528e7b7a037e01a52bf17b56f137
<globin> gchristensen: try without (no SSH_AUTH_SOCK), we actually use that as a workaround that nixops uses our keys, not the one it deploys
disasm has joined #nixos
<gchristensen> I unset it, but no luck. here is an interesting thing, in the succeeding one I see debug1: Trying private key: /run/user/1000/nixops-tmp5BidOn/id_nixops-builder-
<gchristensen> but the failing one it never even tries
cinimod has quit [Remote host closed the connection]
leat has joined #nixos
cinimod has joined #nixos
<goibhniu> hi genesis, let's continue the qt discussion here
<goibhniu> even nix-build outputs with qt libs can mess things up
<genesis> i just try cached version, in fact, all my qt is broken
<goibhniu> genesis: so you want to avoid having any qt programs that use an outdated version hanging around
<globin> gchristensen: hmm :/ sry can't help otherwise since we're not using the nixops keys
<genesis> yes but for example, i don't see any qtwebkit 5.10 version
<goibhniu> genesis: yeah, it's very easy for all qt stuff to break
<gchristensen> oh you're not?
<gchristensen> globin: can I tell nixops to use a different, specific key?
<genesis> hum i use mainly qt apps, lxqt as desktop, that would be a no-go to switch for nixos right now ^^
<goibhniu> genesis: `nix-store -q --referrers /nix/store/*-qt*-5.9.2` (or whatever the version is that you want to purge) ... can be helpful
mariel__ has quit [Quit: Leaving]
<goibhniu> genesis: well, they will work fine if you keep them all in systemPackages
<genesis> it gaves nothing
<globin> gchristensen: -- -i key maybe?
<goibhniu> genesis: it's just when you install extra things via nix-env that you get problems
<goibhniu> genesis: you need to use the correct version
<goibhniu> ... number
<gchristensen> globin: hmm worth a try. an interesting thing I'm seeing here is in nixops export, configsPath, and toplevel aren't set
<gchristensen> globin: thank you for the help
<genesis> hum i could try to put them in their, but i don't understand what it does really.
<globin> gchristensen: ah there was a bugfix for that I think
cinimod` has joined #nixos
<gchristensen> %)
kadel has quit [Ping timeout: 256 seconds]
<globin> gchristensen: ah no i meant something else
<gchristensen> globin: oh, what?
tkral_ has joined #nixos
tkral_ is now known as kadel
<kadel> etu: ah, I forgot about non free packages. That was it. Thank you for your help etu.
cinimod has quit [Ping timeout: 240 seconds]
<gchristensen> ahh ok
rindvieh has quit [Remote host closed the connection]
<gchristensen> I think the problem is that I provisioned them with force-reboot the first time
<gchristensen> and the SSH key used for the first stage stopped working after the second stage
kadel has quit [Client Quit]
ebzzry_ has quit [Ping timeout: 256 seconds]
kadel has joined #nixos
<hyper_ch2> never got any feedback to my mail to the nix list :(
cnu- has quit [Ping timeout: 256 seconds]
cnu- has joined #nixos
cinimod` has quit [Ping timeout: 240 seconds]
ma27 has quit [Quit: WeeChat 2.0]
ma27 has joined #nixos
cinimod` has joined #nixos
hellrazo1 has quit [Ping timeout: 240 seconds]
logzet has joined #nixos
hellrazo1 has joined #nixos
szicari has joined #nixos
rardiol1 has joined #nixos
alex`` has quit [Quit: WeeChat 2.0.1]
rindvieh has joined #nixos
alex`` has joined #nixos
ma27 has quit [Ping timeout: 260 seconds]
rindvieh has quit [Ping timeout: 265 seconds]
alex`` has quit [Client Quit]
pxc has joined #nixos
<catern> me neither :)
pxc has quit [Ping timeout: 240 seconds]
ixxie has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<gchristensen> any nixpkgs contributors available to spam about 30 PRs with a comment for me? :|
<ryantm> gchristensen: Do I need to do something with my PRs?
<gchristensen> I made a mistake when I scaled out last night, provisioning too small of server
<gchristensen> I need to (1) add a check that refuses to start the PR evaluator if the server has too little memory, (2) save the tooling I used to scale out so I don't have to remember this again :P (3) page myself if evals are failing consistently, (4) comment `@grahamcofborg eval` on all the failed PRs since last night
<gchristensen> I'd like help with #4
<nick_l> What route tables are supposed to exist no NixOS?
<ryantm> Sure, I can help with #4
<nick_l> What route tables are supposed to exist on NixOS?
<nick_l> I only see "local".
<gchristensen> thanks ryantm
<nick_l> And what's the extension mechanism?
alex`` has joined #nixos
timokau[m] has joined #nixos
chrios_ has quit [Remote host closed the connection]
chrios has joined #nixos
rauno has quit [Remote host closed the connection]
Synthetica has joined #nixos
<ryantm> gchristensen: Done with 4
pie_ has joined #nixos
rindvieh has joined #nixos
<gchristensen> ryantm: really? just for?
<gchristensen> four*
rindvieh has quit [Remote host closed the connection]
rindvieh has joined #nixos
<fearlessKim[m]> gchristensen: I tried on https://github.com/NixOS/nixpkgs/pull/34672 but I guess I am not a trusted user ?
cinimod` has quit [Ping timeout: 265 seconds]
mizu_no__ has joined #nixos
<gchristensen> well hmm indeed fearlessKim[m], sorry. at first I thought maybe your request was just queued
<ryantm> gchristensen: I meant #4 I finished them all :)
<gchristensen> ahh good :)
rainey has joined #nixos
<mfiano> Well, unfortunately I moved away from NixOS on my main development machine
<hyper_ch2> so, it seems hetzner does also assign the main IP via DHCP... so clever's kexec with my configuration and semi-autoinstaller will come in handy :)
jtojnar has quit [Quit: jtojnar]
<gchristensen> mfiano: I'm sorry to hear that :(
zzamboni has quit [Quit: Leaving.]
<vaibhavsagar> gchristensen: tell me more about this comment spam :)
<gchristensen> I think ryantm sorted it out :P
<vaibhavsagar> :thumbsup:
<hyper_ch2> mfiano: why?
zzamboni has joined #nixos
<gchristensen> but since I broke the evaluators overnight, I needed someone to trigger all the evals again for all those PRs :(
<mfiano> Common Lisp tooling just isn't designed to work with Nix. There was some effort by jasom and MichaelRaskin with ql2nix to solve this, but it doesn't work for quite a few Common Lisp tools or packages.
esteth has quit [Quit: Lost terminal]
<ottidmes> mfiano: And you cannot work outside Nix for that? I did most my nodejs development outside Nix, while on NixOS, although I think nodejs support now is a lot better than it was
astsmtl has quit [Ping timeout: 245 seconds]
cinimod` has joined #nixos
<tazjin> mfiano: I develop and deploy CL stuff on and with Nix
Ross has quit [Read error: Connection reset by peer]
<tazjin> We don't use the Quicklisp-wrapper stuff in nixpkgs though
Ross has joined #nixos
<mfiano> I'm a game developer. I have a very specific tooling setup that has worked for me for a decade. I need to interface with lots of foreign libraries, etc.
<mfiano> and be able to use Roswell for CI testing
<mfiano> None of those are possible without serious effort
<mfiano> Meanwhile, my team is waiting for me
<gchristensen> mfiano: aye, that is a tricky situation
<rainey> Hi all, I am learning how to use docker in nix, and am trying to navigate the system. I've loaded a docker image named "editors" which contains the vim package. Now, I've run `docker load < results` successfully and can see the `editors` entry when I run `docker images`. However, I am stuck now. How do I, for example, run vim via this image? Thanks
erasmas has joined #nixos
<fearlessKim[m]> gchristensen: how shall I proceed to trigger the evaluation on https://github.com/NixOS/nixpkgs/pull/34672 then ?
<gchristensen> oh, duh, I really should have just read in to it and realized I should do it :P
<gchristensen> sorry
mizu_no__ has quit [Quit: Computer has gone to sleep.]
<tazjin> mfiano: I see. I think a lot of the foreign library issues with CL+Nix (I've mostly encountered that with openssl) could be alleviated by teaching ASDF to use `pkg-config`
hyper_ch has quit [Ping timeout: 265 seconds]
<srk> hmm, hitting some weird issue with nixopsUnstable and master .. http://nixpaste.lbr.uno/H6Oz2voA
<fearlessKim[m]> srk you might need to use nixops master
<srk> ah, see some patch now
<srk> ty
<srk> would be nice to have nixopsMaster as well :D
MercurialAlchemi has quit [Ping timeout: 252 seconds]
<fearlessKim[m]> it would be nice for any derivation in fact, `getMaster <derivation>`
<srk> yeah
avn has joined #nixos
<srk> huh, now when I run ./dev-shell I won't get the right path
<srk> weird
<datakurre> Dezgeg: You probably know, if it is possible to cross-compile a complete sdimage for raspberry pi 3 on NixOS after all that cross compilation effort? (Or is there something that makes it impossible?)
ElGoreLoco has joined #nixos
<Dezgeg> I haven't looked into it, but I think bgamari- and shlevy have gotten quite far
kim0 has quit [Quit: Connection closed for inactivity]
<ottidmes> fearlessKim[m]: That ain't so hard: master = import <nixpkgs-master> { config = { allowUnfree = true; }; overlays = []; }; in your nixpkgs overrides/overlays and then you can just use pkgs.master.<pkg-name>, but now it will build/download the whole closure of dependencies from master as well, which is what you want, but it might be costly in terms of space
<datakurre> Dezgeg: Good to know. Thanks.
<fearlessKim[m]> ottidmes: where does it find nixpkgs-master ?
<srk> uh, something in my bashrc seems to break nix-shell. need to clean that up
<ottidmes> fearlessKim[m]: In this case it would find it on NIX_PATH, you can also specify a path, and probably an URL (never tried that)
<bgamari-> datakurre, it is
<bgamari-> datakurre, I'm cross-compiling images for a Zynq
<gchristensen> bgamari-: very cool :)
<fearlessKim[m]> ottidmes: but how do you create that then xD ? I was more thinking of an overlay that recurse into all derviations, override them under the name <pkgNAme>-master
<datakurre> bgamari-: Awesome! Do you have public example?
coconnor has quit [Ping timeout: 256 seconds]
<datakurre> Probably I’ll find them if there’s any :)
<bgamari-> datakurre, https://github.com/bgamari/nix-cross-test is a start
coconnor has joined #nixos
<bgamari-> I need to rebase though
<bgamari-> shlevy and I got together last weekend and did some work
<NickHu_> Is anyone here familiar with the old emacs package structure in nix?
<bgamari-> on this
scribbler has joined #nixos
<bgamari-> he did some great work getting perl building more reliably
<bgamari-> unfortunately it doesn't quite work in my case
hakujin has joined #nixos
Thra11 has quit [Ping timeout: 260 seconds]
rainey has quit [Quit: Konversation terminated!]
asuryawanshi has joined #nixos
spietz has joined #nixos
iyzsong has quit [Ping timeout: 268 seconds]
phdoerfler has joined #nixos
Thra11 has joined #nixos
<ottidmes> fearlessKim[m]: Well, I have it for unstable, and I have nixpkgs-unstable on my NIX_PATH via nix.nixPath, and the path I add there is just to my local nixpkgs checkout where it is a git worktree, so it reuses the existing git information (so I don't get multiple checkout of nixpkgs a 600MB)
<phdoerfler> Hi! I want to read a CSV file with nix and create mail aliases for my mailserver based on what's in that CSV. Can I do that reasonably as a nix expression?
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
<ottidmes> phdoerfler: fileContents, splitString should bring you a long way
<gchristensen> phdoerfler: any chance you can make the CSV something else like JSON?
<srk> hmm, how can I check if an element is in list?
<ottidmes> srk: elem
<srk> oh, thanks
<phdoerfler> gchristensen: with a bit of effort I could. My goal is to make it convenient to add new stuff to it, though. In my idea I load the spreadsheet, add a new mail there and save it and off goes nix and does its thing with it.
<phdoerfler> gchristensen: I suppose I could call a cmd line tool such as awk to make the CSV into something that easier to parse for nix. I assume JSON is the format of choice?
<gchristensen> phdoerfler: yeah, nix can parse json already is the main motivation here
<datakurre> bgamari-: Thanks! I’ll look into and learn from that :)
<phdoerfler> gchristensen: ok I'll see how I can make this happen. Thanks for the pointer!
<gchristensen> yeah! also having named attributes in the Nix code will make the errors much nicer to debug :P
<phdoerfler> haha that's a good idea
coot_ has joined #nixos
hyper_ch2 has quit [Quit: Page closed]
<Yaniel> does nix 2.0 have some variable for the build dir?
ryanartecona has joined #nixos
phdoerfler has quit [Ping timeout: 260 seconds]
<nahamu> Yaniel: what do you mean?
dottedmag has quit [Quit: QUIT]
sonarpulse has joined #nixos
zzamboni has quit [Quit: Leaving.]
<Yaniel> cmake's ExternalProject does not seem to understand relative paths
<pie_> is there a simple oneliner for passing a valid ld.so to patchelf --print-interpreter ?
<Yaniel> and renderdoc depends at build time on a custom fork of swig, which is in a separate repo and not added as a submodule
<pie_> i pasted the wrong thing, i want to patch the interpreter
<ottidmes> Yaniel: I believe there is $PWD, or you could call pwd yourself $(pwd)
<Yaniel> I tried that but I seem to have the syntax wrong for cmakeFlags
<ottidmes> Yaniel: You will have to define the cmakeFlags in a preConfigure phase if they contain dynamic values
<Yaniel> isn't that what placeholders avoid
<Yaniel> I'm using $out in cmakeFlags that way
<ottidmes> Yaniel: As far as I know that fails, if you use cmakeFlags as an attribute that way
<gchristensen> Yaniel: https://nixos.org/nix/manual/ search for placeholder
<Yaniel> ottidmes: nix 2 adds ${placeholder "out"} which is replaced with $out at build time
<ottidmes> Yaniel: Here is an example of package using cmake, with what I meant: https://pastebin.com/SgrLXX5Q
<ottidmes> Yaniel: Ah, did not know of that yet
Neo-- has quit [Ping timeout: 260 seconds]
<Yaniel> I know, I used to do the preConfigure hack
<Yaniel> but I want to get rid of it
<Shell> Ooh, when’s Nix 2 becoming a thing?
<Shell> Cos I just did the preconfigure hack.
<aminechikhaoui> Shell: it is already :)
<Yaniel> it is on unstable
<gchristensen> Nix 2 is released as stable, and 18.03 will default to it
<Shell> Ah.
<Yaniel> gchristensen: no mention of substituting in environment variables
scribbler has quit [Ping timeout: 240 seconds]
<gchristensen> ohh you want the build dir
<Yaniel> (this wouldn't be a problem otherwise but I need to patch the autogen.sh of the custom swig so I can't just point to the dir I get from fetchFromGitHub
<Yaniel> )
dottedmag has joined #nixos
<Yaniel> unless I can hook into the unpack phase of multiple sources separately?
xeji has joined #nixos
simukis has quit [Ping timeout: 252 seconds]
<Yaniel> i.e. I have src = fetchFromGitHub {...} and custom_swig = fetchFromGitHub {...}
<Yaniel> is it possible to intercept custom_swig and patch it so that I can just refer to it with ${custom_swig}?
<Yaniel> or do I have the thing I do now where I copy it to the cwd in the postUnpack phase and patch it there
<coconnor> speaking of nix 2. Is there an equivalent to nix-env in the generic nix command?
<Yaniel> and in the latter case, is there a way to point at it?
<gchristensen> you can do whatever you want, custom_swig = stdenv.mkDerivation { name = "my-patched-swig"; src = fetchFromGitHub { ... }; ... whatever };
Itkovian_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<manveru> coconnor: not yet
rindvieh has quit [Remote host closed the connection]
<Yaniel> gchristensen I don't want to build it, though
<gchristensen> Yaniel: you can do whatever you want. let me make a bigger example
<fearlessKim[m]> coconnor: I don't think so. A `nix install` would make sense
rindvieh has joined #nixos
<Yaniel> looks slightly better
<gchristensen> Yaniel: there is no rule that your src has to be a fetchFro... thing
pkill9 has quit [Ping timeout: 252 seconds]
Tucky has quit [Quit: WeeChat 2.0.1]
electrocat has joined #nixos
shabius_ has quit [Quit: Leaving]
sonarpulse has quit [Quit: Leaving]
sonarpulse has joined #nixos
sonarpulse has quit [Remote host closed the connection]
vidbina has joined #nixos
sonarpulse has joined #nixos
shabius has joined #nixos
alexteves has quit [Ping timeout: 240 seconds]
mizu_no__ has joined #nixos
<Yaniel> I think I was missing the part about specifying phases for a subderivation
<pie_> how do i fix if i get this from ldd?: libusb-1.0.so.0 => not found
<Yaniel> now that part works, thanks
<pie_> i tried being in a nix-shell with libusb1 but i still get this
logzet has quit [Remote host closed the connection]
pkill9 has joined #nixos
sonarpulse has quit [Quit: Leaving]
<pie_> also, what provides libstdc++? :/
cfricke has joined #nixos
sonarpulse has joined #nixos
plakband has joined #nixos
<electrocat> pie_: gcc
sonarpulse has quit [Client Quit]
sonarpulse has joined #nixos
sonarpulse has quit [Client Quit]
sonarpulse has joined #nixos
<mbrock> ever since Nix 2.0 was released, our channel users have reported that Nix is compiling stuff instead of using our binary cache... I wonder what has changed. Maybe I just need to upgrade my Hydra box to Nix 2.0...
sonarpulse has quit [Client Quit]
pkill9 has quit [Ping timeout: 256 seconds]
amir has quit [Read error: Connection reset by peer]
Itkovian has joined #nixos
amir has joined #nixos
alexteves has joined #nixos
Thra11 has quit [Ping timeout: 240 seconds]
spietz has quit [Quit: WeeChat 1.9.1]
sonarpulse has joined #nixos
Itkovian has quit [Max SendQ exceeded]
<pie_> electrocat, so i need to pull in gcc into my package if i need that? >_>
orivej has joined #nixos
spietz has joined #nixos
sonarpulse has quit [Client Quit]
<Yaniel> > This application failed to start because it could not find or load the Qt platform plugin "xcb"
Itkovian has joined #nixos
Thra11 has joined #nixos
<Yaniel> > Available platform plugins are: minimal, offscreen, vnc, xcb, wayland-org.kde.kwin.qpa, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx.
<Yaniel> say what
<genesis> welcome in my world.
sonarpulse has joined #nixos
<genesis> try to fix that since this morning..
<genesis> Yaniel : are you on a non-nixos ?
<Yaniel> nixos-unstable
<Yaniel> wait why is my QT_PLUGIN_PATH suddenly full of qt4
optikfluffel has joined #nixos
Itkovian has quit [Max SendQ exceeded]
jensens has quit [Ping timeout: 256 seconds]
pkill9 has joined #nixos
pie_ has quit [Ping timeout: 240 seconds]
Itkovian has joined #nixos
<mbrock> oh no, trying to upgrade my NixOS server but it's stuck with nix-build using 100% CPU seemingly without any compilation going on; this is just after listing which paths will be fetched, and saying "fetching path ..." twice...
Thra11 has quit [Ping timeout: 260 seconds]
<electrocat> pie_: it'll depend on gcc-lib
<mbrock> weird, there's also two "download-from-binary-cache" processes that are <defunct>
<electrocat> not the full gcc
<ottidmes> mbrock: I have seen this error mentioned a few times, unfortunately not completely sure what the proposed fix was. I think I have had it as well when I updated to Nix 2.0. I just killed it, retried and got a lock error I think, and then just rebooted and then it worked
<mbrock> ottidmes: ok... I did reboot once and got the same problem
<mbrock> the server seems to be using Nix 1 daemon with nixUnstable in the systemPackages though, maybe I'll try changing that first
kadel has quit [Quit: kadel]
<ottidmes> mbrock: You have to specify it via nix.package = pkgs.nixUnstable
optikfluffel has quit [Quit: Textual IRC Client: www.textualapp.com]
nick_l has quit [Ping timeout: 260 seconds]
coot_ has quit [Quit: coot_]
<mbrock> yeah... unfortunately I still can't get nixos-rebuild to not freeze
<mbrock> maybe I need to upgrade to some intermediate nixpkgs first
shoogz has quit [Excess Flood]
cinimod` has quit [Ping timeout: 240 seconds]
pie_ has joined #nixos
shoogz has joined #nixos
digitus has joined #nixos
<mbrock> ottidmes: do you happen to remember where you've seen any mentions of this problem?
ElGoreLoco has quit [Quit: ElGoreLoco]
<Yaniel> mbrock care to check whether your QT_PLUGIN_PATH refers to qt4 or qt5?
Itkovian has quit [Ping timeout: 260 seconds]
<mpickering> I finally got the application I am packaging to start and it immediately segfaults hurray
ElGoreLoco has joined #nixos
ElGoreLoco has quit [Client Quit]
<mbrock> Yaniel: it seems to refer to QT4
periklis has quit [Ping timeout: 248 seconds]
<ottidmes> mbrock: is it nix-daemon that takes 100%?
<mpickering> omg it actually started, this is the most beautiful thing ever
<mbrock> ottidmes: no, nix-build
freeman42x]NixOS has quit [Ping timeout: 268 seconds]
<coconnor> mbrock: as for channel users, difference in requiring signed packages maybe? Is the channel signing packages?
<mbrock> coconnor: ah, yeah, I was suspecting something like that. It is indeed signing the packages
cfricke has quit [Read error: Connection reset by peer]
freeman42x]NixOS has joined #nixos
<coconnor> I set up a signed binary channel using nix-serve yesterday. What was missing from the process was a way to test the channel aside from "build and see where stuff is DL from..."
<ottidmes> mbrock: 2018-03-06 14:30:55 nico202 nixos-rebuild switch is freezing for me on unstable, nix-build starts using 100% cpu and that's all, it's only me?
Judson has joined #nixos
<michaelpj> ottidmes: I think new nix-build might not print build logs to stdout by default? So it might actually be building, rather than frozen
grumble has quit [Read error: Connection reset by peer]
<michaelpj> don't quote me on that, though
<pie_> if i want to write a script for installing something for an installer that cant be downloaded from the internet, is there some way to add the installer to the nix store or something and refer to it?
<Judson> I'm missing something obvious, I think:
<pie_> i dont want to hard code a path into my nix script
<Judson> nix-env -qaP '.*(kubectl|minikube).*'
<Judson> nixpkgs.kubectl kubectl-1.9.1
<Judson> nixos.minikube minikube-0.21.0
<Judson> nixpkgs.minikube minikube-0.25.0
<Judson> cat default.nix
<Judson> { pkgs ? import <nixpkgs> {} }:
<Judson> pkgs.stdenv.mkDerivation {
<Judson> name = "k8";
<Judson> buildInputs = [
<Judson> pkgs.kubectl
<Judson> pkgs.minikube
<Judson> ];
<Judson> }
<Judson> But nix-shell says "attribute ‘kubectl’ missing, at /home/judson/K8Handson/default.nix:9:7"
<coconnor> michaelpj: "nix build" outputs a fancy single line progress bar. I wonder if that's being used instead of hte standard "nix-build" log?
sigmundv has quit [Ping timeout: 245 seconds]
<mpickering> all the icons are missing on the user interface on the Qt application I just built, any ideas for that one?
grumble has joined #nixos
<mbrock> ohh, I think I may have gotten everything to work
<ottidmes> mbrock: How? If I see someone asking the same question again, maybe your solution can help them out as well
<fresheyeball> hey out there
<mbrock> by first keeping the same nixpkgs but upgrading to nix.package = pkgs.nixUnstable, and only then switching to the latest nixpkgs-unstable
<fresheyeball> it looks like cabal-install is broken on master
<fresheyeball> I feel like its been months since I can install my env from master
cmcdragonkai1 has quit [Ping timeout: 240 seconds]
<fresheyeball> is something going on that is effecting stability?
<mbrock> (what I tried before was, instead, making sure to have the Nix 1 daemon before upgrading everything)
humanoyd has joined #nixos
<ottidmes> mbrock: Ah, so you have to have nix-daemon 2.0 runnin in order to upgrade to the latest unstable?
<mbrock> ottidmes: that theory would fit my experience, but my sample size is very low :)
<mbrock> my server might have been messed up in some way, but yeah
cfricke has joined #nixos
<ottidmes> mbrock: Well, I probably did not run into your 100% CPU issue, it just froze at the beginning of the rebuild, I did happen to do the same as you did, but I am on 17.09, so it might not matter as much there
<coconnor> Judson: what is the NIX_PATH? Perhaps "<nixpkgs>" points to an old package set?
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<ottidmes> mbrock: BTW, if you are on unstable, I think you now have to remove nix.package = pkgs.nixUnstable, because nixUnstable refers to 2.0pre and nix on unstable now is 2.0
<dtz> ottidmes: I was seeing 100% during the switch too
<ottidmes> Judson: Did you define kubectl yourself via nixpkgs overrides/overlays?
<dtz> ottidmes: particularly when activating / *switching*, not building the new connfiguration
<dtz> when it was setting up /etc files... something re:openresolv went into infinite loop? idk
<mbrock> ottidmes: oh, good to know, thanks
rauno has joined #nixos
<dtz> was poking at some experimental things, so just jumped back to last working rev (nixos-version) and haven't investigated yet
<ottidmes> Judson: BTW, you shouldn't post more than two lines of code, link to a paste instead
<ottidmes> dtz: Are you on unstable or stable 17.09?
rindvieh has quit [Remote host closed the connection]
<dtz> unstable-ish; probably more accurate to say 'recent master'
<mbrock> oh my, now Hydra is acting up :) https://hydra.dapp.tools/jobset/dapphub/dapphub#tabs-errors
<dtz> hmm re:freeze beginning of rebuild. not sure, will let you know if I find anything out :).
<ottidmes> dtz: Then you might try mbrock's solution, don't upgrade your nixpkgs, first update your config to go to 2.0, only after you successfully switched to 2.0 and have the 2.0 nix-daemon running, upgrade to a more recent nixpkgs, but since you say you have a recent master, this might not help you at all
<mbrock> actually I noticed on my laptop that nix-prefetch-git fails unless I run it as root with a permission error in /nix/var/nix/db ... I'll check the GitHub issues
rauno has quit [Ping timeout: 248 seconds]
<mpickering> Is Qt4 deprecated on nixpkgs?
<dtz> sounds like it's using an old 'nix'
<ottidmes> mbrock: There was an issue about that, broken permissions, I think the fix was to redo the ownership to root:root for /nix after first remounting it as writeable
<dtz> try setting NIX_REMOTE=daemon
<dtz> if that fixes it then it probably directly invokes an older nix
sanscoeur has joined #nixos
aerozephyr has quit [Quit: WeeChat 2.0]
roberth has quit [Remote host closed the connection]
rogue_koder has joined #nixos
mizu_no__ has quit [Quit: Computer has gone to sleep.]
amir has quit [Read error: Connection reset by peer]
amir has joined #nixos
__Sander__ has quit [Quit: Konversation terminated!]
rauno has joined #nixos
romildo has joined #nixos
sonarpulse has quit [Quit: Leaving]
sonarpulse has joined #nixos
cmcdragonkai1 has joined #nixos
aanderse has quit [Ping timeout: 245 seconds]
niklob has joined #nixos
niklob has quit [Remote host closed the connection]
<dtz> o_O
aanderse has joined #nixos
Tehnix has joined #nixos
[0x4A6F] has joined #nixos
<romildo> I am packaging Deepin Desktop Environment and found a second package where ld does not find libX11.so.6 and libXext.so.6, needed by libdtkwidget.so. What fix is suggested in this case?
aarvar has joined #nixos
aanderse has quit [Ping timeout: 248 seconds]
<romildo> In the first package this error appeared, I fixed it with -rpath:
<romildo> for f in tools/svgc/svgc.pro examples/dwidget-examples/collections/collections.pro; do
<romildo> substituteInPlace $f \
<romildo> --replace "unix: LIBS +=" \
<romildo> "unix: LIBS += -Wl,-rpath,${libXext}/lib -Wl,-rpath,${libX11}/lib"
<romildo> done
<srhb> Has anyone made the vampire release manager joke yet, or am I the first?
rindvieh has joined #nixos
<romildo> Would it be a better way to handle it?
johnhamelink has joined #nixos
aanderse has joined #nixos
sonarpulse has quit [Ping timeout: 240 seconds]
<gchristensen> srhb: do go on
<srhb> gchristensen: So one of the release managers is vcunat, right? Vladimír. And the release name is Impala, right?
<srhb> Sooooo Vlad the Impala!
<gchristensen> omg
<srhb> (Please can we have a vampire impala t-shirt, pleaaaaase)
rindvieh has quit [Client Quit]
takeda has quit [Ping timeout: 240 seconds]
TweyII has quit [Ping timeout: 260 seconds]
<johnhamelink> Hey folks! I'm trying out NixOS for the first time today. I'm trying to install on the same drive as a Windows10 install. I've mounted the EFI partition to /mnt/boot, but when I run nixos-install it fails (see here: https://gist.github.com/johnhamelink/1e14ae78b61a9bdf00034ff879a93b59). I've added all the debug info I thought would be helpful to that gist. I hope you guys can help me figure this out! :)
plakband has quit [Quit: leaving]
<srhb> johnhamelink: Unfortunately I don't think you can get around the GUID/GPT partition table requirement.
<srhb> johnhamelink: It's essentially part of the spec for EFI boot.
<johnhamelink> srhb: I thought I was using GPT by using gdisk to format the nixOS partition?
<srhb> johnhamelink: The *disk* must be GPT formatted.
<srhb> johnhamelink: And redoing the partition table would nuke your Windows partition, I believe
<johnhamelink> So what would the best way to setup my partitions be in this scenario?
aanderse has quit [Ping timeout: 240 seconds]
rardiol1 has left #nixos [#nixos]
<srhb> johnhamelink: If you want to preserve your partition table (and thus windows) you'd just want to boot via the regular MBR method instead of uefi.
aanderse has joined #nixos
<johnhamelink> I thought Windows10 doesn't support MBR?
<srhb> uuuh. Okay, in that case I'm confused.
<srhb> Can you check what gdisk actually reports about the partition table of the disk in question?
<srhb> Or fdisk, or whichever.
<johnhamelink> sure
<srhb> Okay, curious.
sonarpulse has joined #nixos
<srhb> johnhamelink: What does mount report?
<johnhamelink> 2s I think I might've figured it out
<johnhamelink> yup i did!
mizu_no__ has joined #nixos
<srhb> What was it? :)
<johnhamelink> I did mount /dev/disk/by-label/EFI<something> instead of /dev/nvme0n1p2
<srhb> Aha.
<johnhamelink> the EFI<something> drive must be for the USB drive
<srhb> Sounds probable :) Great that you figured it out.
<johnhamelink> Thanks for asking the right questions! :D
<srhb> :-)
sonarpulse has quit [Remote host closed the connection]
arjen-jonathan has quit [Ping timeout: 256 seconds]
alex`` has quit [Ping timeout: 256 seconds]
chisui has joined #nixos
MarcWeber has joined #nixos
mizu_no__ has quit [Quit: Computer has gone to sleep.]
<fresheyeball> Configuring cabal-install-2.0.0.1...
ryanartecona has quit [Quit: ryanartecona]
<fresheyeball> Setup: Encountered missing dependencies:
<fresheyeball> Cabal >=2.0.1.0 && <2.1
<fresheyeball> this is from master on nixpkgs
<fresheyeball> any idea why?
<srhb> fresheyeball: Can't reproduce. What did you do?
darlan has joined #nixos
<fresheyeball> srhb: I am trying to install it as part of my .config/nixpkgs/config.nix
<srhb> fresheyeball: Yes?
<fresheyeball> specifically from haskell.packages.ghc802
alexteves has quit [Ping timeout: 265 seconds]
<fresheyeball> I don't know what else to tell you
<srhb> fresheyeball: I don't think there's much left of that set. Let me check
darlan has quit [Client Quit]
<fresheyeball> srhb: what do you mean? is 802 not being maintained in nixpkgs?
<srhb> Oh, I see the problem
<fresheyeball> srhb: ??
<srhb> nix-instantiate --eval --expr 'with import <nixpkgs> {}; haskell.packages.ghc802.Cabal.version'
<srhb> null
<mpickering> That's not the problem?
<srhb> It's not?
<mpickering> The problem is that 8.0.2 ships with Cabal 1.24?
<srhb> Derp.
<fresheyeball> I am not sure its that either
<elvishjerricco> fresheyeball: Why install cabal-install from 802 instead 822?
<fresheyeball> I install it the same way with a previous checkout
<fresheyeball> off 802
<fresheyeball> and my cabal version is 2.0.1.1
<fresheyeball> elvishjerricco: because most of my stuff is still 802, for example ghcjs things
<elvishjerricco> fresheyeball: cabal-install doesn't need to be built with the same GHC as your stuff. Newer is better in this case :)
<mpickering> Cabal-1.24.2.0 ships with 8.0.2
boomshroom has joined #nixos
<boomshroom> Good morning!
<boomshroom> I'm still trying to clean up my laptop's store so I could update to nix 2.0 and nix-collect-garbage keeps failing trying to delete a link that doesn't exist.
<elvishjerricco> fresheyeball: Yea I think `hackage-packages.nix` has cabal-install 2.0, which requires Cabal-2.0, which I doubt is in the ghc802 package set, since Cabal is usually just `null`
<boomshroom> As does nix-store --gc
<clever> boomshroom: what is it failing to delete?
<srhb> elvishjerricco: It does have 2_0_1_1 and I'd guess cabal-install can probably build against it just fine.
<clever> boomshroom: and what does dmesg say?
<srhb> But I agree there's no point.
<srhb> cabal2nix has a similar override.
<srhb> Though that's probably even less sensitive
<fresheyeball> elvishjerricco: was it removed? because I have caball 2.0.0.1 right now from the 802 set
rauno has quit [Ping timeout: 252 seconds]
<boomshroom> clever: /nix/store/.links/0w702rv3ddcj5d9mplmhff0c7rias1z9x330z12yg9ik8yzkwsxa
<elvishjerricco> fresheyeball: Oh. Then I dunno :P
<clever> boomshroom: ls -lh /nix/store/.links/0w702rv3ddcj5d9mplmhff0c7rias1z9x330z12yg9ik8yzkwsxa
<srhb> Something like cabal-install = super.cabal-install.overrideScope (self: super: { Cabal = self.Cabal_2_0_1_1; });
<srhb> but again, why! :)
<elvishjerricco> fresheyeball: Maybe look for a diff in the corresponding haskell-modules/configuration file?
<fresheyeball> srhb: idk, this is just annoying
<srhb> fresheyeball: I don't know why you'd be annoyed of it. Just install cabal-install from pkgs.cabal-install instead :)
<boomshroom> ls says it exists and file claims it's a utf8 text file. ls-lh has a 1 after the permissions which I'm assuming is the link number.
<fresheyeball> srhb: I thought the ghc versions for cabal-install and the project need to match
<srhb> fresheyeball: No, that's for Cabal, as mpickering pointed out
<clever> boomshroom: as root, can you run `strace -o logfile nix-collect-garbage --max-freed 1` and then pastebin that log file?
<srhb> fresheyeball: Cabal the library, not cabal-install the (cabal) executable.
<fresheyeball> is cabal-install built with newer ghc backwards compatible?
<fresheyeball> I think you are saying, yes the executable built with new ghc, will build projects of old ghc
<fresheyeball> ?
<srhb> And really it's just the (in nix lingo) "native" Cabal
<srhb> Yes, I am saying that.
<fresheyeball> ok, well sweet then
<clever> srhb, fresheyeball: i just make a Setup.hs and runhaskell it
<srhb> fresheyeball: I mean, we don't even use cabal-install to build haskell dependencies in Nix
<srhb> Or haskell packages in general.
<srhb> It's just convenience.
<clever> there is a weird thing in nix's haskell framework, where cabal the binary isnt available
<srhb> What clever said :)
<clever> but cabal the library is
<fresheyeball> what do you use? because I use it
<boomshroom> This is on my mac. strace isn't available.
<srhb> fresheyeball: What clever said. runhaskell Setup.hs :)
<srhb> You can use cabal-install for development just fine though.
<clever> boomshroom: what if you try to just rm that path yourself?
<boomshroom> In other news, on my university drive, I don't have permission to delete ~/.nix which is where the store is currently held.
<fresheyeball> srhb: I have never used that technique personally
<fresheyeball> but I do like that it has less exe deps
<boomshroom> rm: no such file or directory. (as sudo\)
<fresheyeball> does the Setup.hs path work as well for repl? Can I get a repl from that?
<clever> boomshroom: what error does that fail with?, and cant you just chmod +w the problem directory and its parent?
Fare has joined #nixos
<clever> fresheyeball: runhaskell Setup.hs repl
<srhb> fresheyeball: that's just ghci.
<srhb> clever: Oh, I didn't know of that.
<clever> it supports all flags cabal supports
<srhb> I guess cabal-install is a thinner wrapper than I realized.
dnovosel has joined #nixos
ryanartecona has joined #nixos
<clever> i still prefer bare ghci
* srhb nods
<clever> but some projects have 20 -X flags
<clever> and it fails to build without them
Synthetica has quit [Quit: Connection closed for inactivity]
<fresheyeball> hey total tangent question
<fresheyeball> how do you do stuff like "srhb nods" in IRC?
<boomshroom> for the school machine, just Permission denied for many files. I already did chmod +w ~/.nix
<__monty__> fresheyeball: /me nods
<srhb> fresheyeball: /me does thing
<clever> boomshroom: what about chmod -R +w ?
oleks has joined #nixos
* fresheyeball expresses extreme graditude to the nixos community
<srhb> :-)
<fresheyeball> it works!
<__monty__> For clarity, is there any reason to use runhaskell Setup.hs over cabal new-build?
<srhb> __monty__: I don't think new-build nets you a lot over nix?
<srhb> __monty__: I mean, it was even called "nix style builds"
<boomshroom> clever: Thanks. I was pretty sure there was a recursive option, I just didn't remember what it was.
<gchristensen> fresheyeball: it works and it is an effective way to endear people in to helping ;)
<fresheyeball> I agree, I used to do the same think on Stack Overflow back in my jQuery days
<srhb> __monty__: Then again, I do type nix build instead of runhaskell Setup.hs usually :P
<gchristensen> jQuery -> haskell, whoa
<fresheyeball> yup, hows that for an arch
<boomshroom> Now why would rm claim a file doesn't exist when ls says it does?
<gchristensen> fresheyeball: I went from PHP dev to .... whatever I am now. so I hear that.
<clever> boomshroom: can you paste me the output of ls on that path?
<srk> gchristensen: this. :))
<clever> boomshroom: ls -lh
<fresheyeball> crapes, now cabal-helper is failing for the same reason cabal-install was
<fresheyeball> is ther cabal-helper in the mainline?
<srk> gchristensen: I've started doing some work with php, then python, now haskell & nix :D
<srhb> fresheyeball: No.
<fresheyeball> boo
<__monty__> srhb: The point is I can just use the cabal file instead of having to provide a derivation. To appease the unenlightened plebs ; )
<srhb> fresheyeball: The thing to notice is that while the compilers are frozen, the hackage set is not.
<boomshroom> The irc is on my desktop, and I'm working on my laptop. I'll go load up irc on my laptop.
<srhb> fresheyeball: So once the upstream package version starts demanding a newer version of, say, Cabal, this happens.
<fresheyeball> can we prevent it somehow?
<boomshroom> 2 local machines + 1 remote machine. So much fun!
<gchristensen> boomshroom: three computers too many
<srhb> fresheyeball: We could maintain versioned hackage sets, follow Stackage snapshots, freeze individual package, freeze entire package sets....
<srhb> fresheyeball: Lots of things, all very demanding.
<fresheyeball> of course..
rauno has joined #nixos
hyper_ch has joined #nixos
<fresheyeball> darn package management, nix is a big hammer, but not a silver bullet
<srhb> fresheyeball: In the end, it's easier to just pin nixpkgs at whatever version you care about if you really need older ghc sets.
<fresheyeball> I know, but that doesn't reallly solve it
<srk> boomshroom: I've solved this by running irssi in screen and using screen -x on remotes :)
<srhb> Or stackage2nix and cry that you no longer have a binary cache.
<boomshroom> That's not counting my 2 phones sitting idle (1 powered off) and my Nintendo behind me. Can't wait for the ability to install linux (and by ludicrous extension: Nix) on it.
<fresheyeball> I should be able to update things with git pull and not break everything
<ottidmes> gchristensen: I started out as PHP dev as well, and no matter what language I am writing, I still debug like I used to in PHP :P
<srhb> Or convince well-types to make stackage have nix sets :-)
<srhb> well-typed*
boomshroom_lapto has joined #nixos
<boomshroom_lapto> -rw-r--r-- 1 boomshroom wheel 9.6K Dec 31 1969 /nix/store/.links/0w702rv3ddcj5d9mplmhff0c7rias1z9x330z12yg9ik8yzkwsxa
<srhb> ... Dec 31?
<srhb> What kind of unixtime is this :|
<boomshroom> I think that's the first time I've pinged myself.
<gchristensen> srhb: timezones!
<srhb> Oh, right. Doh.
* srhb is not too sharp today
<gchristensen> unix epoch of 0s / 1s, localized. It has confused me too.
<boomshroom> srhb: Nix resets the access data of all files to maintain reproducibility.
<srhb> Everyone should just use the same damn time.
andymandias has quit [Ping timeout: 248 seconds]
<gchristensen> srhb: I agree. America/New_York time.
mounty_ has joined #nixos
<srhb> boomshroom: mtime, but I was confused because it says Dec 31 69 rather than Jan 1 70 :)
<clever> srhb: its a few hours before midnight, due to the tz
<srhb> echo!
<srhb> :-)
<gchristensen> srhb: or maybe swatch internet time?
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/ce5a76274d9 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<srhb> gchristensen: haha! I remember that.
tmaekawa has joined #nixos
<clever> boomshroom_lapto: yeah, i cant see anything fishy like a symlink
<boomshroom> boomshroom_laptop: echo
<boomshroom> boomshroom_lapto: echo
<clever> gchristensen: any idea why boomshroom cant delete the above file?
<boomshroom_lapto> boomshroom: echo
<gchristensen> srhb: remember? what do you mean remember, its 834beats.
<srhb> :|
Itkovian has joined #nixos
<genesis> has environment.systempackages meaning on non-nixos ? i wonder how to "rebuild" on non-nixos, i dont understand the advise of putting my qt stuff in there
<gchristensen> boomshroom_lapto boomshroom : what happens if you stat the file?
<srhb> gchristensen: you mean .beats, by the way
<boomshroom_lapto> srnhb: 788529155 24689 -rw-r--r-- 1 boomshroom wheel 0 9804 "Mar 8 10:45:27 2018" "Dec 31 16:00:01 1969" "Mar 8 10:53:57 2018" "Jun 22 17:47:57 2017" 10240 25 0 /nix/store/.links/0w702rv3ddcj5d9mplmhff0c7rias1z9x330z12yg9ik8yzkwsxa
<gchristensen> srhb: __very hard eyeroll__ :)
<srhb> :-)
boomshroom_lapto is now known as boomshroomlaptop
<boomshroom> freaking character limits
<srhb> I hink it's probably unique by then ;-)
tmaekawa has quit [Client Quit]
<bgamari-> shlevy, I've opened https://ghc.haskell.org/trac/ghc/ticket/14903 to track the GHC RISC-V effort
<gchristensen> boomshroom: wait ... so ... whats happening?
<boomshroom> rm, nix-store --gc, and nix-collect-garbage are failing to delete a hardlink from Nix's link store. (created by nix-store --optimise)
hyper_ch has quit [Ping timeout: 276 seconds]
<gchristensen> is it in use?
bpa has joined #nixos
<Dezgeg> what's the error it gives?
<boomshroom> gchristensen: how would I check?
sonarpulse has joined #nixos
Izorkin_ has joined #nixos
<srhb> I wonder if you could delete it by inode. Is that a thing on OS X?
<gchristensen> boomshroom: I don't know :) why do you want to dolete it? how did we get to this situation?
<Dezgeg> maybe it has one of those darwin-specific immutable bits set?
alex`` has joined #nixos
<clever> boomshroom: what if you run lsattr on it?
<boomshroom> It's causing nix-store --gc to fail preventing it from deleting it and the other unused hard links that are taking up space on the partition.
mkoenig_ has joined #nixos
mkoenig has quit [Ping timeout: 256 seconds]
simukis has joined #nixos
hyper_ch has joined #nixos
Izorkin has quit [Ping timeout: 245 seconds]
<boomshroom> clever: that's not a command on macOS
<hyper_ch> hmmm, I should have gotten auto-ip assigned by Hetzner but it wasn't the case
<sonarpulse> anybody know about displaylink?
<sonarpulse> I enabled the driver
loonquawl has joined #nixos
<boomshroom> proot is complaining that ~/.nix isn't a regular file. It's a directory that https://nixos.wiki/wiki/Nix_Installation_Guide#nix-user-chroot claims I should create. (I deleted the old ~/.nix and made a new one in case that was breaking anything)
<gchristensen> boomshroom: what is the error?
<boomshroom> proot error: '/home/abulfone/.nix' is not a regular file
<boomshroom> fatal error: see `proot_5.1.1_x86_64_rc2--no-seccomp --help`.
leat has quit [Ping timeout: 245 seconds]
<fresheyeball> anyone know the good path for doing python dev with nix?
<fresheyeball> is there a cabal2nix type thing for python things?
<symphorien> yes there are several
<gchristensen> boomshroom: sorry, what is the error when trying to delete the file in .links?
<fresheyeball> (I have never used python, just experimenting)
<symphorien> {pip,pypi,...}2nix
<fresheyeball> symphorien: care to make a recommendation as to how to setup a project and build it with nix?
<symphorien> can't remember which one is the right one though
<boomshroomlaptop> rm: /nix/store/.links/0w702rv3ddcj5d9mplmhff0c7rias1z9x330z12yg9ik8yzkwsxa: No such file or directory
<boomshroomlaptop> or with nix-store --gc error: deleting ‘/nix/store/.links/0w702rv3ddcj5d9mplmhff0c7rias1z9x330z12yg9ik8yzkwsxa’: No such file or directory
<clever> does mac have dmesg?
<boomshroom> Shall I install nix on my old phone running Sailfish OS?
<boomshroom> mac does have dmesg
<symphorien> fresheyeball: the setup is : 1/ write a requirements.txt 2/ run pypi2nix on it 3/ run the magic command giving you the nix-shell out of its output
<clever> boomshroom: anything abnormal in the dmesg?
Shell has left #nixos ["Be back later..."]
<fresheyeball> symphorien: ok! I will try that after cabal-install finishes compiling
<boomshroom> The closest I could find is `ZFS: arc growtime expired` (The partition the store is on is ZFS)
<symphorien> I currently have pypi2nix so this must be the one which worked best the last time I experimented in this direction
raynold has joined #nixos
<clever> boomshroom: try to umount and export the pool, then re-import and mount, and see what changes
<clever> boomshroom: and/or check `zfs status`
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<boomshroom> I don't see import or export in zfs's commands. I see send and receive
<clever> import/export are part of zpool
<clever> which reminds me, thats also where `zpool status` is
<boomshroom> It didn't crash imediatly, so that might have done it.
sonarpulse has quit [Ping timeout: 256 seconds]
<boomshroom> Shall I try installing nix on my Nexus 4? I like the fact that I can have it offload to my desktop.
andymandias has joined #nixos
leat has joined #nixos
<sphalerite> boomshroom: would be awesome if you get that working, I'd quite like to get nix running on my old nexus 4 too
<boomshroom> sphalerite: I should mention that it's running SailfishOS, so it should be quite a bit easier than if it was using Android.
<sphalerite> is that based on a regular linux kernel?
andymandias has quit [Ping timeout: 240 seconds]
andymandias has joined #nixos
boomshroomlaptop has quit [Ping timeout: 260 seconds]
romildo has quit [Quit: Leaving]
<boomshroom> 3G freed by deleting links.
pxc has joined #nixos
<fresheyeball> so I hear that you can manage emacs packages with nix
<boomshroom> "sorry, there is no binary distoruction of Nix for your platform" :( Guess I'll have to build it manually, on my desktop.
hakujin has quit [Ping timeout: 260 seconds]
<elvishjerricco> fresheyeball: Yep. That's 100% how I do it
<boomshroom> In other news, my laptop has installed nix 2.0
<fresheyeball> elvishjerricco: how do?
<sphalerite> boomshroom: yeah armv7 is a bit fiddly to get bootstrapped
<elvishjerricco> fresheyeball: `pkgs.emacsPackagesNg.emacsWithPackages (self: with self; [ flycheck projectile expand-region ])`
<fresheyeball> elvishjerricco: you do that in user space? or in configuration.nix?
<elvishjerricco> You can do either.
<fresheyeball> I use emacs as a service, will it just magically find those packages?
rauno has quit [Ping timeout: 256 seconds]
<fresheyeball> how can I remove the packages spacemacs installed outside of nix?
<elvishjerricco> fresheyeball: I do as well. You need `services.emacs.package = myEmacs;`
<fresheyeball> elvishjerricco: can you share with me you configuration.nix?
<elvishjerricco> I assume just uninstall packages.
<fresheyeball> your*
<elvishjerricco> my config is quite... complex and large :P The relevant bits are:
pxc has quit [Ping timeout: 260 seconds]
andymandias has quit [Ping timeout: 260 seconds]
<fresheyeball> how about an lpaste of bits?
<fresheyeball> I also would like to see the large and complex
aarvar has quit [Quit: Leaving.]
<elvishjerricco> fresheyeball: ^
aarvar has joined #nixos
<boomshroom> how would I configure my laptop to use my desktop as a builder? The release notes mention `builders = @path` in nix.conf. Can I just replace @path with ssh://name@address:port?
<elvishjerricco> boomshroom: Are you on NixOS?
<boomshroom> My desktop is, my laptop isn't
ryanartecona has quit [Quit: ryanartecona]
<elvishjerricco> Got it. Not sure how to do it without NixOS :P
andymandias has joined #nixos
<__monty__> I have an arch server set up as a remote builder for my arch laptop.
<elvishjerricco> boomshroom: On NixOS, it simply generates a file `/etc/nix/machines` that looks like `user@host system /path/to/private/key maxjobs speedfactor`, and I think the nix commands just know to look there.
<fresheyeball> collision between ‘/nix/store/bm1j6x76jvk5m5w9zw3rnlsdx35ij9gd-gtk-engine-murrine-0.98.2/lib/gtk-2.0/2.10.0/engines/libmurrine.la’ and ‘/nix/store/0cvpwc44r3av75s43yyhnqm1l9w7cy6w-myEnv/lib/gtk-2.0/2.10.0/engines/libmurrine.la’; use ‘nix-env --set-flag priority NUMBER PKGNAME’ to change the priority of one of the conflicting packages
<fresheyeball> not sure why this is happening
<elvishjerricco> e.g. `elvishjerricco@foo.org x86_64-linux /etc/nix/mykey 1 1`
<fresheyeball> how can I know which package in myEnv is causing this?
<elvishjerricco> fresheyeball: Maybe `nix why-depends` on the `.drv` of your system?
<fresheyeball> elvishjerricco: what does that do?
<elvishjerricco> `nix why-depends` shows the series of dependencies that makes one path depend on another.
<elvishjerricco> I'm not sure if it works for `.drv` files or not though
andymandias has quit [Ping timeout: 260 seconds]
moosh_vectra[m] has joined #nixos
leat has quit [Ping timeout: 245 seconds]
<__monty__> Hmm, turns out my setup isn't compatible with nix 2.0 yet, good to know.
<elvishjerricco> fresheyeball: Failing that, `nix-store -q --tree /nix/store/my-system.drv` will show a tree of dependencies
hakujin has joined #nixos
<fresheyeball> nix: src/nix/installables.cc:254: std::shared_ptr<nix::Installable> nix::parseInstallable(nix::SourceExprCommand&, nix::ref<nix::Store>, const string&, bool): Assertion `installables.size() == 1' failed.
<fresheyeball> [1] 10241 abort nix why-depends /nix/store/my-system.drv gtk-engine-murrine-0.98.2
<boomshroom> In all my attempts to cross compile, this is the first time I've wanted to compile an actual package for a foregn environment.
<fresheyeball> that is the output from nix why-depends /nix/store/my-system.drv gtk-engine-murrine-0.98.2
<boomshroom> With the new store syntax, how do I specify the ssh port?
hakujin has quit [Ping timeout: 256 seconds]
freeman42x]NixOS has quit [Ping timeout: 260 seconds]
<ottidmes> boomshroom: Not sure, but can't you just specify it as part of your ssh_config?
<boomshroom> ottidmes: I've always just specified it manually because my desktop uses a non-standard port for a tad extra security.
<boomshroom> Isn't that for the ssh server rather than the client?
<ottidmes> boomshroom: I also have it on a non-standard port (that removed more > 90% of the hack attempts), but that especially why I configure it as part of my ssh config, that way I do not have to specify it all the time
<ottidmes> boomshroom: No client config
<ottidmes> boomshroom: I mean, depens on what you mean
Itkovian has joined #nixos
<ottidmes> boomshroom: I have a non-standard port on my sshd, and hence I have configured my ssh clients to use that port, so I have it configured on both
<boomshroom> I mean my configuration.nix has services.openssh = { enable = true; ports = [ PORT ] }; and when connecting I use ssh -p PORT name@desktop. I can tell ssh to use a specific port for the specific server?
humanoyd has quit [Quit: WeeChat 2.0.1]
hakujin has joined #nixos
<ottidmes> boomshroom: And I of course generate those via Nix :P
__red__ has quit [Ping timeout: 276 seconds]
<ottidmes> boomshroom: programs.ssh.extraConfig
hakujin has quit [Ping timeout: 256 seconds]
<boomshroom> ottidmes: Wow, thanks! Now it's just `ssh desktop` and I can do `nix ping-store ssh-ng://desktop` and it works!
<clever> ping-store!? :O
<gchristensen> !!!
<boomshroom> I saw it in nix --help
<ottidmes> boomshroom: working substituter?! I keep getting unexpected end-of-file
vaninwagen has quit [Quit: WeeChat 2.0.1]
ryanartecona has joined #nixos
<boomshroom> If you already have a 2.0 version, make sure it's the full 2.0 version with `nix upgrade-nix`
<ottidmes> boomshroom: I wonder what that does, does it replace it system-wide
<mpickering> I deleted a file in the /nix/store, how can I get nix to rebuild that path to turn it back into its wonderful pristine state?
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<boomshroom> ottidmes: If you're on NixOS, it does nothing. On nixos, you have to upgrade on the unstable channel.
<ottidmes> mpickering: man nix-store, I think you can do --repair or something, maybe --verify
Xiaoman has joined #nixos
astsmtl has joined #nixos
astsmtl has quit [Changing host]
astsmtl has joined #nixos
<ottidmes> boomshroom: I figured as much, I am on the unstable with regards to nix (17.09 for the rest), that I am still on 17.09 for the rest is probably the problem
fragamus has joined #nixos
<ottidmes> boomshroom: I will just refrain from using substituters and other new stuff until 18.03 is released
<boomshroom> There really needs to be better documentation on cross compiling.
acarrico has quit [Ping timeout: 255 seconds]
leat has joined #nixos
oahong has quit [Ping timeout: 240 seconds]
<__monty__> boomshroom: Another timesaver with an ssh config for me is a Host definition for github.
murlocks has joined #nixos
sonarpulse has joined #nixos
oahong has joined #nixos
MichaelRaskin has joined #nixos
freeman42x]NixOS has joined #nixos
<sonarpulse> how can I restart the redshift service?
<sonarpulse> it seems not to use no config file
<ottidmes> __monty__: I did that, but wondered why it was not working, turned out I was using https://... Can you also easily copy the SSH URL via github?
<ottidmes> Sonarpulse: systemctl --user restart redshift.service
<sonarpulse> ottidmes: i was doing that
<sonarpulse> hmm
<__monty__> ottidmes: Yes, the box with the url usually has a button I think. But I just gic clone github:username/repo
<__monty__> *git
<bgamari-> Does anyone know what texlive variant provides the fncychap.sty?
<sonarpulse> ottidmes: do you know where that gets installed?
<ottidmes> __monty__: Other have, cogs/gitlab I believe, but github no longer has it (I believe it had it at one point). Ah well, I guess I will just do the same you
<ottidmes> Sonarpulse: where what gets installed? You can check status and see the URL
<sonarpulse> ottidmes: ok cool
<gchristensen> Sonarpulse: you may need to --user daemon-reload
<sonarpulse> gchristensen: thanks
<sonarpulse> that's looks like it
<ottidmes> Is there a way to say, systemctl should alias to sudo systemctl, while systemctl --user should not?
<clever> ottidmes: use a bash function instead of an alias
<clever> ottidmes: and put an if statement inside it
<ottidmes> clever: Yep, guess that will do, thanks
<__monty__> bgamari-: It's in collection-latexextra so only schem-full has it but you can pass fncychap as an argument to texlive.combine
<sonarpulse> ottidmes: thank you too
<bgamari-> __monty__, ahh, thanks!
<__monty__> ottidmes: I get the ssh link by default apparently, have to click for https explicitly.
<__monty__> ottidmes: Maybe it only offers if you have a key registered?
pie__ has joined #nixos
<ottidmes> Is there a way to make sure a custom NixOS installer does not point outside the iso contents? Now it just generated warnings when running the activation scripts. So far I have had no issues, but it is asking for trouble of course
<ottidmes> __monty__: Maybe I have to be logged in, or set some setting
<ottidmes> __monty__: Yep, that was it, have to be logged, and it probably remembers what you chose last
pie_ has quit [Ping timeout: 252 seconds]
Xiaoman has left #nixos [#nixos]
<__monty__> Makes sense, I think you need credentials to use ssh anyway.
civodul has joined #nixos
<ottidmes> __monty__: I just happend to generally do most of my browsing in one browser (tree style tabs, often hundreds tabs), and only login in another browser (I consider those open tabs to be more like apps)
<__monty__> Github's one of two things I allow to remember my login.
<boomshroom> I have a arm build of Nix. Now I just need to get it over to my phone. nix copy requires nix-store to be present on the receiver. Is there someway to copy the closure without nix already being present on the receiver?
hakujin has joined #nixos
<ottidmes> boomshroom: create a tarball?
<clever> boomshroom: one min
<clever> boomshroom: this generates the exact same tarball that https://nixos.org/nix/install refers to
hakujin has quit [Ping timeout: 240 seconds]
<clever> there is an if statement at the top of the script that picks the right tar for your arch
<clever> if you just edit that, insert a url to a tar generated by release-arm.nix, and run it, it should work
<clever> boomshroom: or, if you use the make-system-tarball version, just make sure to --load-db the registration file, one sec...
<clever> nix-store --load-db < $UNPACK2/nix-path-registration
<clever> that will be at the root of the tar file
<clever> that registers all the paths as being valid in db.sqlite, so nix wont try to delete itself
taktoa has quit [Remote host closed the connection]
<clever> though you still also need to nix-env -i nix itself, to root it
<Judson> nix-env says that kubectl is available, but nix-shell complains that it's not
<boomshroom> where does <nix/release.nix> come from?
<clever> i havent tested that release-arm.nix against 2.0, so id recomend trying 1.11.16
<boomshroom> "error: file 'nix/release.nix' was not found in the Nix search path"
<clever> you have to add it to the search path with -I nix=/path/to/nix
<ottidmes> Judson: The feedback given earlier still applies, you probably configured them differently. I checked on my own system, there is kubernetes, but no kubectl on its own in my nixpkgs
<boomshroom> So I need to clone it separately?
<clever> boomshroom: yeah
<clever> boomshroom: and checkout the 1.11.16 branch
<Judson> ottidmes I don't understand how a difference could exist there, though.
<Judson> nix-env says it's there, but nix-shell doesn't?
<clever> Judson: what nix-env command did you run?
dan_b has joined #nixos
<clever> !-A
hakujin has joined #nixos
<ottidmes> Judson: Did you run them as different users, what is your NIX_PATH?
<ottidmes> clever: The bot seems broken
<Judson> Same user.
* clever pokes {^_^}
<Judson> nix-env -qaP and -iA
muzzy has joined #nixos
<clever> Judson: what is the exact nix-env command that works, and nix-shell that fails?
<clever> Judson: ah, i checked the gist
<ottidmes> Judson: error: selector 'kubectl' matches no derivations with nix-env -qaP, but I have nix-env aliased to nix-env --file '<nixpkgs>'
<clever> Judson: kubectl is only on nixpkgs, and is not on nixos
<boomshroom> release.nix called with unexpected argument 'systems'
<clever> Judson: so one of your channels is newer then the other
<clever> boomshroom: try an older nix branch, maybe 1.11.15
<Judson> clever, is this one of the cases where the way nix-env handles channels is confusing me?
<ottidmes> Judson: So Judson, I recommend updating your channels and creating that alias I am using
<clever> Judson: nix-env directly uses the channels, so you can access both seperately
<clever> Judson: but <nixpkgs> maps to the nixos channel on nixos
<clever> so there is no way to access the channel called nixpkgs using <brackets>
<Judson> I have a different issue actually trying to get nix-env to install it, because go1.10 :(
<Judson> clever, is there an altered nix-shell command I can use?
hakujin has quit [Ping timeout: 256 seconds]
<boomshroom> clever: even going back as 1.0, I can't find a systems parameter to nix/release.nix
<clever> Judson: replace <nixpkgs> on line 3 of your default.nix with the full path to nixpkgs
<boomshroom> clever: only 2.0 has it.
<clever> Judson: which depends on which user that channel is on, did you add it with or without sudo?
<clever> boomshroom: ah, maybe it was one of the 12pre versions i had tested it on
<clever> boomshroom: the issue with current master, is that it needs nix2 to even parse release.nix
<Judson> IIRC without. i.e. I'm pretty sure it's my nixpkgs unstable channel
<boomshroom> I happen to be building with 2.0 right now. Anyway, it seems to be working.
<clever> Judson: so nix-channel --list shows nixpkgs?
<clever> Judson: then youll want import /home/clever/.nix-defexpr/channels/nixpkgs {} or similar
dan_b has quit [Ping timeout: 260 seconds]
<Judson> Got it.
<Judson> clever, thanks - the <nixpkgs> is really nixos thing continues to trip me up
<Judson> I think I've got it going, modulo some GC.
<clever> Judson: basically, run nix-instantiate --find-file nixpkgs, and echo $NIX_PATH
<clever> Judson: and you can play with the value of NIX_PATH and -I on that command, to see how it works
<srhb> can I override otherwise vendored go packages with other versions somehow in buildGoPackage? extraSrcs doesn't seem to cut it
<Judson> Speaking of, Nix2 cannot install or uninstall on my machine :(
<Judson> But I don't think I've got time right now to go into it
hakujin has joined #nixos
muzzy has quit [Ping timeout: 240 seconds]
<srhb> I guess I can just nuke the vendor folder if no nice hooks exist.
asuryawanshi has quit [Ping timeout: 240 seconds]
hakujin has quit [Ping timeout: 265 seconds]
hakujin has joined #nixos
sonarpulse has quit [Ping timeout: 256 seconds]
rardiol1 has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hakujin has quit [Ping timeout: 276 seconds]
<boomshroom> I need to head to class some. Bye!
<boomshroom> Before I leave. My phone doesn't seem to accept my desktop's public key.
<boomshroom> Bye!
boomshroom has left #nixos [#nixos]
hakujin has joined #nixos
Judson has quit [Ping timeout: 240 seconds]
sonarpulse has joined #nixos
dan_b has joined #nixos
dnovosel has quit [Remote host closed the connection]
<gchristensen> !tofu
<srhb> 0000000000000000000000000000000000000000000000000000
<srhb> (Did the bot die?)
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hakujin has quit [Ping timeout: 256 seconds]
<gchristensen> !tofu
<{^_^}> To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<gchristensen> the factoids part died indeed :(
<srhb> meep.
Itkovian has joined #nixos
turok9[m] has joined #nixos
alex`` has quit [Quit: WeeChat 2.0.1]
hiratara has quit [Ping timeout: 276 seconds]
hiratara has joined #nixos
hakujin has joined #nixos
jbetz has joined #nixos
hakujin has quit [Ping timeout: 252 seconds]
<srhb> gchristensen: Do you know if the PR for the channel has been killed off?
<srhb> The PR pings.
<srhb> It's eerily silent.
<gchristensen> eh?
<srhb> The bot that posts github pr notices here :)
<gchristensen> ooohh
<srhb> It was banned? :o
<clever> a few days ago i think?, when ryan was making about 400 PR's
<clever> or was it 4000 PR's?
<srhb> Oh ouch :P
<srhb> But glad it's returning, thanks!
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 8e411e4 Ryan Mulligan: gifsicle: 1.90 -> 1.91 (#36536)...
<NixOS_GitHub> [nixpkgs] zimbatm pushed 1 new commit to master: https://git.io/vAxlk
<srhb> hehe
<MichaelRaskin> Let's see how long it takes to get it banned again!
<srhb> MichaelRaskin: The faster we do it, the better 18.03 will be! :-)
<srhb> (...or something)
<ryantm> https://repology.org/repository/nix_unstable I wish I could make 3945 PRs :)
scribbler has joined #nixos
<MichaelRaskin> I wish Nixpkgs project was capable of sorting out 3945 PRs at once…
<ryantm> My bot isn't good enough to update everything unfortunately.
<joepie91> if (Math.random() < 0.5) { approve(pr); } else { reject(pr); }
<joepie91> done
<joepie91> :P
<srhb> ryantm: Oh, you're the sudden cliff on those graphs?
<MichaelRaskin> And a sudden jump on another graph…
<srhb> :) Nice job
<MichaelRaskin> !m ryantm
<[0__0]> You're doing good work, ryantm!
<ryantm> My bot is only succeeding in updating around 4% of the packages.
gemishhood has joined #nixos
<gemishhood> Hey
<MichaelRaskin> Because the rest actually need patches?
<ryantm> Thanks
<ryantm> MichaelRaskin: Not necessarily, they might just have a weird way of specifying their version and source files.
<srhb> ryantm: Can you provide a means to feed it metadata through the derivations themselves, so people can help in a decentralized way? :-)
<srhb> updateInstructions = ...
<gemishhood> I'm trying to run soundnode(https://github.com/Soundnode/soundnode-app) and am getting an error: zsh: no such file or directory: ./Soundnode
scribbler has quit [Ping timeout: 265 seconds]
ryanartecona has quit [Quit: ryanartecona]
<joepie91> gemishhood: it likely ships a binary build of Electron as its 'Soundnode' binary; try installing Electron from nixpkgs and then running `electron .` while in the soundnode directory
<ryantm> srhb: I think the next thing I want to do is make a better report of the outdated packages, by maintainer.
<joepie91> gemishhood: (since the included Electron is a static build, it won't work with Nix' linker by default, and this is easier than patching the bundled Electron)
<srhb> ryantm: Cool!
<gemishhood> joepie91: Should I just update it via nmp update electron?
<clever> gemishhood: try running the electron from nixpkgs on the directory with package.json, you can get it via `nix-build '<nixpkgs>' -A electron`
<clever> joepie91: static builds are actually more likely to work on nixos
dan_b has quit [Ping timeout: 240 seconds]
<ryantm> MichaelRaskin: I'm skipping all the rust, ruby, python, and go stuff https://github.com/ryantm/nix-update/blob/master/up.sh#L33
<joepie91> gemishhood: no, you need to install Electron *from nixpkgs*, not npm or you'll just get that same static build that doesn't work
<clever> joepie91: dynamic
dan_b has joined #nixos
<MichaelRaskin> Could I ask to add lispPackages to this block list?
<gemishhood> joepie91: Ok, I also have had the same error w/ popcorntime? I don't think it runs off electron but I could be mistaken
<srhb> gemishhood: The general story starts about here: https://nixos.wiki/wiki/FAQ#I.27ve_downloaded_a_binary.2C_but_I_can.27t_run_it.2C_what_can_I_do.3F
<joepie91> gemishhood: same issue, but with nw.js :)
<joepie91> gemishhood: (which is similar to electron)
<gemishhood> joepie91: Ohh, thanks. The nix build just finished downloading. Should I install it?
<joepie91> gemishhood: huh? what do you mean?
<ryantm> MichaelRaskin: Sure, you can open an issue and I'll research how, or just tell me what to grep for.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #36575: grails: 3.3.0 -> 3.3.2 (master...auto-update/grails) https://git.io/vAx4k
NixOS_GitHub has left #nixos [#nixos]
<gemishhood> joepie91: I'm not 100% sure, but arent you suppose to nix-env -i ./result/bin or something along those lines. I'm still new to nix
<joepie91> gemishhood: no, you should be able to just install electron directly as a package from nixpkgs - either by adding it to your systemPackages or by using `nix-env -iA electron` or something along those lines (see https://nixos.org/nixos/packages.html for a list of packages)
<MichaelRaskin> ryantm: ouch, this is not by path
<joepie91> gemishhood: but my dinner just arrived, so I'm afraid that somebody else will have to help you with NixOS install stuff or it'll get cold :P
<gemishhood> joepie91: Thanks for the help :)
<ryantm> MichaelRaskin: My bot is going to fail anyway then. It can't update anything that isn't at package-name/default.nix
<MichaelRaskin> Ah, that's good for lisp packages.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 opened pull request #36576: google-cloud-sdk: also fix darwin (master...google-cloud-sdk) https://git.io/vAx4H
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #36512: rapidjson: fix build error with gcc7 (master...rapidjson-gcc7) https://git.io/vANh7
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/release-18.03 6d88a00 xeji: rapidjson: fix gcc7 compile error...
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to release-18.03: https://git.io/vAxBY
<gemishhood> Still has the same error - zsh: no such file or directory: ./Soundnode
<clever> gemishhood: you have to run electron, not Soundnode
<gemishhood> hmm
<gemishhood> clever: I tried that using `electron Soundnode` but got a few errors
<clever> gemishhood: you dont run it on the ELF file
<clever> you run it on the directory
<gemishhood> clever: Ohh, I haha
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #36577: gramps: 4.2.6 -> 4.2.8 (master...auto-update/gramps) https://git.io/vAxRt
NixOS_GitHub has left #nixos [#nixos]
Guest21612 has joined #nixos
<rawtaz> trying to get git from unstable after following the FAQ entry on how to use unstable packages in stable installation, but it gives some errors (and im not getting the unstable git), any pointers to what im doing wrong? https://pastebin.mozilla.org/9079445
<rawtaz> i have added and updated the unstable channel using the two commands in https://nixos.wiki/wiki/FAQ#How_can_I_install_a_package_from_unstable_while_remaining_on_the_stable_channel.3F
murlocks has quit [Ping timeout: 252 seconds]
<gemishhood> rawtaz: I am not the unstable channel
<rawtaz> no, you seem rather stable :)
<clever> rawtaz: does `sudo nix-channel list` show channel called nixos?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vAxR7
<NixOS_GitHub> nixpkgs/master 4acd293 Jörg Thalheim: Merge pull request #36576 from Mic92/google-cloud-sdk...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master a30cb1b Jörg Thalheim: google-cloud-sdk: also fix darwin
<johnhamelink> Hey folks :) I'm at day-1 of using NixOS as a desktop OS (I'm a long-time arch user). Can anyone point me towards the nixos-correct way to run a tiling WM? I'm struggling to find anything on the wiki or on the internet generally?
<rawtaz> clever: yeah, --list does:
<clever> rawtaz: and did you run nix-channel --update as root?
<rawtaz> yep, i ran both commands from the FAQ, before trying to "test"
<clever> rawtaz: and keep in mind, nixos uses the nixos channel, which currently points to 17.09
<manveru> anyone know what `Failed to start local-fs.target: Unit -.mount is masked.` means?
<rawtaz> clever: perhaps i should run the update command again just for kicks
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to release-18.03: https://git.io/vAxRx
<NixOS_GitHub> nixpkgs/release-18.03 1ce6724 Jörg Thalheim: google-cloud-sdk: also fix darwin...
NixOS_GitHub has left #nixos [#nixos]
<rawtaz> it did download stuff etc though when i ran it
<clever> manveru: i genrally ignore systemd warnings like that
<manveru> ok...
<rawtaz> yeah it doesnt change anything, the channel is indeed updated
<gemishhood> rawtaz: Are you trying to update your packages?
<rawtaz> johnhamelink: check my recent paste https://pastebin.mozilla.org/9079445 and search for i3, thats it :)
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<johnhamelink> LnL: Yeah I did see this - what I'm more used to is having an xinitrc where I can run whichever WM I choose (my favourite is bspwm). Am I just thinking about this incorrectly?
<rawtaz> gemishhood: no, im just trying to make git come from unstable instead of stable (i successfully installed it from stable as usual before adding the things from the FAQ i linked to above ,so i do have git stable (2.15.0) already)
<rawtaz> gemishhood: if i get this running i will probably pull a couple of more packages from unstable, bit this is a start
<gemishhood> rawtaz: nix-env -e git and nix-env -iA nixos-unstable.git
<LnL> johnhamelink: the nixos options will do that kind of stuff for you, bspwm is also available check man configuration.nix
<johnhamelink> rawtaz: That's great for i3 but what if I want to use, say, bspwm with polybar on top. How would I do that? :)
<johnhamelink> LnL: cool, I will check that manpage, thanks
<rawtaz> johnhamelink: replace i3 with bspwm :)
<clever> johnhamelink: one min
<clever> johnhamelink: there are enable options for several tiling window managers: https://nixos.org/nixos/options.html#bspwm
<LnL> you can also manage the wm config with nix, let me paste what I use
<rawtaz> johnhamelink: not sure about polybar, but theres probably a pacakge for it. check in https://nixos.org/nixos/packages.html#polybar
<johnhamelink> clever: thanks, that's helpful! :)
<johnhamelink> rawtaz: So would I look for options for any package I want to configure in configuration.nix on the options page on the website?
<clever> johnhamelink: and nixos uses ~/.xprofile (sourced) and ~/.xsession (executed) for its x init stuff
<johnhamelink> clever: aha! I think I have enough to figure the rest out now. Thanks guys!
<rawtaz> gemishhood: well, that's a fine suggestion, but i am trying to declare the installation of git from unstable in configuration.nix (see https://pastebin.mozilla.org/9079445 ), so using nix-env to install it isnt what will solve the problem (which according to the FAQ shouldnt be a problem). im hoping to figure out why there are errors
<ottidmes> johnhamelink: I just ran polybar from the bspwm config, now I am using lemonbar though
<rawtaz> johnhamelink: the options reference. the configuration.nix is just where you put them. it contains a few from the start but those are just common and examples
<LnL> I use environment.etc for the config so reload works when rebuilding my system
dan_b has quit [Read error: Connection reset by peer]
dan_b has joined #nixos
<LnL> you could do something similar for bspwm/sxhkd then you get rollback, etc. for all of the configuration
<ottidmes> I like to keep those kind of config files outside of NixOS, because when I am editing them I want to reiterate them fast, and having to do nixos-rebuild switch on each change would become annoying
<johnhamelink> LnL: where do I learn more about environment.etc? :)
<gemishhood> rawtaz: Ohh sorry. I missunderstood you. Maybe try adding a nixpkgs channel that is unstable and then adding nixpkgs.git
<johnhamelink> attidmes that's a good point
<LnL> everything from that page is also in the configuration.nix manpage if you prefer that
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #36578: graylog: 2.4.1 -> 2.4.3 (master...auto-update/graylog) https://git.io/vAxEm
NixOS_GitHub has left #nixos [#nixos]
<rawtaz> gemishhood: i might be unclear ;) does https://nixos.wiki/wiki/FAQ#How_can_I_install_a_package_from_unstable_while_remaining_on_the_stable_channel.3F look good to you or is there anything missing in there (referencing my configuration in the paste i linked to)?
<LnL> including examples, etc.
<ottidmes> johnhamelink: I could give you some links to other peoples repos you could draw inspiration from, if you would like
<rawtaz> clever: where would you put config to set screen resolution? an xrandr command in .xprofile?
<johnhamelink> ottidmes: yes please! :)
<LnL> johnhamelink: basic principle is that environment.etc."foo".text = "bar" will create /etc/foo with bar as the content
<clever> rawtaz: .xprofile could be used for that, since nixos will source it and then continue booting X up
<johnhamelink> LnL: handy
<rawtaz> clever: yeah. but is it in your opinion the proper way? :)
<clever> rawtaz: i use xfce, and it restores all of my resolutions at login
<clever> even if that resolution config causes Xorg to segfault, lol
<rawtaz> johnhamelink: BTW, welcome the community! (not that im the one to say it, ive only been here for soon to be a week, but heck)
<rawtaz> clever: interesting. i suppose it stores that somewhere then
<rawtaz> clever: haha nice
<clever> rawtaz: somewhere in $HOME
<johnhamelink> Thanks rawtaz :D I'm a functional programmer so it's about time I give Nix a fair shake!
<rawtaz> johnhamelink: indeed :) what do you code mostly?
<clever> rawtaz: i had to boot the backup xterm "desktop env" and manually run the xfce version of regedit to delete the resolution config
<clever> rawtaz: xfce4-settings-editor
<johnhamelink> rawtaz: Elixir :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lsix opened pull request #36579: pythonPackages.channels: fix build and dependencies (master...fix-channels) https://git.io/vAxEw
NixOS_GitHub has left #nixos [#nixos]
<rawtaz> johnhamelink: oh boy, then you have the best of two worlds right now then :-)
<rawtaz> clever: ok cool
szicari has quit [Quit: szicari]
<rawtaz> well i gotta run. cheers everyone, ttyl
<johnhamelink> rawtaz: I know right! :D
dan_b has quit [Read error: No route to host]
<johnhamelink> thanks again rawtaz :) bbfn
<gemishhood> clever: I'm still not able to find out how to launch soundnode. What command do I type? I tried everything I can think of
dan_b has joined #nixos
<clever> gemishhood: what happens if you just run "electron ." in the soundnode directory?
* rawtaz &
<ottidmes> johnhamelink: https://pastebin.com/B144uzFj
<gemishhood> Error launching app
<gemishhood> Unable to find Electron app at /home/gem/Downloads/soundnode
<gemishhood> Cannot find module '/home/gem/Downloads/soundnode'
<gemishhood> And I get the same error for the git download
Fare has quit [Ping timeout: 268 seconds]
<johnhamelink> ottidmes: legend! Thank you :)
<clever> gemishhood: is there a package.json file in the git directory?
<gemishhood> yep
<clever> gemishhood: and does electron work there?
<gemishhood> Nope
<{^_^}> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/084445b8f38 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
jtojnar has joined #nixos
<gemishhood> App threw an error during load
<gemishhood> at Module._resolveFilename (module.js:485:15)
<gemishhood> at Function.Module._resolveFilename (/nix/store/nclcwwqk722xxlqd0vcvxgg5gc9xl4zj-electron-1.8.2/lib/electron/resources/electron.asar/common/reset-search-paths.js:35:12)
<gemishhood> Error: Cannot find module 'electron-window-state'
<gemishhood> at Function.Module._load (module.js:437:25)
<gemishhood> at Module.require (module.js:513:17)
<gemishhood> at require (internal/module.js:11:18)
Synthetica has joined #nixos
<gemishhood> at Object.<anonymous> (/home/gem/Downloads/soundnode/git/soundnode-app/main.js:11:27)
<gemishhood> at Object.<anonymous> (/home/gem/Downloads/soundnode/git/soundnode-app/main.js:268:3)
<ottidmes> johnhamelink: You should thank the people putting their configs online! Documentation is one thing, but often concrete examples work the best in getting understanding
<gemishhood> at Module._compile (module.js:569:30)
<clever> gemishhood: ah, you have to run `npm install .` i think, to download those deps
<gemishhood> at Object.Module._extensions..js (module.js:580:10)
<gemishhood> at Module.load (module.js:503:32)
<gemishhood> A JavaScript error occurred in the main process
<johnhamelink> ottidmes: absolutely!
<gemishhood> Uncaught Exception:
<gemishhood> Error: Cannot find module 'electron-window-state'
<clever> gemishhood: also, use a pastebin service, or risk the wrath of gchristensen :P
<gemishhood> at Module._resolveFilename (module.js:485:15)
<gemishhood> at Function.Module._resolveFilename (/nix/store/nclcwwqk722xxlqd0vcvxgg5gc9xl4zj-electron-1.8.2/lib/electron/resources/electron.asar/common/reset-search-paths.js:35:12)
<gemishhood> at Function.Module._load (module.js:437:25)
<gemishhood> at Module.require (module.js:513:17)
<gemishhood> at require (internal/module.js:11:18)
<gemishhood> at Object.<anonymous> (/home/gem/Downloads/soundnode/git/soundnode-app/main.js:11:27)
<gemishhood> at Object.<anonymous> (/home/gem/Downloads/soundnode/git/soundnode-app/main.js:268:3)
<gemishhood> at Module._compile (module.js:569:30)
<gemishhood> at Object.Module._extensions..js (module.js:580:10)
<gemishhood> at Module.load (module.js:503:32)
<gemishhood> Sorry about that, Ill add it to a pastebin
<gemishhood> Haha, I will
<gemishhood> Well thanks for the help!
aramiscd has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 75f4b0f lassulus: bitcoin-xt: 0.11G2 -> 0.11H
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vAxug
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 7eb9a1f Jörg Thalheim: Merge pull request #36568 from Lassulus/bitcoin-xt...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #36560: bitcoin-classic: 1.3.6 -> 1.3.8 (master...bitcoin-classic) https://git.io/vAxkP
NixOS_GitHub has left #nixos [#nixos]
MichaelRaskin has left #nixos [#nixos]
<clever> gemishhood: "works", but the css is missing, and the title bar is gone, the window can only be moved with alt+left drag
spietz has quit [Quit: WeeChat 1.9.1]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to release-18.03: https://git.io/vAxuP
<NixOS_GitHub> nixpkgs/release-18.03 0bbaa51 lassulus: bitcoin-xt: 0.11G2 -> 0.11H...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/release-18.03 eadbc34 lassulus: bitcoin-classic: 1.3.6 -> 1.3.8...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #36580: grml-zsh-config: 0.14.2 -> 0.14.3 (master...auto-update/grml-zsh-config) https://git.io/vAxuA
NixOS_GitHub has left #nixos [#nixos]
taktoa has joined #nixos
dan_b has quit [Read error: No route to host]
tinco has joined #nixos
<tinco> hi, I have a question about discovery of nixos features, I wanted to enable virtualbox guest additions, so I googled nixos guest additions
<tinco> which yields this page /nix/store/w4p40lv4rsgrx7m0kikzmbqmaiyx0xwb-grub-2.02/sbin/grub-install: error: cannot find a GRUB drive for /dev/sde. Check your device.map.
<tinco> woops
<tinco> no not that one
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] matthewbauer reopened pull request #35022: nix-buffer: make eshell-path-env be inherited (master...patch-10) https://git.io/vAc39
NixOS_GitHub has left #nixos [#nixos]
<tinco> from which I discovered services.virtualbox.enable
<gemishhood> man configuartion.nix and there will probably be a few xamples
<tinco> but that gave me the warning that I should instead use that one clever just gave
<tinco> is there a problem that google doesn't index nixos documentation very well?
<gemishhood> tinco: Try duckduckgo?
<clever> tinco: the doc i just linked, is auto-generated via javascript, so it cant really be indexed
<ryantm> tinco: There's a command called "nixos-option" too
dan_b has joined #nixos
<ryantm> Oh, that just lets you see what your options are set to.
<tinco> that's not very good..
<gemishhood> Here is what I got
tomberek has joined #nixos
chisui has quit [Ping timeout: 260 seconds]
<gemishhood> clever: Also I still cant oepn soundnode. npm install gives an error. I tried googling it but I still have no idea what I'm going
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vAxzS
<NixOS_GitHub> nixpkgs/master b3d39c6 Ryan Mulligan: gnubg: 1.04.000 -> 1.06.001...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 3476508 Jörg Thalheim: Merge pull request #36559 from ryantm/auto-update/gnubg...
<tinco> interesting, thanks :)
<clever> gemishhood: what error did npm give?
cfricke has quit [Quit: WeeChat 2.0]
<gemishhood> clever: Not sure. I just though of how there is opam2nix and looked for a node version
<gemishhood> clever: Sorry to bother you, It just came to me a min ago
<ottidmes> Hmm, I always thought most basic things were shared between most shells, but the read builtin of zsh has completely bash-incompatible options, I guess I will just have to put my script in its own file with a bash shebang
rogue_koder has quit [Quit: Konversation terminated!]
blankhart has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] matthewbauer opened pull request #36581: darwin: disable broken packages (master...darwin-fixes) https://git.io/vAxgX
NixOS_GitHub has left #nixos [#nixos]
<mpickering> Is there a way to see why nix decides to add a package as a runtime dependency?
<johnw> mpickering: I'd love to know that too
<mpickering> specifically it is adding Qt as a dependency which is causing conflicts with QtCore getting loaded twice
<johnw> mpickering: in fact, that would be a great thing to build with hnix: a code-based dependency analysis
<johnw> or wait, does nix-store offer a tree-view?
<mpickering> I think it's hard to know in general? As the build process can embed whatever paths it likes?
<johnw> yeah, that' strue
<johnw> although I bet that much of the time, we can figure ito ut
<mpickering> Ah, I might get some sympathy from you John, I'm trying to package something for darwin :P
<johnw> as you evaluate, just remember where you say something mentioned in a buildInputs, and then report all the instances
<johnw> s/say/saw
<symphorien> mpickering: nix why-depends
<symphorien> There is also nix-store -q --tree
<symphorien> And --graph
<mpickering> nix why-depends is a 2.0 command?
<symphorien> Yes
spietz has joined #nixos
djahandarie has joined #nixos
dan_b has quit [Read error: No route to host]
gemishhood has quit [Quit: leaving]
<djahandarie> Does anyone have an example of how to package something which decides to make random directories in /etc in its make install?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #36582: gromacs: 4.6.7 -> 2018 (master...auto-update/gromacs) https://git.io/vAx21
NixOS_GitHub has left #nixos [#nixos]
<djahandarie> (It obviously currently fails with install: cannot create directory '/etc/xdg': Permission denied)
Hail_Spacecake has joined #nixos
<Hail_Spacecake> hello
<Hail_Spacecake> is this the right channel to ask questions about using the nix package manager within ubuntu?
<djahandarie> Oh, looking more closely, I need to pass something useful in the DESTDIR environment variable actually.
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master a5e28a5 Matthew Justin Bauer: nix-buffer: make eshell-path-env be inherited
<NixOS_GitHub> [nixpkgs] shlevy pushed 2 new commits to master: https://git.io/vAx2b
<NixOS_GitHub> nixpkgs/master c46cd6c Shea Levy: Merge branch 'patch-10' of git://github.com/matthewbauer/nixpkgs
<ottidmes> ryantm: I see you updated one of the packages of which I am maintainer. You mentioned it was semi-automatic. I am curious how did you automate it? I could imagine you could check for newer rev tags automatically and update accordingly, or trying the same URL of a package with a version bump, but it seems hard to automate due to all the inconsistency in packages, so I am curious
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to staging: https://git.io/vAx2A
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/staging c69d8bf Shea Levy: treewide: Remove gnat support....
<blankhart> Hail_Spacecake: that's how i use this channel and it's been very welcoming
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy closed pull request #36551: treewide: Remove gnat support. (staging...no-gnat) https://git.io/vAApN
NixOS_GitHub has left #nixos [#nixos]
<Hail_Spacecake> wonderful
<Hail_Spacecake> I'm trying to install qgis on ubuntu with nix-env -i qgis
<Hail_Spacecake> when the install finishes and I run it
<ottidmes> Hail_Spacecake: It is, this is the catch-all channel for all things, Nix, Nixpkgs, NixOS, and NixOps, well, you get the point. Although there are some specialized channels.
<Hail_Spacecake> I get this python error message that has to do with not finding a dependency
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Hail_Spacecake> because it stops searching within /nix/store/* and starts searching within /usr/lib/python2.7
<Hail_Spacecake> which of course doesn't have that dependency
dan_b has joined #nixos
<Hail_Spacecake> its' bsaically this error: https://github.com/NixOS/nixpkgs/issues/11646
<Hail_Spacecake> and I'm seeing the same behavior they are with `imp.load_module('site',stream,path,descr)`
<ottidmes> Hail_Spacecake: You might try nix-shell instead
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy closed pull request #35022: nix-buffer: make eshell-path-env be inherited (master...patch-10) https://git.io/vAc39
NixOS_GitHub has left #nixos [#nixos]
<Hail_Spacecake> what does nix-shell do differently?
<Hail_Spacecake> aha I just saw https://github.com/NixOS/nixpkgs/issues/22176
<Hail_Spacecake> tht's probably my issue
<ottidmes> Hail_Spacecake: Well nix-shell creates a cleaner environment, so you get less poisoning of the distribution
<Hail_Spacecake> how do I use nix-shell? I'm still new to nix
<ottidmes> Hail_Spacecake: I have used Nix for a short while on Arch Linux before going to NixOS, the problem is, you can change the PATH all you want, but you end up breaking either your Nix apps or your distributions apps, at least that was my experience
<ottidmes> Hail_Spacecake: nix-shell -p qgis will put you into a shell with access to qgis
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] xeji opened pull request #36583: libav: remove /bin/sh dependencies (master...libav-shebangs) https://git.io/vAxa8
NixOS_GitHub has left #nixos [#nixos]
<Hail_Spacecake> ottidmes: I'll give that a shot
<Hail_Spacecake> ah, looks like that does what I want
<Hail_Spacecake> ottidmes: how was it moving off of arch to nixos?
<Hail_Spacecake> arch is my distro of choice on my personal computers
<Hail_Spacecake> to be honest, I've been using arch so long that I would feel a slight sense of nostaligic loss if I switched to something else :)
<Hail_Spacecake> but nixos seems like it provides a bunch of neat features
<ottidmes> Hail_Spacecake: Well it was a bit like I expected, it was awesome and frustrating at the same time. It has quite the learning curve, but it is well worth it if you ask me. The frustrating bit is some of the non-obvious and less documented stuff, but the IRC and other peoples configs helped out a lot in that regard
MP2E has joined #nixos
loonquawl has quit [Quit: loonquawl]
<ottidmes> Hail_Spacecake: The only problem you might face is missing some packages that are on Arch Linux's AUR, but not on nixpkgs, although nixpkgs keeps growing and I rarely have to package something myself
<djahandarie> Hmm, this thing I'm trying to package tries to call python doing something like this: if [ -f /usr/bin/python3 ]; then PYTHON=/usr/bin/python3; else PYTHON=python; fi; exec $PYTHON some_stuff
<djahandarie> And for whatever reason, nix can't seem to catch that and replace it with a call to the relevant nix store path including python3
<djahandarie> Is there some way to help nix?
<Hail_Spacecake> ottidmes: could be an issue for me, I make decent use of AUR
slyfox has quit [Quit: yay \o/]
<ottidmes> Hail_Spacecake: The biggest difference between Arch and NixOS for me is a similar difference between impure and pure languages, in NixOS it harder to take shortcuts (like in e.g. Haskell), but this has all kinds of nice benefits, while in Arch you can most hack your way around stuff and even obscure things are already packaged
<ottidmes> djahandarie: I am afraid you will have to patch that yourself
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #36584: groovy: 2.4.12 -> 2.4.14 (master...auto-update/groovy) https://git.io/vAxVq
NixOS_GitHub has left #nixos [#nixos]
<djahandarie> ottidmes, hmm, alright. Do you have an example of something which does something similar?
davidlt_ has joined #nixos
ona has joined #nixos
vidbina has quit [Ping timeout: 260 seconds]
Tobba has quit [Ping timeout: 256 seconds]
<ottidmes> Hail_Spacecake: Doesn't have to be, in Arch you have the core/extra/community that is extensive, but you are almost guaranteed to need some stuff from the AUR, NixOS just has nixpkgs, and it contains packages that you would find in either the base of Arch or the AUR, it will just contain less packages
<Hail_Spacecake> seems like there's a project called effuvv that draws inspiration from nixos
davidlt has quit [Ping timeout: 260 seconds]
<ottidmes> djahandarie: The blender package has an example similar to yours
<mpickering> anyone know how to get the install phase in cmake to print the commands it is running?
gerschtli has left #nixos ["WeeChat 1.9.1"]
<djahandarie> ottidmes, awesome, this seems very relevant. Thanks so much.
<djahandarie> (I suppose I could have just greped nixpkgs for something relevant, which I guess is what you just did...)
<djahandarie> This is the first not-my-complex-software I've packaged, still getting used to it :p
<ottidmes> djahandarie: Find & Replace in Sublime Text, but yeah, I always have that project handy when I am working on my config
aramiscd has quit [Ping timeout: 252 seconds]
davidlt_ has quit [Ping timeout: 260 seconds]
aramiscd has joined #nixos
<Guest21612> The network is pretty unreliable when running nix builds from source. Everyonce and a while upstream urls break. Hopefully one day those urls will be put onto IPFS.
freeman42x]NixOS has quit [Ping timeout: 245 seconds]
<ottidmes> djahandarie: The biggest problem I still sometime have with packaging has nothing to do with Nix, but everything with the build steps of the software (i.e. the distribution agnostic part), it always seems so uncessary cryptic and complex to me
<djahandarie> Yeah, 'tis all a mess.
hamishmack has quit [Quit: hamishmack]