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_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir opened pull request #33844: libxml2: 2.9.5 -> 2.9.7 (fixes CVE-2017-15412) (master...17.09/libxml2) https://git.io/vNnPH
NixOS_GitHub has left #nixos [#nixos]
marusich has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir opened pull request #33845: libxml2: 2.9.5 -> 2.9.7 (fixes CVE-2017-15412) (release-17.09...17.09/libxml2) https://git.io/vNnP7
NixOS_GitHub has left #nixos [#nixos]
justbeingglad has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir closed pull request #33844: libxml2: 2.9.5 -> 2.9.7 (fixes CVE-2017-15412) (master...17.09/libxml2) https://git.io/vNnPH
NixOS_GitHub has left #nixos [#nixos]
<catern> lol.
<catern> it looks like this is my best bet:
<catern> nix-instantiate --read-write-mode --eval --expr '__storePath [insert_store_path_here]'
[0x4A6F]1 has joined #nixos
<catern> that will fail immediately if the path is not valid and not substitutable
<catern> nix, why do you do this to me :(
[0x4A6F] has quit [Ping timeout: 260 seconds]
<Dezgeg> maybe nix-store -r --option system dummy-system
nithor has quit [Ping timeout: 256 seconds]
<Dezgeg> + the path
<mpickering> Unode: Probably need to update nixpkgs
[0x4A6F] has joined #nixos
<mpickering> or create an attribute for 822 which points to 821
<Dezgeg> or a dummy/nonexistent build-hook
<Unode> mpickering: hum... I just did. I'm a little confused right now. grepping for ghc822 or ghc821 results in almost the same code, yet 821 builds while 822 doesn't
[0x4A6F]1 has quit [Ping timeout: 240 seconds]
<catern> Dezgeg: oh hey! great idea about --option system dummy-system
<catern> yeah, that works!
<catern> my way works by (ultimately) calling ensurePath
<catern> which is kind of precisely what I want
<Dezgeg> I agree it would be nice to have a way to disable local building, I have sometimes needed that as well
<Unode> mpickering: http://dpaste.com/30YS7AX
<catern> Dezgeg: does yours still lead to the possibility of build hooks being invoked?
<catern> I admit to being skeptical about how well -j0 works now
<catern> but theoretically nix-store -r -j0 --option system noSuchSystem should disable both local and remote building...
<Dezgeg> yeah, I think something like --option build-hook $(which false) is needed
<catern> hmm. what if I'm not a trusted-user?
<mpickering> Unode: but you said you are using a channel?
<mpickering> what exactly are you grepping
<Dezgeg> hmm yes, that could be a problem
[0x4A6F]1 has joined #nixos
<catern> i posted it just above so i don't know if you saw it but the start of this journey was with https://github.com/NixOS/nix/issues/1798
Sonarpulse has joined #nixos
[0x4A6F] has quit [Ping timeout: 256 seconds]
[0x4A6F]1 is now known as [0x4A6F]
fyuuri has quit [Ping timeout: 256 seconds]
nithor has joined #nixos
krey has quit [Ping timeout: 264 seconds]
dbe_ has quit [Ping timeout: 240 seconds]
<Unode> mpickering: found the issue. There was some mixup of what channel was being used for 'nixpkgs'.
<Unode> mpickering: some symlink got replaced automatically and broke my setup. Need to figure out how/what caused this next time it happens.
<Unode> mpickering: thanks for the help
<flokli> I recently got a lot of emails from hydra about failing builds (which were apparently breakages from end of last year)
<flokli> (trunk)
thc202 has quit [Ping timeout: 264 seconds]
nithor has quit [Ping timeout: 256 seconds]
justbeingglad has left #nixos [#nixos]
<flokli> Those are all fixed by now, and it's quite irritating to get these notifications now.
<flokli> Is hydra lagging behind, or is this just some amount of mails that got stuck somewhere and now get delivered?
[0x4A6F]1 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/release-17.09 7880cac Andreas Rammhold: libxml2: 2.9.5 -> 2.9.7 (fixes CVE-2017-15412)...
<NixOS_GitHub> [nixpkgs] andir pushed 2 new commits to release-17.09: https://git.io/vNn1v
<NixOS_GitHub> nixpkgs/release-17.09 bc66772 Andreas Rammhold: Merge pull request #33845 from andir/17.09/libxml2...
NixOS_GitHub has left #nixos [#nixos]
[0x4A6F] has quit [Ping timeout: 248 seconds]
[0x4A6F]1 is now known as [0x4A6F]
<Unode> hum... how does nixos set NIX_PATH on the user environment? I'd like to customize one of the definitions but (if possible) would like to avoid doing it in the user's shellrc files.
joshuaks has joined #nixos
<joshuaks> Is the a configuration.nix type thing for macOS?
sigmundv_ has quit [Ping timeout: 268 seconds]
<joshuaks> I don't expect to configure the system. Just a base package list.
<pkill9> Unode: you could do it in ~/.profile
<Unode> joshuaks: configuration.nix is for NixOS. If you are only using Nix, configuration.nix is not what you want. Try /etc/nix/nix.conf instead.
manoj1 has quit [Ping timeout: 256 seconds]
<pkill9> then again idk
<Unode> pkill9: :) that was my question
bennofs has quit [Quit: WeeChat 1.9.1]
<pkill9> i'm not sure where mine is set
<Unode> I just didn't want to do it out of ignorance and be bitten in the future.
<tilpner> There is nix-darwin which allows you to do Nixos-like configuration. You don't need it for simple package lists though
bennofs has joined #nixos
sigmundv_ has joined #nixos
<joshuaks> A quick google search. How do I specify packages in nix.conf?
<Unode> pkill9: Some time ago I decided to use a manual clone of the channel instead of relying on nix-channel --update. It's stored in /var so that all users can read it. Stuff mostly works but NIX_PATH still got set nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
<joshuaks> Currently I have a default.nix at $HOME and run nix-shell as part of my shell init.
<joshuaks> Nix-darwin looks dope tilpner
<Unode> joshuaks: what do you want to do exactly?
<LnL> o/
<joshuaks> I'm coming from Brew. So some sort of master list of packages?
<Unode> joshuaks: that is stored in your user's profile
<Unode> joshuaks: do you want to have different packages for different environments or one single place with all packages for your user?
<LnL> joshuaks: if it's just for packages, take a look at https://nixos.org/nixpkgs/manual/#sec-declarative-package-management
<Unode> LnL: macOS ^
nithor has joined #nixos
srdqty has joined #nixos
ssmike has quit [Ping timeout: 240 seconds]
<joshuaks> holy crap that worked :)
<joshuaks> I've spent way too much time trying to figure that out
babyflakes has quit [Quit: Connection closed for inactivity]
<joshuaks> Now, I'd like to ask your opinion. Was my previous solution okay or is more of an anti-pattern / the wrong way to do things?
srdqty has quit [Client Quit]
<Unode> joshuaks: it's not entirely clear what you were doing before.
rain1 has joined #nixos
<rain1> idea: a version of nix but /bin/bash exists
<joshuaks> Okay, I'll try to explain. If it's too much just let me know.
<joshuaks> I was trying to bootstrap from a base configuration, so keep that in mind.
<LnL> so you essentially where always in a nix-shell?
<joshuaks> In my bash_rc I has 'nix-shell -p zsh --command zsh'
<joshuaks> LnL: yes
<joshuaks> And I had a default.nix at $HOME so it would pull in all my desired base packages.
nithor has quit [Ping timeout: 256 seconds]
<Unode> joshuaks: do you have only one set of packages?
<joshuaks> Uhm. I'm not sure what you mean.
<Unode> I have different packages for different projects. Some of which conflict with each other. So I need different environments for different projects.
jmeredith has quit [Quit: Connection closed for inactivity]
<joshuaks> Ah. No, but it is my intention to get there eventually.
<LnL> I do that on a per project basis
<catern> "to build this path, we need the fixout inputs required to realise the input paths of this path's deriver"
<catern> what a sentence
<Unode> catern: language is hard at times
<catern> it's a sentence I wrote :)
<Unode> LnL: on a completely different topic, you wouldn't happen to know how/where does nixOS set NIX_PATH globally? (i.e. what gets set in the users' environment). I'd like to customize the location of nixpkgs=
<joshuaks> In my head, I would have a default.nix in home for my base working shell, then in my repos/projects I would have specialized default.nix's for the proejct. For example, ghci wouldn't be in $HOME/default.nix but vim would be.
<joshuaks> Which would ultimately result in running nix-shell's inside each other
<LnL> Unode: it's set in bashrc or whatever based on the value of nix.nixPath
dywedir has quit [Ping timeout: 240 seconds]
<Unode> ok, I don't have that on my configuration.nix so I guess it's using the default. Time to change that. Thanks!
<LnL> joshuaks: that works but I would use nix-env for the global things, then you don't have to deal nested shells and other weirdness
<LnL> you might also run into trouble when something breaks in the global environment, since opening a new shell will try to update everything
nithor has joined #nixos
simukis has quit [Ping timeout: 255 seconds]
tgunb has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #33846: 2048-in-terminal: 2015-01-15 -> 2017-11-29 (master...update/2048-in-terminal) https://git.io/vNnM4
NixOS_GitHub has left #nixos [#nixos]
swayf has quit [Remote host closed the connection]
ambro718 has quit [Ping timeout: 255 seconds]
<joshuaks> Ok. One more question. Can I specify the version of a program I want in my config?
nithor has quit [Ping timeout: 256 seconds]
<joshuaks> I'm trying "docker-17.11.0-ce" but the install throws an error saying it doesn't expect an int
<LnL> yes, if we have multiple versions packaged
swayf has joined #nixos
<Unode> joshuaks: in that case try docker_17_11 instead
<Unode> use the 'attribute name'
<LnL> you can even use multiple versions of nixpkgs if you want :D
pxc has joined #nixos
* Unode has nixpkgs.git for that purpose
tubman_GEOW3Z has joined #nixos
<tubman_GEOW3Z> ▄▄▄▄▄▄▄▄▄▄▄▄▄ ##FEMINISM IS OFFERING TRAINING IN TAPPING INTO YOUR INNER FETISHES!! EL IS IN #FREENODE FOR ANY QUESTIONS rqqvzr: raynold bennofs ariutta ▄▄▄▄▄▄▄▄▄▄▄
<tubman_GEOW3Z> ▄▄▄▄▄▄▄▄▄▄▄▄▄ ##FEMINISM IS OFFERING TRAINING IN TAPPING INTO YOUR INNER FETISHES!! EL IS IN #FREENODE FOR ANY QUESTIONS uooysgemjr: danyc0 rogue_koder m0rphism ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
tubman_GEOW3Z has quit [Excess Flood]
<gchristensen> neat.
<joshuaks> Cool I got it working.
<joshuaks> In this case, I'm install docker. And it will always point to that version now?
<LnL> !m gchristensen
<[0__0]> You're doing good work, gchristensen!
the has joined #nixos
<LnL> oh, the wasn't here?
<Unode> the?
<gchristensen> LnL: nah, they just spammed too fast and got kicked from the network
<gchristensen> Unode: it is a nickname I have
<Unode> it's 'the' nickname ;)
<samueldr> couldn't even be bothered to spam right... that's new
<Unode> these days, it's safe to assume that any line with more than 2 nick/notices is spam. Wonder if I can configure my client to automatically ignore those...
<gchristensen> that isn't quite true
<samueldr> ugh, they're doing it right in another channel though
sigmundv_ has quit [Quit: Leaving]
<Unode> gchristensen: I'd love to see some numbers on this though. My impression is that false positives would be quite low.
nithor has joined #nixos
<samueldr> maybe it would help when there's nothing else said than that
<samueldr> only thing they do is join to highlight multiple people per message
sigmundv_ has joined #nixos
hexa- has quit [Killed (Sigyn (BANG!))]
pjan_ has joined #nixos
<LnL> you could probably do heuristic based on highlights/carps/hashtags/... that's pretty good
hexa- has joined #nixos
pxc has quit [Ping timeout: 256 seconds]
<paraseba> I have submitted a PR for a new package following the recommendations to contribute, is there some kind of process to get it reviewed and merged?
<samueldr> submitting it starts the process, afaik
mkoenig has quit [Ping timeout: 276 seconds]
<paraseba> I only submitted a day ago, so I'll just wait, thanks. Anyway, if somebody wants to review: https://github.com/NixOS/nixpkgs/pull/33792
deepfire has quit [Remote host closed the connection]
nithor has quit [Ping timeout: 256 seconds]
oida has joined #nixos
<Unode> what is the recommended way to have local mail delivery on NixOS? The manual doesn't seem to include any reference on this point.
dan_b has quit [Ping timeout: 276 seconds]
pkill9 has quit [Quit: WeeChat 2.0]
verite has joined #nixos
nithor has joined #nixos
mkoenig has joined #nixos
mkoenig has quit [Read error: Connection reset by peer]
cinimod has quit [Quit: Connection closed for inactivity]
iyzsong has joined #nixos
<bennofs> Unode: you'd need to run a mail server I guess?
<bennofs> so postfix/exim/msmtp/opensmtpd
chessai has joined #nixos
<Unode> bennofs: trying postfix as we speak. Out-of-the-box configuration doesn't seem to do local delivery. Poking things a bit more.
<Unode> Thanks
nithor has quit [Ping timeout: 255 seconds]
mkoenig has joined #nixos
bennofs has quit [Quit: WeeChat 2.0]
mkoenig has quit [Read error: Connection reset by peer]
wilornel has joined #nixos
<wilornel> I am trying to install pip and virtualenv for python3 and am getting a collision: "collision between `/nix/store/v5nrdvadzwiirvh8b67gcq6xq9sf39lc-python3-3.6.4-env/bin/idle' and `/nix/store/cwxxbpfz2i2j34f3sgmd6vdl6wv98c2s-python3-3.6.4/bin/idle"
<wilornel> I'm not sure what is the best way to handle these collisions for python modules
mkoenig has joined #nixos
mkoenig has quit [Read error: Connection reset by peer]
<wilornel> Ah, I might be able to just install pip first and then virtualenv
<disasm> wilornel: first of all, don't install either :)
<wilornel> Hmm
<wilornel> `python3 -m pip` says "No module named pip"
<disasm> if you want to use pip or virtualenv you should use nix-shell, but better yet is to write a default.nix
vidbina has quit [Remote host closed the connection]
<disasm> If you try using pip or virtualenv outside of nix-shell, you're going to find a lot of pain
nithor has joined #nixos
verite has quit [Ping timeout: 256 seconds]
<wilornel> disasm: I am trying to install pip using the following ~/.config/nixpkgs/config.nix file: https://paste.ubuntu.com/26381933/
<wilornel> is that not right? Should I do it under the python3 package somehow?
manoj1 has joined #nixos
<disasm> one sec
<disasm> wilornel: nix-shell -p pythonPackages.pip pythonPackages.virtualenv
mkoenig has joined #nixos
<disasm> then you can use virtualenv and pip normally if you do that
mkoenig has quit [Read error: Connection reset by peer]
hellrazo1 has joined #nixos
nithor has quit [Ping timeout: 256 seconds]
<disasm> but the best way to use python with nix would be to just specify the dependencies you want in a default.nix file, or use pypi2nix
<wilornel> where is default.nix file? How would I specify those dependencies? What about the way I am doing it now? What is wrong with it? It's not installing the packages under python3?
<wilornel> this linked example will allow me to install these dependencies and not have to use nix-shell afterwards, right?
hellrazor has quit [Ping timeout: 255 seconds]
marusich has quit [Ping timeout: 240 seconds]
ariutta has quit [Ping timeout: 260 seconds]
<disasm> wilornel: it depends... installing your application to nix you can use it without nix-shell but active development, you should always use nix-shell
mbrgm has quit [Ping timeout: 256 seconds]
mkoenig has joined #nixos
<disasm> The way nix handles things, installing a python package in your path doesn't get it in your PYTHONPATH
marusich has joined #nixos
<wilornel> right
mkoenig has quit [Read error: Connection reset by peer]
<wilornel> if I could do `python3 -m pip install requests` with the python3 I installed using nixos, then it would be fine, right?
mbrgm has joined #nixos
<wilornel> because that would install the package in the right location for the python3 package?
<disasm> no
<wilornel> darn, I see
<disasm> I don't remember exactly, but I think that would try to write to the nix store
<disasm> which would fail
<wilornel> I see, because the nix store is read-only for normal users
<wilornel> Alright, I'm trying the default.nix and nix-build approach and it's installing packages for python2.7 when I want then for python3
<disasm> Since there is no global site packages that's writable (that would introduce state), we have nix-shell to get things in your path for development.
<wilornel> I also tried pkgs.python3Packages.pyramid instead of pkgs.pythonPackages.pyramid
<disasm> It goes the same for gcc, install gcc and you can't compile. Run nix-shell -p stdenv.cc and now you have gcc and stdlib in your path.
<wilornel> what if it's not for development, just for running in production? nix-shell should be fine for that as well, right?
<disasm> for running in production, you should use buildPythonPackage
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc closed pull request #33792: scid-vs-pc: init at version 4.18.1 (master...scidvspc) https://git.io/vNGdl
NixOS_GitHub has left #nixos [#nixos]
<disasm> yeah, it can :)
marusich has quit [Ping timeout: 255 seconds]
<wilornel> but running `nix-shell` with that code snippet in default.nix, I get "error: undefined variable 'buildPythonPackage' at /home/vagrant/python_dependencies/default.nix:3:1"
<disasm> yeah...
nithor has joined #nixos
<disasm> with import <nixpkgs> {};
<disasm> at the top
<wilornel> it's there
<disasm> then you need the full path: python36.pkgs.buildPythonPackage
<wilornel> doing `let buildPythonPackage = pkgs.python35Packages.buildPythonPackage; in` after the import helped
mkoenig has joined #nixos
<wilornel> alright, yes
marusich has joined #nixos
<disasm> yup, that works
<wilornel> alrigh!!
<wilornel> Now, do I want to use pip inside of that? I think so
<disasm> no :)
<wilornel> and if I do, I don't necessarily need virtualenv, right?
<wilornel> no? why not, agh
<wilornel> what if I use pip inside virtualenv?
<wilornel> I'd like to be consistent with others who use `requirements.txt`
mkoenig has quit [Read error: Connection reset by peer]
<disasm> so in your buildPythonPackage just specify buildInputs for build deps and propagatedBuildInputs for runtime deps
<disasm> so... I think what you might be looking for is pypi2nix
<disasm> That will take a requirements.txt file and try to generate an equivalent nix file
<wilornel> so what do I need buildPythonPackage for?
jb55 has quit [Ping timeout: 276 seconds]
nithor has quit [Ping timeout: 276 seconds]
<wilornel> actually, I'm confused what do you mean when you say I should use buildPythonPackage and propagatedBuildInputs
Supersonic112 has quit [Disconnected by services]
<disasm> pypi2nix is a program that takes a requirements.txt and generates buildPythonPackage for you
<disasm> well, generates a bunch of buildPythonPackage for each dependency
dag_ has joined #nixos
<wilornel> I see, and what is an example of runtime dependencies that are not build dependencies for python?
<disasm> It gets you exact versions you want instead of using the versions in nixpkgs
<disasm> you got it backwards
<disasm> buildInputs are only available at build time (testing tools, libraries that aren't used by the app itself, etc...)
verite has joined #nixos
<disasm> propagatedBuildInputs are available at both build time and runtime
Supersonic112_ has joined #nixos
mkoenig has joined #nixos
<disasm> so if the app needs say requests library, that would be a propagatedBuildInput. If it needs coverage that would be a buildInput
<wilornel> so buildInputs would be like cli tools and propagatedBuildInputs are libraries the python script would use
<wilornel> I see, thank you
Supersonic112_ is now known as Supersonic112
<disasm> Takes a bit to wrap your head around at first :)
chessai has quit [Ping timeout: 276 seconds]
<wilornel> well, my requirements.txt could have both! pytest and numpy, for example
<wilornel> pytest is build time, numpy is runtime
<disasm> But once you figure it out, you get really angry any time your in a situation you can't use nix, lol
<wilornel> would pypi2nix figur eit out
<wilornel> :)
<wilornel> I'm excited to start to use nix more!
<disasm> no, you define that
Guest57877 has quit [Ping timeout: 255 seconds]
alexteves has quit [Ping timeout: 276 seconds]
<wilornel> so pypi2nix will not fully convert requirements.txt to the corresponding correct requirements.nix
<disasm> you could propagatedBuildInputs = builtins.attrValues python.packages; in a default.nix
<wilornel> ah I think I see
<wilornel> which does what?
<disasm> and that would treat all deps as runtime
la_putin has joined #nixos
<wilornel> and would pytest be available from the cli?
<wilornel> btw starting to try it out now
<disasm> so... you should run pytest as part of your buildPythonPackage
<wilornel> (What if I specify version -V "3.6" and some packages are only on 3.5 still? I wonder if that will be an issue...)
<wilornel> aaah I'm getting issues already
<disasm> checkInputs = [ pytest ];
<wilornel> what's that?
<disasm> that tells it to use pytest for running tests
el_putin has quit [Read error: Connection reset by peer]
nithor has joined #nixos
<disasm> oh, and you need to sepcify the checkPhase
mkoenig has quit [Read error: Connection reset by peer]
<disasm> something like this: checkPhase = "cd tests; ${python.interpreter} run.py --ignore py35 -k 'not test_defaults and not test_anchors_ignored'"
<wilornel> and that would be part of what? the requirements.nix?
<disasm> or, to run py.test directly: py.test -k "not test_input_output"
<disasm> no, default.nix
<wilornel> I find it strange that I would define how to run my tests with the tools of the package manager
<wilornel> I guess that's utilizing the full power of nix
<wilornel> but it would be less compatible with other installations
<disasm> well, that way anyone that builds your project runs the tests :)
<wilornel> I would like this to be easily transferrable elsewhere
<disasm> yeah... pypi2nix would basically let you take your teams requirements.txt and get you an env in nix that you could develop
<disasm> but without your whole team embracing nix (ops team, etc...) you won't get the full benefit out of nix, being able to package nix derivations, deploy them to systems on bare metal or the cloud, etc...
<disasm> I'm kinda in the position at work right now where I use nix for my own sanity, and everyone else does whatever they want
nithor has quit [Ping timeout: 256 seconds]
<disasm> Which drives me bonkers, lol, why can't everyone see how awesome nix is and embrace it!
mkoenig has joined #nixos
sigmundv_ has quit [Ping timeout: 256 seconds]
wilornel_ has joined #nixos
wilornel has quit [Ping timeout: 260 seconds]
<wilornel_> I'm back! Ah, I dislike not having an instance always connected to irc
<wilornel_> to freenode
<wilornel_> disasm: did you say something when I was not on?
joshuaks has quit [Quit: WeeChat 1.9.1]
<wilornel_> I think it's uneasy to use nix outside of nixos
xcmw has joined #nixos
mkoenig has quit [Read error: Connection reset by peer]
<wilornel_> ah logs show that I didn't send that... The way I like to use nix works best inside nixos. I find it hard to use elsewhere, and maybe your co-workers feel similarly about nix?
nithor has joined #nixos
mkoenig has joined #nixos
mkoenig has quit [Read error: Connection reset by peer]
nithor has quit [Ping timeout: 256 seconds]
<wilornel_> Ah! And now my devise is out of space...
<wilornel_> or maybe not... that's what pypi2nix says.. df -h says otherwise. I'm confused. I'm also running pypi2nix under nix-shell
chessai has joined #nixos
chpatrick has quit [Quit: Connection closed for inactivity]
<wilornel_> Ah! numpy/core/src/multiarray/lowlevel_strided_loops.c.src:1793:1: fatal error: error writing to /run/user/1000/cc0SKQ9V.s: No space left on device
<wilornel_> So numpy is trying to write somewhere..
mkoenig has joined #nixos
mkoenig has quit [Read error: Connection reset by peer]
<wilornel_> actually /run/user/1000 is of size 100M, and has only 62M left, so maybe that is why it's failing indeed. I don't see why it uses that partition
<wilornel_> that filesytem*
<samueldr> for channels that get spam, it seems that freenode staffers are recommending the channels invite their Sigyn bot https://github.com/freenode/Sigyn#requesting-sigyn-to-your-channel , if it is deemed relevant. ( cc gchristensen )
sigmundv_ has joined #nixos
<gchristensen> I've requested a few times now, no luck, samueldr
mkoenig has joined #nixos
nithor has joined #nixos
<samueldr> aww
<gchristensen> 'night ;)
<samueldr> 'night
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xcmw has joined #nixos
mkoenig has quit [Read error: Connection reset by peer]
the has quit [Ping timeout: 276 seconds]
nithor has quit [Ping timeout: 255 seconds]
marusich has quit [Ping timeout: 256 seconds]
mkoenig has joined #nixos
marusich has joined #nixos
mkoenig has quit [Read error: Connection reset by peer]
<qmm> i've been struggling with this for days
<qmm> how do i get around this?
mkoenig has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mkoenig has quit [Read error: Connection reset by peer]
nithor has joined #nixos
Arcaelyx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pjan_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<chessai> does anyone know if it's possible to specify caches within a nix expression, ie not just within /etc/nixos/configuration.nix?
<chessai> it seems like that would be extremely useful on a per-project basis
mkoenig has joined #nixos
<dtz> chessai: I think you can? But you need to be "trusted" or it needs to have been whitelisted in configuration.nix by a trusted user (or something). I'm not sure about all the trusted stuff O:)
<dtz> but basically can't have users willy-nilly saying "import paths from $URL"
<dtz> (for arbitrary URL's, since doing so is basically the same as letting users write to the store themselves :))
<dtz> fun output of some hackery while waiting on builds: https://github.com/NixOS/nixpkgs/issues/33848
mkoenig has quit [Read error: Connection reset by peer]
<chessai> dtz: looks cool
<chessai> dtz: the link i mean
pjan_ has joined #nixos
<wilornel_> It seems like nix-shell uses a specific filesystem and installing some packages from inside nix-shell using pypi2nix does not work. I think you're not supposed to do that, right?
marusich has quit [Ping timeout: 264 seconds]
mkoenig has joined #nixos
marusich has joined #nixos
mkoenig has quit [Read error: Connection reset by peer]
xcmw has joined #nixos
xcmw has quit [Client Quit]
xcmw has joined #nixos
nithor has quit [Ping timeout: 256 seconds]
trelane_ has joined #nixos
trelane_ has quit [Excess Flood]
mkoenig has joined #nixos
pxc has joined #nixos
nithor has joined #nixos
ssmike has joined #nixos
la_putin has quit [Read error: Connection reset by peer]
manoj1 has quit [Quit: WeeChat 1.9.1]
la_putin has joined #nixos
krey has joined #nixos
<dhess> ~70K/s
mkoenig has quit [Read error: Connection reset by peer]
<wilornel_> disasm: What if a package I am trying to install tries to do `from IPython...` , and pypi2nix did not install ipython before installing that package? Then I need to manually install ipython manually beforehand
<dhess> seems fast elsewhere, oh well
marusich has quit [Ping timeout: 265 seconds]
<dhess> weird peering
marusich has joined #nixos
schoppenhauer has quit [Ping timeout: 256 seconds]
nithor has quit [Ping timeout: 255 seconds]
schoppenhauer has joined #nixos
mkoenig has joined #nixos
mkoenig has quit [Read error: Connection reset by peer]
nithor has joined #nixos
mkoenig has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ssmike has quit [Ping timeout: 256 seconds]
<wilornel_> Alright, installing python modules in nixos is not easy. I'll move on to ubuntu for now then
<wilornel_> Aaaah every time I come back to nix I'm almost there and then I have to switch for the sake of doing some progress in my work
wilornel_ has quit [Quit: Page closed]
mkoenig has quit [Read error: Connection reset by peer]
marusich has quit [Ping timeout: 256 seconds]
marusich has joined #nixos
mkoenig has joined #nixos
mkoenig has quit [Read error: Connection reset by peer]
mkoenig has joined #nixos
pxc has quit [Ping timeout: 256 seconds]
mkoenig has quit [Read error: Connection reset by peer]
wilornel has joined #nixos
<wilornel> Ah, I didn't mean to leave on that note earlier
[0x4A6F] has quit [Remote host closed the connection]
[0x4A6F] has joined #nixos
<wilornel> I tried to install ipython from config.nix with (with python3Packages; python3.buildEnv.override { extraLibs = [ ipython ]; }), but I get a collision issue
mkoenig has joined #nixos
<angerman> what's the state of provisioning a nixos machine from macos? can I use nixops?
la_putin has quit [Read error: Connection reset by peer]
mkoenig has quit [Read error: Connection reset by peer]
la_putin has joined #nixos
nithor has quit [Ping timeout: 276 seconds]
<wilornel> angerman: You mean live spining up nixos on virtualbox using vagrant?
<angerman> wilornel: I guess that's the only solution right now?
<angerman> Maybe I should just install a nixos instance in parallels, and forget about macOS.
<dhess> angerman: NixOps on macOS may work for you. It seems to be pretty hit-and-miss and depends on what you're trying to do.
<wilornel> that's what I was able to set up today. I mean, I was able to set up nixos running on virtualbox without vagrant as well in the past
<dhess> angerman: for example, you might be more successful if you're using nix-darwin (as in my experience, remote builds are much more reliable with nix-darwin than without).
<dhess> angerman: and containers apparently do not work well when deployed from NixOps on macOS. There's a GitHub issue on that somewhere
sigmundv_ has quit [Ping timeout: 256 seconds]
<angerman> ok. So I have a server which runs nixOS. And I currently mange it by copying over a new configuration.nix, and run nixos-rebuild on the machine. That's all "ok" as the system has almost zero usage. But I'd like to optimize.
<dhess> angerman: at the very least you will need an x86_64-linux remote builder. That can be a VM. LnL has a nix-docker repo that works well with nix-darwin
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/bc66772e76f (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [Client Quit]
mkoenig has joined #nixos
<wilornel> Wait I forget why it would not be possible to use a virtualenv to install python packages?
<angerman> dhess: do you have the nix-docker repo link? That would probably "just" work for me.
<angerman> dhess: need to see how well nix-darwin works these days.
<angerman> but I guess for just the nixops part it could be enough.
<angerman> Might need some help migrating the existing on-server solution to nixops once this kind of works.
<wilornel> angerman, dhess : on what you are discussing... I'd like to in the near future be able to run a VM locally and also remotely (not necessarily at the same time), and be able to sync their main changes back and forth easily, for example the changes in ~/.config/nixpkgs/config.nix . Is that what you're trying to do angerman
<wilornel> ?
schoppenhauer has quit [Ping timeout: 255 seconds]
<dhess> angerman: nix-darwin seems to be working pretty well now. I'm using it on all of my Macs
<angerman> dhess: good to know, maybe I should give it another go :)
<dhess> assuming you are also using a multi-user install of Nix on your Mac
<angerman> dhess: like almost every other software on macOS :p
<wilornel> nix-docker mainly only has nix and not a full on nixos, right?
<wilornel> dhess: wait, are you using nix inside a docker instance in order to manage packages present in the host (mac) fs/os?
mkoenig has quit [Read error: Connection reset by peer]
<angerman> wilornel: well, I'd like to migrate my nixOS running server into something that I can provision with nixops from the outside, so yea I'll need to get the configuration off of the server prior to building and re-deploying.
<dhess> wilornel: more or less, that is my understanding. It's good enough to be a remote builder with the nix:ssh container
nithor has joined #nixos
schoppenhauer has joined #nixos
<dhess> personally I have not used it
<wilornel> I don't understand yet how do people use docker instances (guests) for a single process. How can that single process manipulate stuff in the host os or fs?
<dhess> wilornel: no
<angerman> The whole reason right now is that I want to automate hackage.mobilehaskell.org, to automatically rebuild on changes to the git repo (webhook) and for that need to look into building the infrastructure.
<dhess> angerman: FYI you can run NixOps on a NixOS host and deploy NixOps to that same host
<wilornel> dhess: I don't understand how you'd use a docker instance with a single process like nix and what for
<angerman> dhess: yea, the remote-builder is actually something I'd rather prefer than building on the crappy VPS.
<angerman> wilornel: docker is essentially just your provisioned virtualbox.
<dhess> wilornel: For the nix-docker case on macOS, it would be purely to build packages for NixOS/x86_64-linux
<angerman> wilornel: I've used docker to build linux binaries (deb8,deb9) with stack and cabal new-build.
<dhess> angerman: well I would recommend you try, in this order: nix-darwin; nix-docker; configure the docker instance as a remote builder from the Mac; build a few x86_64-linux packages from the Mac using the nix-docker instance; NixOps
<dhess> in increasing order of difficulty/things that can go wrong
<wilornel> but then you're keeping the builds in the docker instance, and they are not used by the host machine, right?
<dhess> wilornel: the builds will be copied back to the host machine, that is what a remote builder does; but in this particular case (macOS host building Nix pkgs on a Docker instance), the builds would not be *usable* by the host.
mkoenig has joined #nixos
<angerman> dhess: yep, that sounds like a plan. Let's see how far I get.
<dhess> they're only there so you can deploy them to x86_64-linux hosts from the Mac
<wilornel> right, and so what is the purpose of the instance? I guess to later distribute the built packages to some servers?
mkoenig has quit [Read error: Connection reset by peer]
<dhess> right
<wilornel> Aaaaah I keep getting conflicts!
<dhess> or even just to test packages on x86_64-linux, let's say if you're also building them for macOS
<dhess> and you don't have a NixOS server lying around to do that
nithor has quit [Ping timeout: 256 seconds]
<dhess> so you're trying to make sure your packages build on x86_64-linux but you're not actually using them personally. The nix-docker instance would be great for that.
<wilornel> Thanks dhess !
<dhess> np
<wilornel> I use `ignoreCollisions = true;` and it still tells me collisions are present and terminates on that moment
<wilornel> oh I got it working!!
<angerman> dhess: is https://github.com/LnL7/nix-darwin the canonical nix-darwin?
mkoenig has joined #nixos
mkoenig has quit [Read error: Connection reset by peer]
<dhess> yes
krey has quit [Ping timeout: 256 seconds]
nithor has joined #nixos
<angerman> dhess: does that need nixos installed first?
<angerman> guess it needs nix-channel. so yea.
mkoenig has joined #nixos
mkoenig has quit [Read error: Connection reset by peer]
orivej_ has quit [Ping timeout: 256 seconds]
nithor has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl closed pull request #33542: ocamlPackages.mstruct: 1.3.3 -> 1.4.0 (master...ocaml-mstruct-1.4.0) https://git.io/vNkUx
NixOS_GitHub has left #nixos [#nixos]
mkoenig has joined #nixos
<angerman> this is working great: error: unable to download ‘https://hydra.nixos.org/jobset/hydra/master/channel/latest/nixexprs.tar.bz2’: HTTP response code said error (22)
pjan_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<wilornel> when I try to `pip install cffi`, gcc is not able to find ffi.h. So, in ~/.config/nixpkgs/config.nix I added libffi as a package to install and did `nix-env -iA nixos.myPackages`. However, the issue still happens
endformationage has joined #nixos
mkoenig has quit [Read error: Connection reset by peer]
<mog> wilornel, it will always be seperate id use a nix-shell to do what you want
jb55 has joined #nixos
orivej has joined #nixos
<wilornel> with a nix-shell I don't have enough space in tmpfs to run pypi2nix and install the dependencies.
<wilornel> Ah, no I overcame that issue by increase the RAM I have on that VM
<mog> it wont use any more resources in the shell
<mog> well maybe a few trivial ones
<wilornel> I had one package that was trying to do `from IPython import ...` when it was installing. That made it impossible to use pypi2nix
<mog> but it wouldnt be any real difference size wise
<wilornel> So, I tried virtualenv and that worked nicely
<wilornel> yes yes, size was not the issue, I overcame that
simpson has joined #nixos
<simpson> Hi! Once and for all, I'd like to deal with "This application failed to start because it could not find or load the Qt platform plugin", because I can't keep using a LyX from 2016.
<wilornel> So with pypi2nix when I was running pypi2nix -V "3.6" -r requirements.txt it was complaining about IPython not being installed. IPython was one of the dependencies inside requirements.txt unfortunately, so I was not able to get that working nicely
<wilornel> and virtualenv works very well
<wilornel> I'm not sure what would be some reasons it can't find the libffi binaries
<simpson> And the nixpkgs manual still has no advice about this Qt problem.
nithor has joined #nixos
<wilornel> how to install libffi-dev on nixos? It cannot find that package
<wilornel> I'll try with nix-shell again (BFSing the solution)
mkoenig has joined #nixos
<mog> nix-shell -p python35Packages.cffi
<wilornel> huh
<wilornel> Waiting on this "Stage1: Downloading wheels and creating wheelhouse ..." . I don't know why it doesn't cache the files? maybe it does and I GC'd them
nithor has quit [Ping timeout: 256 seconds]
oida has quit [Quit: WeeChat 1.6]
<mog> everything is cached unless you gc
<wilornel> aaah I'm so eager to get this working! Alright, while I'm waiting on this, I'll think about how I'll get it working. running `pypi2nix -V "3.6" -r requirements.txt` complains about not having IPython. So, I will first run `nix-shell -p python3.ipython` and _then_ run pypi2nix
endformationage has quit [Quit: WeeChat 1.9.1]
<dtz> maybe doesn't help re:lyx but it works here :(
<dtz> i've found /installing/ qt things makes them work, as opposed to running from an output link or something
<dtz> was kinda hoping it didn't work so I could help debug ;)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] markuskowa opened pull request #33849: rtl-sdr: 0.5.3 -> 0.5.3-git (master...rtlsdr-pr) https://git.io/vNndE
NixOS_GitHub has left #nixos [#nixos]
<adisbladis> wilornel: That should not be required.
<wilornel> I'm confused..
mkoenig has quit [Read error: Connection reset by peer]
<wilornel> adisbladis: What do you mean?
<adisbladis> wilornel: Impurely pulling in ipython. You can use "-E package" if you want to add a build dependency
<adisbladis> dtz: Yeah qt is a bit of a mess imho :/
nithor has joined #nixos
<dtz> idk it works well for me. Except sometimes installing one-off KDE things without the whole environment
<dtz> hmm
<dtz> actually the issues I was facing my have been fixed... let's find out!
<wilornel> adisbladis: but -E is for system level packages, not python packages. IPython is a python package, no?
mkoenig has joined #nixos
dramforever has joined #nixos
<adisbladis> dtz: Yeah but mixing versions and such is always a source of problems.
<wilornel> I could do `pypi2nix -V "3.6" -E python3Packages.ipython -r requirements.txt`
<simpson> dtz: Last year's LyX works fine. This year's LyX does not. So this is a regression.
<adisbladis> wilornel: Yeah should work. I think its strange that anything is requiring ipython at build time though.
nithor has quit [Ping timeout: 276 seconds]
mkoenig has quit [Read error: Connection reset by peer]
rauno has quit [Remote host closed the connection]
<lopsided98> dtz: I saw you have been doing work on cross compiling recently, so I was wondering what your use case for cross build support in Nix is?
<wilornel> I think it's ipykernel that depends on it
<lopsided98> because I recently realized that it harder to actually use cross built derivations than I expected
<dtz> lopsided98: a)musl b)LLVM-based tooling and especially c)building everything as LLVM IR as part of my research project "ALLVM" :D
<dtz> I've gotten quite a lot working, but need to upstream soooo much and lots of cleanup :)
<dtz> idk it's much better than it was!
<dtz> you did the kernel fixup right? haha thank you :D
<dtz> haven't had time to review it properly but I just merged it locally and ... it works here on my configs :D
<dtz> but I test with various ARM targets often just so I can distill my own problems vs "general" cross
<wilornel> I think that because pypi2nix is using /tmp, it redownloads everything every time
<lopsided98> It still has a few issues (with "ignoreConfigErrors"), but I think I have fixed them locally
<dtz> the existing infra was so bad previously I ended up ignoring it--now it's actually pretty good I thought D:
<dtz> lopsided98: what sort of problems are you having? and what is _your_ use case(s)? :)
justanotheruser has quit [Ping timeout: 256 seconds]
<lopsided98> My problem is that I wanted to build packages on my fast x86_64 build server that I could use on my slow ARM systems
mkoenig has joined #nixos
<dtz> most of the software I use every day is ALLVM-based (built using cross-ish nixpkgs goodness I'm working to upstream/release "soon" (tm))
<dtz> lopsided98: haha, yeah! what's not working there?
danl1240 has quit [Quit: Textual IRC Client: www.textualapp.com]
<dtz> lopsided98: I think the infra just recently landed and needs a little pioneering to clean up ... mostly to clean up nativeBuildInputs and such :P
<dtz> but I suppose it's not quite there yet OOB
<dtz> but especially cross targetting ARM I think people are excited about
<lopsided98> The cross built packages have different hashes from natively built packages
<dtz> there's that aarch64 push to see if they can't get it working /supported for 18.03 or something
mkoenig has quit [Read error: Connection reset by peer]
<dtz> lopsided98: oh, well okay. Is that a problem?
nithor has joined #nixos
<dtz> err well apparently it is, haha. why is it, though? :D
<lopsided98> Nix on my ARM machines doesn't use the cross built packages because it is looking for the native ones
<wilornel> adisbladis: That did not solve the issue with installing ipykernel....
<wilornel> I don't know how to continue. Virtualenv was working well, but pip (well, gcc) could not find the libffi headers. Now, I cannot install ipykernel even when I use pypi2nix
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] markuskowa opened pull request #33850: gnuradio-osmosdr: 0.1.4->0.1.5-git (master...gnuradio-osmosdr-pr) https://git.io/vNndj
NixOS_GitHub has left #nixos [#nixos]
<dtz> hmm, I see. Blargh that is annoying, I wonder what the best solution would be. ARM box runs native NixOS, because of course it does, it wants to query for various paths .... that cna't be provided by a cross builder.
<wilornel> So should I use nix-shell before I use pypi2nix now? I'll try that but I don't know
<dtz> in a "nix" way that makes sense, since cross-building is very likely not at all the same as what you'd get native (even if it "should" be), but... hrmph
<dtz> need a "cross is okay" setting and a mapping that looks up the cross-built equivalents :D
<lopsided98> I was thinking about a way to override certain packages to use the cross version
dramforever has quit [Quit: Quit]
<dtz> I bet folks have some ideas and if they don't, it's something a bunch of people would be interested in trying to solve
<wilornel> and running pypi2nix from inside nix-shell again complains about lack of space on the device...
mkoenig has joined #nixos
<dtz> not sure how best to flag that attention, maybe an issue on github? hrm
<lopsided98> Yeah, I might make an issue to discuss it tomorrow
<vaibhavsagar> how do I override the `meta.platform` attribute of a package?
<wilornel> is /run/user/1000 a nixos thing? How could I give it more space?
<wilornel> mog, adisbladis , do you have any ideas?
<mog> wilornel, what is your goal
<lopsided98> dtz: My first goal is to use a cross compiled kernel (it takes 8-12 hours to build natively, versus 20 min on my build server), and it is relatively easy because it doesn't have any runtime dependencies
<dtz> haha :D yeah
<dtz> also zomg the time differences
prak5190_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl opened pull request #33851: why3: 0.88.1 -> 0.88.3 (master...why3-0.88.3) https://git.io/vNnFt
NixOS_GitHub has left #nixos [#nixos]
<wilornel> I have two goals doing things this way. First, I'd like it to be easy to setup this project I am working on. I find that a declaration of packages the way I can do it in nix is very nice. Also, I want to learn more about how nixos works so I can better use it in the future
<wilornel> Right now, I am trying to install the python dependencies of my project
mkoenig has quit [Read error: Connection reset by peer]
prak5190_ has quit [Client Quit]
prak5190 has joined #nixos
<wilornel> However, I am hitting some issues. gcc cannot find libffi, and pypi2nix cannot use IPython even with -E python3Packages.ipython, and using nix-shell -p python3Packages.ipython before running pypi2nix makes it such taht I don't have enough storage space (I think it's a virtual fs) to install use pypi2nix and build the dependencies
<wilornel> So I've tried three different methods and they have some hurdles. I think if I can get past one of them I might be able to move forward
<prak5190> Hi, I have a nix-shell startup issue, is this a good place to ask for help ?
<lopsided98> dtz: It's mostly I/O bound with a slow/possibly dying SD card, the builder is actually relatively powerful (ODROID-XU4)
babyflakes has joined #nixos
<wilornel> mog: ^ I don't know if that was helpful
<wilornel> doing `export TMPDIR=/tmp` before running pypi2nix now
chessai has quit [Remote host closed the connection]
<dtz> lopsided98: if its at all reasonable to /push/ configurations to the ARM machines (NixOps-style, or just copying closures) that might be enough to avoid having to tackle that problem...
mkoenig has joined #nixos
prak5190 has quit [Quit: Page closed]
nithor has quit [Ping timeout: 256 seconds]
el_prak has joined #nixos
el_prak has quit [Client Quit]
prak5190 has joined #nixos
uptime has quit [Quit: I admit, that I would never rather them burn me]
<wilornel> Ah! using `nix-shell -p python3Packages.ipython` before running `pypi2nix -V "3.6" -E python3Packages.ipython -r requirements.txt` did not solve the issue of the setup.py of ipykernel not being able to import IPython......
<wilornel> So I _guess_ that the issue is with pypi2nix, and will try to get pip (and gcc) to find libffi now...
mkoenig has quit [Read error: Connection reset by peer]
<wilornel> :S
el- has joined #nixos
orivej has quit [Ping timeout: 255 seconds]
pie__ has quit [Ping timeout: 255 seconds]
<el-> /CLEAR
el- is now known as prak1234
prak5190 has left #nixos ["Leaving"]
prak1234 has left #nixos [#nixos]
<wilornel> I guess I want to do something like https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/libffi/default.nix but for libffi-devel?
nithor has joined #nixos
prak5190 has joined #nixos
prak5190 has quit [Client Quit]
mkoenig has joined #nixos
justanotheruser has joined #nixos
lopsided98 has quit [Remote host closed the connection]
lopsided98 has joined #nixos
nithor has quit [Ping timeout: 256 seconds]
<wilornel> wait, usings gcc in nixos will encounter similar issues to installing python modules in nixos, ?
mkoenig has quit [Read error: Connection reset by peer]
justanotheruser has quit [Quit: WeeChat 1.9.1]
orivej has joined #nixos
justanotheruser has joined #nixos
mkoenig has joined #nixos
<simpson> Yeah, in general, "installing" is going to lead to sadness.
nithor has joined #nixos
<wilornel> hmmm....
<wilornel> I don't know where to go from here
<simpson> Well, where are you trying to go? Have you looked in pkgs/development/python-modules/ yet?
mkoenig has quit [Read error: Connection reset by peer]
<wilornel> I feel like I've seen this situation before... :( working with nixos is many dejavus for me...
<wilornel> hmmm
<makefu> wilornel: yes, "installing" is not nixonic, you'd rather override or create new packages
<wilornel> I was able to install cffi by specifying it in the config.nix as you just proposed and it works, but I don't know why I should be doing that there
<wilornel> I say I was able. gcc is currently building it right now
<wilornel> so some things will need to be declared in config.nix , and others can be taken care of by pypi2nix
<wilornel> It's awesome! I think it's not intuitive yet for people who have always worked with imperative installation methods
<makefu> wilornel: normally your config.nix should be empty ( /etc/nix/configuration.nix is different ) :)
nithor has quit [Ping timeout: 256 seconds]
<wilornel> wait what? Why would confix.nix be empty? I should declare my packages inside configuration.nix instead?
jb55 has quit [Ping timeout: 256 seconds]
mkoenig has joined #nixos
<makefu> wilornel: ah, maybe i misunderstood. you can configure your user stuff in config.nix, sure. i however try to keep everything in /etc/nix/configuration.nix to avoid too many different inputs
<makefu> nix-env should normally not be used though ( https://nixos.wiki/wiki/FAQ#Why_not_use_nix-env_-i_foo.3F )
<wilornel> ah, understood! I've seen the two alternatives but didn't know the difference. Thank you!
mkoenig has quit [Read error: Connection reset by peer]
nithor has joined #nixos
Guest96194 has quit [Ping timeout: 255 seconds]
mkoenig has joined #nixos
mkoenig has quit [Read error: Connection reset by peer]
mkoenig has joined #nixos
nithor has quit [Ping timeout: 256 seconds]
mkoenig has quit [Read error: Connection reset by peer]
alex`` has joined #nixos
<angerman> looks like I have nix-docker working.
<dtz> \o/
mkoenig has joined #nixos
<angerman> now, I just need to figure out how to use nixops, and pull the current configuration from the server fist.
nithor has joined #nixos
<wilornel> angerman: !!!!
<wilornel> What did you do to get there?
mkoenig has quit [Read error: Connection reset by peer]
<angerman> install nixos, install nix-darwin and install nix-docker.
<angerman> pretty smooth sailing so far.
<angerman> I believe the `latest` issue I ran into might have come from a stale rather old nix installation.
krey has joined #nixos
nithor has quit [Ping timeout: 255 seconds]
mkoenig has joined #nixos
rauno has joined #nixos
b has quit [Quit: Lost terminal]
vidbina has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
mkoenig has quit [Read error: Connection reset by peer]
nithor has joined #nixos
<angerman> can anyone point me to some documentation turning an existing nixos server into a nixops managed one?
<dhess> angerman: have you used NixOps before?
<angerman> apparently not :)
<angerman> my "ops" was `scp configuration.nix server:/etc/nixos && ssh server nixos-rebuild --upgrade --switch`
<dhess> angerman: I recommend you start with the NixOps manual, walk through the virtualbox example.
<angerman> dhess: but in principle I'm not trying something Impossbile, am I?
<dhess> no
krey has quit [Ping timeout: 256 seconds]
knupfer has joined #nixos
<dhess> It's actually pretty trivial compared to just learning NixOps in the first place. There's not much to it. You just set up the host config the way you want, and deploy
mkoenig has joined #nixos
mkoenig has quit [Read error: Connection reset by peer]
<dhess> The NixOps deployment will basically take over the machine and you can just manage it with NixOps from that point forward
<dhess> there isn't really any "conversion" needed. It just works.
<angerman> dhess: that sounds pretty much like exactly what I want :-)
nithor has quit [Ping timeout: 256 seconds]
<dhess> yeah it's sweet
<angerman> Just need to make sure it doesn't nuke my state.
<angerman> still need to find a good backup solution.
<dhess> It won't nuke things like home dirs
<dhess> I believe it will just look like a new "rebuild" generation
<angerman> i see. Well, thanks. I'll run through the vbox sample
<dhess> Keep a root shell active on the host the first couple of times you deploy, in case you do something silly like forget to add your user account to sudoers or something like that :)
<dhess> angerman: for backups I like tarsnap
<dhess> The guy who runs it is FreeBSD's chief security officer, so he knows what he's doing.
<angerman> dhess: yea. I've been looking into tarsnap a few times. Still don't know why I didn't follow suit.
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/5c73ee1a937 (from 10 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [Client Quit]
stephenjudkins has quit [Ping timeout: 255 seconds]
orivej has joined #nixos
<wilornel> angerman: so that is docker running inside a nixos instance?
<wilornel> or is it running as a docker container?
<angerman> wilornel: it's running a nixos instance as a docker container on macos.
fractal has joined #nixos
nithor has joined #nixos
<vaibhavsagar> angerman: are you trying nix again???
<angerman> vaibhavsagar: well, I need to be perpared for your talk, no?
<vaibhavsagar> good point :)
<angerman> great the stale nixos install on my system is screwing everything up.
<wilornel> angerman: wow! Alright, I might want to try that. I didn't understand what you meant by `install nixos . Is that inside a VM in virtualbox? Or was it from withing a Ubuntu container in docker? `
mkoenig has joined #nixos
<wilornel> angerman so you have nixos installed on mac? Or do you mean your nix installation on mac?
mkoenig has quit [Read error: Connection reset by peer]
<angerman> alright, let's try this again...
nithor has quit [Ping timeout: 256 seconds]
<angerman> nuked ~/.nix* and /nix hope that's enough
<angerman> wilornel: well there's a few things to this. a) nix on darwin (use nix as a package manager for software on darwin); b) nix in docker (to build binaries for a linux based nixos install); c) nixops on macos, deploying to a linux vps running nixos.
mkoenig has joined #nixos
<angerman> vaibhavsagar: I'm pretty sure you won't cover macos -> linux. only linux -> linux. so I'll need to have the first part down to make use of what you have to say :D
<wilornel> when is that talk?
<angerman> likely Feb 8th or so. Unless I screw it up it's going to be recorded. (https://www.meetup.com/HASKELL-SG/events/246341967/)
nithor has joined #nixos
<wilornel> awesome! I'm looking forward to seeing what you angerman and vaibhavsagar have worked on!
nithor has quit [Ping timeout: 256 seconds]
mkoenig has quit [Read error: Connection reset by peer]
<angerman> not really much with nix.
<angerman> I only want to get his working so I can deploy a webhook triggerd auto-updating service for hackage.mobilehaskell.org
<wilornel> Ah I see
<wilornel> It would be really nice if I could learn from you how you got that set up
mkoenig has joined #nixos
<wilornel> how did you learn all the low-level instrumentation required to build android apps with haskell?
nithor has joined #nixos
mkoenig has quit [Read error: Connection reset by peer]
<dhess> Dezgeg: you around?
<angerman> wilornel: I've been hacking on ghc for a few years now.
<angerman> I've just started documenting it a bit more starting last year.
<hyper_ch> what is /nix/store/.links for?
nithor has quit [Ping timeout: 276 seconds]
<wilornel> Ah I see
ma27 has joined #nixos
<wilornel> Alright, I give up trying to install ipykernel using pypi2nix . I was able to install cffi and another module that was failing along cffi. But for ipykernel, which tries to use IPython, it seems like the python derivation (in /nix/store) that pypi2nix is using is different from the one that is installed by my config.nix
mkoenig has joined #nixos
<angerman> ipython on darwin with nix? Yea, I've had that working *once*. And never again :(
mkoenig has quit [Read error: Connection reset by peer]
<wilornel> I'm trying to get it workin on nixos in a vm on virtualbox with mac as the host
<wilornel> But yeah... it's not straightforward
nithor has joined #nixos
mkoenig has joined #nixos
mkoenig has quit [Read error: Connection reset by peer]
<wilornel> :( good night #nixos!
nithor has quit [Ping timeout: 256 seconds]
mkoenig has joined #nixos
mkoenig has quit [Read error: Connection reset by peer]
wilornel has quit [Ping timeout: 260 seconds]
MP2E has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] tomberek opened pull request #33853: Add teleport-v2.4.0 (master...add_teleport) https://git.io/vNnxH
NixOS_GitHub has left #nixos [#nixos]
nithor has joined #nixos
mkoenig has joined #nixos
simendsjo has joined #nixos
mkoenig has quit [Read error: Connection reset by peer]
JosW has joined #nixos
ma27 has quit [Ping timeout: 276 seconds]
<vaibhavsagar> why is the latest virtualbox-nixops-image 16.09?
glenn_ has quit [Remote host closed the connection]
glenn_ has joined #nixos
mkoenig has joined #nixos
mkoenig has quit [Read error: Connection reset by peer]
glenn_ has quit [Ping timeout: 256 seconds]
simendsjo has quit [Read error: Connection reset by peer]
mkoenig has joined #nixos
ma27 has joined #nixos
simendsjo has joined #nixos
<angerman> meh... nixops with remote build on macos doesn't work.
<angerman> bails out at the linux os check (on darwin, doh!)
<angerman> guess, it's kind this: https://github.com/NixOS/nixops/issues/560
mkoenig has quit [Read error: Connection reset by peer]
<angerman> That's kind of a bummer.
marusich has quit [Quit: Leaving]
ambro718 has joined #nixos
<dhess> angerman: are you running nix-darwin?
<angerman> dhess: yea
<angerman> (or so I think; i've installed nix + nix-darwin)
<dhess> what is in your /etc/nix/machines file?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] srhb closed pull request #32822: ELK: 5.6.1 -> 5.6.5 & add ELK 6.1.0 (master...elk6) https://git.io/vbPL4
NixOS_GitHub has left #nixos [#nixos]
<angerman> dhess: there's none.
<dhess> angerman: you will need one to make this work
<angerman> dhess: is the relevant documentation in the nixos manual, or where would I look?
mkoenig has joined #nixos
<dhess> something like this in your darwin-configuration.nix: https://gist.github.com/dhess/1f53439181223e12db6535ad45a74689
mkoenig has quit [Read error: Connection reset by peer]
<vaibhavsagar> are you trying to use nix-docker as your build slave?
alex`` has quit [Quit: WeeChat 1.9]
ssmike has joined #nixos
<angerman> yep
<dhess> and your remote builder will need to have a user configured with the same name as sshUser, an authorized_keys with the pubkey corresponding to sshKey, and the user will need to be in the trustedUsers on the remote builder machine
<angerman> dhess: I can build single packages
<dhess> angerman: oh interesting
<angerman> just nixops doesn't work.
<dhess> well you might need supportedFeatures anyway
<dhess> for things like the kernel etc
<dhess> at least "big-parallel"
<angerman> yea, I'll try to see what adding that do the darwin-config does
verite has quit [Ping timeout: 255 seconds]
dywedir has joined #nixos
glenn_ has joined #nixos
uptime has joined #nixos
<angerman> hmm, that doesn't generate the machines files... I'm confused.
ilyaigpetrov has joined #nixos
leat has quit [Quit: WeeChat 1.9.1]
nithor has quit [Ping timeout: 276 seconds]
<angerman> dhess: do you have nixops working or just builing packagage?
mkoenig has joined #nixos
<dhess> angerman: only building packages at the moment. I haven't tried NixOps yet. I might give it a go tomorrow to see if I can help you
<dhess> and get it working for myself of course :)
zzamboni has joined #nixos
uptime has quit [Quit: They ask me how I'm doing and I say, "quite frankly, stellar."]
<dhess> angerman: another difference is that I have actual NixOS hosts as my remote builders. I'm not using nix-docker
nithor has joined #nixos
<dhess> angerman: but it's good to know that you've got that working for packages. I might add one anyway, to keep the hosts free for Hydra
<dhess> angerman: have you tried building the kernel on the nix-docker remote? That would be a pre-requisite for NixOps deployments
<hyper_ch> what is /nix/store/.links for?
viric has quit [Ping timeout: 260 seconds]
<adisbladis> hyper_ch: Nix store optimisations
[0x4A6F] has quit [Remote host closed the connection]
[0x4A6F] has joined #nixos
nithor has quit [Ping timeout: 256 seconds]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
<angerman> dhess: no, I haven't. I've just built the `hello` package. And checked it ends up being the right architecture.
la_putin has quit [Read error: Connection reset by peer]
<dhess> angerman: try building linux, see if that works. It's probably sufficient just to see if it starts, no need to build the whole thing if you don't want to
<dhess> that will demonstrate whether the "big-parallel" feature is a problem
<angerman> that just grabbed the precompiled one :D
<dhess> angerman: oh, you have to actually force it to build, otherwise it will just hit the cache
<dhess> that doesn't mean anything :)
<dhess> same goes for any other package you might have tried to build.
<angerman> hmm so how do I force it?
uptime has joined #nixos
<dhess> angerman: there is probably a way to do it for any package but I don't know how offhand. Do you have a personal project around with a default.nix or a release.nix file?
uptime has quit [Client Quit]
<angerman> `--check` seems to be the one.
<dhess> oh cool
<angerman> not the most intitive flag though.
<dhess> that's good to know
<angerman> error: a ‘x86_64-linux’ is required to build ‘/nix/store/ql6frh48fw1l7clqlpva9yxzn5ji8nwi-hello-2.10.drv’, but I am a ‘x86_64-darwin’
<angerman> there we go.
nithor has joined #nixos
la_putin has joined #nixos
<dhess> right
<dhess> so ... your builder is not working
<sphalerite> I want to make a systemd-nspawn-based container with ubuntu inside, I've got it running just fine using systemd-nspawn imperatively but now I want to put it in my nixos config and it's complaining about systemd.nspawn.<name>.execConfig.PivotRoot not existing
<angerman> yea :( Got fooled by caching.
uptime has joined #nixos
<dhess> pretty sure you will need that /etc/nix/machines file before anything will work
<dhess> angerman: it's ok, happens to everyone the first time ;)
<angerman> dhess: well I have cat /etc/nix/remote-systems.conf , but no machines file, which is confusing.
<sphalerite> Is there a way to tell the systemd unit file generator "actually I'm pretty sure that is an option"?
<dhess> angerman: with nix-darwin you don't need to create that /etc/nix/remote-systems.conf file (I assume you did that by hand yourself?), with the right config it will generate that file for you
<angerman> dhess: no, nix-darwin created that one.
<dhess> angerman: the directions in the nix-docker README probably do not assume you are running nix-docker, and/or were written before that stuff was working. LnL will be around soon I suspect, and he wrote all this and can help you
<dhess> angerman: oh weird. For me it generates /etc/nix/machines
<dhess> angerman: have you `nix-channel --update`d your darwin channel?
<dhess> oh I guess you just installed it
<dhess> so that's probably not it
<angerman> https://gist.github.com/fb1eb94a77b47a549163317663e0761d that's what my `~/.nixpkgs/darwin-configuration.nix` looks like.
<dhess> angerman: anyway don't despair, soon it will be working and it will all feel like magic :)
dbe_ has joined #nixos
<dhess> and I assume docker_rsa.pub is in ~root/.ssh/authorized_keys on the Docker container with the proper permissions etc?
<angerman> yep. I can use that to ssh into it.
<dhess> remote build errors are notoriously opaque :(
<dhess> ok that's good
<dhess> oh
<dhess> right
amir has quit [Ping timeout: 268 seconds]
<dhess> root on your Mac will need the SSH host key of the Docker container
<dhess> like in /var/root/.ssh/known_hosts
<angerman> root? well. so root might need the ssh config as well.
glenn_ has quit [Ping timeout: 255 seconds]
<dhess> yeah remote builds will be initiated on your Mac by root
amir has joined #nixos
<dhess> there are ways to do that too using nix-darwin, but for now you can just do "sudo ssh -i /etc/nix/docker_rsa root@docker" and accept the host key
<dhess> that should seed the right file
<angerman> that does work now. errors still the same though.
<dhess> well I gotta hit the sack. I will try NixOps tomorrow from my Mac and let you know how it goes. Hopefully LnL can help you when he shows up. You might want to linger on #nix-darwin as well
<angerman> thanks. I am.
[0x4A6F] has quit [Quit: [0x4A6F]]
cfricke has joined #nixos
glenn_ has joined #nixos
ma27 has quit [Ping timeout: 256 seconds]
ma27 has joined #nixos
thc202 has joined #nixos
knupfer has quit [Ping timeout: 255 seconds]
simukis has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/ee4e6ebbfaa (from 65 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [Client Quit]
<angerman> ahh.. so the build-remote.pl file doesn't exist
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #33742: gdbm: 1.13 -> 1.14 (staging...gdbm_1_14) https://git.io/vN3l3
NixOS_GitHub has left #nixos [#nixos]
cfricke has quit [Quit: WeeChat 2.0]
lonokhov has joined #nixos
aarvar has quit [Ping timeout: 256 seconds]
<angerman> alright, so I'm left wondering how to make nix install `build-remote.pl` for me.
pjan_ has joined #nixos
<AlanPearce[m]> I can't seem to get nixops to make even a trivial deployment using the "none" backend. I end up with many lines like `trivial> /nix/var/nix/profiles/system/bin/switch-to-configuration: line 3: use: command not found` when I run nixops deploy, which would imply that `switch-to-configuration` is being executed as a shell script instead of a perl file. Any ideas why this might be happening? I've tried nixops 1.5.2 and
<AlanPearce[m]> 1.6pre2276_9203440
simendsjo has quit [Ping timeout: 276 seconds]
nithor has quit [Ping timeout: 255 seconds]
jmiven has quit [Quit: co'o]
jmiven has joined #nixos
Alling has joined #nixos
<Alling> How is hard drive spindown usually controlled on NixOS (specifically WD Reds in a server)?
<Alling> Say for example that I want to be able to set the disks to spin down after an hour of inactivity. Is hdparm the way?
pjan_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<sphalerite> Alling: yeah I think so. Declarative options for that would be nice but they don't seem to exist AFAICT
<Alling> sphalerite: I found a utility from WD to fix some bug in the Red firmware. It is an executable which I downloaded with curl. But I cannot run it. "unable to execute ./wd5431x32: No such file or directory"
nithor has joined #nixos
<etu> Alling: It's probably using libs that you don't have in expected locations
<etu> (like libc)
<sphalerite> https://nixos.wiki/wiki/FAQ#I.27ve_downloaded_a_binary.2C_but_I_can.27t_run_it.2C_what_can_I_do.3F
ma27 has quit [Ping timeout: 255 seconds]
<LnL> angerman: pong
<Alling> etu: But it seems unable to find the actual executable, based on the error message.
amir has quit [Ping timeout: 255 seconds]
<etu> Alling: I'm pretty sure it does :)
<Alling> etu: OK. I'll read the link.
<sphalerite> Alling: see my link
astrofog has joined #nixos
<sphalerite> Alling: what's missing in this case is the loader. You'll get the same kind of error if you try to run a script with a shebang that refers to an interpreter that isn't present.
<etu> Depends if it's a binary or a script
ma27 has joined #nixos
<etu> But I've had go-binarys that I've compiled on nixos to deploy on non-nixos saying that same thing.
<Alling> sphalerite: This is actually kind of frustrating with NixOS. All those scripts with #!/bin/bash ...
<etu> Becase some dep use CGO... :/
amir has joined #nixos
<sphalerite> It's basically the same thing, the only difference is that it's a field in the ELF header rather than a line of text. In either case, it tells the kernel "run this on me for execution". The loader, which is what's used for binaries, loads the executable into memory along with the dynamic libraries it depends on
<sphalerite> Alling:
<sphalerite> oops. Alling : #!/usr/bin/env bash should be used instead, as it's compatible
<Alling> sphalerite: Yeah but I mean, there are so many scripts with #!/bin/bash that usually "just work" on any Linux dist, but not on NixOS.
<sphalerite> a horrible solution is to symlink /bin/bash to /run/current-system/sw/bin/bash. But don't tell anyone I said that. :p
nithor has quit [Ping timeout: 256 seconds]
joelpet has quit [Remote host closed the connection]
<Alling> sphalerite: Actually I'm more concerned about making NixOS seem usable to people. Those I've talked to about it would probably find such a thing annoying enough to just go back to Ubuntu/Arch/etc.
<sphalerite> If that's all it takes to convince them to go back, then I'd say nixos isn't for them
<sphalerite> Either that or they haven't engaged with its benefits enough, which means they're not interested, which again probably means nixos isn't for them
<Alling> sphalerite: But I actually understand them. There are so many weird things going on that are nearly impossible to solve without this IRC channel. You guys are absolutely amazing, but I think many people want to be able to do stuff right away or at least google their way to a solution.
<Alling> sphalerite: Anyway, that wasn't gonna be today's topic. ^^
<simpson> Alling: Interoperability is sometimes not a positive feature, and this is one of those situations.
<sphalerite> I'd say interoperability is usually (certainly in this case) a positive feature, but it has to be weighed against its costs. Interoperability would break what makes nixos so wonderful
<sphalerite> or rather require breaking
<sphalerite> hm, the wiki doesn't mention steam-run
leat has joined #nixos
nithor has joined #nixos
<sphalerite> as the most quick-n-dirty solution you may want to try nix-shell -p steam-run --run 'steam-run ./wd5431x32'
glenn_ has quit [Ping timeout: 255 seconds]
<simpson> When it comes to capability-oriented security, and the principle of least authority, interoperability often means insecurity. In NixOS, interoperability often means impurity or other violations of the security properties.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vNcfF
<NixOS_GitHub> nixpkgs/master b6c696c Joachim F: Merge pull request #33444 from rnhmjoj/dnscrypt-wrapper...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master c883311 rnhmjoj: nixos/dnscrypt-wrapper: fix rotate script failing to restart the service
nithor has quit [Ping timeout: 256 seconds]
joelpet has joined #nixos
<Alling> sphalerite: It's downloading an absolutely awful lot of stuff from steampowered.com, it seems. x)
swayf has quit [Ping timeout: 265 seconds]
<sphalerite> yeah that's the disadvantage
<sphalerite> it uses the full steam runtime
patrl has joined #nixos
<Alling> sphalerite: Is it installing Steam permanently?
patrl has quit [Client Quit]
<sphalerite> no, just the steam runtime, and it goes into the nix store. It'll disappear in the next GC
Arcaelyx has joined #nixos
<sphalerite> The best solution for running binaries really depends on the situation. There are 3 options generally — steam-run, FHS user env, and patching. steam-run has the advantage of only taking a single command, but the disadvantage of requiring the fairly bulky steam runtime. FHS user env takes a bit more manual effort but doesn't require patching the binary, which can be useful if it has integrity checks
<sphalerite> and patching is the best long-term solution, since it puts the binary in the nix store with its dependencies registered in the nix database
<infinisil> A big advantage of packaging something for Nix(OS) is that it will work forever and on all linux distros. That cannot be said for most others
<sphalerite> oh yeah, and if it's not a proprietary binary building from source is the best option!
<infinisil> Alling: ^^
glenn_ has joined #nixos
<Alling> sphalerite: If one knows how to build from source and get everything in the right place, that is. :)
nithor has joined #nixos
<simpson> It takes more effort to write fucked-up custom packaging that isn't Nix-ready than to use standard tooling and get free automatic Nix support.
<simpson> FWIW the FHS user env for Steam works quite well, for those games which behave right under it.
<Alling> sphalerite: How would I go about adding a service as described here? https://withblue.ink/2016/07/15/what-i-learnt-from-using-wd-red-disks-to-build-a-home-nas.html
<Alling> Still installing Steam runtime btw. :s
hyphon81 has joined #nixos
<sphalerite> you could also use an FHS user env, that probably won't need to download as much, see the lower part of the FAQ I linked earlier
viric has joined #nixos
<sphalerite> Alling: write a systemd service using systemd.services.hd-idle = {…}
<sphalerite> as it happens hd-idle is in nixpkgs so you don't need to compile it as mentioned on that page :D
<Alling> sphalerite: Yeah, I saw that! (Y)
<sphalerite> https://nixos.org/nixos/options.html#systemd.services for details on the options
simukis has quit [Quit: simukis]
nithor has quit [Ping timeout: 256 seconds]
<Alling> sphalerite: The nix shell steam command gave empty output. I don't know how to use the executable.
jtojnar has quit [Remote host closed the connection]
<Alling> I want to do ./wd -D? for example.
<sphalerite> just pass any arguments along to steam-run
<sphalerite> so rather than steam-run ./wd you can do steam-run ./wd -D?
<Alling> Also empty output.
<Alling> nix-shell -p steam-run --run 'steam-run ./wd5741x32 -?'
<sphalerite> yeah that's correct
<sphalerite> Is it possible that the executable just doesn't produce any output normally?
<Alling> It should print help according to the guide I'm following, but it prints nothing.
<sphalerite> if you do nix-shell -p steam-run you'll get a shell where you can just directly write steam-run ./wd5741x32 -?
<sphalerite> oh
<sphalerite> that's a bummer. Maybe wrap it in strace to see if it's doing anything
<sphalerite> so steam-run strace ./wd5741x32
<sphalerite> (assuming you have strace available)
zzamboni has quit [Quit: Leaving.]
<Alling> Is it possible that it interprets -? as an argument to steam-run and not to wd?
<sphalerite> nope. see for example steam-run echo -?
<Alling> I have to say that I find it very frustrating that I can't even run a binary. Nothing against you guys of course! But this is ridiculous.
<sphalerite> you are running the binary
<sphalerite> it's just not behaving the way you expect it to
<Alling> Yeah but I mean like on any other dist.
<srhb> It's a fundamental premise of NixOS, it's really not ridiculous
<srhb> (As in, it's an active tradeoff)
<sphalerite> which is at this point probably the binary's fault, not nixos's
<srhb> (Well, the loader bit...)
<Alling> OK, I see. Should I keep trying with steam-run or how can I update my WD drives?
nithor has joined #nixos
<sphalerite> nix-shell -p strace steam-run, and in there do steam-run strace ./wd5741x32
tgunb has joined #nixos
<srhb> If it's just a oneoff, you could just boot into a FHS-like system and get it done, then forget all about it. :)
deltasquared has joined #nixos
<deltasquared> well the portable usb boot nixos install is going well, it's standing on it's on feet now (can update itself etc.)
<deltasquared> now onto possibly the more useful setup, namely one for just this machine.
<deltasquared> those firewall "packages" I wrote... time2learn nix expressions for build descriptions it seems
<rnhmjoj[m]> quick question: how do you install a package name starting with a digit?
<Alling> srhb: "you could just boot into a FHS-like system" This means nothing to me but I'll see what I can do if steam-run doesn't work. :)
<srhb> Alling: I meant, get a live iso from some linux distro that has a "normal" (=FHS) filesystem layout and do the update from there :)
<simpson> Alling: srhb means to use something like Kali Linux on a live USB stick, and do the firmware update from there.
<hyphon81> AKASHA Alpha on NixOS is stucking in synchronizing peers...
<hyphon81> AKASHA Alpha on NixOS is stuck in
<hyphon81> synchronizing.
<Alling> sphalerite: line 9: exec: strace: not found
<simpson> Just like how some firmware updates can only be done from FreeDOS.
<Alling> srhb: simpson I see! Should have recognized "FHS" tbh. :p
<sphalerite> Alling: steam-run $(which strace) ./wd5741x32
nithor has quit [Ping timeout: 276 seconds]
<Alling> sphalerite: That gave a lot of output which I don't understand, including "killed by SIGILL" at the end.
<deltasquared> SIGILL? I haven't seen that in ages
<sphalerite> haha nice
<deltasquared> SIGILL would either be a corrupt binary or a jit fail
<deltasquared> (just guessing)
<deltasquared> #define SIGILL 4 /* Illegal instruction. */
<sphalerite> I got SIGILL a while back when I was fiddling with my ARM stuff, had a binary which used NEON instructions and tried to run it on a processor that didn't have NEON
<deltasquared> oops.
<deltasquared> oh, it occured to me, maybe the binary is expecting some x86_64 features like AVX which not all of them have (depending on age)?
<sphalerite> Alling: yeah in this case I'd just say WD is being a pain in the neck, and boot into some traditional distro like srhb suggested
<sphalerite> oh yeah, the filename suggests that it's 32-bit as well
<sphalerite> who knows
<Alling> sphalerite: [ Process PID=22985 runs in 32 bit mode. ]
<hyphon81> Watch Dog on Steam?
<sphalerite> if WD had released source code rather than an inscrutable binary everything would be easier
<Alling> (in strace output)
<Alling> sphalerite: Who doesn't love closed source?!
<sphalerite> hyphon81: no, western digital, the electronics manufacturer
<deltasquared> for the record, can I just say I find it infuriating when binaries fail with ENOENT when the interpreter isn't locatable and the shell translates that to "$program: no such file or directory"
<deltasquared> it's almost like the kernel devs were chicken of more error codes -_-
<Alling> deltasquared: Fully agree.
<srhb> Out of curiosity, doesn't it have a /wd5741x64 too?
<Alling> They actually do.
<deltasquared> sphalerite: re inscrutable binaries, distant cries of "but muh secret sauce!"
glenn_ has quit [Ping timeout: 276 seconds]
<sphalerite> deltasquared: it's a little more complicated than "just add an error code", since you can have an arbitrarily long chain of interpreters
<sphalerite> if you have a python script for instance, the kernel will read the shebang from that, try to execute the python interpreter, which on nixos is probably a shell script, so it'll get another shebang, and read the shell binary, which in turn refers to the dynamic linker…
<sphalerite> and the error can occur on any of those links
<deltasquared> sphalerite: even so, "some interpreter somewhere failed" just helps to get the ball rolling
<deltasquared> whenever I encounter ENOENT for an interpreter fail it clogs up my brain in conflict with "but it's right there!" until I realise what's happening
nithor has joined #nixos
<deltasquared> and invariably the process leaves me feeling mildly frustrated.
<sphalerite> yeah, that's understandable
ssmike1 has joined #nixos
<deltasquared> that said, I can already hear torvalds yelling don't break userspace etc. (unless there was a feature flag... but then shared libs. dicey.)
ssmike1 has quit [Client Quit]
<sphalerite> I mean, I fully understand your frustration, I did from the beginning, I have it myself. But it's not simple to solve
tgunb has quit [Ping timeout: 256 seconds]
<deltasquared> we'd need an execve2() syscall for starters. the existing one doesn't take any flags
ssmike has quit [Ping timeout: 256 seconds]
nithor has quit [Ping timeout: 255 seconds]
glenn_ has joined #nixos
pkill9 has joined #nixos
<Alling> sphalerite: srhb Fun fact: Just ran wdxxxx on Arch Bang: "Segmentation fault (core dumped)"
<sphalerite> hahaha
<sphalerite> see?? It's not NIxOS's fault that WD's tool is horribly broken! :D
<srhb> Alling: q_q
<srhb> Alling: Just in case, it's not just because it fails like that when given no arguments?
dywedir has quit [Remote host closed the connection]
<srhb> They don't explicitly list that as a possibility.
<Alling> srhb: Actually I did "wdxxx -?"
<srhb> Ah.
<srhb> Oh well. :/
<sphalerite> Alling: there seem to be some comments on the blog post suggesting that others have experienced the issue and giving some even dodgier-looking links to alternatives
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar pushed 1 new commit to master: https://git.io/vNcT1
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 3eb0ddc Andrey Golovizin: virt-manager: add gobjectIntrospection to nativeBuildInputs
nithor has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar closed pull request #33754: virt-manager: add gobjectIntrospection to nativeBuildInputs (master...virt-manager-gobject-introspection) https://git.io/vNsTF
NixOS_GitHub has left #nixos [#nixos]
<Alling> sphalerite: Yeah, apparently one is supposed to download this server-grade hard drive firmware update utility from some .to discussion board.
<sphalerite> you could also try the windows utility lol
<Alling> sphalerite: Not gonna risk putting my zpool disks in my Windows maching. :P
<sphalerite> understandable.
<sphalerite> the .to discussion board post says they got it in an email from WD support, so I'm guessing contacting WD support is your best bet now
ma27 has quit [Ping timeout: 256 seconds]
ma27 has joined #nixos
nithor has quit [Ping timeout: 256 seconds]
tgunb has joined #nixos
nuncanada has joined #nixos
<Alling> sphalerite: Ticket submitted to WD support. -.-
<sphalerite> Good luck!
<Alling> Well, I'll just go ahead and try to control spindown in the meantime. :D
<sphalerite> FWIW the executables in the tarball from the forum seem to contain debugging info which could be helpful for reverse engineering x)
user__ has quit [Ping timeout: 276 seconds]
amir has quit [Ping timeout: 260 seconds]
nithor has joined #nixos
user__ has joined #nixos
user__ is now known as dupndrop
amir has joined #nixos
<hyphon81> Do somebody use AKASHA or geth(go-ethereum) on NixOS? I'm trying now, but sync seems not to start.
zzamboni has joined #nixos
ma27 has quit [Ping timeout: 256 seconds]
<hyphon81> Pherhaps, I wrong something. But, it was starting sync in this morning in JST.
nithor has quit [Ping timeout: 256 seconds]
glenn_ has quit [Ping timeout: 255 seconds]
<hyphon81> Oh, it starts sync. However, it is already failur...
glenn_ has joined #nixos
nithor has joined #nixos
zzamboni has quit [Quit: Leaving.]
<Alling> Simplest way to monitor disk activity?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dotlambda opened pull request #33855: pythonPackages.user-agents: init at 1.1.0 (master...user-agents) https://git.io/vNcIC
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jluttine opened pull request #33856: pythonPackages.versioneer: init at 0.18 (master...add-versioneer) https://git.io/vNcI8
NixOS_GitHub has left #nixos [#nixos]
<etu> Wooo
* etu kinda got his gnome extension to work: https://i.imgur.com/kMOSnDP.png
<sphalerite> neat!
<aanderse> i'm trying to build a fhs environment but for some reason the environment thinks i don't have a 64bit machine
<sphalerite> Alling: I think iotop can do that
<tilpner> etu - Nice! Now add a filter and compare the local channel against the remote channel age, so you can see how much behind you are :)
<aanderse> when i install oraclejdk via configuration.nix it asks me to download the 64bit version, but when i install oraclejdk8 via my script where i have fhs environment it asks me to download i586 version
<aanderse> any ideas on that?
<etu> tilpner: *sigh* -- yeah, I got a long way to go to get this working properly
<gchristensen> nice, etu!
<sphalerite> Anyone know about how to stop bluetooth from interfering with wifi?
<gchristensen> etu: do you now about my "API"?
<sphalerite> Is it even possible?
ma27 has joined #nixos
<etu> tilpner: Gnome docs are *really really really* bad. Bad isn't even a good fit. Nonexistant is better maybe. The latest docs they have is 3.2, I'm here on gnome 3.28. The example code isn't even in the docs.
<etu> gchristensen: The one on "howoldis" page?
<gchristensen> no
* deltasquared reads backlog
<etu> Then no, because I use https://howoldis.herokuapp.com/api/channels
<gchristensen> etu: cool, that should do just great :D I have: https://channels.nix.gsc.io/
<deltasquared> etu: that does look nifty, actually
<tilpner> etu - Oh, I was thinking configuration file, but that would look out-of-place on Gnome, right? :/
<etu> It's a bit hacky at the moment. Like it doesn't work for the first ~10 seconds after gnome was loaded :p
<deltasquared> sphalerite: bluetooth interfering with wifi? howso, and do you have one of those combination chips that are common these days
<etu> Running things on the mainloop with timeouts and such
<etu> So it needs work
<sphalerite> deltasquared: when I'm using my bluetooth speaker, wifi packet loss increases and bandwidth decreases dramatically
<deltasquared> sphalerite: possibly band interference... one moment, I need to go check my knowledge on this
<etu> tilpner: yeah, it's possible to build a GUI to config extensions though :)
<deltasquared> sphalerite: ... oh dear. according to http://www.rfwireless-world.com/Tutorials/Bluetooth-frequency-allocations.html: US,Europe and rest of the World 2.4 to 2.4835 GHz f=2.402 + n, MHz (n = 0 to 78)
<deltasquared> (I assume the n is channel select or something.)
<tilpner> etu - Sure, but then you need more underdocumented Gnome functionality. At least the compare-local-to-remote part doesn't *need* configuration though...
<deltasquared> it could very well be they're just interfering. :/
<etu> tilpner: :D
<deltasquared> I've never actually tried both simultaneously, partly because I had a disagreement with bluez the last time I tried to do anything useful with it
aanderse has quit [Read error: No route to host]
<deltasquared> sphalerite: see, what I'd think would happen is that they would attempt to work around each other and use a different band (hopefully less noisy one)
<deltasquared> so tbf that doesn't rule out some wierd hardware issue
<deltasquared> (same antenna for bluetooth and wifi? let's hope not...)
<sphalerite> deltasquared: and I don't know if I have a combination chip, but it's quite possible since it's a laptop http://sprunge.us/CVWI (wifi is pci, bluetooth is usb)
aanderse has joined #nixos
<deltasquared> sphalerite: oh cool, an ath10k device... I've been largely avoiding 802.11ac for linux compat reasons
<sphalerite> deltasquared: it works very nicely, bluetooth issues aside
<sphalerite> maybe I can switch the wifi to 5GHz
<deltasquared> sphalerite: just beware, your AP may not play ball
<deltasquared> (depending on how shite it is)
ssmike has joined #nixos
<sphalerite> indeed, it doesn't seem to have a setting for it at all
<deltasquared> sphalerite: what, the AP?
<deltasquared> or the adapter
rauno has quit [Remote host closed the connection]
<deltasquared> (the AP should at least advertise that band if it supports it I think...)
<deltasquared> quite frankly wireless technologies are a lot of black magic to me >_>
<sphalerite> yeah
<etu> deltasquared: It is black magic, so it's not just you :):)
ssmike has quit [Client Quit]
<deltasquared> etu: I actually got this stuff thrown at me during a computer interface technologies module. even trying to grok over-the-air wave encodings fried my brain
<deltasquared> never mind anything built on top
<sphalerite> I would just use a wired connection, but that has its own problems…
<deltasquared> yeah, such as house owners not letting you run ethernet cables down the central column of the house. :P
<deltasquared> "but it's a perfectly suitable hole! no drilling!"
<deltasquared> sphalerite: returning to topic a bit, what actually happens if you tell wpa_supplicant (or whatever you may have controlling it) to use 5Ghz mode only?
<sphalerite> well I have powerline and that works fine
<sphalerite> but there's a kernel bug that makes using my ethernet adapter a pain >_>
<deltasquared> oh yeah? not detecting properly or something?
<sphalerite> hm, there doesn't seem to be a setting for that
rogue_koder has quit [Ping timeout: 260 seconds]
<sphalerite> it detects its presence just fine, and I can use it without problems. The problem is when I unplug it, it doesn't seem to register that part, and anything that tries to access the network after that hangs
<sphalerite> it works fine if I remove it manually via sysfs before unplugging
<deltasquared> sphalerite: interesting, so no-one in userspace gets sent any sort of "link down" message? hrm
<sphalerite> deltasquared: no, the *kernel* isn't detecting that the interface is gone
jtojnar has joined #nixos
<sphalerite> it still reports it as present to userspacec
<sphalerite> and it's not just that the link is down, it's that the interface is gone
<deltasquared> *re-reads above* oh, it's an external one?
<gchristensen> sphalerite: what is it connecting over?
zzamboni has joined #nixos
glenn_ has quit [Ping timeout: 255 seconds]
<sphalerite> gchristensen: USB, which is why I can remove it via sysfs. The adapter physically plugs into the USB-C port and also has a couple of USB-3 ports
zzamboni has quit [Client Quit]
Havvy has quit [Remote host closed the connection]
<gchristensen> is it secretly PCI or something over that USB-C? I've seen all sorts of problems with devices doing that
Havvy has joined #nixos
<sphalerite> so AFAIU the structure is laptop's PCI bus <-> USB hub <-> USB network adapter
<gchristensen> aye
xcmw has joined #nixos
<deltasquared> sphalerite: I don't suppose anything weird appears in dmesg when you suprise remove it?
dywedir has joined #nixos
rogue_koder has joined #nixos
<sphalerite> hang on, let me quit everything in preparation for a reboot :p
<deltasquared> interesting... (reading about nix expression language a bit more) when the nix manual says derivations can be coerced to strings, does that mean that it would "cast" to the store path of that derivation?
<infinisil> deltasquared: "${someDerivation}" is equal to "${someDerivation.outPath}"
simukis has joined #nixos
nithor has quit [Ping timeout: 255 seconds]
<gchristensen> "yes", deltasquared :)
<sphalerite> infinisil: not entirely, is it? I don't think "${someDerivation.outPath}" will trigger building?
<infinisil> ah that might be, I'm not sure
<gchristensen> if I had to guess, coarse-grained details are what deltasquared is looking for right now
<sphalerite> deltasquared: hm, now the issue isn't popping up. Not sure if it appears inconsistently or if it was fixed by the last kernel update…
glenn_ has joined #nixos
<infinisil> alright, I mean something will only get built if invoked with nix-build /or/ a dependency of something invoked with nix-build. And A is a dependency of B when the outPath of A occurs somewhere in the derivation of B. So "${someDerivation}" should be the same as "${someDerivation.outPath}"
aanderse has quit [Read error: No route to host]
<infinisil> Thinking about this the first time, but I think i got it right
<sphalerite> oh ok never mind me then :p
<sphalerite> deltasquared: gchristensen : tried 3 times now and can't reproduce it. I guess either the bug was fixed or I'm just unlucky
<deltasquared> "haha, he's not testing now, GET SOME OF THAT"
aanderse has joined #nixos
<deltasquared> gchristensen, infinisil, sphalerite: actually I'm fine with details (though not too many at once), I keep going until I absorb enough to have a coherent mental model of the thing I'm examining
<sphalerite> bet it'll pop up again at the most inconvenient time
<sphalerite> like when I'm with a friend who thinks linux sucks
<gchristensen> deltasquared: derivations when coerced to a string become their out path, yeah
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #33855: pythonPackages.user-agents: init at 1.1.0 (master...user-agents) https://git.io/vNcIC
NixOS_GitHub has left #nixos [#nixos]
<sphalerite> anyway fwiw http://sprunge.us/GeQWH here's the log from plugging in (13:49:43) and unplugging again (13:50:13). But the bug didn't occur this time so it's probably not helpful
pkill9 has quit [Quit: WeeChat 2.0]
<deltasquared> sphalerite: 404
Itkovian has joined #nixos
<sphalerite> http://sprunge.us/GQWH oops, don't know how that e got in there
pkill9 has joined #nixos
nithor has joined #nixos
<deltasquared> sphalerite: aww, you call your host sudoku? that's cool
alex`` has joined #nixos
<aminechikhaoui> hm any way I can install nixos on a raspberry pi using wifi ?
<sphalerite> I basically picked a random word because I had no ideas
alex`` is now known as alexherbo2
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master c02a883 Bas van Dijk: pythonPackages.elasticsearch: move derivation to python-modules
<NixOS_GitHub> [nixpkgs] FRidh pushed 3 new commits to master: https://git.io/vNct7
<NixOS_GitHub> nixpkgs/master 4475995 Frederik Rietdijk: Merge pull request #33774 from LumiGuide/elasticsearch-curator-5.4.1-cleanup...
<NixOS_GitHub> nixpkgs/master 762f5ea Bas van Dijk: python-modules: removed unnecessary name attributes
<sphalerite> aminechikhaoui: you mean without writing an image to the SD card from another machine?
alexherbo2 is now known as alex``
<infinisil> Damnit, why does so much stuff I'm using break with an updated nixpkgs :/
<aminechikhaoui> well no after booting using the image, I'd like to nixos-rebuild using wifi
<deltasquared> aminechikhaoui: that doesn't work anyway?
<deltasquared> ... oooh, wait, possible wifi drivers issue
<sphalerite> deltasquared: my first few computers were named after birds, in German, following the naming scheme my dad used to use. Then I had one which I called "computer" because why not, now I have "sudoku" and the chromebook which is called "green"
<aminechikhaoui> I plugged a usb wireless adapter
<aminechikhaoui> ifconfig doesn't show a network interface for wifi
<deltasquared> aminechikhaoui: what's the manufacturer of the thing do you know
<sphalerite> aminechikhaoui: what's the issue you're having? Does the adapter not work, or do you just not know how to connect?
<sphalerite> ah, that's a pain
<sphalerite> infinisil: :(
<deltasquared> aminechikhaoui: if the image isn't recognising the adapter (maybe because of out-of-tree drivers) then you may have yourself a rather annoying chicken-and-egg problem
<deltasquared> in which to get wifi drivers (assuming that is the problem) you'd have to be connected to the internet first...
nithor has quit [Ping timeout: 255 seconds]
<aminechikhaoui> sphalerite: deltasquared I guess I don't know how to connect :D, journalctl -k and lsusb show that the device is recognized
<sphalerite> aminechikhaoui: if it doesn't show up in `ip link` then it's not going to work without driver/firmware fiddling
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vNcth
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master f3c996e Jaakko Luttinen: pythonPackages.versioneer: init at 0.18
<NixOS_GitHub> nixpkgs/master a6af522 Frederik Rietdijk: Merge pull request #33856 from jluttine/add-versioneer...
<sphalerite> I think ifconfig not showing it also means a driver issue
<sphalerite> what exactly does journalctl say about it?
<aminechikhaoui> huh ok then, better not spend much time on it then :)
<aminechikhaoui> new high-speed USB device number 6 using dwc2
<aminechikhaoui> that's from kernel logs
<deltasquared> couldn't you pa- ... different device. my bad.
<sphalerite> FWIW https://www.thinkpenguin.com/catalog/wireless-networking-gnulinux is a good place to get wireless adapters that will work on linux systems without much of a fuss
<sphalerite> aminechikhaoui: yeah that's not helpful, it will recognise any USB-compliant device like that
<sphalerite> you'll get the same if you plug in a storage device or a keyboard or a MIDI adapter or …
<aminechikhaoui> I see
* deltasquared gets to the bit in the nix manual about sets in the expression language
<sphalerite> except a storage device, keyboard or midi adapter will probably actually work xD
<deltasquared> ey dear... ancient langs called them "records", C-likes called them "structs", lua just had "tables" and now "sets" which are more sets of key-value pairs as opposed to an actual set of objects...
<aminechikhaoui> anyway thanks sphalerite , unfortunetly that adapters website link will not be much useful to me (life is hard in Tunisia :D)
<aminechikhaoui> I'll just plug in an ethernet cable later
<sphalerite> yeah if that's an option it's definitely easiest haha
nithor has joined #nixos
nithor has quit [Ping timeout: 276 seconds]
zzamboni has joined #nixos
glenn_ has quit [Ping timeout: 276 seconds]
zzamboni has quit [Client Quit]
<nikivi> I have a question about Nix philosophy
<nikivi> `you use a Nix file (e.g. /etc/nixos/configuration.nix), and the Nix tools convert it to the proper config files`
<nikivi> How does this work in practice?
<gchristensen> nikivi: it works great!
<nikivi> For example I have many .zsh files with aliases and functions for example
<nikivi> Do I have to write them inside nix config file instead?
<gchristensen> you don't _have_ to in many cases, no
cnidario has joined #nixos
<pkill9> i think the configuration.nix modifies the system-wide configs, but the software will normally also look in your user directories for ocnfigs
<pkill9> i suspect the main benefit of using confgiuration.nix is that if configuration syntax changes in a softwaree version, nix will handle that for you so you don't have to update your config files
<pkill9> and ofcourse it's reproducible etc
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis opened pull request #33857: kde-frameworks: 5.41 -> 5.42 (master...kde-frameworks-5_42) https://git.io/vNcmI
NixOS_GitHub has left #nixos [#nixos]
nithor has joined #nixos
astrofog has quit [Quit: Quite]
swayf has joined #nixos
glenn_ has joined #nixos
amir_ has joined #nixos
<LangeOortjes> I don't know if this is the right place to mention this but I've noticed that gdb crashes with segfaults when I try to inspect arguments (e.g. via the info args command)
amir has quit [Ping timeout: 276 seconds]
tgunb has quit [Ping timeout: 256 seconds]
amir_ is now known as amir
<sphalerite> LangeOortjes: if it's a gdb installed from nixpkgs through nix, then this is probably the right place!
zzamboni has joined #nixos
zzamboni has quit [Client Quit]
<sphalerite> you may also want to open an issue at https://github.com/NixOS/nixpkgs/issues
<sphalerite> Any dhall users here, who might be able to advise me on converting JSON to dhall?
swayf has quit [Ping timeout: 265 seconds]
nithor has quit [Ping timeout: 256 seconds]
Tobba has quit [Remote host closed the connection]
Tobba has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dotlambda opened pull request #33858: spectre-meltdown-checker: init at 0.29 (master...spectre-meltdown-checker) https://git.io/vNcm9
NixOS_GitHub has left #nixos [#nixos]
shabius has quit [Quit: Leaving]
<gchristensen> andi-: ^
orivej has quit [Ping timeout: 256 seconds]
<andi-> gchristensen: nice, will check in a few
nithor has joined #nixos
magnetophon has quit [Ping timeout: 256 seconds]
magnetop` has joined #nixos
hyphon81 has quit [Quit: Konversation terminated!]
nithor has quit [Ping timeout: 276 seconds]
Kingsquee has quit [Quit: https://i.imgur.com/qicT3GK.gif]
shabius has joined #nixos
aanderse has quit [Read error: No route to host]
orivej has joined #nixos
aanderse has joined #nixos
dbe_ has quit [Ping timeout: 240 seconds]
glenn_ has quit [Ping timeout: 255 seconds]
nithor has joined #nixos
krey has joined #nixos
goibhniu has joined #nixos
dbe_ has joined #nixos
glenn_ has joined #nixos
nithor has quit [Ping timeout: 276 seconds]
knupfer has joined #nixos
iyzsong has quit [Ping timeout: 265 seconds]
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raynold has quit [Quit: Connection closed for inactivity]
thaega has quit [Remote host closed the connection]
magnetop` has quit [Ping timeout: 268 seconds]
thaega has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to release-17.09: https://git.io/vNc3Z
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/release-17.09 eb2e3be Orivej Desh: mkPythonDerivation: let name default to ${pname}-${version}...
dupndrop has quit [Ping timeout: 248 seconds]
sigmundv has quit [Ping timeout: 248 seconds]
sigmundv has joined #nixos
nithor has joined #nixos
sweater has quit [Remote host closed the connection]
markus1189 has quit [Ping timeout: 248 seconds]
sweater has joined #nixos
markus1189 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/release-17.09 268b58e Bas van Dijk: python.pkgs.voluptuous: init at 0.10.5...
<NixOS_GitHub> nixpkgs/release-17.09 d64c223 Bas van Dijk: python.pkgs.elasticsearch: 1.9.0 -> 6.0.0...
<NixOS_GitHub> nixpkgs/release-17.09 724e38f Orivej Desh: python.pkgs.pyelasticsearch: delete...
<NixOS_GitHub> [nixpkgs] FRidh pushed 8 new commits to release-17.09: https://git.io/vNc3l
NixOS_GitHub has left #nixos [#nixos]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nithor has quit [Ping timeout: 256 seconds]
paolino_ has joined #nixos
<paolino_> hi, I'm just trying nix on a project using Spock. It fails because one deps (reroute) fails the testing phase. Any suggestion on how to procede ?
Itkovian has joined #nixos
<paolino_> I tried to disable the testing but didn't work: http://lpaste.net/361638
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #33858: spectre-meltdown-checker: init at 0.29 (master...spectre-meltdown-checker) https://git.io/vNcm9
NixOS_GitHub has left #nixos [#nixos]
nithor has joined #nixos
xcmw has joined #nixos
glenn_ has quit [Ping timeout: 255 seconds]
rihards has joined #nixos
nithor has quit [Ping timeout: 256 seconds]
srdqty has joined #nixos
srdqty has quit [Client Quit]
glenn_ has joined #nixos
<mpickering> paolino_: So reroute fails to build?
<mpickering> The problem I think is that you are not overriding it properly
<mpickering> so if any of the other packages use reroute then it won't be modified
<paolino_> yes that's the situation
<mpickering> instead use "pkgs.haskell.packages.ghc822.extend (self: super: { reroute = nixpkgs.pkgs.haskell.lib.dontCheck super.reroute })"
<mpickering> instead of "haskellPackages"
<mpickering> Do you understand what the difference is?
<paolino_> let me think
fuyuuri has joined #nixos
<paolino_> mh, I don't know what super is passed for
jb55 has joined #nixos
<paolino_> but I understand it's changing the build at a higher level
<mpickering> So “extend” is used to modify a package set. You pass it a function, the first argument is the result of doing the override, the second is the package set before doing the override
<mpickering> If it’s not clear I’m saying modify haskellPackages
nithor has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dotlambda opened pull request #33859: python3Packages.netdisco: init at 1.2.3 (master...netdisco) https://git.io/vNcGw
NixOS_GitHub has left #nixos [#nixos]
alexteves has joined #nixos
drakonis has joined #nixos
<paolino_> mpickering: so reroute = is self.reroute = ?
cnidario has quit [Remote host closed the connection]
nithor has quit [Ping timeout: 255 seconds]
<mpickering> Say you want to modify another attribute, "another-haskell-package" and wanted to refer to reroute, if you referred to "self.reroute" then it would refer to the dontCheck version but "super.reroute" would refer to the original unmodified version
deltasquared has quit [Quit: SEGMENTATION FAULT]
jensens has joined #nixos
Lisanna has joined #nixos
<mpickering> (in the same extend that is)
rauno has joined #nixos
<paolino_> so self is what it will be, kind of fix
<vaibhavsagar> paolino_: the implementation merges the original attribute set and the one specified in overrides
<vaibhavsagar> you can try `nix-build -E "with import <nixpkgs> {}; (pkgs.haskell.packages.ghc822.override { overrides = self: super: { reroute = pkgs.haskell.lib.dontCheck super.reroute;};}).reroute"`
<sphalerite> so I finally discovered how to fix my session-ends-and-/run/user/$UID-is-unmounted problem, using loginctl enable-linger $USERNAME
<sphalerite> would it make sense to have a nixos configuration thing for that? It seems to be persisted as a simple file in /var/lib/systemd/linger
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] basvandijk opened pull request #33860: release-17.09: ELK: 5.6.1 -> 5.6.5 & add ELK 6.1.0 (release-17.09...elk6-release-17.09) https://git.io/vNcZG
NixOS_GitHub has left #nixos [#nixos]
aanderse has quit [Ping timeout: 276 seconds]
<vaibhavsagar> paolino_: slightly shorter is `nix-build -E "with import <nixpkgs> {}; (pkgs.haskell.packages.ghc822.extend (self: super: { reroute = pkgs.haskell.lib.dontCheck super.reroute;})).reroute"`
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rycee pushed 1 new commit to master: https://git.io/vNcZB
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 9306956 Robert Helgesson: fantasque-sans-mono: 1.7.1 -> 1.7.2
nithor has joined #nixos
swayf has joined #nixos
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<paolino_> ok, thank you
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #33859: python3Packages.netdisco: init at 1.2.3 (master...netdisco) https://git.io/vNcGw
NixOS_GitHub has left #nixos [#nixos]
tgunb has joined #nixos
knupfer has quit [Ping timeout: 255 seconds]
nithor has quit [Ping timeout: 256 seconds]
orivej has quit [Ping timeout: 255 seconds]
glenn_ has quit [Ping timeout: 256 seconds]
knupfer has joined #nixos
aanderse has joined #nixos
simendsjo has joined #nixos
swayf has quit [Remote host closed the connection]
glenn_ has joined #nixos
iohidtbhfam[m] has joined #nixos
nithor has joined #nixos
klntsky has quit [Remote host closed the connection]
orivej has joined #nixos
Itkovian has joined #nixos
nithor has quit [Ping timeout: 256 seconds]
klntsky has joined #nixos
<mpickering> what is the difference between the packageSetConfig, compilerConfig and overrides arguments in the haskell package set?
orivej has quit [Ping timeout: 255 seconds]
nithor has joined #nixos
drakonis_ has joined #nixos
jensens has quit [Ping timeout: 256 seconds]
drakonis has quit [Ping timeout: 256 seconds]
<srhb> mpickering: As far as I can see, only the order of the extension composition?
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<srhb> (iow. packageSetConfig gets to refer to the extensions of compilerConfig through super)
<srhb> Because packageSetConfig `extends` compilerConfig
<mpickering> seems strange to me to do that
glenn_ has quit [Ping timeout: 276 seconds]
<srhb> Oh?
<mpickering> why have 3? you could have one and use composeExtensions to compose together your k different layers
nuncanada has quit [Quit: Leaving]
<srhb> Yes, I can only see that it makes sense when you want to prevent the extension in on direction (ie compilerConfig may not refer to packageSetConfig)
<srhb> in one*
glenn_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lschuermann opened pull request #33861: woof: init at 2012-05-31 (master...woof) https://git.io/vNccb
NixOS_GitHub has left #nixos [#nixos]
<srhb> I notice that packageSetConfig is only used for defining the ghcjs sets.
<srhb> I wonder if that sheds any light...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dotlambda opened pull request #33862: python3Packages.pyhomematic: init at 0.1.37 (master...pyhomematic) https://git.io/vNcCn
NixOS_GitHub has left #nixos [#nixos]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/1c104f986cc (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [Client Quit]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #33841: skypeforlinux: 8.11.0.4 -> 8.13.0.2 (master...skypeforlinux-8.13.0.2) https://git.io/vNnrN
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis pushed 1 new commit to release-17.09: https://git.io/vNcCX
<NixOS_GitHub> nixpkgs/release-17.09 c78b6cb Jon Banafato: skypeforlinux: 8.11.0.4 -> 8.13.0.2...
NixOS_GitHub has left #nixos [#nixos]
nithor has quit [Ping timeout: 256 seconds]
<srhb> pbogdag: Gurr. The keymap tests are still failing despite disabling the xterm DM. :/
<Isorkin> how to fix runtime path - patchedby error path - /nix/store/...-maxscale-2.1.13//nix/store/...-maxscale-2.1.13/lib/maxscale
<srhb> I think we need to play around with a delay and forced focus or something.
<mpickering> maybe the answer is that overrides cant be used internally as then an override would overwrite it
alex`` has quit [Ping timeout: 256 seconds]
deltasquared has joined #nixos
alex`` has joined #nixos
rauno has quit [Remote host closed the connection]
<deltasquared> hmm, so for the derivation function, what would one put for the "system" attribute to indicate "any architecture", if e.g. the files output are only platform-neutral scripts?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #33840: cytoscape: 3.5.1 -> 3.6.0 (master...update/cytoscape-3.6.0) https://git.io/vNnrF
NixOS_GitHub has left #nixos [#nixos]
<sphalerite> any dhall users here? If so, can they help me understand why `dhall <<< "let Foo = {} in [] : Optional Foo"` tells me "Unbound variable Foo"?
<adisbladis> deltasquared: Typically platforms.all
<deltasquared> adisbladis: right, cheers
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #33839: gephi: 0.9.1 -> 0.9.2 (master...update/gephi-0.9.2) https://git.io/vNnri
<srhb> sphalerite: Cannot reproduce.
NixOS_GitHub has left #nixos [#nixos]
glenn_ has quit [Ping timeout: 276 seconds]
<sphalerite> srhb: which dhall? I've got 1.6.0 from current nixos-unstable
glenn_ has joined #nixos
<sphalerite> OH. OH. I'm stupid. It wasn't the one from nixos-unstable, it was from nixos-17.09
<srhb> sphalerite: Ah. 1.8.2, for the record. :)
<sphalerite> Yep, 1.8.2 from nixos-unstable works.
<srhb> Great :)
<sphalerite> I've spent literally hours perplexed by this >_>
<srhb> :( Annoying.
<srhb> Sounds like it should be backported.
nithor has joined #nixos
jsgrant_ has joined #nixos
* sphalerite sent a long message: sphalerite_2018-01-14_17:20:40.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/GyzXTnyXEFZjJvYUyLNAtoyF>
<sphalerite> srhb: since you seem to have at least some idea of what you're doing with dhall, could you maybe help me understand why ^ won't typecheck?
<jsgrant_> Ha; So finally reshuffling boxes again. I'm pretty commited on my main boxen, going to go full Nix after playing around with the idea the past year-and-a-half... 'shred'-ing my day-to-day laptop a few times over in-preperation and running into this old kworker bug; Where it takes all of one of a multicore resources doing next to nil.
zzamboni has joined #nixos
* jsgrant_ is going to have to investigate how to disable certain interrupts for firmware on NixOS. :^)
nithor has quit [Ping timeout: 256 seconds]
<Lisanna> buildFHSUserEnv is a bit... confusing.
<jsgrant_> Still can't believe this is still a bug in kworker though; Literally hav had for near 5 years on that box -- almost forget it's a problem till I end up distrohopping.
glenn_ has quit [Ping timeout: 276 seconds]
21WAABFLU has joined #nixos
<21WAABFLU> [nixpkgs] adisbladis closed pull request #33851: why3: 0.88.1 -> 0.88.3 (master...why3-0.88.3) https://git.io/vNnFt
21WAABFLU has left #nixos [#nixos]
7GHABUZ6M has joined #nixos
<7GHABUZ6M> [nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vNcl3
<7GHABUZ6M> nixpkgs/master ff94fbc adisbladis: Merge pull request #33851 from vbgl/why3-0.88.3...
7GHABUZ6M has left #nixos [#nixos]
<7GHABUZ6M> nixpkgs/master aee1ceb Vincent Laporte: why3: 0.88.1 -> 0.88.3
glenn_ has joined #nixos
fyuuri has joined #nixos
fuyuuri has quit [Ping timeout: 248 seconds]
leons[m] is now known as leons
bpa has joined #nixos
glenn_ has quit [Ping timeout: 255 seconds]
nithor has joined #nixos
<sphalerite> Profpatsch: sorry to bother you personally, but you seem to be in the dhall-lang org on github… do you know a good place to ask questions about Dhall?
glenn_ has joined #nixos
glenn_ has quit [Ping timeout: 256 seconds]
nithor has quit [Ping timeout: 255 seconds]
* hodapp reads about dhall-nix...
wilornel has joined #nixos
<wilornel> Hi angerman !
marusich has joined #nixos
jb55 has quit [Ping timeout: 256 seconds]
Mateon3 has joined #nixos
AndreasO has joined #nixos
glenn_ has joined #nixos
Mateon1 has quit [Ping timeout: 276 seconds]
Mateon3 is now known as Mateon1
<hodapp> "This package targets people who wish Nix had a type system." but is independent of the other efforts to type nix? hmmm
* jsgrant_ never even heard of Dhall before; Looks relatively nice.
<hodapp> I've heard of Dhall but never used it
yastero has quit [Quit: EliteBNC - http://elitebnc.org (Auto-Removal: idle account/not being used)]
bpa has quit [Read error: Connection reset by peer]
bpa has joined #nixos
<sphalerite> hodapp: yes, it's a completely distinct language so it's necessarily independent
<sphalerite> I'm trying to use it but having difficulties with fairly basic stuff, I don't know if this is a problem with my expectations or with the current state of the language
<sphalerite> e.g. 'let Foo = {} in [{=}] : Optional Foo' doesn't typecheck, even though '[{=}] : Optional {}' is fine
<sphalerite> where {} is the type of the empty record and {=} is the empty record
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 05d803a adisbladis: qmltermwidget: Use fetchFromGitHub
<NixOS_GitHub> [nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vNc89
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 3538492 adisbladis: cool-retro-term: 1.0.0 -> 1.0.1
nithor has joined #nixos
flyx has quit [Quit: ZNC - http://znc.in]
flyx has joined #nixos
<deltasquared> sphalerite: that syntax is mildly eye-twitch inducing
<Lisanna> Ah, perhaps I am misunderstanding buildFHSUserEnv... I thought it was more or less just stdenv but it runs everything in a chroot with /usr /etc /bin etc. setup. Instead it appears to be geared towards wrapping a binary for users to call at runtime?
<sphalerite> Lisanna: yeah AFAIU it's for use with nix-shell
<Lisanna> :/
<sphalerite> deltasquared: better than Agda, IMHO
AndreasO has left #nixos [#nixos]
<deltasquared> sphalerite: I don't know what that is. P
<deltasquared> *:P
dbe_ has quit [Ping timeout: 240 seconds]
<deltasquared> thought it should be noted I very firmly have my programming routes in the C language family, so...
<Lisanna> can it be used in the way I want to use it instead? I want the final product to be a nice nix-ified package, I just need to temporarily deal with the self-extracting installer
<deltasquared> self extracting installer? this does not bode well...
<Lisanna> I can wrap the installer in a buildFHSUserEnv but then I need to run that installer as part of a mkDerivation
pie__ has joined #nixos
<sphalerite> deltasquared: a dependently typed functional programming language. Very powerful and kind of mind-bending
mkoenig_ has joined #nixos
Thra11 has joined #nixos
<sphalerite> Lisanna: often self-extracting installers can be externally extracted instead, have you checked if that's possible with this one?
mkoenig has quit [Ping timeout: 256 seconds]
<Lisanna> sphalerite it's all custom
<Lisanna> these aren't tar.gzs...
<sphalerite> Lisanna: yeah but even custom ones can sometimes be figured out
nithor has quit [Ping timeout: 276 seconds]
<sphalerite> Lisanna: e.g. they're often shell scripts with binary data appended to them
<deltasquared> sphalerite: dependent typing? like tuples of numbers where the first is smaller than the second? (a simple case mind)
<sphalerite> try opening it in an editor and seeing if that's the case
<sphalerite> if not, binwalk might be helpful too (nix-shell -p python3Packages.binwalk --run 'binwalk magicalInstaller')
<sphalerite> deltasquared: yes
<Lisanna> sphalerite well, the installer is an ELF, so assuming I could even figure out how ot manually extract the installer's data, I have no idea how I'd tell the installer to use my version instead
<sphalerite> ah yeah if it's ELF then it's not as easy as with a shell script. binwalk might still help though
<Lisanna> I'm not liking the sound of your messages... does it mean that something wrapped with buildFHSUserEnv just can't be run in a nix sandbox?
jb55 has joined #nixos
<Lisanna> as part of a mkDerivation?
deltasquared has left #nixos ["my internets, no!"]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis opened pull request #33863: teamspeak_client: Re-link with qt 5.9 (master...tsclient-qt59) https://git.io/vNc4V
NixOS_GitHub has left #nixos [#nixos]
<Lisanna> the things you're suggesting sound pretty gloomy :p
<srhb> sphalerite: Hmm, is it that {=} is special for empty record, but not empty Foo?
<sphalerite> srhb: no because Foo is the empty record type
<sphalerite> srhb: there's no newtype-like mechanism at play here
<srhb> Ah.
<sphalerite> Lisanna: it probably can, I just have no idea how :)
<Lisanna> bleh, alright
<Lisanna> fair enough
<sphalerite> srhb: as far as I understand, anyway. I might be horribly wrong!
<Lisanna> *pulls up the useful nix hacks page* alright time to get dirty
aristid1 is now known as aristid
<sphalerite> hm, more simply `dhall <<< 'let Foo = {} in {=} : Foo'` doesn't work either
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] adisbladis opened pull request #33864: mendeley: Re-link with qt 5.9 (master...mendeley-qt59) https://git.io/vNcBJ
<srhb> Yeah, that's what lead me to think that it were newtype-like
<srhb> Because {=} : {} obviously works
nithor has joined #nixos
glenn_ has quit [Ping timeout: 276 seconds]
<srhb> sphalerite: "Type-checking precedes normalization and normalization includes substitution of let-bound types" -- sounds relevant
cinimod has joined #nixos
<sphalerite> aaaaaah
jekor has quit [Ping timeout: 240 seconds]
<sphalerite> sooo… maybe this will work if I replace the let binding with a file reference, and put the type description in the file?
* sphalerite tries
<srhb> I think so :)
<srhb> Of course, this means that the file Foo now contains {} :P
<srhb> Though I guess that just seems to obviate the example because it's so simple. :)
<srhb> It would make sense for a "real" type "synonym" (import)
glenn_ has joined #nixos
nithor has quit [Ping timeout: 256 seconds]
<srhb> (Pathologically simple because now it's just dhall <<< "{=} : ./Foo")
loli has quit [Quit: WeeChat 1.9.1]
<cinimod> This picks up the blas from haskellPackages not the blas from nixpkgs. What do I have to do to get the desired blas? https://www.irccloud.com/pastebin/ZXcJrV7v/
<wilornel> Hey #nixos! It seems like `vi ~/.config/nixpkgs/config.nix` and `nix-env -iA nixos.myPackages` allows each user to have its own declaration of packages they want to install, right? However, I am trying to create a separate user right now and grant them root rights and then I get:
<wilornel> [kevin@ip-172-31-47-96:~]$ sudo nix-env -iA nixos.myPackages error: attribute ‘myPackages’ in selection path ‘nixos.myPackages’ not found
glenn_ has quit [Ping timeout: 276 seconds]
<sphalerite> srhb: yeah. I gradually narrowed it down to such a simple case from a much more complex one
<srhb> sphalerite: Ok, cool :-)
<gchristensen> wilornel: are you still on 16.09? :)
zzamboni has quit [Quit: Leaving.]
loli has joined #nixos
nithor has joined #nixos
blym has joined #nixos
dbe_ has joined #nixos
<srhb> cinimod: I think you want openblas
FRidh2 has joined #nixos
FRidh2 is now known as FRidh
<sphalerite> wilornel: I think you want to call nix-env without sudo
b has joined #nixos
nithor has quit [Ping timeout: 256 seconds]
asuryawanshi has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
mahalel_ has joined #nixos
alex`` has quit [Ping timeout: 256 seconds]
glenn_ has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
<Lisanna> New plan: runInLinuxVM
asuryawanshi has joined #nixos
<Lisanna> runInLinuxVM is the answer to everything
<LnL> wilornel: yeah, if you use sudo nix-env won't look at your local config
fyuuri has quit [Ping timeout: 248 seconds]
<LnL> you don't need root access to update/install user paclages
<cinimod> I could try `openblas` but it seems nixpkgs contains `blas-3.7.1`
nithor has joined #nixos
glenn_ has quit [Remote host closed the connection]
glenn_ has joined #nixos
<cinimod> I did try `openblas` but
<cinimod> `Setup: hmatrix.cabal:119: 'then' branch of 'if' is empty`
<cinimod> Not really a nix problem
ma27 has quit [Ping timeout: 256 seconds]
<wilornel> [kevin@ip-172-31-47-96:~]$ nix-env -iA nixos.myPackages error: Nix database directory ‘/nix/var/nix/db’ is not writable: Permission denied
tmaekawa has joined #nixos
<gchristensen> wilornel: sounds like you mucked up your user's environment ... how did you make the user?
<wilornel> system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 1.11.16, nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
<gchristensen> wilornel: may I suggest using NixOS's support for user management?
<wilornel> ah, good idea!
<gchristensen> wilornel: https://nixos.org/nixos/options.html#users.users
blym has quit [Read error: Connection reset by peer]
user__ has joined #nixos
<wilornel> after changing configuration.nix how do I update nixos ?
<gchristensen> nixos-rebuild switch
bpa has quit [Read error: Connection reset by peer]
<sphalerite> nixos-rebuild switch
<jsgrant_> wilornel, nixos-rebuild 'switch' or 'boot';
<jsgrant_> Latter for next restart.
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bpa has joined #nixos
<wilornel> [root@ip-172-31-47-96:~]# nix-build -switch error: getting status of ‘/root/default.nix’: No such file or directory
<wilornel> ah!
<wilornel> one sec
<sphalerite> wilornel: see the manual also
<wilornel> [root@ip-172-31-47-96:~]# nix-build switch error: getting status of ‘/root/switch’: No such file or directory
<samueldr> nix_os_-_re_build :)
<wilornel> ah thank you, let me just zoom in that text a little hahah
<gchristensen> indeed, literally `nixos-rebuild switch`
<samueldr> :)
<jsgrant_> Does the search page on nixos.org, for packages, only search stable?
<samueldr> jsgrant_: yes
Neo-- has joined #nixos
<jsgrant_> samueldr: Okay, nice; Hoping that a lot of this 3.24 GNOME stuff is actually 3.26 upstream.
<samueldr> I have this experimental searcher that has a channel selector: https://nix.samueldr.com/explorer/?channel=unstable
<samueldr> (still needs to be re-made in Elm)
<jsgrant_> There's some packages, that seem blatantly out of date afaik; Seems like a low-barrier to entry to start contributing though.
<gchristensen> jsgrant_: indeed!
<samueldr> that's definitely possible
<samueldr> oh, my searcher is possibly ~15 days out of date with nixpkgs unstable's state
* samueldr hits the deploy script
johnw has quit [Read error: Connection reset by peer]
<jsgrant_> I've been debating with myself, even tyring to convience myself out of it and just "stick with Fedora" -- but really thiink I'm going to give NixOS a solid, actual year, on all my main boxen.
<gchristensen> samueldr: elm is only workable once the closure for elm is much smaller
<Lisanna> samueldr I like that it has a "show unfree packages" option
johnw has joined #nixos
alunduil has joined #nixos
<samueldr> I got "elm fatigue" when I first started porting... all new stuff, working differently, felt a bit like swimming in place
Itkovian has joined #nixos
<jsgrant_> Really, have set myself to fail prior -- by trying to 'jump all in' and not setting up any secondary boxes, if I need to "get stuff done" in the moment; Set up two secondary Arch boxes; So no real excuse now. :^)
<samueldr> (though, that's all from being unfamiliar with everything)
<simpson> samueldr: Elm's kind of a cruddy language. Don't worry about it.
<samueldr> jsgrant_: go all in, nothing can go wrong ;)
<gchristensen> simpson: hey now
aarvar has joined #nixos
<samueldr> simpson: I'm actually curious now, why?
iqubic has joined #nixos
<iqubic> Does NixOS have any prolog compilers?
<samueldr> (I have no real opinion *yet* on elm, I was porting to elm since it looked like elm would be used for other parts of the site)
<iqubic> Like would I be able to get a prolog compiler if I tried?
xcmw has joined #nixos
bpa has quit [Read error: Connection reset by peer]
<samueldr> probably
<manveru> iqubic: quite a few options
bpa has joined #nixos
<jsgrant_> samueldr: :Yeah; Wish I still had all that "high-school and early-college" free-time again ... think I'm still in that mindset though.
<simpson> samueldr: Really lame type system for an ML, anemic libraries, "The Elm Architecture" is not a genius-level invention and the docs should relax already. It's like Haskell, but with an even more restrictive type system and an unpredictable parser.
<samueldr> jsgrant_: this was definitely said jokingly, I didn't do an all-in switch at one go, I had a secondary computer I used to get ~90% what I wanted, THEN went all-in
<iqubic> samueldr: What's the difference between those prolog compilers?
<jsgrant_> Moderation, especially around techno-optimism is hard.
<sphalerite> Is there a way to get nix not to retry network-accessing-stuff that fails in persistent ways, e.g. failure to resolve a hostname because it doesn't exist, or not being able to send a curl request because there's no route to the host?
tmaekawa has quit [Quit: tmaekawa]
<samueldr> iqubic: I don't know, I literally only searched the packages list
<samueldr> with work getting in the way, it took me ~3 months off and on (mostly off) and then went all-in
<jsgrant_> samueldr: No, yeah, I got ya. I'm saying I have a loooong history of this; Just much less time to 'make it work'.
<tilpner> How do I get an ALSA-less sound setup? I want to use Pulse, but sometimes I still need to go into alsamixer and unmute my microphone. Is that an ALSA-Interface to Pulse, or am I using a Pulse-Interface to ALSA? As you may have noticed, I don't know how Linux sound works
<tilpner> sound.enable = false; in my setup
<wilornel> WOOT!!!! I was able to achieve something great! Every user in the OS can have their own declaration of packages! :)
<wilornel> THANKS TO NIX!!
<iqubic> tilpner: ALSA is dependency of Pulse.
<samueldr> afaik, pulse works using alsa
<simpson> iqubic: Your Prolog learning materials probably prefer a specific Prolog interpreter. If there's truly no preference, then GNU Prolog implements all the standard stuff that you'd want for learning Prolog.
<wilornel> I didn't achieve anything, I was able to successfully use nixos :)
<sphalerite> tilpner: pulse is a layer on top of alsa, but it also emulates an alsa device
<wilornel> I'll have to write about it :)
<sphalerite> tilpner: why do you want it "ALSA-less"?
<iqubic> simpson, Learn Prolog Now tell me to use whatever implementation I want.
<cinimod> `Setup: hmatrix.cabal:119: 'then' branch of 'if' is empty`
<wilornel> thanks gchristensen samueldr LnL jsgrant_ sphalerite
<tilpner> sphalerite - I falsely assumed they were alternatives, and ALSA only was here for legacy reasons
<sphalerite> wilornel: congratulations! :)
<cinimod> I think I can blame nix because if I use cabal outside of nix then there is no error message
bpa has quit [Remote host closed the connection]
<jsgrant_> wilornel: No-problem; Trawl the docs a bit -- not perfect by any means, but there's some useful nuggets.
<simpson> iqubic: Ah, that's a good introduction. $ nix-shell -p gprolog --run gprolog
<sphalerite> tilpner: nope, ALSA is still pretty much the standard way for applications to access sound devices. Just, as it happens, that the ALSA device an application accesses will usually be a virtual one provided by pulseaudio if you're using pulseaudio
<tilpner> sphalerite - Do you use other tools than pavucontrol for managing them? It's annoying that pavucontrol and alsamixer expose different options and I still need both
<sphalerite> tilpner: is there a problem you're trying to solve, like sound not working somewhere?
<sphalerite> I only use pavucontrol usually
<samueldr> tilpner: is it a situation where *at boot* the alsa device is muted? this might be solvable through alsa config
<tilpner> sphalerite - Every boot I have to go into alsamixer and unmute my headset microphone. I am unable to unmute it from pavucontrol
<sphalerite> which options do you need alsamixer for?
<tilpner> Ah, samueldr was faster at describing my problem
<tilpner> samueldr - Have you solved this locally?
nithor has quit [Ping timeout: 276 seconds]
<samueldr> no, but this is something I remember having seen
* jsgrant_ wonders when pipewire starts eating pulseaudio's lunch in the 'greater linux community'.
<gchristensen> jsgrant_: it'll probably take more than 6mo of only unstable releases..
<mpickering> cinimod: Did you look at the hmatrix cabal file?
<sphalerite> jsgrant_: fwiw it's the first time I've heard of it
<wilornel> jsgrant_: I think if I were to do that I'll have to start annotating the bits I am not absolutely sure and for which some examples would be nice. Maybe I'll do that sometime
<jsgrant_> gchristensen: I thought it was already shipping, in some-form in the latest Fedora? But yeah, going to take a few years surely; Weird to see how 'quick' seemingly systemd progressed.
<jsgrant_> I know that's been years; But doesn't seem like it, really.
<gchristensen> jsgrant_: yeah, afaict pipewire's first release was jul 2017
<mpickering> cinimod: Looks like it is taking one of the branches where "if flag(openblas)" is expect but the openblas flag isn't set
<samueldr> tilpner: it might not be possible through configuration, from a superficial google search, though there's possibly this: https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture/Troubleshooting#Output_is_muted_after_reboot
<samueldr> specifically the "Auto-Mute" part
<jsgrant_> Only other 'core-infastructure' I'm really interested in at this point, is Stratis; After Btrfs pooped out.
<samueldr> (afaik, alsactl restore should be done by the system already?)
<tilpner> samueldr - I found an Arch forum thread that solves this with scripting, but it very much screams workaround :/
<mpickering> cinimod: Looks like it won't work anyway as it has hard coded paths in
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor pushed 1 new commit to master: https://git.io/vNcuO
<NixOS_GitHub> nixpkgs/master b986078 David Asabina: bitscope: refactored to pass nixpkgs-lint...
NixOS_GitHub has left #nixos [#nixos]
ixxie has joined #nixos
glenn_ has quit [Remote host closed the connection]
glenn_ has joined #nixos
<jsgrant_> simpson: My city actually has a pretty big Elm meetup -- which I was shocked by.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor closed pull request #33834: bitscope: refactored to expose to nixpkgs-lint (master...fix/bitscope-nixpkgs-lint) https://git.io/vNnC7
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #33865: uget: 2.0.10 -> 2.2.0 (master...upd.uget) https://git.io/vNcu8
NixOS_GitHub has left #nixos [#nixos]
FRidh has quit [Quit: Konversation terminated!]
<jsgrant_> I appreciate the JS-as-target more, as I've accepted "Web As A Platform" is invetiably the future -- but aren't most of these going to die off once you can just "compile to WebAsm" in a much more established-lang? Idk.
nithor has joined #nixos
<samueldr> tilpner: I haven't had any success with "commenting out" parts of the default pulsaudio config with nixos, I had to copy the default file, and replace it through configuration.nix
<gchristensen> jsgrant_: the real innovation, imo, by elm, is making it approachable and in the community, which I think are just-as-valuable-if-not-more when it comes to commercial viability
<samueldr> (haven't looked hard enough though)
glenn_ has quit [Ping timeout: 276 seconds]
rogue_koder has quit [Quit: Konversation terminated!]
rogue_koder has joined #nixos
<jsgrant_> gchristensen: Well, those are some of the bigger things that grow commerical-viablity, potientally too; Hell, that's some of the bigger selling-points to Rust (at least in-regards to community) -- yeah.
<gchristensen> yep
rogue_koder has quit [Client Quit]
rogue_koder has joined #nixos
swayf has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to staging: https://git.io/vNcu7
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/staging 6ed0fe7 Tuomas Tynkkynen: Merge remote-tracking branch 'upstream/master' into staging...
nithor has quit [Ping timeout: 276 seconds]
endformationage has joined #nixos
wilornel has quit [Ping timeout: 260 seconds]
<tilpner> samueldr - Did you copy it manually, or via Nix?
<tilpner> samueldr - Also, what's "nixos-option sound.enable" for you?
ent has quit [Ping timeout: 240 seconds]
datakurre has quit [Ping timeout: 276 seconds]
nithor has joined #nixos
nithor has quit [Ping timeout: 256 seconds]
ixxie has quit [Quit: Lost terminal]
clever has quit [Ping timeout: 255 seconds]
clever has joined #nixos
clever has joined #nixos
clever has quit [Changing host]
glenn_ has joined #nixos
JosW has quit [Quit: Konversation terminated!]
krey has quit [Ping timeout: 240 seconds]
glenn_ has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vNcgK
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/staging 990ff97 Vladimír Čunát: glibc: 2.26-115 -> 2.26-131 to fix CVE-2018-1000001...
fxkr has joined #nixos
ma27 has joined #nixos
rogue_koder has quit [Quit: Konversation terminated!]
nithor has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rycee pushed 2 new commits to master: https://git.io/vNcgA
<NixOS_GitHub> nixpkgs/master fb5f636 Robert Helgesson: svtplay-dl: 1.9.6 -> 1.9.7
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master dd798d1 Robert Helgesson: eclipse-plugin-checkstyle: 8.5.1 -> 8.7.0
babyflakes has quit [Quit: Connection closed for inactivity]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #33865: uget: 2.0.10 -> 2.2.0 (master...upd.uget) https://git.io/vNcu8
NixOS_GitHub has left #nixos [#nixos]
s33se has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
swayf has quit [Remote host closed the connection]
simendsjo has quit [Ping timeout: 255 seconds]
datakurre has joined #nixos
ent has joined #nixos
hamishmack has quit [Quit: hamishmack]
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #nixos
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] yesbox opened pull request #33866: sg/newgrp should always be available, not chfn (master...fix_newgrp) https://git.io/vNcaO
NightTrain has joined #nixos
b has quit [Ping timeout: 255 seconds]
nithor has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vNcaV
<NixOS_GitHub> nixpkgs/master 4de01b6 Vladimír Čunát: rebuild-amount.sh: add --print option (PR #33693)...
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat closed pull request #33693: rebuild-amount.sh: add --print option (master...p/rebuild-amount-print) https://git.io/vNmHc
NixOS_GitHub has left #nixos [#nixos]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/c78b6cbc427 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [Client Quit]
nithor has joined #nixos
<cinimod> mpickering: thanks for looking
<cinimod> mpickering: yes I noted the hard-coded paths
<cinimod> I don't know nix well enough to know what to do to improve the situation
<mpickering> you probably need to first get nix to pass the -fopenblas flag
<mpickering> which you can do using enableCabalFlag
<mpickering> and then write a patch or use sed in order to patch the paths to the right thing
hamishmack has joined #nixos
<cinimod> Yes - I might be able to manage both those with some help
<cinimod> It seems that nix exposes problems with package build systems
* cinimod goes to read about enableCabalFlag
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] copumpkin pushed 1 new commit to master: https://git.io/vNcwJ
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 1a05448 Dan Peebles: mono54: init...
MinceR has quit [Ping timeout: 256 seconds]
MinceR has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #33867: mendeley: add update script, use it, add myself as maintainer (master...update/mendeley-1.17.13-and-update-checker) https://git.io/vNcwm
NixOS_GitHub has left #nixos [#nixos]
<cinimod> Well there isn't much documented on enableCabalFlag
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master b1ca851 Jan Malakhovski: lib: generalize `addPassthru` to `extendDerivation`
<NixOS_GitHub> [nixpkgs] vcunat pushed 12 new commits to master: https://git.io/vNcws
<NixOS_GitHub> nixpkgs/master 9956687 Jan Malakhovski: stdenv: change some indent
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master d1d5ecb Jan Malakhovski: stdenv: perform checks only when evaluating .drv and .out...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat closed pull request #33057: stdenv: perform checks only when evaluating .drv and .out (master...stdenv/delay-check-meta) https://git.io/vb7iM
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat closed pull request #22277: Meta refactor (master...meta-refactor) https://git.io/vDUxY
NixOS_GitHub has left #nixos [#nixos]
swayf has joined #nixos
<aminechikhaoui> Dezgeg: Thanks for the nixos-arm binary cache ! really helpful :)
<mpickering> cinimod: enableCabalFlag "openblas" super.hmatrix
<mpickering> sorry, enableCabalFlag super.hmatrix "openblag"
<mpickering> the full path is nixpkgs.haskell.lib.enableCabalFlag I believe
nithor has quit [Ping timeout: 256 seconds]
swayf has quit [Remote host closed the connection]
Mitaka89 has joined #nixos
Mitaka89 has quit [Max SendQ exceeded]
nithor has joined #nixos
Mitaka89 has joined #nixos
Mitko_ has joined #nixos
Mitaka89 has quit [Remote host closed the connection]
Mitko_ has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
Mitaka89 has joined #nixos
Mitaka89 has quit [Max SendQ exceeded]
raynold has joined #nixos
Mitko_ has joined #nixos
nithor has quit [Ping timeout: 255 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to release-17.09: https://git.io/vNcrt
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/release-17.09 a14448d Orivej Desh: Merge #33529: nixos/availableKernelModules: add logitech hid...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #33868: snowman: deprecate qt4 variant (master...snowman-deprecate-qt4) https://git.io/vNcrc
NixOS_GitHub has left #nixos [#nixos]
Mitko_ has quit [Remote host closed the connection]
<dtz> mmm starting issuing PR's from 'hub' command-line.. SO much better/easier lol
Mitaka89 has joined #nixos
Mitaka89 has quit [Max SendQ exceeded]
<dtz> still checking them after to make sure it doesn't do something strange, but...
<dtz> :D
<simpson> Ooh, that sounds like a feature I might be willing to use. I'll have to look at that.
asuryawanshi has quit [Ping timeout: 276 seconds]
<sphalerite> dtz: you said ALLVM stuff would be coming out in pieces over the next week on Tuesday, but I forgot to ask about how well it's integrated with nix and stuff and if it would include any information on how to run NixOS with it and where to look for it :D
<catern> why is it necessary to instantiate Nix expressions down to low-level store derivations on disk? why not just do it all in-memory?
<gchristensen> anyone like doing front-end stuff? I'd like a little program + web interface that reads a message from a rabbitmq queue and displays in a browser with websockets
<gchristensen> s/a message/messages/
<dtz> sphalerite: for now I maintain an '<allvm>' channel that you can install things from, I've been focusing on user software installed via nix-env (terminal, shell, editor, etc.) -- mostly so development of ALLVM features (and bugs :P) doesn't tank my laptop xD. I've generated docker containers and such that are pure-ALLVM; I would love to generate NixOS configurations but haven't actually tackled that yet.
<catern> (more precisely, why the "on disk" part)
<dtz> sphalerite: my estimate might be a bit optimistic but I'm working hard to ensure that optimism is warranted :P. Want to get at least first pieces out ASAP
<catern> the thesis says "the paths of store derivations give us a unique identification of objects of source deployment" but that doesn't mean they have to be actually on-disk
<dtz> tired of working behind closed doors :(
<dtz> catern: mount nix store on ramfs -> profit?! :P jkjk
<catern> i guess it's just staging
<catern> and debugging
nithor has joined #nixos
iqubic has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
Lisanna has quit [Ping timeout: 256 seconds]
<sphalerite> dtz: sounds good!
fyuuri has joined #nixos
nithor has quit [Ping timeout: 256 seconds]
Neo-- has quit [Ping timeout: 255 seconds]
nithor has joined #nixos
<samueldr> tilpner: sound.enable = true; but I looked at the machine and I did not track it in config yet...
<samueldr> ... I'm overriding the user config only
<samueldr> gchristensen: I'll be available in ~1h to talk about that (actually came here after seeing your tweet) (bbl)
<gchristensen> neat!
dan_b has joined #nixos
WilliButz has quit [Ping timeout: 276 seconds]
coot____ has joined #nixos
WilliButz has joined #nixos
nithor has quit [Ping timeout: 256 seconds]
<gchristensen> samueldr: careful, if people come looking to do my projects for me, I might get power hungry ...
endformationage has quit [Quit: WeeChat 1.9.1]
rihards has quit [Quit: rihards]
civodul has joined #nixos
nithor has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] iavael opened pull request #1799: Fix manpath detection (master...manpath-fix-1) https://git.io/vNc6m
NixOS_GitHub has left #nixos [#nixos]
swayf has joined #nixos
zzamboni has joined #nixos
hiratara has quit [Ping timeout: 276 seconds]
swayf has quit [Ping timeout: 265 seconds]
dbe_ has quit [Ping timeout: 240 seconds]
hiratara has joined #nixos
jb55 has quit [Ping timeout: 276 seconds]
swayf has joined #nixos
swayf has quit [Remote host closed the connection]
nithor has quit [Ping timeout: 255 seconds]
swayf has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dotlambda opened pull request #33869: spectre-meltdown-checker: 0.29 -> 0.31 (master...spectre-meltdown-checker) https://git.io/vNc6d
NixOS_GitHub has left #nixos [#nixos]
hiroshi has quit [Ping timeout: 264 seconds]
jb55 has joined #nixos
dbe_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #33870: wireshark: 2.4.3 -> 2.4.4 (master...update/wireshark-2.4.4) https://git.io/vNc6h
NixOS_GitHub has left #nixos [#nixos]
lonokhov has quit [Quit: Lost terminal]
nithor has joined #nixos
swayf has quit [Remote host closed the connection]
<garbas> srk: not sure if you figured out regarding PYTHONPATH, but you can change the installPhase to echo $PYTHONPATH somewhere
<srk> garbas: I've used python.buildEnv in the end
<garbas> srk: yes, that works as well
<srk> garbas: seems to work fine, can deploy complete CKAN now with postgres, rq, gunicorn, solr and redis
<srk> with like ~300 lines of .nix \o/ :D
<garbas> :) thats the idea
<srk> oh yeah, learned a lots of stuff during last few days
<garbas> while we are talking here. i'm giving you push rights for nixpkgs-python
<garbas> so you can fix ckan when it fails on travis
dbe_ has quit [Ping timeout: 240 seconds]
<srk> garbas: cool, btw I've found out that you also maintain redmine - tried to deploy it yesterday as I'm gonna need it at some point but it doesn't seem to work. is it PITA to update?
<pbogdan> shouldn't this https://github.com/NixOS/nixpkgs/blob/master/lib/systems/examples.nix#L36 be armv7(h)l-unknown? (rather than just arm-unknown)
dbe_ has joined #nixos
<garbas> srk: yes, there were bunch of patches needed.
<Dezgeg> that's very possible
<garbas> srk: invitation for nixpkgs-python sent
<srk> garbas: I would give it a shot in a week or so, just bump it to 3.4 or whatever is latest
<srk> thanks, accepted
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vNci6
<NixOS_GitHub> nixpkgs/master 0ed9de2 Tuomas Tynkkynen: gnuplot: Use quoting syntax that's compatible with old and new Nix versions...
NixOS_GitHub has left #nixos [#nixos]
nithor has quit [Ping timeout: 256 seconds]
<srk> garbas: if I understand that correctly travis runs periodically and autoupdates the repo if deps change, right?
<garbas> srk: yes, it also pushed binaries somwhere so you can use its binary cache
* garbas looks for link
<srk> no need, I'm gonna run hydra for this deployment anyway (for integration testing mainly)
<garbas> srk: can you squash all the commits in https://github.com/garbas/nixpkgs-python/pull/19
<srk> sure
<garbas> that should retrigger travis
tgunb has quit [Ping timeout: 255 seconds]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/ff94fbc4167 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [Client Quit]
dbe_ has quit [Ping timeout: 240 seconds]
alexteves has quit [Ping timeout: 256 seconds]
<garbas> srk: hmm looks like permissions don't get propagated from github to travis
<garbas> i wonder how to do this
nithor has joined #nixos
ma27 has quit [Ping timeout: 255 seconds]
krey has joined #nixos
swayf has joined #nixos
<srk> garbas: yup, maybe if you just merge it?
<srk> no idea
18WAABE85 has joined #nixos
<18WAABE85> [nixpkgs] andir pushed 2 new commits to master: https://git.io/vNcPg
<18WAABE85> nixpkgs/master 898ac01 Robert Schütz: spectre-meltdown-checker: 0.29 -> 0.31
18WAABE85 has left #nixos [#nixos]
<18WAABE85> nixpkgs/master 890c804 Andreas Rammhold: Merge pull request #33869 from dotlambda/spectre-meltdown-checker...
7GHABU1Z6 has joined #nixos
<7GHABU1Z6> [nixpkgs] andir closed pull request #33869: spectre-meltdown-checker: 0.29 -> 0.31 (master...spectre-meltdown-checker) https://git.io/vNc6d
7GHABU1Z6 has left #nixos [#nixos]
<garbas> srk: done
swayf has quit [Remote host closed the connection]
swayf has joined #nixos
<garbas> uff pytest set is failing
swayf has quit [Remote host closed the connection]
loli has quit [Quit: WeeChat 1.9.1]
loli has joined #nixos
tanonym has joined #nixos
hiratara has quit [Quit: ZNC - http://znc.in]
hiratara has joined #nixos
swayf has joined #nixos
Thra11 has quit [Read error: Connection reset by peer]
thc202 has quit [Ping timeout: 276 seconds]
Thra11 has joined #nixos
<srk> garbas: what's the deal with this? timeout? https://travis-ci.org/garbas/nixpkgs-python/jobs/328847332
swayf has quit [Remote host closed the connection]
<garbas> srk: travis job fails with this error when nix-build prints to much
asuryawanshi has joined #nixos
<srk> eh
<srk> travis is lame /o\
asuryawanshi has quit [Ping timeout: 248 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #33871: llvm-5: add extra 'python' output for opt-viewer tool (master...fix/llvm-5-python-closure) https://git.io/vNc1J
NixOS_GitHub has left #nixos [#nixos]
<garbas> srk: i've pushed fix for pytest as well. travis should be green soon(ish)
simukis has quit [Ping timeout: 260 seconds]
pkill9 has quit [Quit: WeeChat 2.0]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/a14448da27d (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [Client Quit]
klntsky has quit [Ping timeout: 272 seconds]
jdrowell has joined #nixos
alexteves has joined #nixos
jb55 has quit [Ping timeout: 256 seconds]
nithor has quit [Ping timeout: 256 seconds]
klntsky has joined #nixos
MP2E has joined #nixos
<Unode> does anyone have an example of how to set priorities to avoid collisions in configuration.nix ? All the hits I'm getting from google are nix-env related and not configuration.nix
<catern> does anyone know of any other implementation of the nix-daemon remote store protocol? the one that nix-daemon speaks? is there, perhaps, a Haskell library which implements this protocol?
ambro718 has quit [Ping timeout: 268 seconds]
<catern> otherwise I think I might do it in Python, since I actually know Python and don't know Haskell :)
<Unode> Nixos and nixpkgs manuals mention priorities and conflicts but don't provide any example. I'm trying to set mlocate to have higher priority than findutils to avoid "locate/updatedb/locate.1.gz" collisions.
MP2E has quit [Remote host closed the connection]
earldouglas has quit [Ping timeout: 255 seconds]
<Unode> catern: none that I know of. I guess 'the' implementation is in C/Cpp since that's what nix-daemon/nix-env use (if I'm not mistaken).
<catern> yes, the Nix implementation is in C++
MP2E has joined #nixos
<sphalerite> catern: why?
<catern> sphalerite: I'm tempted to solve https://github.com/NixOS/nix/issues/1734 by making my own nix-daemon which proxies to the real nix-daemon
Thra11 has quit [Quit: IRC for Sailfish 0.9]
nithor has joined #nixos
<sphalerite> oh, neat
<catern> but which builds fixed-output derivations locally in its current environment and then adds them to the store of the real nix-daemon (through the remote API)
<sphalerite> so not actually implementing all of nix-daemon
<catern> Right, just enough to proxy it
<catern> actually, I know there is at least one other implementation of the nix-daemon remote protocol :)
<Unode> catern: I've used a mix of ssh tunnels and socat to proxy it through a firewall. Hackish but works.
<catern> in Guix! at least, on the client side. I wonder if it has diverged too much?
<Unode> so about priorities and collisions, does anyone have anything I could use as a reference? Trying to set mlocate to have higher priority than findutils and avoid collision on "locate, updatedb and locate.1.gz"
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pbogdan opened pull request #33872: yajl: small clean up (master...yajl-cleanup) https://git.io/vNcMk
NixOS_GitHub has left #nixos [#nixos]
<Unode> catern: what I really wanted back then was a way to have a single build machine with 'DMZ-like' privilege to do all the build/download/work which then would save output on /nfs/nix shared to other machines. There was no out-of-the-box solution. That hackish socat setup was the best I could get at.
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<catern> yes, that's not quite the kind of proxying I mean, since I also need to intercept some of the operations and not just transparently pass them through
nuncanada has joined #nixos
earldouglas has joined #nixos
<catern> alright, Guix's implementation is sadly not quite in the state I need
<catern> Python it is!
<catern> I could still do it in Guile to be nice, but it should be an easy port to Guile from Python, if it ends up being useful
knupfer1 has joined #nixos
knupfer has quit [Ping timeout: 276 seconds]
knupfer1 is now known as knupfer
pkill9 has joined #nixos
_rvl has quit [Quit: ZNC 1.6.5 - http://znc.in]
<ocharles> Can anyone help me figure out the correct store path of this derivation: Derive([("out","??","","")],[],[],"","",[],[]). From reading the Nix source code, my reasoning is:
_rvl has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir opened pull request #33873: transmission: fix RCE via dns rebinding attach (master...transmission-dns-rebinding-rce) https://git.io/vNcMB
NixOS_GitHub has left #nixos [#nixos]
<ocharles> 1. Take the sha256 of Derive([("out","","","")],[],[],"","",[],[]) = 8e7d5f316a6bbe60ba24da3de268abbbad7e6b865f5533bc1d9cc8e2ad3d0962
<ocharles> Then, I compress that to be 20 bytes long by repeatedly xoring groups of 20 bytes from that SHA256
<seanparsons> How do I use nix-build to test a package with some overrides set? (I'm thinking of the factorio build in this case as I've been trying to bump it))
<ocharles> Finally, you base-32 encode that 20 byte hash-thing, which comes out for me as Z3IOF7CPMHTEBDOU7KDJTPZ3KEDEPFEK
<ocharles> But nix-store --add apparently wants a2d4f3h8v9bc103n0fp948va15wf4nxh
<catern> ocharles: try gdb on nix-store --add and step through, maybe? :)
<ocharles> gdb seems a bit of a hammer when I have the source code right in front of me
nithor has quit [Ping timeout: 256 seconds]
MichaelRaskin has joined #nixos
<ocharles> oh and https://github.com/NixOS/nix/blob/0b606aad46e1d96da36d4831df63ad90f11d21c3/src/libstore/local-store.cc#L541 is where I got the hint to use the empty string for the expected output store paths when hashing the derivation itself
tanonym has quit []
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hiroshi has joined #nixos
Itkovian has joined #nixos
xcmw has joined #nixos
Itkovian has quit [Client Quit]
Itkovian has joined #nixos
nithor has joined #nixos
knupfer has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir closed pull request #33874: transmission: fix RCE via dns rebinding attach (release-17.09...17.09/transmission-dns-rebinding-rce) https://git.io/vNcM0
NixOS_GitHub has left #nixos [#nixos]
alexteves has quit [Remote host closed the connection]
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alexteves has joined #nixos
zzamboni has quit [Quit: Leaving.]