gchristensen changed the topic of #nixos to: NixCon 2018 CfP is now open! https://nixcon2018.org/ || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon
smolboye has quit [Ping timeout: 268 seconds]
smolboye has joined #nixos
justan0theruser has quit [Ping timeout: 240 seconds]
johnw has quit [Ping timeout: 248 seconds]
mayhewluke has quit [Ping timeout: 244 seconds]
mayhewluke has joined #nixos
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
justan0theruser has joined #nixos
kyren has joined #nixos
jperras has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fNAmu
andreabedini has joined #nixos
<Profpatsch> johnw: pong I guess, but he’s offline.
fragamus has joined #nixos
fragamus has quit [Ping timeout: 268 seconds]
Fare has quit [Ping timeout: 260 seconds]
disasm has joined #nixos
carlosdagos has quit [Quit: Connection closed for inactivity]
<jasom> okay, I know I've done this before, but how do I get a path to one of my build inputs in my build script? Since the executables end up in the path, I could just use command -v but I thought there was a better way
johnw has joined #nixos
<clever> jasom: you can also do ${curl}/bin/curl
<clever> Profpatsch: ping
justan0theruser is now known as justanotheruser
<jasom> clever: that doen't seem to work for me
<clever> jasom: can you gist your nix files?
<{^_^}> [nixpkgs] @aij opened pull request #45046 → atd: 1.12.0 -> 2.0.0 → https://git.io/fNAOP
<clever> jasom: 99% of the time, you never need to set builder, that just makes everything harder for yourself
<clever> bash is also in the buildInputs by default, so that doesnt need to be there at all
<jasom> clever: this time I do since it's got a weird install script
<clever> switch over to buildCommand = '' .... ''; and just paste the entire contents of build.sh into that string
johnw has quit [Ping timeout: 240 seconds]
<jasom> I've done this specific program before, but I neglected to back it up and I lost my entire filesystem
<clever> you can do the same things with buildCommand, and it also be much easier
<jasom> clever: just inline as a ''' string
<jasom> ?
<clever> yeah
<clever> and if it still has an issue, just edit the gist to include the new file and i can check it again
<jasom> aha, does nix do substitutions in the string then? Because that allowed it to work.
<clever> yep
<clever> > "an example: ${curl}/bin/curl and more"
<{^_^}> "an example: /nix/store/23bj61j1zrfpjzdin2pisa9yndx9flss-curl-7.60.0-bin/bin/curl and more"
<jasom> I was thinking that was a shell variable substitution because it's identical syntax
<clever> that also makes it a bit tricky sometimes to do actual shell variables
thc202 has quit [Ping timeout: 272 seconds]
<clever> > '' prefix ''${foo} suffix ''
<{^_^}> "prefix ${foo} suffix "
<clever> need to escape the ${
<jasom> well you can often not use the { e.g. $foo; will e.g. ${foo%bar} make it through unmolested
<clever> yeah
<clever> > "doublequoted ${foo%bar} "
<{^_^}> error: syntax error, unexpected $undefined, expecting '}', at (string):169:20
<clever> > '' double single ${foo%bar} ''
<{^_^}> error: syntax error, unexpected $undefined, expecting '}', at (string):169:23
<clever> neither one allows that
<clever> > '' double single ''${foo%bar} ''
<{^_^}> "double single ${foo%bar} "
<clever> has to be escaped
<jasom> boo
<jasom> well at that point I *would* use a builder
<clever> you can also mix things in fun ways
<clever> source ${./foo.sh}
<clever> this will copy foo.sh into /nix/store, and then substitute in its storepath
<clever> so you can then export whatever=${curl} then source ${./foo.sh}
* jasom is still getting used to the bashisms in nix scripts since he usually writes portable shell
<jasom> e.g. posix doesn't define "source"
<clever> ah
<jasom> "." is used instead
<clever> source and . are identical
<jasom> right but posix defined . but not source
<clever> but when i was first learning linux, i sometimes got ./foo and . ./foo mixed up and it led to confusion
<clever> so i prefer to always use source, its also harder to miss, a stray . can just look like a typo
<jasom> the only bashism I find necessary is arrays; there are hacks to get that behavior in shell (since "$@" behaves like an array) but they are ugly
lassulus_ has joined #nixos
<clever> also of note, every attribute passed to mkDerivation, becomes an env var during the build
<clever> so you could have also done curl = pkgs.curl; and then you would have a bash $curl that has the path
<clever> then ${curl}/bin/curl would have actually worked
<jasom> *that's* how I did it before, thanks. Doing it inline seems fine though
<clever> it can also help to put all of these things into github
lassulus has quit [Ping timeout: 256 seconds]
lassulus_ is now known as lassulus
Supersonic has quit [Ping timeout: 265 seconds]
<aszlig> jasom: note that if the value needs escaping (which in this case is not the case for store paths because they're sanitized), it might be a better idea to pass it to the builder env. the latter also helps if you want to override things...
<aszlig> ... like with .overrideAttrs
Supersonic has joined #nixos
justan0theruser has joined #nixos
mahavira has quit [Quit: Page closed]
justanotheruser has quit [Ping timeout: 240 seconds]
<jasom> also I like running shellcheck which is hard to do with inline
justan0theruser is now known as justanotheruser
<jasom> it's less necessary with nix since the inputs are identical every time it is run, but it does still save time by catching errors earlier
YellowOnion has joined #nixos
<YellowOnion> Been looking for help with nix deployment, most guides cover VPS provisioning, I just want to push a website to my existing archlinux box.
<YellowOnion> the website is currently just a ghcjs app, but I will add a servant backend to it eventually.
sigmundv has quit [Ping timeout: 256 seconds]
orivej has quit [Ping timeout: 256 seconds]
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<vaibhavsagar> YellowOnion: AFAIK there's no non-NixOS deployment workflow which is as convenient as NixOps
<vaibhavsagar> but it's definitely doable
<vaibhavsagar> you can deploy artifacts to any computer with Nix you have SSH access to with nix-copy-closure
bongsun has joined #nixos
<vaibhavsagar> and then you might need to update symlinks + restart services on the target manually
andreabedini has joined #nixos
Drakonis has joined #nixos
<YellowOnion> vaibhavsagar, ahh, thanks I see, I'm currently just using WinSCP to copy files from my WSL dev environment, Maybe I'll look in to moving to NixOS later, last time I tried I couldn't figure out how to do multilib.
<vaibhavsagar> oh, I meant NixOS on the target machine
<vaibhavsagar> IME any linux distro with Nix works fine for a dev environment
<vaibhavsagar> with macOS you have to worry about cross-compiling etc and it's a lot of work
<YellowOnion> Yeah I'm running WSL for dev, after moving to Ubuntu it seems to be working fine.
Fare has joined #nixos
<vaibhavsagar> out of curiousity, what issues were you running into with WSL?
<vaibhavsagar> I was hoping Nix would work on it like it does on any other linux distro
<Drakonis> now here's the thing though
<Drakonis> ntfs discrepancies
<emily> WSL exposes a more POSIX-y filesystem over NTFS, I think?
endformationage has quit [Quit: WeeChat 1.9.1]
<Drakonis> ehhh
<ekleog> cc symphorien if you feel like looking if this is interesting to you when coming back :) (for having issues with CIFS)
<Drakonis> microsoft altered ntfs to make it similar to what linux syscalls want out of a filesystem
<Drakonis> its less POSIX-y and more linux-y
<Drakonis> they target linux here
<emily> sure
<Drakonis> they emulate linux filesystem behavior here
<Drakonis> cool stuff though
<jasom> hmmm, if I modify a patch file, nix-build doesn't seem to pickup the change. Is this by design?
Dedalo has quit [Ping timeout: 248 seconds]
<hyper_ch> so, 4.18 works well with encrypted root zfs :) yey
<hyper_ch> jasom: hwo did you modify a patch file?
<jasom> hyper_ch: nevermind, user-headspace error
<PolarIntersect> Hey, all
andreabedini has quit [Quit: Textual IRC Client: www.textualapp.com]
<PolarIntersect> It even detected something different and built it, but then kubectl is still 0.9?
<PolarIntersect> Any ideas? Is this package doing something that breaks the standard behavior here?
<PolarIntersect> By "it even detected something different", I was referring to ` nixos-rebuild switch --upgrade `
<PolarIntersect> Just to be clear :)
abueide has quit [Ping timeout: 256 seconds]
<PolarIntersect> I also don't fully understand why my nix channel is 18.03, but it seems that master is 1.10.5
<PolarIntersect> hmm
<PolarIntersect> aah, 1.9.8 is the version in 18.03 - n/m :)
DigitalKiwi has joined #nixos
selfsymmetric-mu has joined #nixos
* emily hopes "nix build --no-link -f '<nixpkgs/nixos>' config.system.build.toplevel" gets shroter at some point
jedai has quit [Ping timeout: 244 seconds]
justanotheruser has quit [Ping timeout: 244 seconds]
<vaibhavsagar> what does it do?
<emily> nixos-rebuild (minus the switching part)
<emily> but with a nicer progress UI for the build/downloads
<emily> or in other words, it's "nix-build -A system" but nicer
justan0theruser has joined #nixos
<clever> emily: nixos-rebuild build --fast is nearly identical, but yeah, the UI differences
<clever> emily: you could maybe patch nixos-rebuild and file a PR
<emily> I heard something about the "nix build" interface being unstable and thus unsuitable for that
<emily> if it'd be accepted then sure I might :)
<clever> emily: i think nixos-install and nixops are already using it
<emily> *nod*
* clever heads off to bed
butchery has joined #nixos
<butchery> does anyone have nvidia 396 drivers working? I created an overlay for them that extended linuxPackages to replace nvidia_x11 with 396, but trying to build it, it only wants to build the (non-existant) 32 bit version, on my 64 bit install?
<YellowOnion> vaibhavsagar, I was running it with an unoffical port of Archlinux, I got some errors about not being able to kill an app.
<{^_^}> [nixpkgs] @matthewbauer pushed to staging « firefox: add default for execdir »: https://git.io/fNAZX
<YellowOnion> Maybe it's actually related to using ArchLinux in root, I ended up moving to Ubuntu and solved the issues.
jD91mZM2 has joined #nixos
mayhewluke has quit [Ping timeout: 240 seconds]
justan0theruser has quit [Ping timeout: 240 seconds]
adamantium_ has joined #nixos
<adamantium_> hello, i'm installing nixos into a zfs dataset ... going to try it out alongside funtoo (gentoo derivative) for a little while. I'm about to install, but it needs a hostid. I was thinking, perhaps i should use the hostid that I already have for this pool!! Well then, I'm not sure how to set it in configuration.nix before I try nixos-install. I currently have a hexdump of my hostid from my other dataset. Now what
<adamantium_> clever: you would know this, i think. ? ^^ you were helpful the other day.
gspia has joined #nixos
<adamantium_> Restated another way, I'm getting from nixos-install "ZFS requires networking.hostId to be set" , and I have a hexdump of my hostid from my other dataset. How do i set this?
abueide has joined #nixos
Sigma has quit [Ping timeout: 256 seconds]
Sigma has joined #nixos
<{^_^}> [nixpkgs] @bhipple opened pull request #45047 → pythonPackages.multiprocess: 0.70.4 -> 0.70.6.1 → https://git.io/fNAnu
<adamantium_> alright, well the answer for me is, to chroot my other dataset and run the command "hostid" to get the hostid to set, like this
<adamantium_> networking.hostId = "007f0100";
mayhewluke has joined #nixos
adamantium_ has quit [Ping timeout: 252 seconds]
justan0theruser has joined #nixos
jperras has quit [Ping timeout: 272 seconds]
MP2E has quit [Remote host closed the connection]
justan0theruser has quit [Ping timeout: 248 seconds]
digitalmentat has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @thoughtpolice pushed 59 commits to pgsql-fixes: https://git.io/fNAnN
<{^_^}> [nixpkgs] @thoughtpolice pushed 0 commits to pgsql-fixes: https://git.io/fNAnx
<{^_^}> [nixpkgs] @bhipple opened pull request #45048 → pythonPackages.fastcache: init at 1.0.2 → https://git.io/fNAcv
Have-Quick has joined #nixos
emacsoma` has joined #nixos
justan0theruser has joined #nixos
Maxdamantus has quit [Ping timeout: 268 seconds]
<{^_^}> #45030 (by eadwu, 12 hours ago, open): [WIP] nvidia_x11_beta: reinit at 396.51
<elvishjerricco> Isn't there some way to blacklist NixOS modules? I can't seem to remember how to do that...
abueide has quit [Ping timeout: 268 seconds]
Maxdamantus has joined #nixos
* clever heads off to bed
<elvishjerricco> clever: Thanks for you constant and encyclopedic assistance :) Night.
<emily> 04:20:43 * clever heads off to bed
<emily> 🤔
Maxdamantus has quit [Ping timeout: 272 seconds]
Maxdamantus has joined #nixos
johnw has joined #nixos
<sb0> hi. I'm trying to get a Python package inside a FHSUserEnv but it doesn't get installed
<sb0> my nix expression is:
<sb0> the other packages above are installed just fine
freeman42x]NixOS has quit [Ping timeout: 268 seconds]
<ekleog> timokau[m]: Thank you for the merge of javacard-devkit! :)
Fare has quit [Ping timeout: 272 seconds]
<cmcdragonkai> Is there a way to specify that for a given package set to install, it doesn't matter if one or all fail, but try to install as much as possible? I'm thinking of grouping all the proprietary packages together, but the problem is that every once and a while, the upstream links break, and we cannot redistribute them because of their license, so you just have to update to the latest one.
<{^_^}> [nixpkgs] @sjmackenzie opened pull request #45050 → carnix overrides: add gmp to rink-rs buildInputs & correct crateBin → https://git.io/fNAWL
Drakonis has quit [Remote host closed the connection]
PolarIntersect has quit [Ping timeout: 240 seconds]
Fare has joined #nixos
abueide has joined #nixos
sb0 has quit [Ping timeout: 272 seconds]
<{^_^}> Channel nixos-18.03 advanced to https://github.com/NixOS/nixpkgs/commit/66bd479f261 (from 9 hours ago, history: https://channels.nix.gsc.io/nixos-18.03)
<{^_^}> [nixpkgs] @Mic92 merged pull request #45011 → symmetrica: Add darwin support → https://git.io/fNb0W
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNAlU
kyren has quit [Ping timeout: 272 seconds]
kyren has joined #nixos
<{^_^}> [nixpkgs] @typetetris opened pull request #45051 → ptask: remove usage of nonexistent function is_error → https://git.io/fNAlE
jperras has joined #nixos
Fare has quit [Ping timeout: 248 seconds]
jperras has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @worldofpeace opened pull request #45052 → indicator-application: 12.10.0 -> 12.10.1 → https://git.io/fNAl1
simukis has joined #nixos
<{^_^}> #44343 (by Izorkin, 1 week ago, open): mariadb: fix build client and change config
<{^_^}> #44836 (by Izorkin, 5 days ago, open): qemu-ga: fix working guest-shutdown
vmandela has joined #nixos
Have-Quick has quit [Quit: Have-Quick]
Have-Quick has joined #nixos
bitonic has quit []
bitonic has joined #nixos
Ariakenom has joined #nixos
Have-Quick has quit [Quit: Have-Quick]
vmandela has quit [Remote host closed the connection]
vmandela has joined #nixos
joncfoo has quit [Ping timeout: 240 seconds]
joncfoo has joined #nixos
Maxdamantus has quit [Ping timeout: 272 seconds]
Maxdamantus has joined #nixos
hyper_ch2 has joined #nixos
<hyper_ch2> so, 4.18 kernel runs fine with zfs :)
johanot has joined #nixos
mayhewluke has quit [Ping timeout: 260 seconds]
orivej has joined #nixos
kyren has quit [Ping timeout: 240 seconds]
kandinski has joined #nixos
<kandinski> hi, I'm running 18.03, and this happened when I tried to rebuild and switch (without changing my configuration, just updating the channel: http://paste.debian.net/1037995/
<kandinski> Any help appreciated.
abueide has quit [Ping timeout: 260 seconds]
inquisitiv3 has joined #nixos
<inquisitiv3> Where is everything installed when I create a nix-shell environment?
<kandinski> you can have a "pure" nix-shell without the enclosing env
<inquisitiv3> kandinski: What do you mean?
<kandinski> nix-shell -- pure
<kandinski> sorry for the extra space
<{^_^}> [nixpkgs] @adisbladis merged pull request #45009 → ratpoints: 2.1.3 -> 2.1.3.p4; add darwin support → https://git.io/fNbRi
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/fNA0L
<kandinski> oh, sorry, you asked "where"
<kandinski> I'm not seeing straight. Apologies.
<inquisitiv3> kandinski: Now you've peaked my interest. What is a pure nix-shell?
<kandinski> one that doesn't inherit the enclosing environment
sb0 has joined #nixos
<inquisitiv3> kandinski: What's the "enclosing environment"?
<kandinski> the one for the shell where you type "nix-shell"
<kandinski> but as I say, I misread your question because I'm a bit sleep-drunk, so never mind. Apologies.
<inquisitiv3> kandinski: So for example if I set an env variable in my regular environment, I still got access to it inside my nix-shell environment?
orivej has quit [Quit: No Ping reply in 180 seconds.]
<kandinski> inquisitiv3: yes
<hyper_ch2> kandinski: still having issues?
<kandinski> hyper_ch2: yes, I don't know where to start
alex`` has joined #nixos
<hyper_ch2> kandinski: nix-store --verify --check-contents
orivej has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « cabal2nix: update hpack override to the new version »: https://git.io/fNA0V
<hyper_ch2> or to repair it as well: nix-store --repair --verify --check-contents
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fNA0o
<kandinski> hyper_ch2: thanks
<hyper_ch2> kandinski: it will be slow
<hyper_ch2> you can run the --repair just on mismatched stores
<kandinski> Ta, I'm making dinner anyway :)
<hyper_ch2> --repair Fix corrupted or missing store paths by redownloading or rebuilding them. Note that this is slow because it requires computing a cryptographic hash of the contents of every path in the closure of the build. Also note the warning under nix-store --repair-path.
<kandinski> hyper_ch2: appreciated, can I sak a question? Why are the operations in nix designed as flags?
<hyper_ch2> no idea what you mean
<kandinski> flags like `nix-env --install` and not subcommands like `git checkout`
<kandinski> is the reason anything beyond stylistic?
<{^_^}> [nixpkgs] @carlosdagos opened pull request #45053 → haskellPackages.mattermost-api: skip check → https://git.io/fNA0S
<hyper_ch2> kandinski: no idea
<hyper_ch2> but then, if you prefix options with - or -- you can easily differentiate them from other arguments supplied
mayhewluke has joined #nixos
<inquisitiv3> kandinski: Thanks for the explanation!
mzan has joined #nixos
<inquisitiv3> But back to my original question. Where is derivates installed when I specify them in an `default.nix` file for nix-shell?
<{^_^}> [nixpkgs] @peti pushed 6 commits to haskell-updates: https://git.io/fNAEe
thc202 has joined #nixos
<kandinski> I was thinking about that too. I think the key is to inspect $PATH
<{^_^}> [nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fNAEJ
<{^_^}> [nixpkgs] @srhb opened pull request #45054 → pythonPackages.orderedset: Fix maintainers list → https://git.io/fNAEW
<{^_^}> [nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/fNAE8
<inquisitiv3> kandinski: Seems to be the Nix store. The system profile hasn't been updated.
<inquisitiv3> I'll ask some of the others when they return here.
<srhb> What was the question again?
<kandinski> inquisitiv3: I'm looking at the $PATH before and after invoking nix-shell, and there is a big difference
<srhb> Right, nix-shell will not install into any profiles.
<inquisitiv3> srhb: Where is derivates installed that is specified in a `default.nix` when creating a nix-shell environment.
<srhb> Nowhere. :)
<inquisitiv3> srhb: You confuse me a little now :P
<srhb> OK, so the term "installed" is a little overloaded in Nix land
<srhb> We could install into a profile, generating the usual /bin /share /... symlink farm
<srhb> This is what happens with systemPackages, or with nix-env
<srhb> (In different profiles, system and whatever respectively)
<srhb> There's also just "the data is in the store"
<srhb> Two different aspects of "installed"
<srhb> In the nix-shell case, nothing is installed into any profile, but the packages are there in the nix store, and the shell can manipulate the PATH to bring them "in scope" inside the shell
<inquisitiv3> srhb: So if I'm understanding you correctly: Every derivate is stored in `/nix/store`. But to have access to something in t
<srhb> You got cut off at "something in t"
<inquisitiv3> srhb: Yeah, easy to press enter on my new keyboard... It is always after pressing "t".
<srhb> Heh :)
<inquisitiv3> the "regular" environment (as kandinski called it) it has to be linked in a system or user profile. But nix-shell enables you to have access to the specified derivates that isn't linked from a profile?
<srhb> That's correct.
<inquisitiv3> srhb: Thanks!
<srhb> A good test to see how it works is to use nix-shell with --pure
<srhb> Which will remove most of the environment normally inherited
<kandinski> so I was not misanswering the question that much
<srhb> kandinski: Nope :)
<sphalerite> inquisitiv3: re your flags-vs-subcommands question: the new `nix` command is based on subcommands. It's not feature-complete or considered a stable interface yet, but it is very nice for what it can do :)
<inquisitiv3> srhb: Could you please tell me what the "proper" name for Racket/PltScheme is? According to the website it's "pltScheme", but Nix has no problems with using "racket" either. Booth seem to link to the same derivate. The former name is the old name for the project.
<inquisitiv3> sphalerite: It wasn't me who asked. I think it was kandinski.
<sphalerite> oops, so it was
<kandinski> sphalerite: thanks
<kandinski> I was wondering about the reason for the different design decision
<srhb> inquisitiv3: in pkgs/top-level/all-packages.nix there is a top-level attribute named "racket" -- does that help?
<{^_^}> [nixpkgs] @xeji pushed to master « python.pkgs.orderedset: fix ofborg checkMeta »: https://git.io/fNAuO
<srhb> Which website were you referring to re. pltScheme?
<srhb> inquisitiv3: In 18.03 there is an alias in all-packages.nix: pltScheme = racket; # just to be sure
<sphalerite> kandinski: the "legacy" UI isn't designed very well at all. So much inconsistency (see: nix-env using ~/.nix-defexpr unlike all the other tools for exmaple)
<{^_^}> [nixpkgs] @xeji closed pull request #45054 → pythonPackages.orderedset: Fix maintainers list → https://git.io/fNAEW
<sphalerite> kandinski: it's a consequence of the tools having sort of organically grown to accommodate new functionality
<srhb> inquisitiv3: It's gone in unstable.
vidbina_ has joined #nixos
<sphalerite> kandinski: as opposed to large-scale design decisions
aarvar has quit [Ping timeout: 240 seconds]
<inquisitiv3> srhb: So there's an alias saying that "pltScheme" is an alias for "racket" in 18.03, but from 18.09 t
<inquisitiv3> ^ see what I mean?
<inquisitiv3> the alias is removed and the only name to use is "racket"?
<srhb> Yep.
vmandela has quit [Remote host closed the connection]
vmandela has joined #nixos
vmandela has quit [Client Quit]
jperras has joined #nixos
<inquisitiv3> srhb: Thank!
<kandinski> sphalerite: that makes sense, thanks.
<srhb> inquisitiv3: In case you're ever curious about this, check out the file pkgs/top-level/all-packages.nix -- it's where all the top level names are defined (ie pkgs.foo)
<inquisitiv3> srhb: I'll remember that :)
jperras has quit [Ping timeout: 256 seconds]
<inquisitiv3> Could someone please take a quick lock at my `default.nix` to check if I do something horrible wrong? It works, but I don't know if I've written the file the "right" way.
<srhb> Sure.
<srhb> That's fine. I'd say there's many ways to do what you're doing, and as long as it's so small it's hard to give any proper design guidelines.
<inquisitiv3> Wrote in based on the template given in this blog post: https://ariya.io/2016/06/isolated-development-environment-using-nix
<srhb> When it grows bigger it'll probably be easier to give some more advice :)
<inquisitiv3> srhb: Thanks a lot! Your help is really appreciated! :D
<srhb> No problem :)
<inquisitiv3> srhb: Quick question. I've written `with import <nixpkgs/nixos> {};`. Does that mean that it prefix every package it installs with "nixos.", i.e. `nixos.racket`?
<inquisitiv3> Wait, I removed that to get it installed.
<inquisitiv3> Sorry :P
<srhb> Oh, I actually missed that
<srhb> You seem to be importing nixos, which I doubt you need
<{^_^}> [nixpkgs] @dezgeg merged pull request #44836 → qemu-ga: fix working guest-shutdown → https://git.io/fNQfQ
<{^_^}> [nixpkgs] @dezgeg pushed commit from @Izorkin to master « qemu: add path to bin utilites »: https://git.io/fNAza
<srhb> Take a look at the nixpkgs tree
<inquisitiv3> Updated the gist. Now it shows what I actually have on the system.
<srhb> There's a directory called nixos
<srhb> What you're doing in import <nixpkgs/nixos> {} is calling the function in nixpkgs/nixos/default.nix
<srhb> Similarly for import <nixpkgs> {}; you're calling the function in nixpkgs/default.nix
<srhb> (Which is the entire nixpkgs package set)
alex`` has quit [Ping timeout: 244 seconds]
<inquisitiv3> srhb: Does this have anything to do with the prefix you use when installing derivates with `nix-env`, e.g. `nix-env -iA racket`?
<srhb> Not with nix-env, no, but with the nix commands somewhat.
<srhb> <foo> is looked up in $NIX_PATH
<srhb> So <nixpkgs> is an alias for "look up the name nixpkgs in $NIX_PATH and substitute in its value"
<srhb> So in my case, <nixpkgs> becomes /home/sarah/src/nixpkgs
<srhb> In you case, it's probably /nix/var/nix/profiles/per-user/inquisitiv3/channels or something like that :)
<srhb> Try: nix eval '(<nixpkgs>)'
alex`` has joined #nixos
<inquisitiv3> srhb: T
<inquisitiv3> srhb: Thanks for the explanation.
<inquisitiv3> I really need to learn where the "t" key is located on my keyboard...
<srhb> Hehe
<srhb> The second detail is that it also looks up the names of things IN the directories references by NIX_PATH
<srhb> So say I had a channel called nixos-1803, then NIX_PATH=/nix/var/nix/profiles/per-user/sarah/channels nix eval '(<nixos-1803>)'
<srhb> Would give me /nix/var/nix/profiles/per-user/sarah/channels/nixos-1803
<srhb> It's a fairly flexible mechanism.
<inquisitiv3> So it look up names recursively? (Not sure if that is the right word or I understood you correctly)
<srhb> I'd say that's a good way of putting it :)
<ldlework> How would I get started deploying an Emacs service with NixOps?
<sphalerite> what's an emacs service?
<srhb> What's an emacs service?
<srhb> ...
<ldlework> The build is really easy just "make" and the run is really easy "make run"
<ldlework> It is a service that is built on emacs
<ldlework> So.. it just requires emacs.
* sphalerite high-fives srhb
<ldlework> I got some elisp in a git repo.
<ldlework> And a Makefile
mlen has joined #nixos
<srhb> At a guess, just treat emacs as a (propagated?)buildInput and build as normally?
<inquisitiv3> srhb: I think that I understand your explanation. But the username in the path is "root" :/
<srhb> Then create a systemd service to run it...
<srhb> inquisitiv3: That's normal, on a regular install only root has a channel.
<srhb> inquisitiv3: Which corresponds to the release of the installer you used
liori_ has quit [Ping timeout: 256 seconds]
<srhb> inquisitiv3: You can add and remove as needed with nix-channel, but I think the default setup is easy and sensible, so I suggest you keep it like that :)
<inquisitiv3> srhb: Aah good. Become a little worried because you wrote your own username in the path examples above.
<ldlework> srhb: i looked for some documentation on how to go about creating your own systemd service but i didn't find much
<ldlework> did I miss something good?
<srhb> inquisitiv3: My setup is very non-default :P
<ldlework> I know how to create a systemd periodic timer service thanks to infinisil.
<ldlework> Do I kinda just wing it by looking at the options?
<srhb> ldlework: systemd.services.myservice = stuff
<srhb> ldlework: Yep!
<srhb> ldlework: It's really easy.
<Taneb> The hydra-queue-runner service keeps randomly stopping
<ldlework> srhb: do you have an example maybe?
<Taneb> I think it's the same issue as https://github.com/NixOS/hydra/issues/550 ?
<{^_^}> hydra#550 (by ixmatus, 20 weeks ago, open): Hydra-queue-runner intermittently wedges with no log output (even in debug mode)
<srhb> ldlework: Sure, one moment...
<ldlework> <3
<sphalerite> ,find radicale.nix
<sphalerite> ldlework: radicale is a fairly simple service iirc ^
<ldlework> thank you
<ldlework> looking
<srhb> Ugh, escapes got lost in that gist.
<srhb> sec
<inquisitiv3> srhb: Haha, that explains it. :)
<srhb> ldlework: That is a custom package of mine called qtr-web, which has a /bin/serve executable
<ldlework> OK please confirm I understand; I want to start off by creating a derivation who's src is my relative git repo path - i need emacs and gnumake as build inputs - during the build I build the elisp files and move them to $out. I, uh, somehow also make a bash wrapper that calls emacs in a way that tells it to use the elisp from some store path. That package being complete.. I write a systemd service
<ldlework> which...uh...refers somehow to the wrapper script defined in the aforementioned package...
<Profpatsch> clever: pppppoonggggg
<srhb> ldlework: Yes.
<ldlework> lot of fog there :P
<srhb> ldlework: "somehow" is as simple as "import your package expression"
<srhb> With the relevant arguments from pkgs
<srhb> ldlework: In my case, qtr-web = import ~/src/qtr-web {};
<ldlework> srhb: i can just define the package inside the "in" part right?
<ldlework> err
<ldlework> let
<srhb> (That's a bit of an antipattern because it uses its own nixpkgs...)
<srhb> Sure
<ldlework> let sophos = mkderivation { .. whoknows .. }
<srhb> Yep.
<ldlework> srhb: any idea about the bit where I make a bash script that calls emacs in a way that I can tell it where to load up that elisp i'm somehow building in the same derivation?
<sphalerite> ldlework: note that there's machinery for building emacs packages in nixpkgs already
<srhb> ldlework: mkWrapper?
<srhb> Or probably wrapProgram really
<srhb> Og writeScript, so many ways...
<srhb> Or*
<ldlework> srhb: let's go with the writeScript way
<ldlework> let's just call emacs direct
ollieB has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #45046 → atd: 1.12.0 -> 2.0.0 → https://git.io/fNAOP
<ldlework> with the ability to refer to that elisp path in the store
<{^_^}> [nixpkgs] @xeji pushed commit from @aij to master « atd: 1.12.0 -> 2.0.0 (#45046) »: https://git.io/fNAa8
<srhb> ldlework: Sure, that sounds simple.
<sphalerite> +1 for writeScript
<ldlework> alright let me clobber together something wrong
<srhb> writeScript "run-my-emacs-package" ''${pkgs.emacs}/bin/emacs magicalinvocation using ${sophos}''
<srhb> Probably needs a ''#!${stdenv.shell}''
<{^_^}> [nixos-weekly] @domenkozar pushed to master « Add 2018/06 »: https://git.io/fNAau
<ldlework> srhb: should I copy the elisp straight to $out? or is there a more appropriate place?
<sphalerite> ldlework: for building, you might want to look at emacsPackagesNg.{trivial,elpa,melpa}Build
<srhb> ldlework: I don't know enough about emacs packages to answer that.
<ldlework> sphalerite: I have a special build process - the sources are org-mode files yo usee
<srhb> I'd do whatever those builders do ^
<ldlework> srhb: i'm not building an emacs package perse
<{^_^}> [nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Preview of '90e257c8054a2c671bcf88168a9cd662a9a626e3' commit built by Travis-CI \#416270635 »: https://git.io/fNAaV
<ldlework> the elisp I'm building is more like "site modules"
<ldlework> that run the service
<ldlework> i don't need them in the proper emacs palce or whatever because the wrapper is gonna tell emacs where the files are direct :3
<sphalerite> ldlework: ah ok
<srhb> Well, then you're free to put them wherever in $out you like :P
<ldlework> i do 'make' and i get 'core/el/*' and 'plugins/el/*'
<ldlework> OK
<ldlework> srhb: and the wrapper script into $out/bin ?
<srhb> If you like.
<ldlework> or is the wrapperScript its own package
<srhb> Up to you :)
<ldlework> that just refers to the elisp package
<srhb> Either will work
<ldlework> lol so confusing
<ldlework> ok let me first pass
<{^_^}> [nixos-weekly] @domenkozar merged pull request #61 → Call for content: 2018/06 → https://git.io/fNKN1
<{^_^}> [nixos-weekly] @domenkozar pushed 4 commits to production: https://git.io/fNAaS
<{^_^}> [nixos-weekly] @domenkozar pushed to master « Add 2018/07 draft »: https://git.io/fNAa7
<{^_^}> [nixos-weekly] @domenkozar opened pull request #62 → Call for Content: 2018/07 → https://git.io/fNAab
<{^_^}> [nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Release of (commit 'd79d298c7ced53f0682e26e8ab19bf217336bd92') built by Travis-CI \#416272311 »: https://git.io/fNAah
<{^_^}> [nixpkgs] @alyssais opened pull request #45055 → slack-cli: init at 0.18.0 → https://git.io/fNAVI
<ldlework> hmm this probably isn't going to work because the build process downloads packages, right?
<ldlework> i might be able to get away with disabling that bit and installing the packages with nix
<ldlework> srhb: sphalerite how does this look: https://gist.github.com/dustinlacewell/d25786975a531bc225b041a14ebdf4f7
<srhb> Yes, you basically have to ensure purity.
<srhb> \o/ yay news
<{^_^}> [nixpkgs] @xeji merged pull request #45047 → pythonPackages.multiprocess: 0.70.4 -> 0.70.6.1 → https://git.io/fNAnu
<{^_^}> [nixpkgs] @xeji pushed commit from @bhipple to master « pythonPackages.multiprocess: 0.70.4 -> 0.70.6.1 (#45047) »: https://git.io/fNAVR
<srhb> ldlework: "let rec" -- is that even a thing? Aren't let definitions always recursive?
<ldlework> sorry
<ldlework> probably thinking of F# or something
<{^_^}> [nixpkgs] @xeji merged pull request #45048 → pythonPackages.fastcache: init at 1.0.2 → https://git.io/fNAcv
<{^_^}> [nixpkgs] @xeji pushed commit from @bhipple to master « pythonPackages.fastcache: init at 1.0.2 (#45048) »: https://git.io/fNAV2
<ldlework> srhb: what else did i get wrong
<srhb> ldlework: I think the mkDerivation is a little funky, but nevermind that. What I really wonder about is why you're adding them to systemPackages
<ldlework> srhb: i'm deploying this as a nixops thing
<srhb> ldlework: And even if you wanted this, why add sophos directly, the wrapper depends on it.
<ldlework> also i barely understand what i'm doing
<ldlework> ok
<srhb> ldlework: Sure, we'll work it out!
<srhb> ldlework: As I see it, only the systemd service should refer to it, and the only on the wrapper
<ldlework> srhb: is there a way to only have one package?
<srhb> ldlework: Leave the dependency tracking up to nix :)
<ldlework> srhb: makes sense
<srhb> ldlework: Also, do not refer to "emacs" as a string
<srhb> ldlework: At least, not in your wrapper.
<sphalerite> out of curiosity, what is sophos? :)
<ldlework> something like ${emacs}/bin/emacs ?
<srhb> ldlework: {pkgs.emacs}/bin/emacs will ensure that the dependency is properly tracked, yes :)
<ldlework> sphalerite: elisp irc bot of course
<ldlework> i'm doing all this to just learn, elisp network services is a terrible idea; i just wanted to build something a bit bigger to practice out my elisp
<srhb> Sounds fun.
<ldlework> deploying it with nixops to clear up some fog, etc etc
<srhb> I was wondering because sophos sounded like a nix thing in the old naming scheme of Nix tools :P
<srhb> nix, charon, sophos, ...
<ldlework> srhb: how can we merge the sophos and sophos-wrapper packages
<srhb> ldlework: I suggest don't do it right now :)
<srhb> The split is fine, really.
<srhb> But otherwise, it would be as simple as dumping that script into bin/sophos in your sophos derivation
<srhb> eg cat > bin/sophos << EOF yoursecript...
<srhb> oh no, cat antipattern...
<ldlework> srhb: can't I store the script as string in the let?
<srhb> ldlework: Except your wrapper is still impurely referring to emacs
<mpickering> Can anyone look over my PR from April that I just updated? https://github.com/NixOS/nixpkgs/pull/39125
<{^_^}> #39125 (by mpickering, 16 weeks ago, open): SAGA, SAGA LTS release, dependencies and QGIS SAGA plugin
<srhb> Which means it's expected to be on PATH
<ldlework> oh
<ldlework> ok fixed
<ldlework> anything else?
<srhb> ldlework: No, looks good to me.
<ldlework> interesting
<ldlework> srhb: now we need emacsWithPackages right?
<srhb> ldlework: Why?
<srhb> Looks done to me.
<ldlework> srhb: because my build.el pulls in packages dynamically
<srhb> Oh!
<ldlework> i have some emacs depenendcies
<srhb> Right, okay.
<ldlework> i can remove that from the elisp if we get the packages in this nix thing
<srhb> Are they only build time dependencies or also runtime?
<ldlework> the only build time dependency is org, all the rest are runtime
<srhb> OK, so as a first pass you could use two different emacsWithPackages for sophos and sophos-wrapper
<ldlework> I'm worried that the org in nix will be too old heh
<srhb> (That's a little icky, but let's get started...)
<srhb> ldlework: override time :P
<ldlework> sure, let's try it
<mpickering> Why is fetchFromGitHub preferred to fetchurl?
metalrain has joined #nixos
Baughn_ has joined #nixos
<{^_^}> [nixpkgs] @fgaz opened pull request #45056 → 20kly: init at 1.4 → https://git.io/fNAwD
philipcristiano_ has joined #nixos
jml has quit [Ping timeout: 245 seconds]
mudphone has quit [Read error: Connection reset by peer]
pchiusano has quit [Read error: Connection reset by peer]
etrepum has quit [Read error: Connection reset by peer]
cbarrett has quit [Read error: Connection reset by peer]
metalrain__ has quit [Read error: Connection reset by peer]
pingveno has quit [Read error: Connection reset by peer]
philipcristiano has quit [Ping timeout: 245 seconds]
Baughn has quit [Quit: ZNC 1.6.2+deb1 - http://znc.in]
alanz has quit [Ping timeout: 245 seconds]
datakurre has quit [Ping timeout: 245 seconds]
GlennS has quit [Quit: No Ping reply in 180 seconds.]
Baughn_ is now known as Baughn
philipcristiano_ is now known as philipcristiano
<sphalerite> mpickering: it's more semantic I guess
<mpickering> If an executable requires an env var to work, how is this usually packaged? Do you just rely on the user to set the variable as normal?
trcc has joined #nixos
<srhb> wrapProgram is nice for that.
<MichaelRaskin> mpickering: it unpacks the tarball and checksums the contents, not the random noise in the archive like timestamps (GitHub does not guarantee stability of tarballs)
<ldlework> srhb: you should contribute to the cookbook sometime, https://nixos.wiki/wiki/Nix_Cookbook
<mpickering> I know you can use wrapProgram but if it's an API key for example?
<srhb> ldlework: Looks good
<srhb> ldlework: But then I have to write things in prose form!
<mpickering> Is passing the key as an argument to the derivation the thing to do?
<ldlework> srhb: no cookbook should be as terse as possible!
<srhb> :P
<ldlework> srhb: i can just nix-build this right
<srhb> Stop ruining my excuses
<srhb> ldlework: You seem to be missing a with pkgs; somewhere for it to be standalone
trcc has quit [Client Quit]
<srhb> In fact, where is pkgs :P
trcc has joined #nixos
<ldlework> srhb: hmm when I add { pkgs }: at the top nix-build complains it can't call a function without a default
<ldlework> nix-build -A sophos --run-env sophos.nix
<srhb> ldlework: pkgs ? import <nixpkgs> {}
<ldlework> I see
<srhb> ldlework: But we should fix that up later so it uses the machines pkgs
<ldlework> hmm this isn't working :)
<srhb> org mode missing?
<ldlework> nix-build -A sophos --run-env spy.nix /nixcfg/hosts/spy
<ldlework> error: cannot auto-call a function that has an argument without a default value ('config')
<srhb> Ah, yes, that form is no good for nixops..
<ldlework> fork my gist?
<srhb> I cheated and separated out your package definition locally so I could build that alone
<ldlework> I see..
<ldlework> Should I put the package definition in my repo?
<ldlework> and then import it
<srhb> Just split it out in a file that the machine can import
mrottenkolber has left #nixos [#nixos]
<ldlework> the remote machine
<ldlework> I see...
<srhb> Yes
mrottenkolber has joined #nixos
<ldlework> hmm, that means it wont be able to access the source either?
<ldlework> because I did src = /some/absolute/local/path
<srhb> The most trivial way is to just import it in the systemd-service or something. let sophos-wrapper = import ./youremacsthing { inherit pkgs; }
<srhb> ldlework: That's fine
<srhb> ldlework: All that is local
<ldlework> wait
<ldlework> we didn't even specify the src
<srhb> You're using a custom builder.
<ldlework> what does that mean?
<srhb> I was assuming ./etc/build.el actually pointed at the source
<ldlework> nah
<srhb> Oh, ok.
<ldlework> that stuff is in /home/ldlework/src/apoptosis/sophos
<srhb> Right, good time to specify src then :P
<ldlework> okok
<srhb> I just notice it wasn't even a nix path anyway
<srhb> So yeah. src!
<mrottenkolber> So I redeployed a nixops managed machine with a different nixpkgs (-I ) and that broke horribly (kernel panix), I wonder if I could try again but first delete/recreate the machine to get a cleaner reset?
<ldlework> ok
<srhb> mrottenkolber: Hopefully that should result in the exact same kernel panic.
<srhb> Otherwise we've done something wrong.
<ldlework> srhb: if I put the package definition in the source repo as default.nix then could I do src = ./.; ?
<srhb> ldlework: Yep.
Maxdamantus has quit [Ping timeout: 240 seconds]
<ldlework> then in the nixops expr do import /the/absolute/path/to/default.nix right
<srhb> passing pkgs from the nixops machine, yes.
amir has quit [Ping timeout: 240 seconds]
<srhb> It's good not to introduce multiple potential pkgs along the way.
Maxdamantus has joined #nixos
amir has joined #nixos
<ldlework> srhb: do I write the default.nix as a nixpkgs module, or just a plain ol derivation expression?
<ldlework> I'm guessing just an expression
<srhb> ldlework: I would stick with what you have right now which is a function that takes pkgs
<srhb> eg { pkgs ? import <nixpkgs> {} }: let ... in sophos-wrapper
<srhb> That way you can call it with nix-build and nixops can import it passing its own pkgs
fendor has joined #nixos
rtjure has joined #nixos
<srhb> I'm guessing this builder has never actually worked? It seems to do a lot of weird things...
<srhb> I think using the generic builder would be simpler.
<ocharles> Does anyone know how to evaluate a nixops network Nix expression from another Nix expression. That is, I can't use the nixops binary itself (that would be recursive Nix).
<ocharles> I tried nixops/share/nix/nixops/eval-machine-info.nix and it very nearly works, but it barfs on grub not being set
<srhb> ocharles: Somewhere in the nixops source tree there's something called.. eval-machines or something
<srhb> Right, that one
<ocharles> "- You must set the option ‘boot.loader.grub.devices’ or 'boot.loader.grub.mirroredBoots' to make the system bootable."
<srhb> I guess there's also some kind of defaults merged in by nixops by default
<srhb> probably based on the targetEnv or something.
<ocharles> ec2.nix seems to at least give me fileSystems
<srhb> You could try importing that manually in the definition.
<srhb> Just to see if that's it
<srhb> But you're on the right track. :P
<ocharles> eval-machine-info.nix looks like it adds it to each machine
<ocharles> "- The ‘fileSystems’ option does not specify your root file system." makes sense, because ec2.nix just sets it to {}
cyris212 has joined #nixos
<srhb> iirc that thing is a bit complex because of how it uses multiple phases...
<ldlework> srhb: https://gist.github.com/dustinlacewell/5c8b3417c3c84f9802dbf0fc5401bbb3 error: in 'toFile': the file 'builder.sh' cannot refer to derivation outputs, at /home/ldlework/src/apoptosis/sophos/default.nix:25:15
<ldlework> srhb: can you change the builder to how you would do it?
<srhb> I'd just use the standard builder and the regular phases tbh
<cyris212> Do you have any tips on how to work on python projects that simply use pip and a requirements.txt file?
<ldlework> srhb: that depends on make and stuff?
<srhb> ldlework: Disabling any that you don't need.
<srhb> ldlework: Sure, it does, but stdenv is there anyway.
<sphalerite> cyris212: probably using pypi2nix, unless all your deps are in nixpkgs
<srhb> ldlework: You can do whatever you like by overriding eg. buildPhase and installPhase :)
<ldlework> srhb: hrm, this was pretty straight-forward. the standard builder makes my head spin
<ldlework> what does the error mean anyhow
<srhb> ldlework: Well, it's not really that straightforward when it doesn't work :-P
<cyris212> sphalerite: Thanks, i've stumbled across pypi2nix a couple of times, was however somewhat confused that it was not packaged.
<cyris212> Will try it out.
<sphalerite> cyris212: it is packaged…
<srhb> ldlework: I think it's mainly toFile restrictions.
<sphalerite> nix-shell -p pypi2nix should get you it
<cyris212> Oh confused it with pip2nix, sorry.
arjen-jonathan has joined #nixos
<srhb> ldlework: It would work with writeText instead
<Enzime> does anyone know why OfBorg didn't build the package I requested?
<{^_^}> #43754 (by r-ryantm, 3 weeks ago, open): lensfun: 0.3.2 -> 0.3.95
<srhb> Enzime: You asked for an eval, not a build?
<ldlework> srhb: it is working :D
<ldlework> the build blew up but now I have to fix the elisp
<ldlework> i'm excited again
<srhb> Great :)
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/0ee6d7e3ab7 (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<srhb> Enzime: I also don't see your github name in OfBorgs known users list
<Enzime> srhb: are they different?
<Enzime> I tried build initially
<Enzime> but OfBorg didn't do anything either
<srhb> Enzime: You have to be known by ofborg in order to trigger anything :)
<Enzime> ah
<srhb> Enzime: You can PR yourself here: https://github.com/NixOS/ofborg
sigmundv has joined #nixos
bongsun has quit [Quit: Connection closed for inactivity]
<ldlework> srhb: heh it built
sb0 has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @timokau merged pull request #45001 → givaro: Add darwin support → https://git.io/fNbZa
<{^_^}> [nixpkgs] @timokau pushed 2 commits to master: https://git.io/fNAKP
<ldlework> I'm amazed
<ldlework> srhb: how would I install this to my local nix-env for testing
<cyris212> sphalerite: do you have any tips if there are deps on nixos packages (psycopg2 -> pg_config binary).
<srhb> ldlework: I'd suggest not to, and instead just use the result link from nix-build :)
<srhb> ldlework: (But you CAN nix-env -i that)
<srhb> ldlework: The reason I suggest not to is that you should rather test it _without_ the influence of all sorts of environment stuff.
<sphalerite> cyris212: psycopg2 seems to be in nixpkgs, so maybe you can just plonk that in. Somehow.
<srhb> ldlework: So, result/bin/sophos to run it and go from there :)
<sphalerite> I don't know much about pypi2nix
<sphalerite> cyris212: but if you can paste the nix expression it generated for you I might be able to help
<ldlework> srhb: lol it works
<srhb> ldlework: Great. Onwards to nixops :)
<ldlework> srhb: first
<Enzime> wow
<ldlework> how do I make it use emacs-nox
<Enzime> feels good for nixpkgs-unstable to be so up to date again :)
<srhb> ldlework: No idea.
<ldlework> heh
<srhb> Enzime: Yeah, we've had a nice streak
<cyris212> sphalerite: Turns out I just needed to read the README a little bit further.
<ldlework> srhb: don't we override something with emacsWithPackages?
<srhb> ldlework: Maybe you need to override emacsWithpackages?
<ldlework> heh
<ldlework> srhb: emacs-nox is just an alternative emacs package
<ldlework> without the gui stuff
<srhb> ldlework: Looks like emacsPackagesNgGen is a function that takes an emacs and produces an emacsWithPackages
<srhb> ldlework: So... myEmacsWithPackages = pkgs.emacsPackagesNgGen emacs-nox
<srhb> (presumably)
<sphalerite> cyris212: even better :D
<ldlework> oh I see
<ldlework> hmm undefined variable emacs-nox
<srhb> ldlework: emacs26-nox?
<ldlework> yeah
<ldlework> nice
<ldlework> well i don't have a emacs26
<ldlework> but 25 will do i guess
<srhb> Ah I was wrong.. It's more like
jperras has joined #nixos
<ldlework> emacsWithPackages = (emacsPackagesNgGen emacs25-nox).emacsWithPackages;
<ldlework> this worked
<srhb> emacsNoxWithPackages = (emacsPackagesNgGen emacs25-nox).emacsWithpackages
<srhb> Right
<ldlework> ;)
<srhb> I'll stop hand-holding now, you've got this. :P
thetet has joined #nixos
<ldlework> deploying with nixops as we speak!
<{^_^}> [nixpkgs] @fgaz opened pull request #45057 → endgame-singularity: init at 0.30c → https://git.io/fNA6E
<ldlework> hopefully
<ldlework> :P
<srhb> :)
<ldlework> srhb: hmm couldn't coerce this to a string
<ldlework> emacsWithPackages = (emacsPackagesNgGen emacs25-nox).emacsWithPackages;
<ldlework> oops
<ldlework> ExecStart = ''${sophos}/bin/sophos'';
<ldlework> in the nixops expr
<ldlework> I have
<ldlework> sophos = import /home/ldlework/src/apoptosis/sophos;
<ldlework> where the default.nix is
<srhb> sophos/default.nix is probably a function
<srhb> Which takes an argument set including kgs
<ldlework> yeah it expects pkgs
<ldlework> yeah
<srhb> So, import ... { inherit pkgs; }
<sphalerite> or pkgs.callPackage ... {};
<sphalerite> :)
<srhb> Spoilers! That was the next tep :D
<ldlework> hmm my nixops expression doesn't take pkgs
<srhb> ldlework: Your machine is a function { pkgs, ... }: { ... }
<srhb> ldlework: So in that scope, pkgs is defined
jperras has quit [Ping timeout: 244 seconds]
<ldlework> hmm
<srhb> ldlework: Use that :)
<ldlework> i see what you mean i think
<ldlework> nice
<ldlework> copying closure!
<ldlework> my mom is gonna be so proud
<srhb> :D
<inquisitiv3> What does configuring a shell as an interactive shell mean? I'm reading the description for the option `programs.fish.enable`. Trying to set Fish as my default shell for my user.
<Enzime> inquisitiv3: not sure about your original question, but you can set fish as your default shell with
<Enzime> users.extraUsers.<username>.shell = pkgs.zsh;
<Enzime> fish **
<srhb> You should also enable it in programs though. :)
<Enzime> also use users if you're already using that
<Enzime> (use users.users instead of users.extraUsers that is)
<inquisitiv3> Enzime: Yep, checked that option. But that option has the following part in its description: "Don’t forget to enable your shell in programs if necessary, like programs.zsh.enable = true;". I checked the option for Fish and saw it's description and wonders why I've to change the value of that option to true.
<inquisitiv3> Enzime: https://nixos.org/nixos/options.html#users.users.%3Cname%3F%3E.shell
<srhb> programs.fish.enable and friends are responsible for setting /etc/fishshellstuff
Maxdamantus has quit [Ping timeout: 272 seconds]
<ocharles> srhb: Figured it out. Turns out nixops generates a physical.nix expression which has that stuff. But you can get that with nixops show-physical, so I may just check that in (or a dummy value because I only care that things like systemd stuff is built)
<srhb> users.users.name.shell is responsible for shetting the user's shell in /etc/passwd
<srhb> ocharles: Great, thanks for calling back :D
<srhb> inquisitiv3: Arguably we could traverse the shells of all users and enable the global stuff as necessary instead :)
<srhb> But that's a bit spooky-action-at-a-distance
<srhb> And _technically_ you can usally get by with just the shell binary set for the user, but you'll lose a lot of the nice extra features from the systemwide config.
<inquisitiv3> Enzime, srhb: So I should add `shell = pkgs.fish` to my user config in `configuration.nix` and `programs.fish.enable = true;` somewhere in the same file?
<Enzime> inquisitiv3: yep
* srhb nods
<inquisitiv3> Is Fish automatically installed if I set the later option to true?
<srhb> inquisitiv3: So, let's assume you didn't set programs.fish.enable
Maxdamantus has joined #nixos
<srhb> In this case, you only have users.users.you.shell = pkgs.fish
<srhb> In this case, /etc/passwd looks like inquisitive:...:/nix/store/...fish-version/bin/fish
<srhb> Because passwd now directly depends on fish, it will be installed as a dependency.
<srhb> "Installed" in the sense that it's in the NIX_STORE
<srhb> Not in any profile, nor any $PATH
<srhb> ... I don't know why I wrote NIX_STORE instead of /nix/store :P
<inquisitiv3> srhb: Like with nix-shell?
<srhb> inquisitiv3: Not quite, in nix-shell it would be on $PATH
<srhb> In this case, it's just in the nix store.
liori has joined #nixos
<srhb> So running "fish" would give command not found, but you would still be using it as your default shell.
<sphalerite> I think these options usually do add them to systemPackages as well
<srhb> On the other hand, programs.fish.enable = true; sets environment.systemPackages = [ pkgs.fish ]; so it's now in /run/current-system/sw/bin
<sphalerite> oh right
<srhb> Which is in your path
<ldlework> srhb: OK it deployed but crashed, I think the last thing I need, is in my nixops expression, a way to install the sophos package such that we make a wrapper where I can provide all the environment variables to it
<srhb> inquisitiv3: So now we're up to three different interpretations of the word "installed" :-)
<ldlework> inquisitiv3: isn't nix fun?
<srhb> ldlework: Doesn't systemd give you a way to set environment directly?
<ldlework> I'll look
<sphalerite> yep
<inquisitiv3> srhb: Nix if fucking complex. But thanks for explanation :)
<ldlework> indeed
<srhb> inquisitiv3: :) Flexibility has a bit of cost. But it's really great.
<srhb> The problem really is that all other distros usually collapse all these interpretations of "installed" into one, and we don't have better words for it without being really explicit, as I was above :-P
<{^_^}> [nixpkgs] @michaelpj opened pull request #45058 → freedesktop modules: init → https://git.io/fNAi6
<Phillemann> I'm trying to use pytest_xdist. I thought just adding it to my propagatedBuildInputs would suffice so that pytest finds it. But it doesn't.
<Phillemann> Works with pycov, however (it's in propagatedBuildInputs and is found by pytest automatically).
<inquisitiv3> srhb: Thanks for the help (again) and the explanations. We'll see if I begin to pester you with some more questions later :P
<srhb> inquisitiv3: Feel free. I'm mostly active here in euro morning/early afternoon though :) (work afternoon/evening)
<srhb> But there's lots of nice people here that are ready to help.
<Phillemann> (Apparently, xdist _is_ in PYTHONPATH inside nix-shell though)
thetet has left #nixos [#nixos]
tinco has joined #nixos
<{^_^}> [nixpkgs] @xeji pushed 3 commits to master: https://git.io/fNAPl
<{^_^}> [nixpkgs] @xeji merged pull request #45051 → ptask: remove usage of nonexistent function is_error → https://git.io/fNAlE
<tinco> hi, everytime I log in (through ssh) I get this message: mkdir: cannot create directory ‘/nix/var/nix/gcroots/per-user/tinco’: Permission denied
<tinco> is that a mistake in my nixos config somewhere, or did I do something wrong and should I just chown something?
<{^_^}> [nixpkgs] @srhb merged pull request #45050 → carnix overrides: add gmp to rink-rs buildInputs & correct crateBin → https://git.io/fNAWL
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fNAPE
mayhewluke has quit [Ping timeout: 240 seconds]
init_6 has joined #nixos
mayhewluke has joined #nixos
Ridout has joined #nixos
<srhb> tinco: That directory should be owned by you, yes.
<ldlework> srhb: hmm, i'm not able to load the emacs packages that are supposed to be installed via emacsWithPackages
<srhb> tinco: Not sure how you ended up in that situation.
<srhb> ldlework: Do your arguments to emacs directly interfere with them?
<ldlework> srhb: no I minimized everything to just
<ldlework> ${emacs-run}/bin/emacs --batch --eval "(require 'dash)"
<ldlework> and it still says it can't load dash
fenedor has joined #nixos
<srhb> ldlework: Is it in EMACSLOADPATH?
<srhb> maybe cat your ${emacs-run}/bin/emacs
goibhniu has joined #nixos
fendor has quit [Ping timeout: 244 seconds]
<srhb> ldlework: I can reproduce this with dash specifically
<ldlework> srhb: export EMACSLOADPATH=$EMACSLOADPATH${EMACSLOADPATH:+':'}'/nix/store/ga0l6mj5aybbwvm4qxm8chhxwmh59iac-emacs-packages-deps/share/emacs/site-lisp
<ldlework> i think one of the commands i'm using is messing up the site-lisp perhaps
<ldlework> srhb: what do you mean?
<srhb> ldlework: nix-shell --pure -p "pkgs.emacsWithPackages (epkgs: with epkgs; [ dash ])" -- I can't just (require 'dash)
<tinco> srhb: should the directory just exist? I can make it and then chown it to myself, but I'm not sure why something is trying to mkdir it everytime I log in, when it's not supposed to be able to anyway, or should per-user be a+rw?
<ldlework> srhb: does it work with s/dash/anaphora?
<srhb> tinco: Oh, hm, yes it should exist...
<srhb> At least I think so.. Maybe the nix-daemon sets it up for you as soon as you have some gc roots
<tinco> what's a gc-root? :P
<srhb> tinco: It's a symlink to a store path that prevents it from being garbage collected
<srhb> ldlework: Nope.
<srhb> ldlework: Does batch maybe clear the loading of site-lisp stuff?
<ldlework> srhb: it doesn't matter if i open it with --batch or not
<ldlework> just opening it normally it doesn't work
jiaew3 has joined #nixos
<ldlework> srhb: is that the full line you need to actually install emacs with packages?
<ldlework> in your -p flag
<srhb> Yes.
<srhb> ldlework: It just seems that emacs knows nothing about it. Specifying the path to dash with -L doesn't help either. Clearly something is missing :P
<ldlework> srhb: I've gotta pass out, but you've been wonderful. I'm gonna ask some nix people who use emacs what they think.
<ldlework> Thanks so much!
<srhb> ldlework: Sleep well :)
bennofs[m] has quit [Quit: removing from IRC because user idle on matrix for 30+ days]
orivej has quit [Quit: No Ping reply in 180 seconds.]
alexteves has joined #nixos
orivej has joined #nixos
bionicmac[m] has quit [Quit: removing from IRC because user idle on matrix for 30+ days]
iyzsong has joined #nixos
<{^_^}> [nixpkgs] @Ma27 opened pull request #45061 → python3Packages.git-annex-adapter: fix build → https://git.io/fNA16
<sphalerite> tinco: per-user should be a+rwx and sticky
danielrf[m] has quit [Quit: removing from IRC because user idle on matrix for 30+ days]
emil1234[m] has quit [Quit: removing from IRC because user idle on matrix for 30+ days]
efx[m] has quit [Quit: removing from IRC because user idle on matrix for 30+ days]
sb0 has joined #nixos
<{^_^}> [nixpkgs] @timokau merged pull request #45041 → urbit: 0.4.5 -> 0.6.0 → https://git.io/fNNpu
<{^_^}> [nixpkgs] @timokau pushed 2 commits to release-18.03: https://git.io/fNA15
mankyKitty[m] has quit [Quit: removing from IRC because user idle on matrix for 30+ days]
<hyper_ch2> hi sphalerite
<sphalerite> hi hyper_ch2
<hyper_ch2> sphalerite: what's up?
<bkchr[m]> Hi, is someone "maintaining" `environment.noXlibs`?
<sphalerite> bkchr[m]: not very actively by the looks of it
<bkchr[m]> yeah, it does not compile :D
<bkchr[m]> networkmanager-l2tp and networkmanager-SCAN_DELAY_MILLIS
<bkchr[m]> networkmanager-l2tp and networkmanager-ionide
<bkchr[m]> not scan delay xD
<sphalerite> probably best not to even try to use network-manager without X!
hamishmack has joined #nixos
fenedor has quit [Ping timeout: 240 seconds]
<srhb> nmtui has gotten pretty good
<hodapp> I've used it outside of X, though it feels weird
<schmittlauch[m]> Hi, how do I make programs use another language? `i18n.defaultLocale` didn't do the job, do I somehow have to enable language packages?
<schmittlauch[m]> (example: KDE applications like Dolphin still use English)
kenshinCH has joined #nixos
Ridout has quit [Quit: Lost terminal]
<kenshinCH> hi all. I tried to run the NixOS installer image from USB on my iMac, but it gets stuck at stage 1 saying "waiting for /root", then trying to mount anyway, and failing
<kenshinCH> any hint?
<jD91mZM2> Is this during bootup?
<kenshinCH> yep, stage one, just like a second after booting
<{^_^}> [nixpkgs] @Ma27 opened pull request #45062 → pythonPackages.thumbor: 6.5.1 -> 6.5.2 → https://git.io/fNAyE
<kenshinCH> same as this, actually https://github.com/NixOS/nixpkgs/issues/17496
<{^_^}> #17496 (by mfine, 2 years ago, closed): Can't Boot LiveCD ISO from USB
<kenshinCH> but I'm pretty certain it is booting UEFI
<d1rewolf> manveru: you around?
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
jperras has joined #nixos
gu3 has joined #nixos
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/6aa0b6161c4 (from 53 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
kenshinCH has quit [Ping timeout: 252 seconds]
<d1rewolf> quick poll: how many of you run on the unstable channel versus stable?
inquisitiv3 has quit [Ping timeout: 240 seconds]
jperras has quit [Ping timeout: 240 seconds]
MuffinPimp has quit [Quit: Goodbye.]
<sphalerite> hyper_ch2: stuff
<sphalerite> I'm in Germany
rprije has quit [Ping timeout: 272 seconds]
<d1rewolf> also, is it very common to run with automatic upgrades, or should I be wary of that?
<sphalerite> d1rewolf: well on nixos you can roll back upgrades
<sphalerite> on ubuntu you can't ;)
<d1rewolf> sphalerite: true. I just don't know what to expect if I run unstable with automatic upgrades. is it common for unstable to break things, or no?
<sphalerite> d1rewolf: as long as you have stateVersion set correctly (no later than 18.03 at this point in time I believe) it shouldn't break anything majorly I think
<d1rewolf> sphalerite: k, thx. how does one keep up with updates? is there a mailing list to be notified via?
orivej has quit [Quit: No Ping reply in 180 seconds.]
<sphalerite> d1rewolf: not really, there's the git commit log :')
<d1rewolf> sphalerite: k
<{^_^}> [nixpkgs] @timokau merged pull request #45062 → pythonPackages.thumbor: 6.5.1 -> 6.5.2 → https://git.io/fNAyE
<{^_^}> [nixpkgs] @timokau pushed 2 commits to master: https://git.io/fNA9e
<sphalerite> d1rewolf: what is worth following is changes to the 18.09 release notes, as all breaking changes *should* be documented there
<d1rewolf> nixos-rebuild switch --upgrade reports errors for me when upgrading to unstable. I lost scrollback, tho. is there a way to see errors in a log somewhere?
orivej has joined #nixos
<{^_^}> [nixpkgs] @volth opened pull request #45063 → [wip] mips64el-linux → https://git.io/fNA9m
<sphalerite> d1rewolf: if they're build errors, it'll be tricky and your easiest option is to retry
<sphalerite> d1rewolf: otherwise, the journal might be wroth checking
<sphalerite> (journalctl -e)
<d1rewolf> sphalerite: If errors occur during that, am I switched or does it not switch?
<d1rewolf> I think this is the error: A dependency job for network-addresses-vboxnet0.service failed. See 'journalctl -xe' for details.
<d1rewolf> weirdly, re-running then reported no errors
<sphalerite> d1rewolf: if the switch fails you'll end up with a partially upgraded state
<sphalerite> I think that might be fine, but rebooting would be a good idea
<d1rewolf> hmmm. ok. i'll be back :)
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/ad71d9b0d5b (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<schmittlauch[m]> Someone around here using a non-English locale and UI language?
<ongy> huh, this is interesting. xmonad can recompile itself, but I don't get access to ghc in my session. Hwo does this work?
MuffinPimp has joined #nixos
<sphalerite> ,find xmonad/default.nix
<{^_^}> Couldn't find any such files
<sphalerite> ,find xmonad.nix
<sphalerite> ,find xmonad/wrapper.nix
<Taneb> ongy: one would presume it uses a fixed path to GHC
<sphalerite> ongy: ^
<ongy> hm, interesting. And what handles NIX_GHC? It's not in the xmonad source tree, and I don't see any patches in that xmonad.nix
<hyper_ch2> sphalerite: you do know they speak german in Germany, right?
<sphalerite> hyper_ch2: yes
<hyper_ch2> sphalerite: vacation?
kiloreux has joined #nixos
<sphalerite> hyper_ch2: yes pretty much, although since I've graduated and not yet got a job I'm looking for one
<{^_^}> [nixpkgs] @CrystalGamma opened pull request #45064 → perl: build deterministically → https://git.io/fNAHU
<sphalerite> in Germany probably
<sphalerite> -> #nixos-chat
<hyper_ch2> sphalerite: wouldn't silicon valley be more suited for job search?
<sphalerite> ,find ghc-paths-nix.patch
<ongy> ,find xmonad-with-packages.nix
<{^_^}> Couldn't find any such files
<hyper_ch2> sphalerite: btw, already using 4.18 kernel?
<sphalerite> ongy: ^ I presume xmonad uses ghc-paths
<sphalerite> hyper_ch2: nope still on 4.14. Could we move this discussion to #nixos-chat to avoid drowning on-topic stuff out? :)
<hyper_ch2> can't sorry :(
<sphalerite> why not..?
<ongy> sphalerite: afaik it doesn't. It jsut calls `runProcess "ghc" ...`
<hyper_ch2> sphalerite: I don't believe in offtopic channel and I don't like channel list clutter :)
<sphalerite> hyper_ch2: then please don't discuss off-topic stuff :)
Ariakenom_ has joined #nixos
<ongy> sphalerite: https://github.com/NixOS/nixpkgs/blob/86dc8678032257123ce26377e6ac8c76ccd64ae8/pkgs/development/haskell-modules/patches/xmonad-nix.patch it's just not referenced in the xmonad.nix but good to know where to find it :)
<sphalerite> good to know
orivej has quit [Ping timeout: 272 seconds]
Ariakenom has quit [Ping timeout: 248 seconds]
__monty__ has joined #nixos
MuffinPimp has quit [Quit: Goodbye.]
MuffinPimp has joined #nixos
<{^_^}> [nixpkgs] @fgaz opened pull request #45065 → twemoji-color-font: 1.3 -> 1.4 → https://git.io/fNAQR
init_6 has quit [Ping timeout: 240 seconds]
<sb0> I'm doing this in my configuration.nix: https://hastebin.com/aheyotayey.js
<sb0> and get: The option `matplotlib-qt' defined in `/etc/nixos/configuration.nix' does not exist.
<sb0> how do I fix it?
<symphorien> you need: ...systemPackages = let matplolib-qt = .... ; in [ ...
<sb0> thanks
init_6 has joined #nixos
<{^_^}> [nixpkgs] @timokau opened pull request #45067 → eclib: 20180710 -> 20180815 → https://git.io/fNA7c
jperras has joined #nixos
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/6aa0b6161c4 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<{^_^}> [nixpkgs] @alyssais opened pull request #45068 → gem-config: add curses → https://git.io/fNA5I
Fare has joined #nixos
<timokau[m]> Can someone that knows how to navigate hydra figure out if the "twemoji-color-font" darwin build currently fails?
<infinisil> timokau[m]: Go to hydra, click on "nixpkgs", then on "trunk" at the bottom, then go to the "Jobs" tab, then search for the package there
Maxdamantus has quit [Ping timeout: 272 seconds]
Maxdamantus has joined #nixos
<timokau[m]> Thanks infinisil and sphalerite
<sphalerite> timokau[m]: and it seems it's never been successful, or at least not since January
<Myrl-saki> Wtf.
<Myrl-saki> There's an overlays.nix file? lmao
<Myrl-saki> Since when
<timokau[m]> sphalerite: Yeah I just wanted to know if the ofBorg failure in #45065 is a regression.
<{^_^}> https://github.com/NixOS/nixpkgs/pull/45065 (by fgaz, 29 minutes ago, open): twemoji-color-font: 1.3 -> 1.4
<sphalerite> timokau[m]: I think we can safely say no ;)
<sphalerite> timokau[m]: might be worth setting meta.platforms appropriately
<cyris212> The zlib package should also include the correct header files correct?
<sphalerite> Myrl-saki: I think since overlays were introduced…
<timokau[m]> sphalerite: Yes I suggested that to the PR creator. Interestingly the error message changed a bit, but either way the build still fails.
<sphalerite> cyris212: yes, in the dev output
<cyris212> I'm trying to install a python library that links against zlib. -> "pypi2nix -V "3.6" -e pillow -E zlib"
<infinisil> ,find impure.nix
<Myrl-saki> sphalerite: Author: Michael Peyton Jones <michaelpj@gmail.com>
<Myrl-saki> AuthorDate: Wed Aug 9 19:47:27 2017 +0100
<Myrl-saki> Aug 9, 2017
<infinisil> Myrl-saki: There's a whole bunch of ways to get overlays in that file ^^
<Myrl-saki> overlays was Jan 16.
<Myrl-saki> infinisil: Yep! Exactly what I'm checking right now. :P
<cyris212> I always get "The headers or library files could not be found for zlib, a required dependency when compiling Pillow from source"
<sphalerite> cyris212: how are you trying to build it? Using pip?
<Myrl-saki> infinisil: I'm blaming the file, and there's 7 months between overlays mechanism and files.
<symphorien> cyris212: pillow is likely to be already in nixpkgs
<cyris212> sphalerite: With pypi2nix (which uses pip in the background)
<infinisil> ,locate include/zlib.h
<{^_^}> Found in packages: klibc, zlib.dev, androidndk
<infinisil> cyris212: It's in zlib.dev
<infinisil> Which is usually taken care of automatically when you specify zlib
<sphalerite> cyris212: and how are you passing zlib to it?
<{^_^}> [nixpkgs] @timokau pushed to revert-45041-fix/urbit-update « Revert "urbit: 0.4.5 -> 0.6.0" »: https://git.io/fNAdc
<{^_^}> [nixpkgs] @timokau opened pull request #45069 → Revert "urbit: 0.4.5 -> 0.6.0" → https://git.io/fNAdC
<{^_^}> [nixpkgs] @timokau merged pull request #45069 → Revert "urbit: 0.4.5 -> 0.6.0" → https://git.io/fNAdC
<{^_^}> [nixpkgs] @timokau pushed 2 commits to release-18.03: https://git.io/fNAdl
<cyris212> sphalerite: great question I will read the source code of pypi2nix.
thetet has joined #nixos
johanot has quit [Quit: Lost terminal]
Maxdamantus has quit [Ping timeout: 268 seconds]
vidbina_ has quit [Ping timeout: 256 seconds]
Maxdamantus has joined #nixos
<{^_^}> [nixpkgs] @zimbatm merged pull request #45068 → gem-config: add curses → https://git.io/fNA5I
<{^_^}> [nixpkgs] @zimbatm pushed commit from @alyssais to master « gem-config: add curses (#45068) »: https://git.io/fNAdy
gu3 has quit [Ping timeout: 252 seconds]
johanot has joined #nixos
<clever> > pythonPackages.zlib
<{^_^}> attribute 'zlib' missing, at (string):169:1
<johanot> how to get a package store-path by attribute name? (from shell)?
<clever> johanot: nix-build '<nixpkgs>' -A hello
<johanot> clever: And.. nix-build won't actually build anything here?
<clever> if its in the binary cache, it will just download
<johanot> and if already in store, just return the path? Makes sense.
<clever> yep
<johanot> thanks!
Drakonis has joined #nixos
Maxdamantus has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @domenkozar merged pull request #45014 → ghc-8.0.2: Fix #44987 → https://git.io/fNbu1
<{^_^}> [nixpkgs] @domenkozar pushed commit from @typetetris to master « ghc-8.0.2: Fix #44987 (#45014) »: https://git.io/fNAb7
mzan has left #nixos [#nixos]
klntsky has quit [Remote host closed the connection]
klntsky has joined #nixos
trcc has quit [Remote host closed the connection]
jperras has quit [Ping timeout: 244 seconds]
robstrr has joined #nixos
<Myrl-saki> johanot: You can also `--max-jobs 0` to make sure that no compilation is done at all. :)
<johanot> Myrl-saki: Actually ended up using "nix eval --raw nixpkgs.foo" for the same reason.
<johanot> Adding --readonly-mode to nix-build also does the trick, but gives off a nasty error msg when trying to write to the store. Just want the store-path, don't want the package itself.
iyzsong-x has joined #nixos
<Myrl-saki> TIL --readonly-mode
<clever> readonly can also jam IFD
<sphalerite> johanot: `nix-store -q --outputs $(nix-instantiate '<nixpkgs>' -A hello)` if you want to get the output path regardless of whether you have it or not
<Dezgeg> watch out for multiple-output packages though
iyzsong has quit [Ping timeout: 244 seconds]
<symphorien> sphalerite: there is also nix-instantiate '<nixpkgs>' -A hello.outPath --eval
<clever> [clever@amd-nixos:~]$ nix-instantiate --eval -E 'with import <nixpkgs> {}; "${hello}"'
<clever> "/nix/store/188avy0j39h7iiw3y7fazgh7wk43diz1-hello-2.10"
<clever> another option
<infinisil> > hello.outPath
<{^_^}> "/nix/store/aq3byv8z9ax5zqbqi5b73q06yq8gfl99-hello-2.10"
<infinisil> Or just this ^^
<infinisil> johanot: nix-instantiate --eval '<nixpkgs>' -A hello.outPath
<sphalerite> symphorien: how does that behave for multiple-outputs?
jperras has joined #nixos
mayhewluke has quit [Ping timeout: 240 seconds]
<infinisil> Oh symphorien already said what I said lol, whoops
<symphorien> no idea
<infinisil> Will only get the "out" output
mayhewluke has joined #nixos
<infinisil> pretty sure
<Dezgeg> > curl.dev.outPath
<{^_^}> "/nix/store/d67ym0avw3738nwcr3rfmx96l3hnxjy2-curl-7.60.0-dev"
<Dezgeg> works as expected
<Myrl-saki> Since we're talking about paths. I actually encountered a problem with a custom dependency checker, and turns out that `foo.out` is not always == `foo` anyone knows what's up with that?
<Dezgeg> that's right
<Myrl-saki> I think it's something more like `foo.buildInputs[0] != foo.buildInputs[0].out` that I encountered.
<johanot> thanks a lot for all suggestions!
<Dezgeg> I guess the question is; what are you going to do with the information? why would you care about .out in particular?
<clever> Myrl-saki: foo will return the 1st output in .outputs
<clever> > curl.outputs
<{^_^}> [ "bin" "dev" "out" "man" "devdoc" "debug" ]
<clever> > "${curl}"
<{^_^}> "/nix/store/23bj61j1zrfpjzdin2pisa9yndx9flss-curl-7.60.0-bin"
<Myrl-saki> clever: Oh lol
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/5b8a24a40ce (from 57 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
endformationage has joined #nixos
iyzsong-x has quit [Ping timeout: 240 seconds]
aarvar has joined #nixos
hyper_ch2 has quit [Quit: Page closed]
<robstrr> Is there a common way running several nix-build for https://gist.github.com/rsoeldner/dabcffa9270b71147800c34931c6c2a3 ,currently i run them manually by `nix-build --argstr compiler ghc822 release.nix` to check different ghc versions. Is it also possible to setup a database und run "integration tests" ?
<symphorien> robstrr: you can write a file which evaluates to the list of all the configurations you want to test and nix-build it: for example https://github.com/symphorien/nix-du/blob/139adff819b5bcf1c84931223c749801c0d04bf8/test.nix
<clever> with import <nixpkgs> {}; let compilers = builtins.attrNames haskell.compiler; in map (c: import ./. { compiler = c; }) compilers
<clever> something like this to start with maybe?
<robstrr> clever: this looks good :)
<robstrr> is there a way to setup a empty database and let nix-build do all the stuff & run my test?
<robstrr> symphorien: ty
<clever> robstrr: sounds like hydra would be best maybe?
<infinisil> Does nix repl work with Nix 1.11?
<clever> infinisil: you want nix-repl, a seperate package
<infinisil> Yeah
<infinisil> But if I were to run $(nix-build '<nixpkgs>' -A nix)/bin/nix repl on a Nix 1.11 daemon
<infinisil> would that work?
<clever> it may try to use 2.0 features
<clever> it will mostly work, but you will sometimes get an error
<robstrr> clever: is it possible to do it with just nix on a local machine ?
<infinisil> clever: Like with :b maybe?
<symphorien> infinisil: with a daemon it will see the protocol is older I guess
<clever> robstrr: try putting the string i gave above into a file, and then run nix-build on that file
<infinisil> symphorien: clever: Asking because of #44903
<{^_^}> https://github.com/NixOS/nixpkgs/pull/44903 (by Infinisil, 3 days ago, open): Revert "nix-repl: Remove"
<clever> infinisil: you can still run `nix-store -r` against an old storepath of it
<clever> to grab it from the cache
<robstrr> clever: :+1
ryanartecona has joined #nixos
vidbina_ has joined #nixos
Ariakenom_ has quit [Read error: Connection reset by peer]
Ariakenom has joined #nixos
<sphalerite> clever: infinisil: or nix build -f channel:nixos-18.03 -iA nix-repl
<infinisil> That's not really an option for people having nix-repl in their config files
<infinisil> They'll be wondering where this "nix-repl" is not an attribute error suddenly comes from
<samueldr> infinisil++
<{^_^}> infinisil's karma got increased to 19
<Myrl-saki> infinisil--
<Myrl-saki> :(
init_6 has quit [Ping timeout: 268 seconds]
robstrr has quit [Ping timeout: 252 seconds]
<samueldr> Myrl-saki: explain?
<Myrl-saki> samueldr: :( because -- doesn't work. :P
<samueldr> ah, I thought you disliked the solution :)
<samueldr> (which left me utterly confused)
<worldofpeace> It would also nice to have something somewhere clear the ambiguity of `nix-repl` and `nix repl`. An irc bot isn't consistent explainations :P
<{^_^}> [nixpkgs] @Infinisil pushed 7 commits to master: https://git.io/fNxfT
<{^_^}> [nixpkgs] @Infinisil merged pull request #44966 → libimobiledevice updates → https://git.io/fNdaC
<Myrl-saki> Just curious.
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/5b8a24a40ce (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<infinisil> ,nix-repl There's this
<{^_^}> There's this: To use nix-repl with Nix 2.0, either use the new `nix repl` or `NIX_REMOTE=daemon nix-repl`. Just using `nix-repl` gives an error because it is linked to Nix 1.x which requires NIX_REMOTE to be set correctly, while Nix 2.0 doesn't (and unfortunately it wasn't kept for backwards compatibility)
<Myrl-saki> Who here has a project(that they have control of) that they haven't converted to Nix, either in-repo or not.
<Myrl-saki> Actually, "that they have control of" isn't even required considering you could do it out of repo.
<samueldr> you probably should use: still actively used :)
johanot has quit [Quit: Lost terminal]
<samueldr> should add*
DigitalKiwi has quit [Ping timeout: 272 seconds]
<infinisil> samueldr: Feel free to refine it (not exactly sure what you mean myself)
<Myrl-saki> samueldr: Oh wow. When you said that, I realized a project that I should have nixified(Was still an Arch Linux user(archer???) back then.)
<worldofpeace> Anytime I have to answer someone's question with the irc bot, i shed a little tear. There should be a NixOS FAQ
<infinisil> Oh
<samueldr> ah, about Myrl-saki's question... I have a good bunch of projects I haven't nixified... but haven't used them for years either!
<infinisil> samueldr: Never mind, I misunderstood :)
ceevusee has joined #nixos
<Myrl-saki> The boot.vfd could have been auto downloaded or something.
<infinisil> (On not)
<infinisil> (Or not, haha)
<Myrl-saki> infinisil: (but maybe)
<infinisil> Head says I misunderstood
<infinisil> > coinflip
<{^_^}> "tails"
<Myrl-saki> Well.
<infinisil> I didn't :)
<Myrl-saki> Crap.
<Myrl-saki> :P
<Myrl-saki> infinisil: Is coinflip a bot command?
<samueldr> infinisil: I was refining Myrl-saki's question; not talking about the bot's answer :)
* Myrl-saki totally didn't try it out on `nix repl`.
<infinisil> (I did)
<infinisil> Myrl-saki: It's a nix variable!
thetet has left #nixos [#nixos]
<Myrl-saki> infinisil: How is it defined?
<infinisil> Myrl-saki: Join #bottest
<infinisil> Or #nix-lang, or whatever
<srhb> So many channels!
<Myrl-saki> Here!
<infinisil> I don't wanna spam this with the bot, there's people asking questions about their builds and stuff here
kyren has joined #nixos
erasmas has joined #nixos
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/fe6ebf85b76 (from 82 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
vidbina_ has quit [Ping timeout: 260 seconds]
<infinisil> Also:
<infinisil> > fortune
<{^_^}> "Your motives for doing whatever good deed you may have in mind will be misinterpreted by somebody."
<{^_^}> [nixpkgs] @Profpatsch merged pull request #41604 → lib/recursiveUpdateUntil: fix code to match documentation → https://git.io/vhEme
<{^_^}> [nixpkgs] @Profpatsch pushed 2 commits to master: https://git.io/fNxJ0
vidbina_ has joined #nixos
abueide has joined #nixos
johnw has quit [Ping timeout: 240 seconds]
jiaew3 has quit [Quit: Page closed]
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
jperras has quit [Ping timeout: 272 seconds]
abueide has quit [Read error: Connection reset by peer]
ceevusee has quit [Remote host closed the connection]
jperras has joined #nixos
steell has quit [Quit: leaving]
Denommus has joined #nixos
Xyliton has joined #nixos
<Xyliton> How would I get a function into the nix environment so I can call it from other files?
Ariakenom has quit [Ping timeout: 244 seconds]
<{^_^}> Channel nixos-18.03 advanced to https://github.com/NixOS/nixpkgs/commit/5b8a24a40ce (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03)
arjen-jonathan has quit [Ping timeout: 248 seconds]
<sphalerite> infinisil gchristensen: could we get {^_^} for #nixos-de as well?
<worldofpeace> Should we use sha512's?
<infinisil> Xyliton: A bit more concretely?
<infinisil> sphalerite: up to gchristensen, my functionalities now work in all channels {^_^} is in
<Xyliton> infinisil: I want something that wraps mkDerivation and sets some stuff as default
<sphalerite> worldofpeace: no reason not to. Only reason to prefer it over sha256 I can think of though is if the hashes are sourced from upstream and they only publish sha512
<worldofpeace> sphalerite: or maybe a large binary?
<sphalerite> what?
Ariakenom has joined #nixos
<infinisil> Xyliton: That would be something like `attrs: mkDerivation ({ buildPhase = "foo"; } // attrs)`
erasmas has quit [Quit: leaving]
erasmas has joined #nixos
<Xyliton> infinisil: where would this "attrs" come from though? I'm kinda confused
<infinisil> Xyliton: E.g. to define a package in a single file: `let mkMkDerivation = attrs: mkDerivation ({ buildPhase = "foo"; } // attrs); in myMkDerivation { name = "bar"; src = ...; }`
<Xyliton> ohh
alexteves has quit [Remote host closed the connection]
<Xyliton> is there any way I can have my .nix file defining the derivation for the compiler to also export the custom function?
<sphalerite> is there a nice way to make a GC root for the entire build-time closure of a drv?
<clever> sphalerite: only tool ive seen that does this is hydra, and its a bit tricky to get it to do just that
cyris212 has quit [Quit: WeeChat 2.0]
<sphalerite> I suppose I could hack something with nix-store -qR and some manual symlinking
<infinisil> Xyliton: you mean you have a nix file you can nix-build directly to get the compiler package?
<clever> sphalerite: of note, nix-store -r /nix/store/foo --add-root result --indirect
<Xyliton> infinisil: I have a file that I `(import "path")` in my systemPackages
<Xyliton> which builds the compiler
<sphalerite> clever: yeah but I can't do that to create a GC root for a .drv
<infinisil> Xyliton: you can't make nix functions available in some global environment if you mean that
<clever> sphalerite: yeah, theres no real good way to create indirect drv roots
<sphalerite> manual symlinking! :D
<infinisil> Xyliton: but what you can do is have the function available as (import "path").myMkDerivation
<Xyliton> infinisil: how do things like stdenv.mkDerivation and clangStdenv work then?
<infinisil> Ohh you mean nixpkgs
alexteves has joined #nixos
<infinisil> ,overlays Xyliton
<{^_^}> infinisil: Did you mean overlay?
<{^_^}> Xyliton: Overlays look like `self: super: { foo = ...; }`. Use the self argument to get dependencies, super for overriding things and library functions (including callPackage). More info: https://nixos.org/nixpkgs/manual/#sec-overlays-install
<Xyliton> oh, those are in nixpkgs...
<infinisil> You can use overlays to make it look like nixpkgs contains your own definitions
<Xyliton> ah, nice
<infinisil> Alternatively you can make a PR to add your definitions to nixpkgs itself
<Xyliton> I don't think anyone would want my emojicode definitions in nixpkgs lol
orivej has joined #nixos
<infinisil> Ohh I think I heard somebody say some time ago that they wanted to package emojicode, was that you?
johnw has joined #nixos
<Xyliton> I was here regarding emojicode multiple times already :p
<Xyliton> I got the compiler to build but I still need some nix-ish way to handle dependencies
<infinisil> Ah yes, that's a fun topic
<infinisil> You should take some inspiration from other (similar) compiler frameworks in nixpkgs
<Xyliton> I remember there being some hook I can use for that which can iterate over all deps or something and then append stuff to an env var, right?
<infinisil> buildInputs? propagatedBuildInputs? Not sure
<samueldr> Xyliton: maybe setupHook
<samueldr> it's a script that executes really early in the build of *dependents* and can do pretty much anything
<Xyliton> yea, that seems to be it
<Xyliton> just have to figure out how all this works now
<samueldr> I advise: to understand it better, make dummy packages a and b, b depending on a, then add a setupHook and play around with things
<emily> how do I write to /run/current-system/sw/etc/xdg/gtk-3.0/settings.ini in my config? I'm stracing gtk3 apps and they aren't even looking at /etc/gtk-3.0/settings.ini which I have, just locally (/nix/store/...-gtk/etc/gtk-3.0/settings.ini) and in the various profile directories
Ariakenom has quit [Ping timeout: 244 seconds]
sigmundv__ has joined #nixos
Drakonis has quit [Remote host closed the connection]
<sphalerite> clever: I wrote this beautiful bash "one-liner" for it
<sphalerite> rm /nix/var/nix/gcroots/per-user/lheckemann/bittorrent-test-roots/* ; nix-store -qR '/nix/store/xcqm6g6i9vyaym5qyg2r9qf98y6v9qk9-vm-test-run-bittorrent.drv' | (i=0 ; while read drv ; do ((i++)) ; ln -s $drv /nix/var/nix/gcroots/per-user/lheckemann/bittorrent-test-roots/$i ; done ) ; for link in /nix/var/nix/gcroots/per-user/lheckemann/bittorrent-test-roots/* ; do nix-store -q --outputs $link | (i=0 ; while
<sphalerite> read output ; do ((i++)) ; ln -s $output $link.$i ; done ; ) ; done
<clever> sphalerite: irc says thats not one line, lol
<sphalerite> tell irc to shush :D
sigmundv has quit [Ping timeout: 245 seconds]
<sphalerite> anyone know a bash formatter? I often end up writing these really nasty one-liners which should really not be jammed into one line
<Xyliton> where is pkg-config's nix expression at in the nixpkgs repo?
<clever> > pkgconfig.meta.position
<{^_^}> "/var/lib/nixbot/state/nixpkgs/pkgs/development/tools/misc/pkgconfig/default.nix:40"
<clever> you can also `nix edit nixpkgs.pkgconfig` to directly open it in your $EDITOR
<Xyliton> oh, that's interesting
<{^_^}> [nixpkgs] @fgaz opened pull request #45072 → lmdbxx: init at 0.9.14.0 → https://git.io/fNxqa
<sphalerite> /nix/store/4ixqi391jjxjc210hravy9v9amk41c1r-extra-utils/bin/udevadm: error while loading shared libraries: /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-kmod-25/lib/libkmod.so.2.3.3: cannot open shared object file: No such file or directory
<sphalerite> nice
<sphalerite> bad nukeReferences!
<Xyliton> any idea why this only prints an empty line? https://gist.github.com/MagnificentPako/d5675a6f521c9578dfec4d8e7cf4345b
<clever> sphalerite: stage-1 should have copied libkmod and patchelf'd it
<sphalerite> clever: well my changes probably broke that bit :)
<sphalerite> I'm looking at #24844 again
<{^_^}> https://github.com/NixOS/nixpkgs/issues/24844 (by lheckemann, 1 year ago, open): Link to libraries through absolute paths?
<clever> Xyliton: setup hooks have to be part of a derivation in the inputs
pingveno has joined #nixos
<Xyliton> ohhh
<clever> pkgs/top-level/all-packages.nix: autoreconfHook = makeSetupHook
<clever> 77 { deps = [ autoconf automake gettext libtool ]; }
<clever> 78 ../build-support/setup-hooks/autoreconf.sh;
<clever> makeSetupHook { deps = []; } ./path/to/hook.sh
<clever> that will generate a derivation with the given deps, and setup hook
<clever> and if you add that derivation to the inputs of anything, the hook will be sourced
<clever> you can also use setupHook (like like 4 of your gist) on the derivations containing the emojocode
<clever> and then when you put one of those into the inputs, it will add itself to the var
orivej has quit [Quit: No Ping reply in 180 seconds.]
<Xyliton> so the setupHook goes into the derivation of the compiler?
<clever> yeah
<Xyliton> ohh
<Xyliton> then I don't need that custom function either lol
<Xyliton> thanks!
<clever> cmake and unzip are other examples of setup hooks
<clever> the setup hook on cmake will mutate the configurePhase to run cmake for you
<clever> and unzip will alter the unpackPhase to support zip files in src
orivej has joined #nixos
<sphalerite> clever: thanks for the pointer, I think I have a fix :)
ryanartecona has quit [Quit: ryanartecona]
Xyliton has quit [Ping timeout: 268 seconds]
doyougnu has joined #nixos
<sphalerite> why does nix-instantiate with a remote store (nix-instantiate --store ssh-ng://…) take so long?
<clever> sphalerite: i think every call to builtins.derivation requies a round-trip over the network
shabius has quit [Quit: Leaving]
<clever> so, check your nix-store -qR on the drv, and then multiply that by the round-trip ping
<sphalerite> oh hm it already takes 8 seconds locally for this expression so I suppose…
<sphalerite> blarg
butchery has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Izorkin opened pull request #45073 → syslog-ng: enable reload service → https://git.io/fNxYH
Maxdamantus has joined #nixos
<sphalerite> clever: but does it reaaaaally need to be synchronous?
shabius has joined #nixos
<clever> sphalerite: it doesnt need to be, but would need some rewrites to be async
<sphalerite> I hope hnix-store does this better :')
Ariakenom has joined #nixos
<sphalerite> well, it's been at it for 15 minutes
<sphalerite> according to an estimate based on what you suggested it should take about 3
<sphalerite> but I guess the evaluation stuff has to happen as well
kiloreux has quit [Ping timeout: 240 seconds]
philippD has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed 5 commits to master: https://git.io/fNxOC
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.03 « linux: 4.4.147 -> 4.4.148 »: https://git.io/fNxOl
<gchristensen> sphalerite: sure
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.03 « linux: 4.9.119 -> 4.9.120 »: https://git.io/fNxO4
<sphalerite> gchristensen: great, thanks!
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.03 « linux: 4.14.62 -> 4.14.63 »: https://git.io/fNxOu
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.03 « linux: 4.17.14 -> 4.17.15 »: https://git.io/fNxO2
<gchristensen> sphalerite: I'm pretty AFK for today / the next couple -- I can't stay in my house so I'm bouncing around between houses for a bit -- but if I don't get to it, ping me again in a few days.
<sphalerite> gchristensen: no worries!
growpotkin has joined #nixos
<sb0> I'm trying to write a derivation for a cross-compiling binutils, but nix keeps installing the native binutils instead - supposedly because there is already a sha256 for the src provided - and ignoring my other configuration flags. it just skips the whole build.
emacsomancer has quit [Ping timeout: 244 seconds]
<sb0> how to solve this?
<growpotkin> is there a nixos option to add an arbitrary folder to a user's path?
<sb0> note that the example here https://github.com/NixOS/nixpkgs/blob/master/doc/old/cross.txt also has this bug.
emacsoma` has quit [Ping timeout: 244 seconds]
mzan has joined #nixos
pie_ has quit [Ping timeout: 244 seconds]
<philippD> Is there a way to fetch a single file from a git repo in a nix expression?
<growpotkin> yeah
<growpotkin> fetchgit
vidbina_ has quit [Ping timeout: 272 seconds]
<philippD> growpotkin: fetchgit clones the whole repo doesn't it? Since it's quite big I only want do fetch a single file.
<clever> philippD: if its on github, you can just use the URL from viewing it as raw
<growpotkin> hmmm I have seen examples of people pulling single files using fetchgit I believe
<{^_^}> [nixpkgs] @Mic92 merged pull request #45021 → Adding new package: Wavebox → https://git.io/fNb9P
<{^_^}> [nixpkgs] @Mic92 pushed commit from @rawkode to master « wavebox: init at 3.14.10 (#45021) »: https://git.io/fNx3G
<growpotkin> take a peek into the 'way-cooler' package (under window managers) I know they pull a single file from a big git repo somehow. I thought it was with fetchgit
<growpotkin> in any case it will be a good example for you
<clever> growpotkin: looks like a simple fetchurl against github
<{^_^}> [nixpkgs] @zimbatm merged pull request #44896 → add derivation for the virtualbox oracle extension pack → https://git.io/fN544
<{^_^}> [nixpkgs] @zimbatm pushed 8 commits to master: https://git.io/fNx3u
<growpotkin> Does that look like what you are trying to do?
Fare has quit [Ping timeout: 248 seconds]
Maxdamantus has quit [Ping timeout: 272 seconds]
<philippD> yeah, although I like the way the fetchGit and fetchFromGithub calls are structured. A single URL just looks bad
Maxdamantus has joined #nixos
kiloreux has joined #nixos
doyougnu has quit [Ping timeout: 240 seconds]
<growpotkin> Does anybody 'round these parts have experience with Rust?
<growpotkin> I have been hitting a brick wall packaging Spotifyd for days.
<growpotkin> sphalerite: whats that?
ryanartecona has joined #nixos
<{^_^}> [nixpkgs] @thoughtpolice pushed to master « nextpnr: init at 2018.08.09 »: https://git.io/fNxsn
<thoughtpolice> q3k: ^^ The GUI should work as well, though my X11 forwarding to my server is broken at the moment...
<thoughtpolice> Python scripts seem to work fine, too.
ryanartecona has quit [Client Quit]
<sphalerite> growpotkin: creates gc roots for everything in the build closure of some drv
<growpotkin> ah
<sphalerite> sb0: if it's not building anything new, then you're not building the right expression
<sphalerite> sb0: however, I think cross-compilation in nixpkgs looks a bit different nowadays
<sphalerite> (note the "/old/" in that file's path)
<sphalerite> sb0: for a few common targets, it's as simple as e.g. `nix build nixpkgs.pkgsCross.raspberryPi.hello`
arjen-jonathan has joined #nixos
Maxdaman1us has joined #nixos
DwarfMaster has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #45073 → syslog-ng: enable reload service → https://git.io/fNxYH
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNxZe
kiloreux has quit [Ping timeout: 256 seconds]
Maxdamantus has quit [Ping timeout: 240 seconds]
inquisitiv3 has joined #nixos
Fare has joined #nixos
sigmundv__ has quit [Ping timeout: 244 seconds]
<{^_^}> [nixos-hardware] @michaelpj opened pull request #71 → T480s: use CPU throttling fix too → https://git.io/fNxZ8
ntqz has quit []
<__monty__> Is all of PyPi packaged?
<hodapp> don't think so. I regularly have to write quick derivations for lesser-used packages
<LnL> no, unlike eg. hackage you need to download the package source and execute some arbitrary python code to figure out what the dependencies are
<hodapp> whaaa, seriously?
<emily> setup.py is python code
<sphalerite> sb0: in fact, it's *really really* old.
<hodapp> -_-
<emily> (although it doesn't seem insurmountable to sandbox to me?)
<__monty__> Setup.hs is haskell code.
<sphalerite> __monty__: yes, but you don't need to run it to get information like deps and stuff
bennofs[m] has joined #nixos
<sphalerite> you have the cabal file for that
kiloreux has joined #nixos
<__monty__> And hackage requires that? Why doesn't PyPi require a freeze file?
<disasm> with 17.09, if I run nix-shell --run zsh the prompt changed to [in nix-shell]\n<rest of prompt>, but that stopped working after upgrading to 18.03. I've been trying to track down where in the code it changed, but haven't been successful. FYI, I use prezto.
mayhewluke has quit [Ping timeout: 240 seconds]
<philippD> haskell dependencies are managed through delarative cabal files.
<philippD> disasm: try my plugin ;) https://github.com/chisui/zsh-nix-shell
graphene has joined #nixos
mayhewluke has joined #nixos
<__monty__> philippD: They don't *have* to be though.
<sphalerite> disasm: I don't see anything nix-related in prezto's source
<philippD> disasm: the problem might be in your theme since nix-shell doesn't alter zsh promts
<philippD> __monty__: what doesn't have to be what? All Haskell dependencies beeing declared in a cabal file?
<__monty__> philippD: You don't need to use cabal files.
<inquisitiv3> Is there any special tools available for Haskell development on NixOS? I'll be beginning to learn Haskell in some weeks, but I'm not familiar with the ecosystem.
<sphalerite> __monty__: you do to be on hackage AFAIK
<sphalerite> inquisitiv3: `nix-shell -p ghc` should be enough to get you started if you're just learning haskell
<__monty__> sphalerite: Yes... That's my point, why doesn't PyPi enforce a very sensible rule like this?
<sphalerite> __monty__: good question. Because python is insane? :D
<clever> inquisitiv3: if you want to use a library like lens, then you would use nix-shell -p 'haskellPackages.ghcWithPackages (ps: [ ps.lens ])'
doyougnu has joined #nixos
<inquisitiv3> sphalerite, clever: Thanks for the tips! I'm trying to learn what the `-p` flag does, but can't find a simple explanation.
<sphalerite> inquisitiv3: it makes nix-shell automatically generate a drv for you to shell into, with the given expressions as dependencies
<clever> inquisitiv3: it will drop you into a shell that has the listed derivations in $PATH
<sphalerite> inquisitiv3: so `nix-shell -p hello` will give you a shell with hello available in it
<inquisitiv3> sphalerite, clever: I'm testing the command. So it's a simplified way to create a nix-shell environment without having to write a default.nix file?
<clever> inquisitiv3: yeah
<inquisitiv3> I just have to specify the derivates that should only be installed in the environment?
<clever> inquisitiv3: internally, `-p hello` gets translated into `-E "with import <nixpkgs> { }; (pkgs.runCommandCC or pkgs.runCommand) \"shell\" { buildInputs = [ (hello) ]; } \""
<clever> which is identical to just pasting that string into a .nix file and running nix-shell on it
<inquisitiv3> clever: Do I understand that code snippet correctly that if I run `nix-shell -p dev1 dev2 [...] devn` the derivates `nixpkgs.dev1 nixpkgs.dev2 [...] nixpkgs.devn` will be installed and available in that environment?
<inquisitiv3> I don't understand the Nix code.
<clever> inquisitiv3: yeah, it will download both of them, and put them into PATH
<inquisitiv3> clever: That's nice. Now I don't need to try to hack together a default.nix file for simple dev environments.
doyougnu has quit [Quit: WeeChat 2.0]
simukis has quit [Quit: simukis]
Maxdamantus has joined #nixos
Maxdaman1us has quit [Ping timeout: 272 seconds]
alex`` has quit [Quit: WeeChat 2.2]
alex`` has joined #nixos
betaboon has quit [Quit: WeeChat 2.1]
arjen-jonathan has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #45065 → twemoji-color-font: 1.3 -> 1.4 → https://git.io/fNAQR
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fNxWV
<johnw> would anyone know why, when using haskellPackages.callHackage, I would see the following for a version that I know has such a file:
<johnw> tar: */dfinity-radix-tree/0.3.1/dfinity-radix-tree.cabal: Not found in archive
<{^_^}> [nixpkgs] @Mic92 merged pull request #44922 → darktable: Fix compilation on macOS → https://git.io/fN5Hx
<{^_^}> [nixpkgs] @Mic92 pushed 4 commits to master: https://git.io/fNxlU
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/8b4ed614c9e (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
<inquisitiv3> sphalerite: Is GHCi part of GHC?
<clever> inquisitiv3: yeah
<clever> exec "/nix/store/p372bagly14f82850qkzpjyimvw8ipqy-ghc-8.2.2/bin/ghc-8.2.2" --interactive "$@"
<clever> ghci is just a bash script that runs ghc --interactive
<inquisitiv3> clever: Aha, thanks for the explanation.
<inquisitiv3> Is derivates installed via nix-shell connected to that specific directory or command, or are they just added to the store and ready to be called via nix-shell?
<clever> inquisitiv3: they are just added to /nix/store/ and then inserted into env vars
<inquisitiv3> clever: So they'll be removed next time I clean /nix/store?
<clever> yeah, nix-collect-garbage will clean them up automatically
<clever> if the nix-shell is not open
<{^_^}> [nixpkgs] @markuskowa opened pull request #45077 → Add license meta tags → https://git.io/fNx8t
<inquisitiv3> Good to know. :)
graphene has quit [Remote host closed the connection]
<johnw> does anyone know why, when using haskellSrc2nix, I would be getting "fetchurl requires a hash for fixed-output derivation"?
graphene has joined #nixos
Maxdaman1us has joined #nixos
Maxdamantus has quit [Ping timeout: 240 seconds]
<bkchr[m]> Hi, does someone has experience with networkmanager and creating hotspots and how to setup dhcp?
<clever> 2 different ways ive configured dhcp servers, but ive not done hostapd on nixos yet
<bkchr[m]> Network manager directly supports creating a Hotspot
<clever> and i avoid network manager like the plague :P
<bkchr[m]> And as far as I googled it, it supports DHCP.
<bkchr[m]> But it does not seem to work in nixos.
<bkchr[m]> :D
<bkchr[m]> Yeah, for network manager there are bindings for rust, that is the reason why I'm using it ^^
<clever> but if you just set services = { hostapd.enable = true; dhcpd4.enable = true; }; then nixos will configure it all and you dont even need bindings
abueide has joined #nixos
Maxdaman1us has quit [Ping timeout: 240 seconds]
<bkchr[m]> I need to configure it on the fly and change back to connecting to another wifi, if requested
<clever> ah
<sphalerite> bkchr[m]: it works for me
<sphalerite> iirc
Maxdamantus has joined #nixos
Ericson2314 has joined #nixos
<bkchr[m]> > <@freenode_clever:matrix.org> ah
<{^_^}> error: syntax error, unexpected '<', at (string):169:1
<bkchr[m]> sphalerite: hmm. How is your networkmanager configured in nixos? Did you enable the integrated dnsmasq?
<bkchr[m]> sphalerite: hmm. How is your networkmanager configured in nixos? Did you enable the integrated dnsmasq?
<disasm> philippD: thanks! was looking at that last night and considered integrating it.
edef has quit [Remote host closed the connection]
<philippD> disasm: you will probably have to still tweak your theme though.
edef has joined #nixos
Maxdamantus has quit [Ping timeout: 272 seconds]
<sphalerite> bkchr[m]: I didn't explicitly enable it, but just setting up a "share connection" network makes it run
halfbit has joined #nixos
<bkchr[m]> Hmm okay.
<sphalerite> I might be remembering wrong
<bkchr[m]> sphalerite: no, you are correct. Tested it on my laptop and it works. Will need to test it via command line on my rpi3. Maybe the bindings for rust doing something wrong.
Guanin has joined #nixos
<disasm> sphalerite: I'm overriding prezto with https://github.com/NixOS/nixpkgs/blob/release-17.09/pkgs/shells/zsh-prezto/default.nix#L36 which gets me my zsh module working in the config again, but the [in nix-shell] that used to be in yellow above my prompt is still gone. I've diff'd the git commits for prezto, and I don't see anything in there native to nix, so I'm not sure how it worked before. Might spin up a
<disasm> 17.09 VM with my zsh config and see if I can reproduce the old behaviour and debug further.
Maxdamantus has joined #nixos
<disasm> I might have a laptop that's been powered off since January that might have it actually... /me goes digging through piles of cords/electronics...
<{^_^}> [nixpkgs] @Izorkin opened pull request #45078 → syslog-ng: fix reload service → https://git.io/fNxR3
<clever> disasm: one of my older laptops is still missing, ive been digging thru the piles on and off for 2 months and stil havent found it, lol
<{^_^}> [nixpkgs] @pikajude pushed to master « Revert "libvirt: fix dlopen("libjansson.so.4")" »: https://git.io/fNxRB
<disasm> yeah, I have a 2007 MBP in that same category somewhere in this house clever :) luckily I found this one already :)
<disasm> and it's running 17.09 :)
<clever> i cant even remember what distro is on the 2 missing ones
<clever> gentoo is most likely
worldofpeace_ has joined #nixos
Maxdamantus has quit [Ping timeout: 256 seconds]
ryanartecona has joined #nixos
worldofpeace has quit [Ping timeout: 244 seconds]
halfbit has quit [Quit: WeeChat 1.9.1]
<Izorkin> pikajude: how to need to fix work libvirtd? - https://github.com/NixOS/nixpkgs/pull/44566#issuecomment-412269173
graphene has quit [Remote host closed the connection]
iMatejC has quit [Remote host closed the connection]
<pikajude> Izorkin: volth's PR fixed that but broke a lot of other things, so i reverted it
<pikajude> you can cherry-pick that commit into your nixpkgs if you want
graphene has joined #nixos
iMatejC has joined #nixos
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/8b4ed614c9e (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
abueide has quit [Ping timeout: 256 seconds]
iMatejC has quit [Remote host closed the connection]
thetet has joined #nixos
iMatejC has joined #nixos
jD91mZM2 has quit [Quit: WeeChat 2.0]
alex`` has quit [Ping timeout: 260 seconds]
Maxdamantus has joined #nixos
alex`` has joined #nixos
Havvy has quit [Read error: Connection reset by peer]
worldofpeace_ has quit [Ping timeout: 272 seconds]
Ericson2314 has quit [Ping timeout: 244 seconds]
primeos has quit [Quit: WeeChat 1.4]
primeos has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #45044 → rivet: 2.7.0 -> 2.7.1 → https://git.io/fNAeN
<{^_^}> [nixpkgs] @xeji pushed 3 commits to master: https://git.io/fNxEh
Fare has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @tazjin opened pull request #45079 → kontemplate: 1.6.0 -> 1.7.0 → https://git.io/fNxue
<disasm> Izorkin: I don't have syslog-ng setup. Does MainPID match the contents of pidFile? If so, maybe --pidFile doesn't need to be specified at all?
<disasm> In general, I know kill -HUP $MainPID is considered bad practice because of asynchronous issues, but upstream unit files do that, so I don't see any reason not to go forward with your change.
<disasm> upstream for syslog-ng that is
<Izorkin> disasm: I can try another method
erickomoto has joined #nixos
mrottenkolber has left #nixos [#nixos]
<tazjin> Can I bribe someone with commit access with the promise of cookies and/or drinks at NixCon to take a look at https://github.com/NixOS/nixpkgs/pull/40399 (Datadog agent v6)? Would be great to get that included for 18.09
<{^_^}> #40399 (by rvl, 13 weeks ago, open): DataDog Agent v6
<disasm> Izorkin: it actually looks like HUP is best
<disasm> tazjin: reviewing
<disasm> lol, my coworker wrote it :)
doyougnu has joined #nixos
<doyougnu> hey all, I'm using plasma5 DE and I cannot connect to any public wifi hotspots. It looks like network manage connects no problem but I'm never prompted to sign in
<joepie91> doyougnu: does plasma have portal detection functionality at all?
<Izorkin> disasm: normal variant - "${pkgs.coreutils}/bin/kill -HUP `${pkgs.coreutils}/bin/cat ${pidFile}`" ?
<joepie91> (for me it's usually Firefox that yells at me about portals)
<tazjin> disasm: awesome, thank you! :)
<doyougnu> ive had firefox do that for me as well but it has never done that since I've migrated from Arch to NixOS
<joepie91> hm, it works for me
<joepie91> doyougnu: waitamoment, is this failing on a specific hotspot?
<joepie91> or everywhere?
<doyougnu> everywhere
<doyougnu> atleast I've tried 4 coffee shops
<joepie91> ah, hm, probably not the issue I'm thinking of then
<joepie91> should work
<{^_^}> [nixpkgs] @andir opened pull request #45080 → openssl_1_1_0: 1.1.0h -> 1.1.0i → https://git.io/fNxzE
<{^_^}> [nixpkgs] @andir opened pull request #45081 → openssl_1_0_2: 1.0.2o -> 1.0.2p → https://git.io/fNxzu
<{^_^}> [nixpkgs] @andir opened pull request #45082 → [18.03] openssl 1.0.2p & 1.1.0i → https://git.io/fNxzg
<joepie91> doyougnu: there's a really bizarre failure where NixOS doesn't work with the public wifi of NS (Dutch railways)
<joepie91> the DNS fails somehow
<joepie91> and I can't reproduce this on any other public networks, nor on any other distros
<joepie91> somewhere around nscd is where it breaks, because a direct DNS lookup works fine
<joepie91> but that's probably not the issue here
<joepie91> (that's also what breaks the portal page, since that relies on a DNS redirect)
<ivan> MTU issue?
<clever> joepie91: also check /etc/resolv.conf
<clever> joepie91: you can also just stop the nscd service
<{^_^}> [nixpkgs] @disassembler merged pull request #40399 → DataDog Agent v6 → https://git.io/vpSWo
<{^_^}> [nixpkgs] @disassembler pushed 9 commits to master: https://git.io/fNxz5
abueide has joined #nixos
<jtojnar> is there a way to override service file's execstart? I am getting `Service has more than one ExecStart= setting, which is only allowed for Type=oneshot services. Refusing.` when I use systemd.services.fwupd.serviceConfig.ExecStart
<infinisil> jtojnar: mkForce
<jtojnar> infinisil: I want to replace a value from .service file though
<infinisil> systemd.services.fwupd.serviceConfig.ExecStart = mkForce "..."
<infinisil> Like that?
bennofs has joined #nixos
Maxdamantus has quit [Ping timeout: 272 seconds]
Drakonis has joined #nixos
foldingcookie has joined #nixos
Maxdamantus has joined #nixos
<jtojnar> infinisil: is not mkforce just for the module system though? the service files are just linked, not loaded into the module system IIRC
<clever> jtojnar: the module system is usually used to generate the service files
<jtojnar> clever: well not when systemd.packages is used
<clever> jtojnar: which is why i never use that in modules i write
kyren has quit [Read error: Connection reset by peer]
<LnL> :p
kyren has joined #nixos
<infinisil> Only way I can think of to chance such files is to write an overlay for the package that's used there to change the file
<clever> or fix the module
<jtojnar> upstream service files are great for removing the crud
<jtojnar> the overlay will probably have to do for now
Maxdaman1us has joined #nixos
<jtojnar> hmm, the nixos module alredy writes to /etc/systemd/system/fwupd.service.d/overrides.conf
<jtojnar> maybe there is a way to specify merge method?
Maxdamantus has quit [Ping timeout: 244 seconds]
ryanartecona has quit [Quit: ryanartecona]
Ericson2314 has joined #nixos
<ldlework> infinisil: any idea why this doesn't work? nix-shell --pure -p "pkgs.emacsWithPackages (epkgs: with epkgs; [ dash ])"
<ldlework> emacs -q --eval "(require 'dash)"
<ldlework> it can't find dash
abueide has quit [Remote host closed the connection]
<infinisil> emacs uses a different execution path
abueide has joined #nixos
<ldlework> infinisil: what does the executable path have to do with it?
<infinisil> Not sure why there's more standard support for that, but I use these lines to make emacs find my binaries ^
<infinisil> Oh
<ldlework> dash is a elisp emacs package
<infinisil> Haha no idea how I got to that conclusion, never mind what I said
<infinisil> I somehow read "Can't find dash binary"
jperras has quit [Ping timeout: 272 seconds]
<infinisil> To make it get the packages
<ldlework> I see.
<ldlework> it worked
<infinisil> Neat
<ldlework> <3
<srhb> aaaahh.
<srhb> Derp :)
kiloreux has quit [Ping timeout: 265 seconds]
<jtojnar> clever, infinisil: apparently, I need to clear the attribute first (see the last paragraph of https://www.freedesktop.org/software/systemd/man/systemd.unit.html#id-1.14.3)
<jtojnar> The following works: `systemd.services.fwupd.serviceConfig.ExecStart = [ "" "${pkgs.fwupd}/libexec/fwupd/fwupd --verbose" ];`
<clever> thats weird
<ldlework> srhb: hehe
<{^_^}> [nixpkgs] @vcunat pushed 2 commits to master: https://git.io/fNxVa
<{^_^}> [nixpkgs] @typetetris opened pull request #45083 → systemd: added groups kvm, render → https://git.io/fNxVV
<srhb> ldlework: Well, glad you got it working :)
abueide has quit [Read error: Connection reset by peer]
<ldlework> Not fully yet, but getting closer and closer :)
<infinisil> Oh! I just had a great idea
<infinisil> somewhat
<infinisil> (I'll implement it first to see if it works though)
abueide has joined #nixos
<ldlework> infinisil: finish your last good idea!
<infinisil> Heh maybe I should
<{^_^}> [nixpkgs] @vcunat merged pull request #45080 → openssl_1_1_0: 1.1.0h -> 1.1.0i → https://git.io/fNxzE
<ldlework> plzz
<ldlework> it makes me so nervous
<{^_^}> [nixpkgs] @jtojnar opened pull request #45084 → fwupd: 1.1.0 → 1.1.1 → https://git.io/fNxwZ
<{^_^}> [nixpkgs] @vcunat pushed 23 commits to staging-18.03: https://git.io/fNxw2
<binaryphile> i'm curious, is there a way to test whether a package exists in the store and trigger a build if it doesn't from within a nix expression?
<clever> binaryphile: just refer to it, and nix will automatically build it
<binaryphile> ah
<binaryphile> well, that's easy
<ldlework> hehe
alex`` has quit [Quit: WeeChat 2.2]
alex`` has joined #nixos
Sonarpulse has joined #nixos
Ericson2314 has quit [Ping timeout: 244 seconds]
<erickomoto> Hi, I am trying to install nix on a server in which I do not have root access. I see that there is a section on the wiki that talks about this: https://nixos.wiki/wiki/Nix_Installation_Guide#Installing_without_root_permissions
worldofpeace_ has joined #nixos
<erickomoto> However, the nix 2.0's native method's instructions imply that I have nix-shell already installed. Can someone explain what is happening here? Does this mean that I build nix on a machine I control and then somehow install it on a machine I don't?
<sphalerite> erickomoto: you can build it from source and install it to ~/.local for example
Denommus has quit [Remote host closed the connection]
<sphalerite> erickomoto: also it's incorrect AFAIK, I don't think nix-shell supports chroot stores :x you can use nix run though
Denommus has joined #nixos
<erickomoto> Thanks sphalerite. Wow, I have been using nix for a while and never used `nix run`... Time to read some documentation.
<sphalerite> erickomoto: unfortunately there's not much documentation out there >.<
<sphalerite> erickomoto: basicaly `nix run --help` is all we have currently
<sphalerite> because the new `nix` command is still an unstable interface, nobody's bothered writing in-depth docs on it yet x)
inquisitiv3 has quit [Remote host closed the connection]
<erickomoto> Ok, so `nix run` is very similar to `nix-shell`. So what you are proposing is to install from source: `./configure --prefix=*prefix* --with-store-dir=*path*`. What does that have to do with `nix run` supporting chroot stores?
<ldlework> When I use nixops ssh, the term is all messed up, I can't backspace, journalctl is a shit show, etc
<ldlework> how do I fix that?
Havvy has joined #nixos
<{^_^}> [nixpkgs] @megheaiulian opened pull request #45085 → gitkraken: 3.6.6 -> 4.0.1 → https://git.io/fNxoD
abueide has quit [Ping timeout: 265 seconds]
<erickomoto> And sphalerite, I messed up saying that the instructions imply that I have nix-shell already, they explicitly mention `nix run` I just kind of assumed it was `nix-shell` haha.
orbekk has quit [Quit: WeeChat 2.0]
gleber_ has quit [Ping timeout: 255 seconds]
<sphalerite> erickomoto: no, without the --with-store-dir
gleber_ has joined #nixos
<erickomoto> But I don't have sudo, so then I shouldn't be able to create the directory `/nix`
<sphalerite> erickomoto: they mention `nix run` now because I just edited the page ;)
<sphalerite> erickomoto: yes, but that's what you use the --store flag for
Sonarpulse has quit [Ping timeout: 240 seconds]
<sphalerite> at runtime
<sphalerite> ldlework: which terminal do you use?
<erickomoto> Yes, but then if I use nix run that means that I already have nix installed?
<ldlework> sphalerite: kitty / xterm
Henson has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<sphalerite> erickomoto: yes, you install from source using ./configure --prefix=$HOME/nix-root && make && make install
<{^_^}> [nixpkgs] @andir opened pull request #45086 → libxml2: fix CVE-2018-14567 & CVE-2018-14404 → https://git.io/fNxKv
<{^_^}> [nixpkgs] @andir opened pull request #45087 → [18.03] libxml2: fix CVE-2018-14567 & CVE-2018-14404 & CVE-2018-9251 → https://git.io/fNxKf
<ldlework> sphalerite: OK export TERM=xterm worked
<erickomoto> Aaah, ok... interesting. Thanks spahelrite!
<erickomoto> sphalerite*
<sphalerite> erickomoto: then you use ~/nix-root/bin/nix run --store ~ -f channel:nixos-unstable hello
<sphalerite> ldlework: mumble mumble stupid hipster terminals with their fancy definitions not included in ncurses
<sphalerite> :p
<ldlework> sphalerite: i've always wanted my terminal emulator to be GPU accelerated
<sphalerite> ldlework: yeah but does it really need its own $TERM?
<ldlework> lol probably not
__monty__ has quit [Quit: leaving]
<erickomoto> Also, apparently my admin is ok installing nix but he wants something similar to `sudo apt-get install nix`. I am assuming this is not possible, right?
<erickomoto> Is there something in apt that would prevent it to install another package manager, or is it that people haven't been interested (people are busy with something else) in packaging nix in apt? (This is just me being curious, I can talk to who controls the admin account and see if I can convince them to install it regardless of the installation method)
<sphalerite> erickomoto: nix#2014 nix#2345 there have been multiple initiatives to package nix for debian which have been held up by copyright concerns
<{^_^}> https://github.com/NixOS/nix/issues/2014 (by infinity0, 20 weeks ago, open): linenoise embeds non-free ConvertUTF{.cpp,.h}
<{^_^}> https://github.com/NixOS/nix/issues/2345 (by thkoch2001, 4 days ago, open): Please list copyright holders
<emily> there's no .deb I don't think, but there are source and binary tarballs of various kinds
<sphalerite> there have also been some mailing list discussions iirc about debian where debian folks were all "zomg no! muh FHS" (paraphrased)
vidbina_ has joined #nixos
<sphalerite> debian mailing list discussions about nix*
<erickomoto> Oh wow, this is really interesting! Thanks sphalerite!
orbekk has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed commit from @andir to staging-18.03 « libxml2: fix CVE-2018-14567 & CVE-2018-14404 & CVE-2018-9251 »: https://git.io/fNx6C
<{^_^}> [nixpkgs] @vcunat merged pull request #45087 → [18.03] libxml2: fix CVE-2018-14567 & CVE-2018-14404 & CVE-2018-9251 → https://git.io/fNxKf
<MichaelRaskin> I think there are Hydra-built deb-packages of Nix, but these are not official Debian/Ubuntu packages
<clever> erickomoto: due to how the install script works, the admin can simply `mkdir /nix ; chown $YOU /nix` and thats all he has to do
<LnL> sphalerit: lol
<clever> erickomoto: the curl | sh script can then take it from there, and never need sudo
<erickomoto> clever: I know! I told them exactly that, but they replied asking if there is an ubuntu package.
mayhewluke has quit [Ping timeout: 272 seconds]
<clever> ah
<clever> erickomoto: it would probably only take 5 minutes to whip up a .deb that just does exactly that, lol
<clever> (also the reason you shouldnt install a random .deb file without trusting the source)
<erickomoto> Haha. I guess. Thanks clever. I'm sure I'll be able to install it soon, but I also find this whole discussion really worthwhile.
mayhewluke has joined #nixos
<erickomoto> Like, if I installed it through `mkdir /nix && chown $YOU /nix` would nix still be able to be configured as multiuser? (probably not?) but then I guess it would be possible to make the build users and just set permissions and I would be able to manage the nix store even without being root?
<infinisil> Awww yeahhhh
<infinisil> (it works)
<clever> erickomoto: that would be a single-user setup, so all builds are just ran as whoever started nix-build
<infinisil> (I'll still not tell what it is though, yet)
<clever> erickomoto: multi-user requires nix-daemon to be running as root, so it can switch to the chosen users
<sphalerite> infinisil: then talking about it at all is just kind of obnoxious...
<infinisil> Yeah sorry
<sphalerite> :p
<infinisil> I'll share soon!
<erickomoto> Makes sense. Thanks clever! I just wasn't too sure if it was possible.
<erickomoto> I think basically my boss is ok with installing nix, but he doesn't want to manage it himself and at the same time he doesn't want to give me sudo access. (which is totally understandable)
<erickomoto> But he also would like it to be set up as multiuser?
<clever> lol
<clever> multi-user requires somebody with root to administer it every now and then
<sphalerite> multi-user is definitely better, because it allows using the build sandbox
<clever> yeah
<erickomoto> And we do have multiple users working on that server. Alright, thanks clever and sphalerite.
<MichaelRaskin> Well, there is also user-numespaces…
<MichaelRaskin> Could try having Nix is no-external-root container
<clever> MichaelRaskin: debian disables those by default
<sphalerite> MichaelRaskin: yeah but it's not used for build sandboxing yet
<sphalerite> clever: really? I don't think so…
<clever> sphalerite: ive run into problems deploying things with nix-bundle because of that
<MichaelRaskin> Yes, I think Debian does disable
<clever> you need root to use namespaces, or flip a sysctl
<MichaelRaskin> Well, with
<MichaelRaskin> non-root containers it might believe it is root and try using sandbox
<MichaelRaskin> Not sure what happens on what kernel versions
<clever> MichaelRaskin: and nix-bundle also fails inside a container made by nix-bundle
<clever> which makes it a pain in the ass to run a nix-bundle based installer/updater, from within a nix-bundle based app
kiloreux has joined #nixos
<sphalerite> hm, how hard would it be to make a tool that allows you to enter an environment very similar to the build environment for a given drv?
<clever> the problem, is that a mount namespace by non-root, requires a user namespace
<sphalerite> including build sandboxing/
<clever> so the uid's within the container are fake and have no real power
<clever> and that includes no power to create another namespace
erickomoto has quit [Ping timeout: 265 seconds]
<clever> sphalerite: nix mounts a lot of things for its sandbox, so you would need some form of API (maybe a json file) detailing what you want mounted where
<sphalerite> clever: I was thinking literally just nab the sandboxing code from nix
emacsomancer has joined #nixos
<sphalerite> the drv already contains all the information you need, no?
<clever> plus nix.conf flags
<clever> nix.conf can inject impure things into the sandbox
<sphalerite> oh yeah
<sphalerite> seems like something that could be part of nix really
vidbina_ has quit [Ping timeout: 244 seconds]
<sphalerite> would be really useful, even if it's root-only
Maxdaman1us has quit [Ping timeout: 244 seconds]
kiloreux has quit [Ping timeout: 260 seconds]
Maxdamantus has joined #nixos
kyren has quit [Ping timeout: 260 seconds]
hlolli has joined #nixos
kyren has joined #nixos
roconnor has joined #nixos
<roconnor> Hi, when I'm in a haskell.env via a nix-shell the COLLECT_GCC_OPTIONS= inlcude things like -O2 - D _FORTIFY_SOURCE=2, etc. Where do these options come from?
Fare has joined #nixos
<hlolli> someone here that has time to review my PR ? https://github.com/NixOS/nixpkgs/pull/44076
<{^_^}> #44076 (by hlolli, 3 weeks ago, open): lumo: init at 1.9.0-alpha
Drakonis has quit [Remote host closed the connection]
<infinisil> sphalerite: ldlework: I present to you
<infinisil> Namely a function you can call like `deprecate "2018-08-20" "foo is deprecated" "foo"`
<infinisil> After 1 month after the given date, it outputs a warning when evaluated
<infinisil> After 2 months after the given date, it throws the warning message when evaluated (refusing to evaluate)
<infinisil> ISNT THAT COOL
kiloreux has joined #nixos
thetet has quit [Quit: Leaving.]
<sphalerite> infinisil: hahaha
<sphalerite> no :p
<infinisil> It tots is
<infinisil> I'm not sure how possible it would be to get into nixpkgs
<LnL> impurities!
<emily> mmmm, all of the pure functional flavour I love from Nix
<ldlework> infinisil: haha
<{^_^}> [nixpkgs] @frontsideair opened pull request #45089 → flow: 0.77.0 -> 0.78.0 → https://git.io/fNxXd
<sphalerite> infinisil: I'd oppose it FWIW
<{^_^}> [cabal2nix] @kquick opened pull request #371 → Output fetchSubmodules setting in src directive → https://git.io/fNxXj
<infinisil> This would finally get us a solid deprecation policy for nixpkgs
<ldlework> sphalerite: why's that
<sphalerite> Deprecations should be by versions, not updates. This breaks the whole "reproduce a configuration from 2 years ago" ability
<samueldr> then it's not possible to go back in time and de-deprecate it...
<infinisil> Oh good point
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sphalerite> err versions, not dates
<samueldr> infinisil: more to the point, deprecateBy 18.09 may be better
<infinisil> Oh well, I like the concept
<infinisil> Yeah that's probably better
<sphalerite> yes that sounds more sensible
<infinisil> But I *did* implement an iso8061 date to unix epoch converted which was fun :)
<LnL> using something similar to stateVersion would make sense I think
<samueldr> a friend version would be interesting, but break nixpkgs/nixos barrier: deprecateByStateVersion 18.09
<sphalerite> infinisil: so would you say jwz was in the right in the whole debian xscreensaver timebomb debacle?
Denommus has quit [Remote host closed the connection]
jiaew3 has joined #nixos
<sphalerite> samueldr: I'm not sure I get the point in that..?
<infinisil> sphalerite: No idea what that debacle was about
<sphalerite> since stateVersion shouldn't change
<samueldr> sphalerite: exactly
<LnL> sphalerite: lib.nixpkgsVersion
<LnL> samueldr: ^
<samueldr> if you're using something at stateVersion 17.09, that "thing" using the deprecated version could still make use of it
<samueldr> (though, that could be overriden in another manner, where you would access the deprecated thing forcefully)
<samueldr> (so it's not inherently useful)
<{^_^}> #44165 (by LnL7, 2 weeks ago, open): lib: remove deprecation warning for nixpkgsVersion
<jiaew3> I am trying to build a custom package that uses cmake. I have put the dependencies in the buildInputs but cmake isn't able to find them. any tips?
<sphalerite> infinisil: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=819703 for the story from not-just-jwz's perspective
Ridout has joined #nixos
<LnL> nixpkgsVersion itself is deprecated but the alternative doesn't exist in 18.03 -_-
<samueldr> ↗️ jwz's deprecation in #nixos-chat please, while others can focus on nix-related question (ike jiaew3's)
<infinisil> sphalerite: Haha nice
<sphalerite> samueldr: yes good idea
<sphalerite> jiaew3: which dependencies are they? Does the package ship its own Find*.cmake scripts for them?
<samueldr> LnL: for compat reasons, this is something I think already happend; backporting a new library function
<samueldr> I would need to find a precendent though, but if it fast-tracks use of it; LEGIT uses it's probably relevant
<{^_^}> [nixpkgs] @andir opened pull request #45090 → samba: 4.7.6 -> 4.7.9 → https://git.io/fNx1w
<{^_^}> [nixpkgs] @andir opened pull request #45091 → samba: 4.7.6 -> 4.7.9 → https://git.io/fNx1r
alex`` has quit [Quit: WeeChat 2.2]
alex`` has joined #nixos
<jiaew3> sphalerite: they are tetgen and assimp. the package uses e.g. findpackage(tetgen) to find them
<LnL> samueldr: nope, error: attribute 'version' missing
<samueldr> LnL: I don't mean that it's been backported, but backporting this should be considered
<samueldr> especially if there's a deprecation of the other method
<samueldr> it could probably be argued
<sphalerite> jiaew3: right, but cmake doesn't ship a FindTetgen.cmake, so the thing you're building must have it
<jiaew3> sphalerite: isn't find_package a cmake command?
<roconnor> oh, stdenv adds a bunch of GCC flags.
<sphalerite> jiaew3: yes, it is. But under the hood it calls a Find*.cmake module
jperras has joined #nixos
<sphalerite> I think it also tries *Config.cmake or something
<{^_^}> [nixpkgs] @stephengroat opened pull request #45092 → terragrunt: 0.16.5 -> 0.16.6 → https://git.io/fNxMh
<jiaew3> sphalerite: ok you are right, tha package has these modules.
<LnL> samueldr: and I'm pretty sure I use it in nix-darwin so I'd have to implement fallbacks if I don't want to drop support for random 18.03 revisions
johnw has quit [Ping timeout: 240 seconds]
<sphalerite> jiaew3: depending on how well-written they are you may need to provide extra hints or patch them
<samueldr> LnL: right, other older versions would be problematic...
justan0theruser has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @andir opened pull request #45093 → libmspack: 0.6alpha -> 0.7.1alpha → https://git.io/fNxyc
<{^_^}> [nixpkgs] @andir opened pull request #45094 → [18.03] libmspack: 0.6alpha -> 0.7.1alpha → https://git.io/fNxyC
<samueldr> LnL: do you have other past deprecations in mind? I'd like to see the precedent of how it was handled
<LnL> from my point of view as a user of nixpkgs I shouldn't assume anything added after the 18.03 tag is available
<samueldr> and you're right
<jiaew3> sphalerite: I see, seems like too advanced for me. do you know of any examples in nixpkgs I can have a look at?
<sphalerite> no, sorry
<sphalerite> but if you can show me the find scripts I can maybe help
<ldlework> I cloned nixpkgs and merged in a changed contained in someone's fork. How do I switch my nixos/nixops over to my new nixpkgs fork if I'm currently using whatever it is by default (nix-channels I think)
<LnL> samueldr: firstly there are special cases like this where it's basically the only solution https://github.com/NixOS/nixpkgs/blob/d2b08c432cc9ec35691ab27085dfc7c6f404448b/pkgs/servers/plex/default.nix#L7
<samueldr> LnL: genuine question here, `lib.version or lib.nixpkgsVersion` that won't trigger the warning, right? what's the issue with using this meanwhile?
<samueldr> if at 18.09 it's a warning, and then removed at 19.03 (still genuine) what are the issues?
<samueldr> I'm possibly overlooking something obvious
<LnL> samueldr: for eg. renames of packages we have aliases that stay around for a while before they are deprecated
<LnL> samueldr: it's a warning I can't solve
<jiaew3> sphalerite: they are here https://git.io/fNxSI . thanks for your help by the way
<sphalerite> jiaew3: right so the tetgen one looks at the TETGEN_PATH environment variable
<samueldr> LnL: still genuine: why can't it be solved? (I'm beginning to think I'm really overlooking something basic here)
<sphalerite> jiaew3: so if you just set `TETGEN_PATH = tetgen;` in the derivation it should be able to find it
<gchristensen> samueldr maybe you have a solution idea?
<LnL> samueldr: 'solving' the warning means I break 18.03
<samueldr> LnL: `lib.version or lib.nixpkgsVersion` breaks 18.03?
erickomoto has joined #nixos
johnw has joined #nixos
<samueldr> nix-repl> lib.version or lib.nixpkgsVersion # "18.03.git.d72c3e8bb64"
<samueldr> as I said: maybe overlooking something basic
<sphalerite> jiaew3: for assimp, it looks like the find script doesn't provide a useful input thing like that so you'll probably need to set the paths manually
<gchristensen> infinisil: eelco would -1 that
<infinisil> gchristensen: Most certainly :P
<gchristensen> a version of nixpkgs should always eval the same for reproducible software purposes
<infinisil> gchristensen: Oh I haven't introduced my master plan here yet
<infinisil> How about that: We add a file nixpkgs/time.nix which contains "builtins.currentTime" in master. But when a release gets forked off, we change it to "1523656456" (whatever the time was at that point). To get the time we always use that file then
<sphalerite> jiaew3: something like `cmakeFlags = ["-Dassimp_INCLUDE_DIRS=${assimp}/include" "-Dassimp_LIBRARIES=${assimp}/lib/libassimp.so"];`
<LnL> samueldr: well yes, but that's throwing the ball back to users, I could not use nixpkgsVersion and implement it myself
<sphalerite> jiaew3: not 100% sure of it, probably takes some additional fiddling
<infinisil> gchristensen: I am overflowing with good ideas today eh
<LnL> samueldr: in general for deprecations there should be a clear path forwards before spamming people to change stuff IMHO
<samueldr> LnL: at a point the ball *has* to be thrown, and the earlier the warning exists, the earlier it's possible to actually deprecate
<samueldr> though I can see that the timeline maybe is short
Ariakenom has quit [Quit: Leaving]
<jiaew3> sphalerite thanks, I 'll give it a try.
<samueldr> right how we have 18.03 → 18.09 that both adds the new property AND deprecates the old
<LnL> samueldr: sure this is fine on master post 18.09
<infinisil> samueldr: What property are you talking about?
<samueldr> > lib.version or lib.nixpkgsVersion
<{^_^}> "18.09pre-git"
<sphalerite> #43266 I was hoping we could deprecate it with a warning for 18.09 and remove it in 19.03 but it doesn't look like that will happen
<{^_^}> https://github.com/NixOS/nixpkgs/issues/43266 (by lheckemann, 5 weeks ago, open): Deprecate packageOverrides?
<samueldr> LnL: though, *other* than documentation, I feel there's still something that needs to be done proactively first and I don't know what
<samueldr> because the warning *will* cause issues whenever it will be added to nixpkgs (even if not for you)
hamishmack has joined #nixos
<gchristensen> what are we talking about, samueldr?
<samueldr> frankly, I'm not sure anymore
<LnL> just deprecating stuff in general
<gchristensen> ahhh nice
<samueldr> and specifically this right now: https://github.com/NixOS/nixpkgs/pull/44165/files
doyougnu has quit [Ping timeout: 240 seconds]
justan0theruser has joined #nixos
<samueldr> the warning **will** cause annoyance at a point, I'm in the band-aid camp, I'd prefer two full revisions of warnings than one without and one with; so timeline "add+warning, warning, deprecate" than "add, warning, deprecate"; where a comma mean a new nixpkgs release
<samueldr> but that's not how reality works
<gchristensen> by deprecate do you mean delete?
<samueldr> yes, sorry
<samueldr> "add, warning, warning, delete" is probably a better overall timeline
<LnL> it's a rename in this case but same goes for removing something yes
<elvishjerricco> Is there a way to force `nix build` to use a `--builders` instead of a local machine?
<sphalerite> elvishjerricco: --max-jobs 0
<samueldr> what I know won't exist, is "add+pre-warn, warn, delete", where pre-warn is an opt-in so you don't get one revision where deprecated stuff won't warn :/
<elvishjerricco> sphalerite: I thought so, but it didn't do the trick. At least for IFD, it did not work
<sphalerite> oh hm idk about IFD
<Dezgeg> I like this "add, warning, deprecate" done over three (or more) releases
<elvishjerricco> I guess I'm not really trying to DO a build remotely. I'm just hoping to get my paths from a remote machine without having to know which paths to copy
<elvishjerricco> So I tried using `--substituters`
<Dezgeg> but honestly, doing that for just this lib.nixpkgsVersion vs lib.version sounds rather pointless, maybe that should also just be reverted directly
<elvishjerricco> But I'm getting "cannot open connection to remote store'...': writing to file: Broken pipe"
<samueldr> Dezgeg: yeah, I feel this one has been singled-out, but it's a general issue
<samueldr> and that *is* a pointless rename
<elvishjerricco> I checked journalctl and saw: `error: executing 'nix-daemon --stdio' on '...': No such file or directory`
* ldlework wonders why nixops is sending X server related closures to his server
<gchristensen> or not reverted
<LnL> yeah, I'm not convinced by the rename either but that's a different topic :)
<gchristensen> it isn't a big deal and doesn't break anything, and is objectively a better name
justan0theruser has quit [Read error: Connection reset by peer]
<ldlework> my server definitely needs xscreensaver
<gchristensen> nix why-depends :)
<ldlework> sophos........> error: preallocating file of 1343 bytes: No space left on device
<ldlework> great
<ldlework> lol
<elvishjerricco> ldlework: Lots of programs ship with support for X stuff, which causes Nix to link them together.
<samueldr> any idea about implementing opt-in deprecation warnings?
<elvishjerricco> e.g. GNUPG depends on pinentry, which by default supports a GTK prompt
bennofs has quit [Ping timeout: 255 seconds]
<samueldr> (for the "add+pre-warn, warn, delete "timeline
<LnL> gchristensen: is it? not that it's a thing but what should this be (import <darwin> {}).lib.version
<Dezgeg> I guess the real problem was this system.nixosVersion -> system.nixos.version rename pre-18.03... if that just had been reverted, lots of problems would have been avoided :P
<ldlework> how do I tell nix to delete everything it isn't using to free up the disk again?
<sphalerite> ldlework: nix-store --gc
erickomoto has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sphalerite> you might also want to remove old profile generations with nix-collect-garbage --delete-older-than
<LnL> samueldr: yeah the main problem is how do we avoid forgetting about the deprecation, there is .version which could be used similar to stateVersion but for warnings
<ldlework> heh
<ldlework> error (ignored): aborting transaction: SQL logic error (in '/nix/var/nix/db/db.sqlite')
<ldlework> error: committing transaction: database or disk is full (in '/nix/var/nix/db/db.sqlite')
<ldlework> worked the second time
<samueldr> LnL: I think we just circled back to the seed for this discussion
<samueldr> (which is good)
<LnL> so using infinisil's idea but with .version would allow eg. foo = deprecate "18.09" foo;
<LnL> that doesn't have the builtins.currentTime issue and the file gets updated with releases already so there's nothing new needed there
<samueldr> LnL: possibly, if we maths-up the 18.09 +6 months for the warning, and add a nixpkgs.config for opting in?
<infinisil> LnL: error: infinite recursion encountered, at (string):1:56
<{^_^}> [nixpkgs] @jtojnar pushed to master « evilvte: mark as insecure »: https://git.io/fNxH7
<LnL> infinisil: don't use rec
<LnL> samueldr: yeah, we could add a config option to enable all warnings regardless of the current versioon
sanscoeu_ has joined #nixos
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
sanscoeur has quit [Ping timeout: 240 seconds]
sanscoeu_ has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @timokau merged pull request #45067 → eclib: 20180710 -> 20180815 → https://git.io/fNA7c
<{^_^}> [nixpkgs] @timokau pushed 2 commits to master: https://git.io/fNxQu
jiaew3 has quit [Quit: Page closed]
philippD has joined #nixos
kyren has quit [Ping timeout: 265 seconds]
alex`` has quit [Ping timeout: 272 seconds]
kyren has joined #nixos
justan0theruser has joined #nixos
kyren has quit [Ping timeout: 265 seconds]
init_6 has joined #nixos
kyren has joined #nixos
hlolli has quit [Read error: Connection reset by peer]
hlolli_ has joined #nixos
<{^_^}> [nixos-hardware] @rehno-lindeque opened pull request #72 → apple/macbookpro/11-5: Add to tests → https://git.io/fNx70
hlolli_ has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @jtojnar merged pull request #45084 → fwupd: 1.1.0 → 1.1.1 → https://git.io/fNxwZ
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/fNx7S
Fare has quit [Ping timeout: 272 seconds]
graphene has quit [Remote host closed the connection]
rprije has joined #nixos
graphene has joined #nixos
<{^_^}> [nixpkgs] @timokau merged pull request #45055 → slack-cli: init at 0.18.0 → https://git.io/fNAVI
<{^_^}> [nixpkgs] @timokau pushed 10 commits to master: https://git.io/fNx5k
goibhniu has quit [Ping timeout: 268 seconds]
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
erasmas has quit [Quit: leaving]
erickomoto has joined #nixos
etrepum has joined #nixos
worldofpeace_ has quit [Quit: worldofpeace_]
kyren has joined #nixos
<erickomoto> Hey, hello again. Quick question: I am looking at the source for the installation script. It seems that only darwin installs are by default in user mode, however, there is a install-multi-user script available as well. Why is multiuser not the default for uname -s = Linux ?
ericsagnes has quit [Ping timeout: 260 seconds]
<erickomoto> correction: darwin installs are by default in *multi*user mode
jonreeve has joined #nixos
<erickomoto> I see why now. I just read the source. There systemd needs to be available?
<erickomoto> Here in case anyone else is interested: https://github.com/NixOS/nix/blob/master/scripts/install-multi-user.sh#L757
<clever> erickomoto: part of it, is that darwin is a lot more predictable then the mess of every linux distro under the sun
<clever> erickomoto: so its simpler to do service level stuff with launchctl on darwin
<clever> but with linux, is it init.d?, systemd?, something else?
<erickomoto> Makes sense! Thanks clever!
<clever> and even if you have systemd, it may work differently on some distros
worldofpeace has joined #nixos
<clever> android vs ios have similar problems, the flexibility to do anything, also allows people to do anything, which then breaks things, lol
<kandinski> I'm seeing an error "cannot download tiff_4.0.9-5.debian.tar.xz from any mirror" when trying to install signal-desktop.
carlosdagos has joined #nixos
<erickomoto> > the flexibility to do anything, also allows people to do anything, which then breaks things, lol
<{^_^}> error: syntax error, unexpected ',', expecting ')', at (string):169:31
<erickomoto> Nice quote
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kandinski> is there an obvious way I can have nix-env point to a locally downloaded copy?
doyougnu has joined #nixos