gchristensen changed the topic of #nixos to: NixOS stable: 18.09, beta: 19.03 https://discourse.nixos.org/t/nixos-19-03-feature-freeze/1950 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon ... nixcon videos: https://tinyurl.com/nixcon2018
<aanderse> Izorkin: i'll try and take a look
biopandemic has quit [Read error: Connection reset by peer]
<gchristensen> noonien: what does your fetcher do?
copumpkin has quit [Read error: Connection reset by peer]
_deepfire has quit [Ping timeout: 245 seconds]
Lisanna has quit [Remote host closed the connection]
Fare has quit [Ping timeout: 255 seconds]
Lisanna has joined #nixos
jluttine has quit [Ping timeout: 245 seconds]
copumpkin has joined #nixos
<yl> (planning to merge)
<{^_^}> [nixpkgs] @kalbasit opened pull request #56927 → buildGoPackage: update Go to version 1.12 → https://git.io/fhpU2
ddellacosta has quit [Ping timeout: 240 seconds]
ddellacosta has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg opened pull request #56928 → rubber: fix build → https://git.io/fhpUr
<{^_^}> [nixpkgs] @peterhoeg merged pull request #56928 → rubber: fix build → https://git.io/fhpUr
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/fhpUo
kvda has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @worldofpeace pushed to master « pantheon.wingpanel-indicator-session: 2.2.2 -> 2.2.3 »: https://git.io/fhpUK
<noonien> gchristensen: i provide it with the github repo and a list of files, and it downloads all files
<noonien> i could do this with a list of fetchurls, but i didn't want to create store entry for each file
<gchristensen> noonien: are you fetching a subdirectory?
<noonien> in most cases, yes, but it might be files in multiple directories
<gchristensen> can you link me something specific
<noonien> gchristensen: http://vpaste.net/Bxjj5
<{^_^}> [nixpkgs] @worldofpeace pushed to release-19.03 « pantheon.wingpanel-indicator-session: 2.2.2 -> 2.2.3 »: https://git.io/fhpUX
yl has quit [Ping timeout: 240 seconds]
<gchristensen> yikes
<noonien> i don't think there's another way of doing it, when downloading the github repo as an archive takes 2GB(which is what the current nerdfonts package does)
<{^_^}> [nixpkgs] @stephengroat opened pull request #56929 → gcompris: fix build → https://git.io/fhpU1
<noonien> (this is my first derivation, i read some packages in nixpkgs, but i've yet to get a feel of what idiomatic nix is, or current usage guides)
<infinisil> tilpner: Already implemented and deployed :D
<gchristensen> noonien: `svn co https://github.com/ryanoasis/nerd-fonts/trunk/src` gets me 220MB after I delete ./src/.svn
<infinisil> > :p let foo = pkgs.sl // { bar = pkgs.gti; }; in [ foo.name foo.bar.name ]
<{^_^}> [ "sl-5.02" "gti-1.6.1" ]
<infinisil> (It wasn't very hard admittedly, my codebase was pretty well set up for that change, https://github.com/Infinisil/nixbot/commit/81dcc4efafe5ca296198b06dd1243b81b730711c )
<noonien> gchristensen: so <220MB downloaded?
<gchristensen> I believe so, yeah
<noonien> NICE! didn't know scn could do that
<noonien> hmm, can i define a specific revision?
<gchristensen> yeah
<gchristensen> look at fetchsvn or fetchsubversion
<noonien> cool, i'll look into it
<noonien> i still need stuff from different directories, which results in 2 nix store entries, but that should be ok
phreedom has quit [Ping timeout: 256 seconds]
phreedom has joined #nixos
mbrgm_ has joined #nixos
mbrgm has quit [Ping timeout: 258 seconds]
mbrgm_ is now known as mbrgm
nDuff has quit [Quit: ...]
<{^_^}> [nixpkgs] @carlosdagos opened pull request #56930 → sshuttle: 0.78.4 -> 0.78.5 → https://git.io/fhpU7
<{^_^}> [nixpkgs] @worldofpeace pushed to master « quilter: 1.7.0 -> 1.7.5 »: https://git.io/fhpUd
goibhniu has quit [Ping timeout: 250 seconds]
<yl[m]> is it safe to merge master into staging?
<gchristensen> I usually let someone else handle everything about staging
erictapen has quit [Ping timeout: 255 seconds]
<tobiasBora> So nobody knows what I should put in the license for "custom" licenses like here: https://bitbucket.org/mahlon/shelldap/src/22f52658f883e264ad8fa7337761af8da6d59eab/shelldap?at=default&fileviewer=file-view-default ?
<{^_^}> [nixpkgs] @kalbasit merged pull request #56924 → jx: init at 1.3.955 → https://git.io/fhpJw
<{^_^}> [nixpkgs] @kalbasit pushed to master « jx: init at 1.3.955 (#56924) »: https://git.io/fhpTT
<infinisil> tobiasBora: You can define the license inline
<gchristensen> tobiasBora: that is a standard 3-clause BSD https://opensource.org/licenses/BSD-3-Clause
<tobiasBora> gchristensen: oh my bad!
<tobiasBora> thanks
<gchristensen> no worries :)
<gchristensen> I always have to google some terms from it to try and find what it is
<tobiasBora> infinisil: by curiosity you need to put everything for custom license?
<gchristensen> the first legaly sentence is usually sufficient - "Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:"
<infinisil> If only there was a way to identify licenses based on a simple identifier..
<infinisil> Oh wait, there is
<tobiasBora> gchristensen: yes true, I was so used to gpl/mit stat state at the very begining what they are that I though every licence would do the same
<{^_^}> [nixpkgs] @kalbasit merged pull request #56567 → datadog-agent: update go packages and sub-packages → https://git.io/fhAOp
<{^_^}> [nixpkgs] @kalbasit pushed 6 commits to master: https://git.io/fhpTL
<gchristensen> don't have to sell me on it
erictapen has joined #nixos
<Church-> Heh
<Church-> Man I haven't touched NixOS in like almost three weeks
<Church-> I miss it and my server in a laptop
<yl[m]> gchristensen: I want to rebase #56927 over it, but this PR depends on go_1_12 that's currently not in staging
<{^_^}> https://github.com/NixOS/nixpkgs/pull/56927 (by kalbasit, 54 minutes ago, open): buildGoPackage: update Go to version 1.12
<yl[m]> gchristensen: who's the 'someone else' in this case :-)
<gchristensen> I defer everything to vcunat, maybe samueldr has additional information
<yl[m]> I'll reach out to them later tonight when they come back online
<yl[m]> unless someone here can answer that :-)
* samueldr has never followed the staging bits
<yl[m]> samueldr: you should be asleep!
<yl[m]> lol
<samueldr> why?
witchof0x20 has quit [Quit: WeeChat 2.2]
<samueldr> it's only 20:06 here!
<samueldr> I'm not silly^W on the other side of the ocean
<yl[m]> samueldr: oh, sorry I thought you're on EU time zone
slack1256 has joined #nixos
<samueldr> nah, only part of the main francophone population of north america
witchof0x20 has joined #nixos
<yl[m]> ha
<yl[m]> `samueldr is connected via barjavel.freenode.net (Paris, FR, EU)`
<yl[m]> VPN?
<samueldr> [20:10:05] * [Whois] yl[m] is online via sinisalo.freenode.net (SE, EU)
<samueldr> VPN?
<gchristensen> I think the routing is basically random
<yl[m]> :O
<samueldr> when connecting to irc.freenode.net, yeah
<yl[m]> lol
<yl[m]> I'm using irccloud, I wonder if their servers are closer to EU or if it's totally random
<samueldr> and AFAIK no IRC network tries to geographically distribute
<samueldr> I bet on random
<yl[m]> that's pretty weird
<yl[m]> seems like it
<samueldr> it's not really sensitive to latency
<yl[m]> true
Rusty1 has joined #nixos
<samueldr> most implementation will wait ~30s of silence to ask "are you still there?" and waits for ~120s IIRC (times may be wrong, but it's in the couple minutes range)
<yl[m]> what timezone is vcunat on?
jluttine has joined #nixos
<gchristensen> CET
<samueldr> pretty sure it's one of +1 or +2
<noonien> gchristensen: sadly, fetchsvn can't fetch a specific git revision, i'll try using a svn version number
<noonien> sadly, they're not really the same thing
<gchristensen> they're not, that is true
<tobiasBora> I just want to add shelldap, should I also add a maintainer (me?) to it, or can I just let is as it?
<tobiasBora> (few packages actually have a maintainer in this perl list)
<yl[m]> tobiasBora: add yourself as a maintainer if you're willing to do so
<yl[m]> that helps ofborg request reviews from you
<gchristensen> and please do maintain it
<tobiasBora> well the point is that I don't really know this package, but it seems pretty stable anyway so I guess I can try...
<gchristensen> one option is to package shelldap in an overlay and keep it local, or shared on NUR -- it doesn't have to go in to nixpkgs specifically
<aanderse> shelldap... that looks like a useful tool
* aanderse takes note
black-brick has joined #nixos
<black-brick> Hi all! I have some problem with my boot screen resolution. I use systemd-boot btw
<aanderse> black-brick: maybe a few more details?
<noonien> can a derivations have multiple sources?
<black-brick> aanderse: yea sorry that was pretty vague. Well it's too zoomed in, so the boot entries dont show up entirely and their name aren't showing all the way. Maybe a picture would help?
<aanderse> noonien: grep for srcs
<aanderse> black-brick: some of my computers do that too
<black-brick> aanderse: is there a setting to correct that?
<aanderse> thats a bios thing, no?
<elvishjerricco> immae: FYI I figured it out. Apparently systemd-ask-password-wall.service has this: `ExecStartPre=-/nix/store/...-systemd-239/bin/systemctl stop systemd-ask-password-console.path systemd-ask-password-console.service systemd-ask-password-plymouth.path systemd-ask-password-plymouth.service`
<black-brick> aanderse: well uefi is that matters
<aanderse> black-brick: yeah my older uefi mobo does that
<aanderse> the newer ones don't
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhpT0
<elvishjerricco> So I guess I just need to either disable that service (bad idea), or figure out what must come before it and put the console one before that
<black-brick> aanderse: ohh sad :/ i have a thinkpad T420 so yea it's kinda old! I'll use grub then, it worked properly with grub on other distros
<aanderse> black-brick: yeah if you show boot options with grub you can control that easy enough
<aanderse> black-brick: go into your bios first and see if you find any resolution options?
<black-brick> aanderse: oh thats a good idea!
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/343abf7730f (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
andreabedini has joined #nixos
black-brick has quit [Ping timeout: 256 seconds]
Acou_Bass has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @tobiasBora opened pull request #56933 → shelldap: init at 1.4.0 → https://git.io/fhpTo
<tobiasBora> gchristensen: ok. I tried to upload it, if people are not interested to include it, they can drop it I guess (but it's pretty small, and present in other distros like debian, so I don't think it's a big deal to include it anyway)
Acou_Bass has joined #nixos
jluttine has quit [Ping timeout: 255 seconds]
silver has quit [Read error: Connection reset by peer]
<noonien> should this not fetch both sources? http://vpaste.net/mCR5f
<gchristensen> that will, yes
<gchristensen> but $src doesn't exist -- $srcs does
<noonien> it seems to want to unpack the first file
<noonien> then it errors, because the file is not an archive
thomashoneyman has joined #nixos
<thomashoneyman> Hey folks! I installed NixOS last night and have been running it just fine with close to the default configuration on the command line; I haven't been able to load any display / window / desktop manager, however, and I was hoping to get some help.
<thomashoneyman> Is this a good place to ask a few questions, or is there a better way to go about this?
<thomashoneyman> I know that diagnosing issues can come down to very specific bits of configuration and it might be a bit much pouring a lot of that info into the channel.
sb0 has joined #nixos
<sb0> hi
<sb0> on NixOS, if I add a channel with name "foo", then I can install packages with:
<sb0> nix-env -f "<foo>" -iA package
<sb0> however, with the Nix package manager installed in another distribution, this doesn't work
<sb0> and I need to use, instead
<sb0> nix-env -f ~/.nix-defexpr/channels/foo/default.nix -iA package
<sb0> why?
thc202 has quit [Ping timeout: 240 seconds]
<sb0> this is also breaking "import <foo>" in other places
<elvishjerricco> sb0: Yea I think they changed the installer on other distros to not include channels in the default NIX_PATH, instead hard coding the path to the nixpkgs channel for "<nixpkgs>". I'm honestly not a fan of this change. Examine your NIX_PATH on each system and compare.
<CMCDragonkai> sb0: I don't get the channel feature, it's too inflexible. I alias my `nix-env` command to go into a nixpkgs git branch that I've cloned onto my local system
<elvishjerricco> thomashoneyman: This is the perfect place :) Here and https://discourse.nixos.org/
<sb0> elvishjerricco: why did they make that changes? it makes it very annoying to use my own channels with non-NixOS
<sb0> (they're channels with my own software, which isn't distributed with nixpkgs)
<elvishjerricco> sb0: I honestly can't tell you for sure. I think it has something to do with the fact that the new `nix` standalone command doesn't respect unlabeled directories in NIX_PATH like nix-* command do, i.e. `NIX_PATH=/somedir` as opposed to `NIX_PATH=nixpkgs=/somedir/nixpkgs`
<gchristensen> elvishjerricco: I thought we made a change to fix this :/
<elvishjerricco> Oh? I thought this was a conscious decision at one point. But it's been a while so I'm probably misremembering :P
<thomashoneyman> elvishjerrico: thanks! one sec, i'll type up a bit of background and if it seems like too much at once I can post to Discourse instead.
drakonis1 has quit [Ping timeout: 255 seconds]
maximiliantagher has quit [Remote host closed the connection]
<sb0> elvishjerricco: so what's the solution? do I have to tell users to edit their NIX_PATH manually?
<elvishjerricco> sb0: Either that or find whatever gchristensen is talking about.
<gchristensen> you can add the channels as root
jluttine has joined #nixos
<gchristensen> you can file a bug report to fix this _very_ annoying bug :/
<elvishjerricco> why would it work for root?
<sb0> annoying for users, or annoying/difficult to fix?
<gchristensen> annoying for users
<gchristensen> sb0: what is your NIX_PATH?
drakonis has quit [Ping timeout: 252 seconds]
<sb0> on nixos it's /home/sb/.nix-defexpr/channels:nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos (and some more)
<sb0> on nix it's simply nixpkgs=...
<sb0> so I guess that explains it
<gchristensen> :/
<gchristensen> that should not be true
<gchristensen> oooOOOooooh
drakonis has joined #nixos
<gchristensen> :( okay, yeah, this is not nice
drakonis1 has joined #nixos
<tobiasBora> Hum... How can I call perlPackages.buildPerlModule from a configuration file? I tried to put at the beginning { config, pkgs, lib, stdenv, fetchurl, perlPackages,... }: but it fails, so I guess I should import perlPackages differently but I don't see how
<gchristensen> sb0: please do open a ticket
<elvishjerricco> tobiasBora: `pkgs.perlPackages.buildPerlModule` probably
<thomashoneyman> Backstory: I bought a new Dell Precision 5530 with Ubuntu 18 pre-installed. We use Nix / NixOS / Hydra at work, so I would like to dive in to NixOS for my home machine and get used to it. I produce music professionally, so I need to dual-boot Windows for some of that software to work. My goal is a functioning Windows + NixOS machine.
<thomashoneyman> Steps taken so far: I replaced the Ubuntu installation with a Windows installation. I left most of the disk unallocated. Then, I followed the instructions here to create two new partitions and install NixOS: https://qfpl.io/posts/installing-nixos/
<thomashoneyman> When I use a live installation disk for NixOS I can boot into the KDE Plasma desktop and poke around. With my NixOS installation I can boot the machine and poke around on the command line, but ONLY if I have not enabled any xserver stuff. Enabling a window manager, display manager, etc. all result in what looks like an empty terminal (black screen, blinking cursor, no contents).
<elvishjerricco> thomashoneyman: Ah, yea that's the xterm thing
<elvishjerricco> Super annoying
<thomashoneyman> Well, I'm both relieved and scared to hear you're familiar with the problem
<elvishjerricco> You have to select the right desktop environment from the login screen. There's usually a button somewhere, but I forget where on all but lightdm
<elvishjerricco> thomashoneyman: What you were *supposed* to do was inform nixos of the desired default DE in your configuration.nix, and it would have set it on first boot. But that doesn't work after the first boot anymore
drakonis has quit [Client Quit]
<gchristensen> elvishjerricco: eh? it doesn't?
<elvishjerricco> super frustrating
<thomashoneyman> I tried selecting a desktop environment with autorun=false, so that I have to explicitly start it with `systemctl start display-manager.service`
<elvishjerricco> gchristensen: At least not with lightdm. Lightdm is stateful and remembers things too well
<thomashoneyman> which is fine, because then on boot I can log in as my user or as root and do things and then i can actually start the display manager when i see fit
<thomashoneyman> that's nice, because it helps isolate that starting the display manager is what causes the blank screen
<Glenn_S> Does anyone know of a reason why systemd.services.<name>.restartTriggers wouldn't work? In particular: does it fail if the service is not currently running? I'm trying to do the following: https://pastebin.com/H3hkk21J
<elvishjerricco> gchristensen: Does it work for other login screens?
<thomashoneyman> elvishjerrico: i actually did select the desired default DE in configuration.nix on first boot, I believe
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<elvishjerricco> thomashoneyman: Can you past the relevant chunk of your configuration.nix?
<elvishjerricco> paste*
<thomashoneyman> but it resulted in the black screen + cursor i'm talking about, so I re-partitioned the drive and re-installed
<gchristensen> I'm not sure, it seems to work for me?
drakonis1 has quit [Ping timeout: 250 seconds]
<elvishjerricco> gchristensen: With lightdm?
<gchristensen> yeah
<elvishjerricco> huh. At one point that definitely did not work at all, so I opened a PR to make it work on first boot. Someone must have improved it to work for each configuration
maximiliantagher has joined #nixos
<thomashoneyman> elvishjerrico: one sec, i'm actually using the machine i'm talking about
<elvishjerricco> thomashoneyman: Did you set the `services.xserver.desktopManager.default` option?
<tobiasBora> elvishjerricco: indeed great thanks a lot!
<thomashoneyman> i'll switch to another
thomashoneyman has quit [Quit: Page closed]
drakonis1 has joined #nixos
<{^_^}> nix#2709 (by sbourdeauducq, 1 minute ago, open): custom channels do not get added to NIX_PATH with non-NixOS
black-brick has joined #nixos
thomashoneyman has joined #nixos
<thomashoneyman> ok back
<gchristensen> elvishjerricco: I don't know :-)
<gchristensen> all I can say is they work for me
<gchristensen> both in my system where I delete the root on each boot, and the one where I don't.
maximiliantagher has quit [Ping timeout: 245 seconds]
<elvishjerricco> thomashoneyman: Did you set the `services.xserver.desktopManager.default` option?
kreisys has joined #nixos
andreabedini has joined #nixos
<thomashoneyman> here's a snippet:
<thomashoneyman> elvishjerrico: i think at one point, but not currently. i can try adding that and restarting.
<elvishjerricco> thomashoneyman: Ah yea you need that, and I think `windowManager.default` too
<thomashoneyman> the machine has NVIDIA graphics (and Intel) and I added a little to see if that was the problem -- specifically adding 'intel' and 'nvideo' as video drivers
<thomashoneyman> do you have a suggested one to try?
<thomashoneyman> i don't care which desktop / window manager etc. for the time being, just getting anything to display is a good first step :)
<elvishjerricco> thomashoneyman: Ah hm you're not using a DE... Let me check something, you might not need the desktopManager.default
<gchristensen> thomashoneyman: are you not using a DE on purpose?
<elvishjerricco> thomashoneyman: So you can just do `windowManager.default = "whatever-you-use-for-i3-probably-just-i3";`
<thomashoneyman> gchristensen: no, i'd just been unable to load the system using the default configuration.nix that's generated
<gchristensen> ok
<thomashoneyman> so i wanted to isolate the issue a bit
<thomashoneyman> i've never used a Linux machine
<gchristensen> ooooh welcome!
<thomashoneyman> so have no preconceived notions about this sort of thing :)
<thomashoneyman> well, I've used Linux, but only ssh-ing in to the server and Docker and that sort of thing
<thomashoneyman> never as my actual home machine!
<elvishjerricco> thomashoneyman: I just use xfce and xmonad. It's extremely low-tech. I previously just used xmonad, but I found I needed *some* desktop manager to get any games working for some reason.
simukis has quit [Quit: simukis]
<gchristensen> elvishjerricco: I'm sort of thinking thomashoneyman would be better off getting started with plasma
sigmundv has quit [Ping timeout: 255 seconds]
<elvishjerricco> Gnome and Plasma are both way better looking than my desktop
<elvishjerricco> That's likely
<gchristensen> and all of the default, standard set up
<elvishjerricco> much more windows-y
<thomashoneyman> i *am* a sucker for good design
<thomashoneyman> i've never used Windows either ;)
<gchristensen> and a bit less to chew on while they learn Linux
<elvishjerricco> much more macOS-y? :P
<thomashoneyman> started on a clamshell mac in like 2000 and been stuck there since
<thomashoneyman> not on a clamshell, but on Macs
<thomashoneyman> i write PureScript / Haskell at work
slyfox has quit [Ping timeout: 245 seconds]
<thomashoneyman> and everything's on Nix, deployed machines are NixOS, etc.
<slack1256> thomashoneyman: I want your job :p
<gchristensen> very nice
<jasongrossman> I've noticed GDM working better than LightDM recently, e.g. for autologin. I haven't investigated in detail because I don't care which I use (so I just switched to GDM).
<thomashoneyman> but back on topic -- totally fine with any option
<elvishjerricco> I still use a macbook when I'm not at my desk. I literally only use Linux because you couldn't get a 16 core mac when I bought my machine, and because virtually all programming tasks work better on Linux
andreabedini has quit [Quit: Textual IRC Client: www.textualapp.com]
<elvishjerricco> thomashoneyman: Yea, I'd just try out the xserver settings generated by nixos-generate-config.
<jasongrossman> thomashoneyman: If I were you I'd use plasma if you don't mind something complicated, and otherwise gnome shell.
<thomashoneyman> elvishjerrico: it was hard not to notice that a machine with (close, but not the same) specs from Apple would be another $1200
black-brick has quit [Ping timeout: 256 seconds]
<elvishjerricco> oh that too lol
<jasongrossman> Gnome shell is also a fully featured desktop manager ... just not QUITE as fully featured as plasma.
<thomashoneyman> ok, i'm willing to fully replace the configuration.nix
<jasongrossman> thomashoneyman: You could also consider xmonad, since you know Haskell, but it's much much more minimalist.
<elvishjerricco> thomashoneyman: If you're already booted into the installed system, you can just do `nixos-generate-config --root /`, and then edit that file to your liking before doing `nixos-rebuild switch`
andreabedini has joined #nixos
<thomashoneyman> ok. i've regenerated the config.
<elvishjerricco> xmonad is super minimalist and extremely reliant on knowing several keybindings. I wouldn't recommend learning all those while also trying to learn to set the system up :P
<thomashoneyman> i'm going to keep it absolutely the default for now
<jasongrossman> thomashoneyman: There isn't really a default. plasma and gnome shell are both fine though.
<slack1256> You will probably have less problems overall with gnome shell or plasma
slyfox has joined #nixos
<thomashoneyman> jasongrossman: i just mean to verify that i can get anything at all to load
<thomashoneyman> for the moment
<jasongrossman> I see, yes.
<thomashoneyman> ok i'm rebuilding with the generated config, only changed the locale to dvorak
<elvishjerricco> thomashoneyman: I think you'll need to uncomment the generated xserver section. NixOS is not graphical by default.
<jasongrossman> thomashoneyman: When you get back to using X, you'll need xkbVariant = "dvorak";
<thomashoneyman> oh: something else i noticed -- i'm not able to just `reboot`, it hangs on `Starting mdadm-shutdown.service...`
<jasongrossman> thomashoneyman: I mean services.xserver.xkbVariant = "dvorak";
<thomashoneyman> oh, shoot, this won't work
<thomashoneyman> because the disk is encrypted
<thomashoneyman> logical volume etc.
<elvishjerricco> thomashoneyman: Whoops :P It may have detected that and inserted the necessary parts in hardware-configuration.nix
<elvishjerricco> If you're using ext4 for the filesystem, I think it should have
<thomashoneyman> i get "waiting for device to appear......." with the generated config
<thomashoneyman> ```
<thomashoneyman> boot.initrd.luks.devices = [ { name = "root"; device = "/dev/nvme0n1p2"; preLVM = true; } ];
<thomashoneyman> ah, well, not super readable
<thomashoneyman> but that's from the article i used to install this
<thomashoneyman> if I use that, then it will find the device and ask me for the password
<elvishjerricco> Huh. Well that's frustrating; nixos-generate-config really ought to catch that. What does the hardware-configuration.nix look like?
<thomashoneyman> is there a convenient way to post these files from the command line on the booted machine
<elvishjerricco> (sidenote: I personally just skip LVM. It's pointless for a single drive, and worse than ZFS for any number of drives. Not saying it's worth the trouble to undo it though)
<jasongrossman> thomashoneyman: Do you actually want your disk to be encrypted? The reason I ask is that if you've followed that guide you may have chosen encryption unnecessarily.
<jasongrossman> elvishjerricco: I believe thomashoneyman has just wiped his drive and can easily wipe it again.
<yl[m]> tobiasBora: FYI I left you comments on #56933
<{^_^}> https://github.com/NixOS/nixpkgs/pull/56933 (by tobiasBora, 1 hour ago, open): shelldap: init at 1.4.0
<elvishjerricco> I think encryption should be enabled on virtually any laptop.
<elvishjerricco> desktops it's less essential, but if you're careful it's still probably a good idea.
<elvishjerricco> on cloud hosting, it's literally pointless :P
<thomashoneyman> jasongrossman: work is adamant the disk should be encrypted
<thomashoneyman> not that it's LVM or anything
<jasongrossman> thomashoneyman: OK, cool. In the long run you might prefer ZFS ... although if your colleagues are using ext4 then maybe you'll prefer that.
<thomashoneyman> tbh i have no idea how to evaluate the differences atm
<jasongrossman> thomashoneyman: ZFS is better in every way (!) except that it's probably not be worth the bother if it's not what your colleagues are using. So forget I spoke.
<jasongrossman> - be
<thomashoneyman> to clarify a bit: this is my home laptop, but I will be writing code for work on it as well
<elvishjerricco> Yea ZFS is surprisingly interesting and amazing for something as simple as a filesystem
<elvishjerricco> but it's a bit more complicated to set up
<thomashoneyman> as long as the disk is encrypted, I don't mind wiping it entirely and starting over with ZFS
Supersonic has quit [Ping timeout: 257 seconds]
<elvishjerricco> I like it a lot for anything critical because it can tell you on its own if files are corrupted
<thomashoneyman> but being new I would need some pretty friendly resources
<jasongrossman> Well, I wouldn't say ZFS is complicated to set up. Maybe just a tiny bit more complicated than ext4. The problem with it is that it's DIFFERENT.
<elvishjerricco> I have this thing, which is even a little more complicated :P https://elvishjerricco.github.io/2018/12/06/encrypted-boot-on-zfs-with-nixos.html
<jasongrossman> elvishjerricco: I feel like we're being enablers, encouraging thomashoneyman to dive into filesystems when what he really needs is to get NixOS working. Even though nobody loves ZFS more than I do.
<thomashoneyman> haha
<thomashoneyman> i mean -- i AM here to be enabled
<jasongrossman> In THAT case, have a read about what's so great about ZFS.
<elvishjerricco> lol yea I just want ZFS to rule the world :P
<thomashoneyman> i still have my work laptop, which is a Mac running everything I need just fine
acarrico has quit [Ping timeout: 245 seconds]
<thomashoneyman> so i'm able to fuck up the dell precision over and over until either i've got a great machine on a solid foundation or i return it
<jasongrossman> thomashoneyman: I have bad news for you then.
<thomashoneyman> no
<thomashoneyman> ok, hit me
<jasongrossman> thomashoneyman: It's almost impossible to fuck up a NixOS machine once you've got one good installation.
<jasongrossman> thomashoneyman: Sorry.
<thomashoneyman> i'm a few fuckups in so i'll be delighted to have them behind me :)
<elvishjerricco> The short list of the biggest benefits of ZFS in my opinion: The ability to rollback entire file systems; the ability to backup filesystems extremely easily; and the ability to check for corruption.
<thomashoneyman> installing windows in the first place was rough
fresheyeball has joined #nixos
<fresheyeball> hey out there
<fresheyeball> I am using succeed on fail in jenkins
<fresheyeball> and need to redo a build
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<elvishjerricco> and the ability to add storage seamlessly, but that rarely matters for laptops
<thomashoneyman> elvishjerrico: i'm not sure what's most important fom the hardware configuration
<fresheyeball> nix-store --delete /nix/store/fooo-thing.drv --ignore-liveness
<fresheyeball> does not seem to work
<thomashoneyman> there's `imports = [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> ]`
<thomashoneyman> that seems suspicious
Supersonic has joined #nixos
<tobiasBora> yl[m]: you are kalbasit? Thanks for the review, I answered you.
<yl[m]> tobiasBora: yes, sorry for the confusion
<yl[m]> thx, will review
<elvishjerricco> thomashoneyman: Nah, that's common. There's very few full systems detailed in nixpkgs, so it just uses scanned info placed in hardware-configuration.nix
<thomashoneyman> it picks up two file systems, `/` which is ext4, and `/boot` which is vfat
<thomashoneyman> and a swap
<tobiasBora> yl[m]: ok thank you!
<elvishjerricco> (consider not using swap. you will regret it every time you end up needing it)
<jasongrossman> It depends how much memory you have.
<jasongrossman> And also how much memory your computer has.
<thomashoneyman> man, i specifically didn't have swap at first, but i'm tbh just bouncing around random linux articles at this point
<thomashoneyman> i have NO IDEA what i'm doing haha
<thomashoneyman> i have 32gb ram in this guy
<elvishjerricco> thomashoneyman: lol swap is just a place for the kernel to page memory out to if the system runs low on ram.
<elvishjerricco> thomashoneyman: It makes everything instantly insanely slow as soon as that starts happening
<elvishjerricco> usually unusably slow
<jasongrossman> thomashoneyman: With 32 GB of RAM you don't need swap.
<jasongrossman> thomashoneyman: I have 16 GB of RAM ... and I almost never actually use more than 8 GB.
<thomashoneyman> let's say i wanted to puzzle out some step-by-step "wipe your drive, partition it, install nixos, hey there it is"
<jasongrossman> thomashoneyman: It's different with MacOS because the system itself uses a truly immense amount of RAM.
vonfry has joined #nixos
<elvishjerricco> 8GB or more 100% does not need swap except in very specialized applications. 4GB can probably get away with it too
<thomashoneyman> elvishjerrico: i've got your article up
<thomashoneyman> i do music production professionally
<thomashoneyman> in addition to coding
<elvishjerricco> thomashoneyman: Oof, careful with that. It's not that hard, but there are several details you don't want to mess up.
<elvishjerricco> particular the keyfile you generate. Do not let that ever be visible to anyone other than root, and never copy it anywhere else
acarrico has joined #nixos
drakonis1 has quit [Ping timeout: 240 seconds]
<jasongrossman> thomashoneyman: As far as I can tell, music production is the only thing Linux is really terrible at. :-(
<elvishjerricco> video production too, right?
<jasongrossman> Oh, yes, OK.
<thomashoneyman> that's the only reason i'm dual booting windows
<jasongrossman> thomashoneyman: I see, good.
<elvishjerricco> (I have something even more ridiculous for dual booting windows better but I'll keep my mouth shut because that's definitely many hours worth of trouble)
<tobiasBora> Hum...
* slack1256 is curious
<elvishjerricco> *starts with*
<elvishjerricco> then you hypervise windows from the second linux system
<elvishjerricco> headlessly, so that you can VFIO the graphics card to the VM
<tobiasBora> yl[m]: before reviewing I'm thinking about something... I think I need a mkdir -p $out/bin (no -p will make it fail)
<elvishjerricco> using ZFS zvols for the VM's disk to get better performance, snapshots, etc.
<yl[m]> tobiasBora: sure
<tobiasBora> yl[m]: hum it was already there
drakonis1 has joined #nixos
<tobiasBora> don't know why on another version I had it was not there and I thought I forgot it. but it's fine
acarrico has quit [Ping timeout: 255 seconds]
<thomashoneyman> ok this boots
<thomashoneyman> elvishjerrico: what is the minimum i should enable to see if i can get a gui?
<tobiasBora> yl[m]: just, I'm not sure to understand your review: why it should not be in all packages? Is it bad to put a program in all-packages? Why does it matter if it is build in Perl?
<thomashoneyman> from the generated config
<thomashoneyman> i'm assuming i should enable `services.xserver.enable`
<yl[m]> tobiasBora: you can install it with `nix-env -f '<nixpkgs>' -iA perlPackages.Shelldap`
<tobiasBora> yl[m]: yes sure
<tobiasBora> but for example exim-tools is also in app-packages
<thomashoneyman> it also has `xserver.displayManager.sddm.enable` and `services.xserver.desktopManager.plasma5.enable` commented out
<jasongrossman> thomashoneyman: Do you have the NixOS manual, by the way?
<yl[m]> tobiasBora: you're basically creating an alias for it on the top-level, I don't think it's the right thing to do
<thomashoneyman> i do have a copy of that up
<jasongrossman> thomashoneyman: See above for the option to enable dvorak in your gui.
<tobiasBora> yl[m]: ok. I'm just trying to understand when it is the right thing to do and when it's not ;)
<thomashoneyman> got it, i'll make sure that's enabled
<yl[m]> tobiasBora: you and me both :)
<jasongrossman> thomashoneyman: Yes, enable sddm and plasma5.
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/d098f1311e0 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<jasongrossman> thomashoneyman: IMO, the hardest part of installing NixOS is configuring the disk. You'll be fine from now on. (See, I just jinxed it.)
<thomashoneyman> ok. i've now got the default config, except it will check for the encrypted disk, and then enabled xserver, sddm, and plasma
<thomashoneyman> but otherwise default
<jasongrossman> thomashoneyman: Nothing can go wrong.
<thomashoneyman> let's give this a try
<thomashoneyman> loading....
<thomashoneyman> NO GOOD
<thomashoneyman> rejected by the blank terminal
<thomashoneyman> oh, wait -- getting something occasionally flashing on the scree
<thomashoneyman> started load/save kill switch status...
<thomashoneyman> ok, got something new: "a start job is running for DHCP Client (22s / 1min 31s)
<thomashoneyman> appears to be frozen on that, though, not counting up
<thomashoneyman> oh! never mind, flashed again
<thomashoneyman> now i've got a nice zig-zag pattern of a few messages
<thomashoneyman> "reached target network is online"
<thomashoneyman> "reached target graphical interface"
<thomashoneyman> few others
<thomashoneyman> seems frozen again
<elvishjerricco> thomashoneyman: What does your `services.xserver` section look like?
<thomashoneyman> how could i check that+
<thomashoneyman> ?
<thomashoneyman> afaik i can't interact with this
<thomashoneyman> typing does nothing
<elvishjerricco> (also, yay my article worked)
<thomashoneyman> including say `chvt 1`
<elvishjerricco> ctrl-alt-f1 maybe?
<thomashoneyman> no luck
<thomashoneyman> side note: i can boot without the gui stuff, and i could run the gui stuff off of the live usb
<elvishjerricco> Huh, that's odd; that should have switched you to a differt vt
<thomashoneyman> nope. no key does anything to the screen
<slack1256> copy the file on /etc/nixos/configuration.nix onto http://piratepad.net and paste your link
<elvishjerricco> yea but the live CD has an excessive number of drivers installed so that it works everywhere. An install just relies on the drivers detected and placed in hardware-configuration.nix
<elvishjerricco> slack1256: They can't copy the file if they can't interact with the system :P
<elvishjerricco> so you'll probably need to reboot into the live cd and mount the disk again
<thomashoneyman> that's what i did last time
<thomashoneyman> which i'm happy to do again, but i do worry that it will lead to the same result
<elvishjerricco> thomashoneyman: You don't need to redo any of the install work
<thomashoneyman> slack1256: it's the default generated config, with nothing changed except for the xserver stuff uncommented
<thomashoneyman> and this line added:
<thomashoneyman> boot.initrd.luks.devices = [ { name = "root"; device = "/dev/nvme0n1p6"; preLVM = true; } ];
<thomashoneyman> i can restart and grab the actual contents but i'll have to do that later
yl has joined #nixos
<thomashoneyman> i'm going to have to head out in a few
vonfry has quit [Quit: WeeChat 2.4]
<elvishjerricco> thomashoneyman: Hm. You probably need the nvidia driver since you said you have an nvidia card
<thomashoneyman> i tried to futz around and see about disabling hardware acceleration or something to see if that's it, and install nvidia packages in configuration.ni
<thomashoneyman> i had this in there before:
<thomashoneyman> to try and get the nvidia drivers
<thomashoneyman> but i'm not sure if i need a _specific_ one, or just "nvidia", or what
<thomashoneyman> which i'm sure is not very helpful
<elvishjerricco> I just use "nvidia"
<thomashoneyman> i see
orivej has quit [Ping timeout: 252 seconds]
drakonis has joined #nixos
<jasongrossman> thomashoneyman: You could search for nixos configurations on your hardware.
<jasongrossman> thomashoneyman: This is one place you can search: https://search.tx0.co/
<thomashoneyman> thanks!
<thomashoneyman> unfortunately i've had trouble finding anything for the Dell Precision 5530
<thomashoneyman> i've got to head out for the night, but thanks for the pointers, and i'll continue working on this tomorrow
<jasongrossman> thomashoneyman: I'm afraid I don't know much about Dells, but there is https://github.com/NixOS/nixos-hardware/tree/master/dell/xps
<jasongrossman> thomashoneyman: Later!
counting1 has joined #nixos
countingsort has quit [Ping timeout: 250 seconds]
ddellacosta has quit [Ping timeout: 255 seconds]
thomashoneyman has quit [Ping timeout: 256 seconds]
fresheyeball has quit [Quit: WeeChat 2.2]
<tA> dumb question but how can i define system.packages = with pkgs; list1++list2++list3 etc etc?
<tA> i cant get the right syntax
<clever> tA: that looks like its mostly valid, what is the error code it gives?
<tA> undefined <program>
<tA> i dont really wanna put with pkgs on each individual list if i dont have to
<clever> tA: try with pkgs; ([list1] ++ [list2]); ?
<mog> i cant believe we are just 22 packages from reproducable nixos https://r13y.com/
<clever> tA: i think its parsing it as (with pkgs; [list1]) ++ [ list2]; and so the with doesnt effect the 2nd list
<tA> clever: still the same error
<clever> tA: can you pastebin the actual code you used, and the real error?
<tA> yup gimme a sec
slack1256 has quit [Remote host closed the connection]
slack1256 has joined #nixos
<tA> https://pastebin.com/7dAny8nV clever, ignore the vim line numbers please
<clever> tA: for future reference, :set nonu
<clever> and :set nu, to turn them back on
<clever> tA: mpv is on line 5, and the list from 4-13 lacks a `with pkgs;`
<tA> is there anyway i can apply it after merging the list of names? i was hoping to avoid putting with pkgs on everything
<clever> you either need the with pkgs; higher up (cant say where, lines 1-3 are misisng), or put a with pkgs; on each thing
<clever> can you redo the pastebin, and include lines 1-3?
<tA> ahh i see
<tA> clever:
<clever> tA: yep, line 3, that will cover the entire file, but it might have other problems now
<clever> tA: and line 59, you are re-importing nixpkgs
<tA> yeah fixed that up now
<clever> 59 could be `with pkgs;` but since 3 now does that, 59 doesnt need a with at all
<tA> its telling me apppkgs doesnt exist, thats it evaluating those lists in alphabetical order right? do i need to put them in a let expression or something?
<clever> thats a normal set, and it cant refer to its own attrs
<clever> you likely want a let block
<clever> with pkgs; let mediapkgs = [ mpv ]; in { home.packages = mediapkgs ++ thing; }
<tA> do i need to set anything to the with pkgs; let .....? if i put it on its own line it complains about let
<clever> line endings dont really matter at all
<clever> can you pastebin what you currently have?
<tA> same link as before clever
<tA> sorry for all this, still learning
<clever> the let goes before the {
<clever> { pkgs, ... }: <value>
<clever> is a function that takes pkgs, and returns a value
<clever> let key = <value>; in <value>
<clever> is also a value
<clever> { key = <value>; } is also a value (and an attrset)
<slack1256> Is there an easy way to search the modules available to modprobe on the current kernel?
<tA> ok making lots of progress
<clever> so you basically want:
<slack1256> currently I am searching /nix/store for the current version and using `find` on that.
<clever> { pkgs, ... }: let key=value; in { key2 = value2; }
<clever> lrwxrwxrwx 13 root root 58 Dec 31 1969 /run/current-system/kernel-modules -> /nix/store/cp9ymg1diqfppadiy2395nl6s48j1pra-kernel-modules
<clever> slack1256: there is a symlink here, that points to the current modules
<tA> got it working!
<tA> thanks heaps clever, your name is apt
<clever> [clever@amd-nixos:~/Downloads]$ find -L /run/current-system/kernel-modules
<slack1256> got it!
<clever> slack1256: and this will show everything, and follow symlinks
<slack1256> thanks clever
drakonis1 has quit [Ping timeout: 252 seconds]
vk3wtf has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @shosti closed pull request #30377 → convox: init at 20171002150509 → https://git.io/vdioG
stepcut has quit [Remote host closed the connection]
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drakonis has quit [Quit: WeeChat 2.3]
drakonis1 has joined #nixos
noonien has quit [Quit: Connection closed for inactivity]
<Izorkin> aanderse: upgrade 2.05_plus_141210 to 3.15.9+190214 - error. Upgrade from 3.15.2+181107 to 3.15.9+190214 - normal
pie__ has joined #nixos
pie___ has quit [Ping timeout: 255 seconds]
work_ has quit [Quit: Connection closed for inactivity]
drakonis1 has quit [Read error: Connection reset by peer]
slack1256 has quit [Remote host closed the connection]
drakonis1 has joined #nixos
<{^_^}> [nix] @volth opened pull request #2710 → canBuildLocally: check for features → https://git.io/fhpIu
andreabedini has joined #nixos
<{^_^}> [nix] @edolstra merged pull request #2710 → canBuildLocally: check for features → https://git.io/fhpIu
<{^_^}> [nix] @edolstra pushed 2 commits to master: https://git.io/fhpIw
reinhardt has joined #nixos
drakonis has joined #nixos
vk3wtf has joined #nixos
drakonis_ has joined #nixos
drakonis1 has quit [Read error: Connection reset by peer]
reinhardt has quit [Ping timeout: 240 seconds]
drakonis has quit [Ping timeout: 252 seconds]
vk3wtf has quit [Quit: WeeChat 2.3]
drakonis has joined #nixos
vk3wtf has joined #nixos
endformationage has quit [Ping timeout: 245 seconds]
Fare has joined #nixos
reinhardt has joined #nixos
drakonis_ has quit [Ping timeout: 252 seconds]
ErAsMuS has quit [Quit: END-AUMF]
vk3wtf has quit [Ping timeout: 252 seconds]
Rusty1 has quit [Quit: Konversation terminated!]
hyper_ch_ has joined #nixos
hyper_ch has quit [Ping timeout: 268 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/51fdca9cad1 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [patchelf] @edolstra merged pull request #149 → Fix issue #66: ignore 0th section header when sorting, don't overwrite NOBITS → https://git.io/flFxf
<{^_^}> [patchelf] @edolstra pushed 2 commits to master: https://git.io/fhpIN
<{^_^}> [nixpkgs] @peterhoeg closed pull request #55847 → kde-frameworks: 5.54 -> 5.55 → https://git.io/fh5kn
jackdk has quit [Ping timeout: 255 seconds]
calbrecht has joined #nixos
<tA> my audios stopped working in everything except mpd, any idea why? ive got ffmpeg-full installed. i noticed mpv complained about not having mp3float, but ffmpeg -codecs shows it under mp3
calbrecht has quit [Ping timeout: 245 seconds]
yl has quit [Ping timeout: 252 seconds]
palo1 has joined #nixos
calbrecht has joined #nixos
palo has quit [Ping timeout: 255 seconds]
palo1 is now known as palo
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
hyper_ch2 has joined #nixos
<{^_^}> [patchelf] @domenkozar closed pull request #95 → Skip empty section (fixes #66) → https://git.io/fhpLB
pie_work has quit [Ping timeout: 245 seconds]
drakonis has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « ghc: add new 8.6.4 version »: https://git.io/fhpLr
Fare has quit [Ping timeout: 255 seconds]
<{^_^}> [nixpkgs] @peti pushed to master « ghc: add new 8.6.4 version »: https://git.io/fhpLK
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhpL6
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « haskellPackages: switch default package set to ghc 8.6.4 »: https://git.io/fhpLX
Makaveli7 has joined #nixos
gagbo has quit [Quit: I'm out !]
<{^_^}> [cabal2nix] @peti pushed to master « travis.yml: fix doctest suite »: https://git.io/fhpLM
orivej has joined #nixos
slack1256 has joined #nixos
Kakky has joined #nixos
<{^_^}> [nixpkgs] @rydnr opened pull request #56935 → Pharo 7 with Firefox's moz2d → https://git.io/fhpLA
zupo has joined #nixos
orivej has quit [Ping timeout: 250 seconds]
ng0 has joined #nixos
<{^_^}> [nixpkgs] @witchof0x20 opened pull request #56936 → Upgrade teensyduino → https://git.io/fhpLh
Kakky has quit [Remote host closed the connection]
<immae> Thanks for the feedback elvishjerricco
fusion809 has joined #nixos
slack1256 has quit [Remote host closed the connection]
<DigitalKiwi> how do i go about making a setpci run automatically?
orivej has joined #nixos
<{^_^}> [nixos-artwork] @mogorman opened pull request #43 → artwork for 19.03 koi release → https://git.io/fhptC
ckauhaus has joined #nixos
<makefu> ^ the design looks nice but it seems like the koi is upside-down, no?
<{^_^}> [nixpkgs] @nlewo merged pull request #56895 → skoepo: 0.1.34 -> 0.1.35 → https://git.io/fhxxL
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/fhpt0
<{^_^}> [nixpkgs] @thoughtpolice pushed to master « ttyd: init at 1.4.2_pre174_6df6ac3e »: https://git.io/fhptz
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/68be6bbc313 (from 72 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @nlewo pushed to master « nixos/test/docker-tools: fix Nix image digest »: https://git.io/fhptg
Shouou has joined #nixos
andreabedini has quit [Quit: Textual IRC Client: www.textualapp.com]
ng0 has quit [Quit: Alexa, when is the end of world?]
johanot has joined #nixos
<{^_^}> [nixpkgs] @danbst merged pull request #56868 → perlPackages: upgrade → https://git.io/fhxP0
<{^_^}> [nixpkgs] @danbst pushed 86 commits to staging: https://git.io/fhptK
<{^_^}> [nixpkgs] @AtkinsChang opened pull request #56937 → solc: 0.5.4 -> 0.5.5 → https://git.io/fhpt6
Makaveli7 has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @markuskowa merged pull request #56913 → julia: remove 0.6.4 (julia_06) → https://git.io/fhpvE
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fhptX
ij has joined #nixos
katyucha has joined #nixos
orivej has quit [Ping timeout: 252 seconds]
<sphalerite> makefu: agreed
<{^_^}> [nixpkgs] @mebubo closed pull request #56914 → coursier: update to 1.1.0-M13 → https://git.io/fhpvy
ThatDocsLady_ has joined #nixos
Makaveli7 has joined #nixos
goibhniu has joined #nixos
<manveru> i think it's meant to be jumping
<manveru> i think it's nice anyway :)
<jasongrossman> Yeah - its posture is a bit odd, but so is NixOS. I agree that it's excellent.
<makefu> i think it is great that mog actually put together a design, so much better than no artwork at all
adamt has joined #nixos
<jasongrossman> Yes, plus it's really good!
<jasongrossman> mog++
<{^_^}> mog's karma got increased to 1
<{^_^}> [nixpkgs] @dguibert merged pull request #56532 → davmail: 4.8.6 -> 5.2.0 → https://git.io/fhNjP
<{^_^}> [nixpkgs] @dguibert pushed 2 commits to master: https://git.io/fhpqz
<{^_^}> [nixpkgs] @buffet opened pull request #56938 → filet: 0.1.0 -> 0.1.1 → https://git.io/fhpqw
<manveru> anyone here using elixir?
<makefu> mog++
<{^_^}> mog's karma got increased to 2
thc202 has joined #nixos
arjen-jonathan has joined #nixos
justanotheruser has quit [Ping timeout: 255 seconds]
Diagon has joined #nixos
orivej has joined #nixos
alex`` has joined #nixos
Diagon has quit [Client Quit]
<Shouou> How do I package a Python program that doesn't really have a build structure? I.e. it's just ran through `python program.py`. I assume I need buildPythonApplication.format = "other" and makeWrapper?
civodul has joined #nixos
Diagon has joined #nixos
<{^_^}> [nixpkgs] @flokli pushed 2 commits to master: https://git.io/fhpqN
<{^_^}> [nixpkgs] @flokli merged pull request #56748 → xournalpp: init at 1.0.8 → https://git.io/fhAFH
<makefu> Shouou: yes that is probably the right way to do it. I packaged Fluffy (pretty only a .pyw file) like this http://paste.krebsco.de/hgfwumUc/+inline
justanotheruser has joined #nixos
<makefu> but the example by symphorien looks a bit better, especially: pythonPath = [ python3.pkgs.toml ]; postFixup = "wrapPythonPrograms";
<{^_^}> [nixpkgs] @flokli pushed commit from @andrew-d to release-19.03 « xournalpp: init at 1.0.8 »: https://git.io/fhpqh
<makefu> the wrapping stuff example would be in pkgs/games/endgame-singularity/default.nix
<Shouou> symphorien, makefu, thanks! The examples are very helpful. I'll give this a shot
<{^_^}> [nixpkgs] @Kjuvi opened pull request #56939 → appeditor: init at 1.1.0 → https://git.io/fhpmv
<{^_^}> [nixpkgs] @markuskowa pushed to release-19.03 « julia: remove 0.6.4 (julia_06) »: https://git.io/fhpmf
katyucha has quit [Quit: Lost terminal]
ij has quit [Read error: Connection reset by peer]
ij has joined #nixos
<{^_^}> [nixpkgs] @danbst merged pull request #56835 → nixos/nginx: Support additional listen parameters → https://git.io/fhxzL
<{^_^}> [nixpkgs] @danbst pushed commit from @dasJ to master « nixos/nginx: Support additional listen parameters (#56835) »: https://git.io/fhpmL
<tilpner> infinisil: Thank you!
<{^_^}> [nixpkgs] @flokli merged pull request #56897 → terraform-providers: version bumps → https://git.io/fhxxG
<{^_^}> [nixpkgs] @flokli pushed 2 commits to master: https://git.io/fhpmq
sigmundv has joined #nixos
Diagon has quit [Quit: Leaving]
<flokli> brr, marking the python distro package as broken also broke google-cloud-sdk: https://github.com/NixOS/nixpkgs/commit/9382d2ea762302c7a7a5c970679e4fca14256eca#commitcomment-32610985
__monty__ has joined #nixos
<johanot> is there a lib function or something for getting the hash part of a store path?
phreedom has quit [Ping timeout: 256 seconds]
calbrecht has quit [Ping timeout: 252 seconds]
<makefu> flokli: was this commit pushed directly to master? i cannot find the related PR as part of the review process is " Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip""
JonReed has joined #nixos
<flokli> makefu: part of the latest python packages bump: https://github.com/NixOS/nixpkgs/pull/55757#commitcomment-32610985
<flokli> nixops is broken too, due to same azure python library bump that doesn't build anymore
fendor has joined #nixos
Ariakenom has joined #nixos
<makefu> flokli: ah, thanks for the heads-up
<flokli> thanks for looking into it :-)
thetet has joined #nixos
phreedom has joined #nixos
Diagon has joined #nixos
thetet has left #nixos [#nixos]
<{^_^}> [nixpkgs] @markuskowa opened pull request #56942 → gnuradio-limesdr: fix build → https://git.io/fhpmo
Shouou has quit [Read error: Connection reset by peer]
Shouou has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mmlb has joined #nixos
phreedom has quit [Ping timeout: 256 seconds]
zupo has joined #nixos
<{^_^}> [nixpkgs] @pSub merged pull request #56899 → cabextract: 1.9 -> 1.9.1 → https://git.io/fhxxC
<{^_^}> [nixpkgs] @pSub pushed 2 commits to master: https://git.io/fhpmb
<{^_^}> [nixpkgs] @pSub pushed 0 commits to update-cabextract: https://git.io/fhpmN
counting1 is now known as countingsort
EffSquared has joined #nixos
<therealwaphire[m> any update on zfs 0.7.13?
<EffSquared> I am trying to package some python library compiled with swig, but swig keeps throwing "Error: Unable to find 'cstddef'"
<{^_^}> [nixpkgs] @vdemeester opened pull request #56944 → kustomize: 2.0.1 -> 2.0.3 → https://git.io/fhpYe
ij has quit [Ping timeout: 252 seconds]
<EffSquared> Does anybody know which include it is missing? I was unable to locate the correct headers inside the stdenv and related derivatives
phreedom has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed to master « python.pkgs.semver: 2.7.9 -> 2.8.1 »: https://git.io/fhpYI
<Taneb> Is it possible to override the version of haddock used in a build of a Haskell package?
<{^_^}> [nixpkgs] @vdemeester opened pull request #56945 → podman: 1.1.0 -> 1.1.2 → https://git.io/fhpYt
<fendor> i have the error that a static c lib segfaults immediately, can I see somehow why and how?
<infinisil> ,locate cstddef
<{^_^}> Found in packages: libcxx, cmdstan, rstudio, boost.dev, emscripten, boost155.dev, boost159.dev, boost160.dev, boost162.dev, boost163.dev, boost164.dev, boost165.dev, boost166.dev, boost168.dev, gcc-unwrapped, python27Packages.boost.dev, python37Packages.boost.dev
<infinisil> EffSquared: Seems like boost could be it
<{^_^}> [nixpkgs] @iimog opened pull request #56946 → rPackages.phytools: fix installation → https://git.io/fhpYO
<{^_^}> [nixpkgs] @vdemeester opened pull request #56947 → containerd: 1.2.2 -> 1.2.4 → https://git.io/fhpY3
<{^_^}> [nixpkgs] @7c6f434c pushed to master « luarocks: switch to a less intrusive update-walker metadata style »: https://git.io/fhpYs
_kwstas has joined #nixos
<{^_^}> [nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fhpYG
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « haskellPackages: switch default package set to ghc 8.6.4 »: https://git.io/fhpYc
<{^_^}> [nixpkgs] @peti pushed to master « haskellPackages: switch default package set to ghc 8.6.4 »: https://git.io/fhpYC
ubert has joined #nixos
_kwstas has quit [Client Quit]
_kwstas has joined #nixos
pie_work has joined #nixos
<clefru> Are there any sub nix communities? Like people doing android development on nix, or java on nix, or nodejs stuff on nix?
<clefru> I feel that spamming this channel with node2nix questions would not be relevant to most people
<EffSquared> infinsil: It is missing the cstddef and the cassert headers, which should both be part of the C++ standard lib. Maybe these are actually handled in the cc wrapper and therefore they do not show up in the CFLAGS by default.
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « haskellPackages: switch default package set to ghc 8.6.4 »: https://git.io/fhpYu
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhpYz
_kwstas has quit [Quit: _kwstas]
<EffSquared> infinsil: I am getting closer. They come the gcc derivation under include/c++/<version>
<{^_^}> [nixpkgs] @Mic92 merged pull request #56905 → pari: fix off-by-one error → https://git.io/fhxhk
<{^_^}> [nixpkgs] @Mic92 pushed 4 commits to master: https://git.io/fhpYa
rprije has quit [Ping timeout: 250 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_kwstas has joined #nixos
cmacrae has joined #nixos
<EffSquared> infinisil Ok, stdenv.cc is the wrapper, stdenv.cc.cc the actual compiler. Just remebered that patchElf two needs to be run with the unwrapped version.
zupo has joined #nixos
zupo_ has joined #nixos
<EffSquared> infinisil, thanks fot the help
EffSquared has quit [Quit: Leaving]
zupo has quit [Ping timeout: 255 seconds]
zupo_ has quit [Client Quit]
fendor has quit [Ping timeout: 255 seconds]
<delan> I migrated one of my boxes from a neglected debian 8 install to nixos 18.09 the other day, but I’ve run into a very strange problem with a libvirt/KVM guest that handles my ZFS pool (freebsd 10.3 with a 9211-8i over vfio): each vdev throws well over 10 CKSUM/s when the guest scrubs the pool on nixos, damaging hundreds of files in the process, and zdb -ec crashes randomly on the exported pool, but the scrub
<delan> continues perfectly when the old debian install is restored
<delan> I realise the excessive complexity of my setup makes this a long shot, but would anyone know where I could look to narrow the problem down?
_kwstas has quit [Quit: _kwstas]
_kwstas has joined #nixos
laalf has quit [Quit: ZNC 1.7.2 - https://znc.in]
laalf has joined #nixos
alex`` has quit [Ping timeout: 252 seconds]
alex`` has joined #nixos
_kwstas has quit [Quit: _kwstas]
<{^_^}> [nixpkgs] @7c6f434c pushed to master « luarocks: fix meta after refactoring, thanks to @peti for mentioning »: https://git.io/fhpYj
alex`` has quit [Ping timeout: 252 seconds]
<lukego> I installed Firefox from nixpkgs and my monospace font doesn't work (isn't monospace). Any idea how to troubleshoot that?
init_6 has joined #nixos
fendor has joined #nixos
_kwstas has joined #nixos
<etu> lukego: On nixos or not?
<lukego> This happens to be on nixos, though I'd like to use the same expression on other distros too
<ar> /60
<lukego> (actually I can quickly test this in an alpine linux container, lemme try that)
<etu> lukego: And you've installed fonts using fonts.fonts = []; ?
Makaveli7 has quit [Quit: Leaving]
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
ij has joined #nixos
<lukego> etu: no, had assumed a monospace font would be there by default, thanks for the poke
<lukego> I'd really like to ensure that this Nix expression always makes a font available to the application, regardless of host OS config. any workable approach?
ij has quit [Quit: WeeChat 2.2]
<{^_^}> [nixpkgs] @danbst opened pull request #56948 → nixos/auto-upgrade: enable service only when it's enabled in options → https://git.io/fhpOi
ij has joined #nixos
<__monty__> lukego: On mac os I've had to use the font manager application to actually make nix installed fonts available manually. So I'm not sure it's possible to regardless of OS.
noonien has joined #nixos
<lukego> well regardless of Linux distro at least e.g. also when running Nix in an Alpine Linux container
_kwstas has quit [Quit: _kwstas]
bvdw8 has quit [Quit: bvdw8]
zupo has joined #nixos
_kwstas has joined #nixos
oida has quit [Remote host closed the connection]
oida has joined #nixos
silver has joined #nixos
simukis has joined #nixos
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/343abf7730f (from 16 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
zupo_ has joined #nixos
zupo has quit [Ping timeout: 252 seconds]
_kwstas has quit [Quit: _kwstas]
<Myrl-saki> Hm, apparently builtins.readDir doesn't get caught by tryEval. Whoops.
disasm has quit [Ping timeout: 250 seconds]
Makaveli7 has joined #nixos
fendor has quit [Remote host closed the connection]
noogie has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
noogie has joined #nixos
<Myrl-saki> Hm.
acarrico has joined #nixos
<Myrl-saki> What if you we use findFile
<Myrl-saki> instead of
<Myrl-saki> configFile = getEnv "NIXPKGS_CONFIG";
<Myrl-saki> configFile2 = homeDir + "/.config/nixpkgs/config.nix";
<Myrl-saki> configFile3 = homeDir + "/.nixpkgs/config.nix"; # obsolete
simukis has quit [Quit: simukis]
fendor has joined #nixos
<{^_^}> [nixpkgs] @rvolosatovs opened pull request #56950 → gocode-gomod: 2018-10-16 -> 2019-02-12 → https://git.io/fhp3P
vidbina has joined #nixos
<{^_^}> [nixpkgs] @P-E-Meunier opened pull request #56951 → buildRustCrate: Fixing CARGO_MANIFEST_DIR → https://git.io/fhp3Q
<Myrl-saki> The option `services.duplicity-backup.enable' in `/home/myrl/Development/NixOSEncryptedLiveCD/nix-duplicity-backup/duplicity-backup-common.nix' is already declared in `/home/myrl/Development/nix-duplicity-backup/duplicity-backup-common.nix'.
<Myrl-saki> Uhhh ???
<srhb> Psychic debugging time. On boot, after nixos-install, zfs times out trying to import my pool (with the correct name), and eventually fails: "No such pool available". I reboot back into the installer, and now I can import it just fine. What might be the cause?
<Myrl-saki> Oh wait. That's the symbolic link.
<Myrl-saki> Hm.
<Myrl-saki> I wonder if there's a way to canonicalize symlinks.
<__monty__> Canonicalize how?
offlinehacker has quit [Quit: OFTC spam preventative kick]
<Myrl-saki> Like `realpath`
<Myrl-saki> IIRC, infinisil had an open issue about symbolic links.
dotglitch[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : OFTC spam preventative kick"]
fosterop[m] has quit [Quit: OFTC spam preventative kick]
<{^_^}> nix#2109 (by Infinisil, 44 weeks ago, open): imports don't resolve symlinks absolutely, leading to unexpected behaviour
<__monty__> Finding out the target? Cause isn't that just reading the symlink?
<Myrl-saki> __monty__: The context is the error I sent a while ago.
<Myrl-saki> Both files are the same, but under different symlink.
<Myrl-saki> I'm experimenting with making NixOS modules + git submodule.
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/fhpsT
<{^_^}> [nixpkgs] @dywedir merged pull request #56778 → buildRustCrate: Make CARGO_MANIFEST_DIR absolute → https://git.io/fhAhN
<{^_^}> [nixpkgs] @dywedir closed pull request #56951 → buildRustCrate: Fixing CARGO_MANIFEST_DIR → https://git.io/fhp3Q
<{^_^}> [nixpkgs] @FRidh pushed to master « buildPythonPackage: fix building with flit »: https://git.io/fhpsL
timor has joined #nixos
FRidh[m] has quit [Quit: OFTC spam preventative kick]
<{^_^}> [nixpkgs] @FRidh pushed to staging-19.03 « buildPythonPackage: fix building with flit »: https://git.io/fhpsY
hjulle has left #nixos ["Kicked by @appservice-irc:matrix.org : OFTC spam preventative kick"]
stammon has left #nixos ["Kicked by @appservice-irc:matrix.org : OFTC spam preventative kick"]
alex`` has joined #nixos
zurk[m] has quit [Quit: OFTC spam preventative kick]
<Myrl-saki> Hm. What if I do this?
<Myrl-saki> systemd.services."getty@tty1".serviceConfig.ExecStart = "${pkgs.utillinux}/bin/agetty --login-program ${stdenv.shell}";
<aanderse> Izorkin: i have a limesurvey module working, will commit once i get a chance to cleanup
<clever> Myrl-saki: note. stdenv.shell is the non-interactive bash, so a lot of features will be missing
<{^_^}> [nixpkgs] @moredhel opened pull request #56952 → vscode: patch .desktop file to use absolute files. → https://git.io/fhpsu
<{^_^}> [cabal2nix] @peti pushed to refs/tags/v2.14.2 « cabal2nix.cabal: bump version number for release »: https://git.io/fhpsz
<Myrl-saki> clever: It's more of "I want to make tty1 run whatever TUI program I need."
<Myrl-saki> So if I have a script that runs dialog, it should work, right?
<{^_^}> [cabal2nix] @peti pushed to master « cabal2nix.cabal: bump version number for release »: https://git.io/fhpsw
<Izorkin> aanderse: my latest variant - https://github.com/NixOS/nixpkgs/compare/master...Izorkin:limesurvey#diff-4d4f8895d712d8541557a5d476cda0b7R181 added folder ${config.dataDir}/upload/admintheme and remove duplicate $config['config']['tempdir'] = "${config.dataDir}/tmp"
<clever> Myrl-saki: probably
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhpsr
<Myrl-saki> clever: Oh yeah. I just had an idea. I wonder if you can replace the config default argument of impure.nix to use findFile.
<clever> Myrl-saki: would probably be simpler to just set the config argument
<clever> import <nixpkgs> { config = ....; };
Makaveli7 has quit [Read error: No route to host]
<{^_^}> [nixpkgs] @volth opened pull request #56953 → cc-wrapper: give -march=... flag less priority → https://git.io/fhpsH
Kakky has joined #nixos
<Myrl-saki> Hm. One other thing is that getty@.service seems to override getty@tty1.service
<{^_^}> [nixpkgs] @moredhel opened pull request #56954 → Discord: add patch for discord. → https://git.io/fhpsA
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhpsx
init_6 has quit [Ping timeout: 245 seconds]
cmacrae has quit [Ping timeout: 245 seconds]
init_6 has joined #nixos
* clever heads off to bed
<gchristensen> g'night, clever
Diagon has quit [Quit: Leaving]
init_6 has quit [Ping timeout: 250 seconds]
<__monty__> nn
<{^_^}> [nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/fhpGq
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhpGY
<{^_^}> [nixpkgs] @smaret opened pull request #56956 → gildas: 20190201_b -> 20190301_a → https://git.io/fhpGs
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « all-cabal-hashes: update to Hackage at 2019-03-06T13:04:35Z »: https://git.io/fhpGG
<{^_^}> [nixpkgs] @peti pushed 2 commits to master: https://git.io/fhpGZ
<hyper_ch2> hmmmm, if I create a huge list of domains to blacklist via hosts file, is it better to 127.0.0.1 domain.tld or 0.0.0.0 domain.tld?
<{^_^}> [nixpkgs] @teozkr opened pull request #56957 → plantuml: downgrade graphviz to 2.32 → https://git.io/fhpGC
Makaveli7 has joined #nixos
<avn> Folks, does anyone have working example of weechat+wee-slack setup?
<fendor> when compiling a c++ executable, i get the error that the "vector" lib cannot be found. default.nix looks like: https://pastebin.com/qat5NAFP
<jasongrossman> hyper_ch2: I've been told that it's better to use 0.0.0.0, but I can't remember why. Maybe because you might actually run something on 127.0.0.1?
<hyper_ch2> jasongrossman: ok, thanks
<clever> avn: yes
<{^_^}> [nixpkgs] @shlevy merged pull request #56918 → references-by-popularity: get a handle on memory usage → https://git.io/fhpf2
<{^_^}> [nixpkgs] @shlevy pushed 3 commits to master: https://git.io/fhpGB
<{^_^}> [nixpkgs] @shlevy merged pull request #56919 → Closure graph memory (18.09) → https://git.io/fhpf6
<{^_^}> [nixpkgs] @shlevy pushed 3 commits to release-18.09: https://git.io/fhpG0
* clever heads off to bed
<hyper_ch2> clever: did you try trim yet?
<clever> hyper_ch2: not yet
<avn> clever: ty ;)
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> clever: Mind my asking, how does one use such a nix file?
zupo has joined #nixos
jtojnar has joined #nixos
<delan> I think I’ve narrowed it down… with sporadic corruption running sha1 on the first MiB of each vdev inside geli(8) and out, one thing led to another and I discovered that neither the guest nor the freebsd 10.3–11.1 installers were even able to sha1 /dev/zero reliably (under that guest and box at least) 🙃
<{^_^}> [nixpkgs] @lsix pushed 4 commits to staging-18.09: https://git.io/fhpGD
<{^_^}> [nixpkgs] @danbst opened pull request #56958 → auto-patchelf: don't use grep -q, as it causes Broken pipe → https://git.io/fhpG9
<infinisil> dminuoso: It's a NixOS module
<dminuoso> infinisil: Oh I see.
<{^_^}> [nixpkgs] @ck3d opened pull request #56959 → initial ghidra-9.0 → https://git.io/fhpG7
<gchristensen> delan: so what are you thinking from here?
<steveeJ> do we still have the adb utility in 19.03?
nikivi has quit [Quit: ZNC is awesome]
nikivi has joined #nixos
<{^_^}> [nixpkgs] @lsix pushed 4 commits to staging-19.03: https://git.io/fhpGj
<steveeJ> seems like it's there but quite well hidden, and we're supposed to use the module to activate it for a specific user: https://github.com/NixOS/nixpkgs-channels/blob/34aa254f9ebf5899636a9927ceefbc9df80230f4/nixos/modules/programs/adb.nix#L26
<delan> gchristensen: my immediate problem should be solved by building a new storage guest with freebsd 12.0, but if I was to investigate it further I would start with the fact that one of my boxes is affected (18.09 with linux 4.14.94 etc.) and the other isn’t (nixos-unstable with linux 4.14.102 etc.)
<steveeJ> well, it does put it in the systemPackages, but only if any user is granted permissions
<gchristensen> https://github.com/NixOS/nixpkgs/pull/56448 I'm going to merge this, any final say?
<{^_^}> #56448 (by grahamc, 1 week ago, open): libguestfs: build without the appliance
<Myrl-saki> What's the reasoning behind using overrides.conf?
ThatDocsLady_ has quit [Remote host closed the connection]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/3aae18f7dd6 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
Makaveli7 has quit [Quit: Leaving]
ThatDocsLady_ has joined #nixos
<nh2> can I get access to normal nixpkgs `pkgs` in the definition of a Haskell package somehow?
cmacrae has joined #nixos
work_ has joined #nixos
<nh2> I added a convenience functio to my `pkgs` but Haskell packages seem to get only haskellPackages passed in
<__monty__> You could always do `with import <nixpkgs> {};` I guess.
<Myrl-saki> nh2: You should be, otherwise Haskell packages that FFI wouldn't work.
<Myrl-saki> On that topic, have you checked the functions that FFI?
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 252 seconds]
Mateon3 is now known as Mateon1
<nh2> __monty__: if I use `import` then my convenience function added via `packageOverrides` wouldn't be visible though, right?
<srhb> nh2: Are we talking about hackage-packages? It gets passed in pkgs.
<Myrl-saki> Okay, this is actually an.. interesting way of doing things.
<Myrl-saki> }) {inherit (pkgs) openssl;};
<__monty__> nh2: I expect it would if you defined it in an override/overlay.
<Myrl-saki> According to hackage-packages.nix.
<srhb> Myrl-saki: The callPackage in there is different :)
<infinisil> srhb: But the thing Myrl-saki mentioned should also work with a normal callPackage
mariel__ has joined #nixos
<Myrl-saki> I mean, it's technically the same callPackage, with a different package set.
<srhb> infinisil: Yeah :)
<gchristensen> ok here goes the merge ;)
<{^_^}> [nixpkgs] @grahamc merged pull request #56448 → libguestfs: build without the appliance → https://git.io/fhN8m
ThatDocsLady_ has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @grahamc pushed 2 commits to master: https://git.io/fhpZW
<Myrl-saki> Aaaaa
<gchristensen> Mic92: ping?
<Mic92> gchristensen: yes?
<gchristensen> Mic92: should the ZFS 0.7.13 commit be backported to 19.03?
<nh2> Myrl-saki srhb infinisil __monty__: hmm, so I do the following:
<nh2> let nixpkgs = import <nixpkgs> { config = { packageOverrides = pkgs: rec { myFunction = x: ... } } };
<nh2> in haskellPackages = with pkgs.haskell.lib; pkgs.haskell.packages.ghc822.override { myhaskellpackage = self.callPackage ./myhaskellpackage.nix {}; }
<nh2> haskellPackages@{ mkDerivation, text, bytestring, ... }: mkDerivation { src = myFunction ./. }
<nh2> and myhaskellpackage.nix starts is like:
<Mic92> gchristensen: yes.
<nh2> so the question is, in the last line, where can I get `myFunction` from?
<gchristensen> Mic92: shall I do the honors, or would you like to?
qbiot has quit [Remote host closed the connection]
<Mic92> gchristensen: You can do it. I do not have a special protocol beyond running zfs.nix in tests.
vidbina has quit [Read error: Connection reset by peer]
<infinisil> nh2: Add myFunction to the argument list, and use `callPackage ./myhaskellpackage.nix { inherit (pkgs) myFunction; }`
<gchristensen> Mic92: you got it :)
<{^_^}> [nixpkgs] @Mic92 merged pull request #54536 → Update ganttproject-bin from 2.7.2 to 2.8.10 → https://git.io/fhwrl
<{^_^}> [nixpkgs] @Mic92 pushed 5 commits to master: https://git.io/fhpZR
<gchristensen> ok, running the tests now Mic92
<nh2> infinisil: it feels a bit ugly though; my intent with adding it to the top-level pkgs namespace was that it is "generally available" vs having to be passed in
<gchristensen> Mic92: you aren't listed as a ZFS maintainer, would you like to be? :)
<infinisil> nh2: (I recommend overlays and `haskell.packages.ghc822.extend` btw, packageOverrides is discouraged/deprecated and `override` for haskell package sets can have odd behavior)
<infinisil> nh2: Hmm I get you..
<Mic92> gchristensen: Guess that would make sense. I need to revert the linux 5.0 regression that disabled vector instructions in zfs anyway.
<nh2> oh, I should also mention: The haskellPackages override looks like this:
<nh2> `haskellPackages = with pkgs.haskell.lib; pkgs.haskell.packages.ghc822.override { overrides = self: super: let myhaskellpackage = self.callPackage ./myhaskellpackage.nix {}; in ... }`
<nh2> is it important for callPackage's auto-passing that here things are called `self` and `super`?
<Mic92> Also I do quite a lot filesystem stuff lately
<gchristensen> what is the occasion, Mic92 ?
<srhb> nh2: Nope.
<srhb> nh2: My favourite so far for the inner ones is helf and huper :-)
<Mic92> gchristensen: regarding the vector extensions? They made a symbol private that zfs used, but they don't zfs so they don't care.
<nh2> srhb: thanks
<{^_^}> [nixpkgs] @peti merged pull request #56946 → rPackages.phytools: fix installation → https://git.io/fhpYO
<{^_^}> [nixpkgs] @peti pushed 2 commits to master: https://git.io/fhpZz
<Mic92> don't like
<nh2> infinisil: if I switched everything to .extend, would that change the way I could propagate the `myFunction` in wor would I still have to pass it?
<gchristensen> Mic92: I mean what is the occasion for you to be doing lots of FS stuff
zupo has quit [Ping timeout: 240 seconds]
<infinisil> nh2: Hmm I don't think it will help with this but it's more flexible in general
<nh2> OK, I'll look into upgrading that in general
<infinisil> nh2: Oh actually, you could just define `inherit pkgs;` in haskellPackages, then you can take pkgs as an argument to the definition of your haskell package
stepcut has joined #nixos
<Mic92> gchristensen: I currently port a NVME driver and a rollback-protected filesystem to Intel SGX.
<gchristensen> ooooo
<nh2> infinisil: thing is, inside the `haskellPackages@{ mkDerivation, text, bytestring, ... }: mkDerivation { src = myFunction ./. }` there seems to be already a `pkgs` available even when I don't do that, but I don't know what it is. It hangs if I trace it
<infinisil> Oh hmm..
<nh2> I also wonder what would happen if somebody made a Haskell package called "pkgs"
Neo-- has joined #nixos
<infinisil> nh2: What do you mean by it hangs?
<nh2> in general the approach of passing in Haskell package names and system package names in the same attrset seems kinda questionable/confusing to me
<infinisil> No infinite recursion error even?
<nh2> infinisil: if I `src = builtins.trace pkgs ...`, the nix-build invocation hangs forever and outputs nothing
<infinisil> Weird
<infinisil> nh2: Maybe try switching to overlays + extend, I've seen weird problems getting solved by doing this
<Izorkin> infinisil: checked PR unit service?
gagbo has joined #nixos
<Izorkin> and nginx rootless mode)
<{^_^}> [nixpkgs] @grahamc pushed 2 commits to release-19.03: https://git.io/fhpZM
alex`` has quit [Ping timeout: 240 seconds]
mariel__ has quit [Remote host closed the connection]
mariel__ has joined #nixos
ErAsMuS has joined #nixos
<infinisil> Izorkin: I didn't get what you meant by "Everything connected to the web-apps, I drag in a folder /var/data/web and allow access to it only to a specific user."
<infinisil> Izorkin: Why do you need stateDir and logDir to be NixOS options exactly?
<JonReed> How can I get `nix repl` or `nix eval` to print the stack? I have an expression with a stack overflow and I'm trying to debug it, but it just says that there is a stack overflow somewhere without any hints.
<ToxicFrog> --trace?
<JonReed> ToxicFrog: --show-trace doesn't work for whatever reason :(
benhoman has joined #nixos
mariel__ has quit [Remote host closed the connection]
mariel__ has joined #nixos
simukis has joined #nixos
mariel__ has quit [Remote host closed the connection]
mariel__ has joined #nixos
<nh2> Myrl-saki srhb infinisil __monty__: whoa actually it worked all along without inherit, I just had a typo in `myFunction`...
<infinisil> Haha, classic
ThatDocsLady_ has joined #nixos
<Izorkin> infinisil: I have moved site to /var/data/web/folder2/domains/my_site. nginx log and spool modev to /var/data/web/folder1/logs/nginx and /var/data/web/folder1/spool/nginx. Wanted to move unit to /var/data/web/folder1/spool/unit
<infinisil> nh2: Would probably have been a good idea to gist the code and error, maybe one of the eyes here would've spotted it earlier
<Izorkin> access to /var/data/web only group www-data
ThatDocsLady_ has quit [Remote host closed the connection]
<nh2> infinisil: I think the copy-pasting would have taken long in this case, it's my big 3D project :D `myFunction` is called `filterSourceConvenience` and I missed an `i`
mariel__ has quit [Ping timeout: 258 seconds]
ThatDocsLady_ has joined #nixos
<infinisil> Izorkin: Hmm, alright
<infinisil> nh2: 3D project? :O
<__monty__> Now where is it coming from though? Cause what about name collisions with haskell packages if pkgs is always opened up?
ThatDocsLady_ has quit [Remote host closed the connection]
Makaveli7 has joined #nixos
<nh2> infinisil: the one I may have shown at the meetup at some point
zupo has joined #nixos
ThatDocsLady_ has joined #nixos
<timor> sphalerite: That gist with the alternative to nix-env that you showed me recently, are you using it?
<sphalerit> timor: not yet :p
<Izorkin> infinisil: https://pastebin.com/7mn3n9hC - thats correct?
zupo has quit [Ping timeout: 246 seconds]
Kakky has quit [Quit: Leaving]
<infinisil> Izorkin: I didn't say you need literalExample everywhere, you only need it where i commented
zupo has joined #nixos
<Izorkin> infinisil: ok, updated pr
hedning has quit [Quit: hedning]
<timor> sphalerit: I took that and adapted it a bit, if you are interested: https://github.com/timor/nux
<Izorkin> infinisil: fixed
<{^_^}> [nixpkgs] @e-user opened pull request #56960 → libsepol: 2.7 -> 2.8 → https://git.io/fhpno
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @e-user opened pull request #56961 → libselinux 2.7 -> 2.8 → https://git.io/fhpnM
<{^_^}> [nixpkgs] @e-user opened pull request #56962 → libsemanage: 2.7 -> 2.8 → https://git.io/fhpn5
<{^_^}> [nixpkgs] @e-user opened pull request #56963 → semodule-utils: 2.7 -> 2.8 → https://git.io/fhpnN
<{^_^}> [nixpkgs] @e-user opened pull request #56964 → checkpolicy: 2.7 -> 2.8 → https://git.io/fhpnx
<{^_^}> [nixpkgs] @matthewbauer merged pull request #52714 → gogs, gitea: add PAM support → https://git.io/fhJad
<{^_^}> [nixpkgs] @matthewbauer pushed 3 commits to master: https://git.io/fhpnp
<{^_^}> [nixpkgs] @e-user opened pull request #56965 → policycoreutils: 2.7 -> 2.8 → https://git.io/fhpce
<Myrl-saki> apply = mapAttrs (name: value: if name == "systemd/system" then value.source.overrideAttrs (_: {
<Myrl-saki> })
<Myrl-saki> This is going to be fun.
<infinisil> What's that for?
<Myrl-saki> infinisil: an overriding hack.
<Myrl-saki> Wait.
reinhardt has quit [Quit: Leaving]
<Myrl-saki> infinisil: This thing ruins my day.
<infinisil> How so?
o1lo01ol1o has joined #nixos
<Myrl-saki> infinisil: It messes so much with foo@.service.
<Myrl-saki> infinisil: Case-in-point.
<Myrl-saki> infinisil: getty@.service
<Myrl-saki> infinisil: getty@tty1.service will be overridden by whatever the dfeaults are in configuration.nix.
<Myrl-saki> infinisil: instead, you have to copy getty@.service to getty@tty1.service, then create getty@tty1.service.d/overrides.conf, which actually contains your config.
<Myrl-saki> infinisil: But it doesn't stop htere. Because getty@.service.d/overrides.conf still exists. Which conflicts with getty@tty1.service.d/overrides.conf.
<Myrl-saki> So now you have to rename it to getty@tty1.service.d/overrides2.conf, to make the order correct.
<infinisil> i guess i can be fortunate to never have needed this :)
Fare has joined #nixos
<Myrl-saki> So yeah. I hate thiss stuff already. :(
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
imdoor has joined #nixos
alex`` has joined #nixos
zupo has joined #nixos
<srhb> Myrl-saki: What are you doing?
<Myrl-saki> srhb: Making getty@tty1 run a specific TUI program.
<nh2> is there a nixpkgs function that can turna list of components into a tree, e.g.
<nh2> [a b c2]
<nh2> [a b c1]
<nh2> [a b c3]
<nh2> [a x ]
<nh2> into
<nh2> { a: { b: { c1: null, c2: null, c3: null }, x: null } }
<nh2> ?
<{^_^}> [nixpkgs] @NeQuissimus pushed 2 commits to master: https://git.io/fhpcE
<vikingman> im looking for lspci
<symphorien> ,locate bin lspci
<{^_^}> Found in packages: busybox, pciutils
<vikingman> thanks
<vikingman> :)
<tilpner> nh2: foldl with setAttrByPath maybe?
<srhb> Myrl-saki: Eg. what we do for the manual in the installer?
<symphorien> (you can have the same functionality offline with nix-index, Vikingman)
<Myrl-saki> srhb: Oh, hm.
kisik21 has joined #nixos
<Myrl-saki> srhb: Pretty much, I believe.
ThatDocsLady_ has quit [Ping timeout: 258 seconds]
<vikingman> im still learning how any of this is working :)
<symphorien> :)
<srhb> Myrl-saki: That's probably simpler than making getty do it anyway.
<{^_^}> [nixpkgs] @NeQuissimus pushed 4 commits to release-19.03: https://git.io/fhpcg
drewr has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @NeQuissimus pushed 6 commits to release-18.09: https://git.io/fhpc2
kreisys has joined #nixos
<Myrl-saki> srhb: How does the installer's manual work?
<{^_^}> [nixpkgs] @WilliButz opened pull request #56968 → grafana: 6.0.0 -> 6.0.1 → https://git.io/fhpca
<srhb> Myrl-saki: I believe it uses boot.extraTTYs to use a free slot and sets up a process there
<srhb> You can probably grep for that, I don't imagine it's used a lot of places
<Myrl-saki> Yeah, Ive been grepping tty*
fendor has quit [Ping timeout: 245 seconds]
<Myrl-saki> Found it. Thanksies.
<srhb> Myrl-saki: Sure thing.
ErAsMuS has quit [Quit: END-AUMF]
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/b36dc66bfea (from 27 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<Myrl-saki> srhb: Oh cool. THis is actually the first thing I tried. My problem is that it blocks my boot.
<srhb> Myrl-saki: Even when using a tty where getty is disabled?
<Myrl-saki> Oh, I haven't tried that.
kreisys has quit [Client Quit]
<rnhmjoj> in a package with multiple sources how do you control which source is patched by patchPhase?
<Myrl-saki> srhb: It tells me "a start job is running for..."
<srhb> Myrl-saki: And then your service?
<Myrl-saki> Oh crap.
<Myrl-saki> `Type = "oneshot";`
<nh2> tilpner: thanks, this seems to work, in combination with recursiveUpdate:
<nh2> trace: { a = { b = { c1 = null; c2 = null; }; x = null; }; }
<nh2> nix-repl> let paths = [ ["a" "b" "c1"] ["a" "b" "c2"] ["a" "x"] ]; res = lib.foldl (acc: x: lib.recursiveUpdate acc (lib.setAttrByPath x null)) {} paths; in lib.traceSeq res res
<Myrl-saki> It's because of this, isn't it?
<srhb> Myrl-saki: Sounds probable :)
<tilpner> nh2: Nice!
bobby_tables has joined #nixos
<srhb> Myrl-saki: Well, hm, actually.. Probably not. Maybe you're too early.
kreisys has joined #nixos
zupo_ has joined #nixos
biopandemic has joined #nixos
<{^_^}> [nixpkgs] @andir merged pull request #56680 → ipfs: 0.4.18 -> 0.4.19, ipfs-cluster: 0.8.0 -> 0.9.0 → https://git.io/fhAib
<{^_^}> [nixpkgs] @andir pushed 3 commits to master: https://git.io/fhpCI
<{^_^}> [nixpkgs] @andir merged pull request #56607 → cryptsetup: 2.0.6 -> 2.1.0 → https://git.io/fhA2Z
<{^_^}> [nixpkgs] @andir pushed 3 commits to master: https://git.io/fhpCt
zupo has quit [Ping timeout: 240 seconds]
calbrecht has joined #nixos
hyper_ch2 has quit [Quit: Page closed]
<timor> rnhmjoj: It depends how they are unpacked. Documentation sais that all sources are unpacked by default into the current directory. Then it cd's into the subdirectory, if there is only one, or complains if there are multiple, in which case you have to set sourceRoot yourself. From that directory, patchPhase is run.
endformationage has joined #nixos
<timor> rnhmjoj: tldr; you override patchPhase :)
ng0 has joined #nixos
ij has quit [Ping timeout: 246 seconds]
<rnhmjoj> timor: I tried changing sourceRoot but that failed hile traying to modify file permissions
<rnhmjoj> in the end I swapped src for another source which didn't need patches
<timor> rnhmjoj: you probably set sourceRoot to a non-existing directory or something, and then the chmod failed
<cmacrae> Anyone know what I need to get Sway to show up in GDM? Not sure if I need to link the `sway.desktop` file anywhere? I tried setting `environment.pathsToLink = [ "/share/wayland-sessions" ];`, but that doesn't seem to have worked
<cmacrae> Every time I log in with GDM, it just starts xterm. I've confirmed sway works (launched from a root shell)
nD5Xjz has quit [Ping timeout: 246 seconds]
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/796b760e2e7 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
ddellacosta has joined #nixos
<{^_^}> [nixpkgs] @knl opened pull request #56969 → strongswan: Make it build on macOS → https://git.io/fhpC5
<{^_^}> [nixpkgs] @danieldk opened pull request #56970 → python2Packages: 1.9.9 -> 1.9.10 → https://git.io/fhpCA
<das_j> Hm, what's the cherry-pick command for backporting again?
<das_j> Just -x?
maximiliantagher has joined #nixos
nD5Xjz has joined #nixos
maximiliantagher has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @FRidh pushed to master « flatcc: init at 0.5.2 »: https://git.io/fhpWf
maximiliantagher has joined #nixos
<{^_^}> [nixpkgs] @dasJ opened pull request #56971 → nixos/nginx: Support additional listen parameters → https://git.io/fhpWt
nD5Xjz has quit [Ping timeout: 246 seconds]
ij has joined #nixos
maximiliantagher has quit [Ping timeout: 246 seconds]
nD5Xjz has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/07fdb3b1024 (from 69 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
drakonis has joined #nixos
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gagbo has quit [Ping timeout: 245 seconds]
work_ has quit [Quit: Connection closed for inactivity]
Fare has quit [Ping timeout: 245 seconds]
Dr8128 has joined #nixos
<infinisil> das_j: -xe
erasmas has joined #nixos
bobby_tables is now known as dsx
maximiliantagher has joined #nixos
<dsx> Could someone please help me understand how to use overlays? I'm using nixops to deploy on my machines. Where and how to plug overlay in this case?
orivej has quit [Ping timeout: 240 seconds]
<infinisil> dsx: You should use the nixos option `nixpkgs.overlays` for that
<infinisil> E.g. `nixpkgs.overlays = [ (self: super: { ... }) ];`
<infinisil> ,overlay dsx
<{^_^}> dsx: 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
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dsx> error: Module `[…]' has an unsupported attribute `environment'. This is caused by assignments to the top-level attributes `config' or `options'.
<dsx> =\
<infinisil> dsx: Well what's your code? Can't help if I don't see that
<dsx> I'm on it. 1 minute :)
o1lo01ol1o has quit [Remote host closed the connection]
orivej has joined #nixos
arjen-jonathan has quit [Ping timeout: 245 seconds]
<dsx> I'm getting «error: anonymous function at […] called with unexpected argument 'version', at /nix/store/788js5[…]
slack1256 has joined #nixos
<infinisil> dsx: You want overrideAttrs, not override
zupo has joined #nixos
ij has quit [Read error: Connection reset by peer]
sigmundv has quit [Ping timeout: 240 seconds]
stepcut has quit [Remote host closed the connection]
<dsx> Hmmm...
<dsx> Now it makes more sense.
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
work_ has joined #nixos
Alling has joined #nixos
<Alling> Hello guys! I'm having some trouble with Haskell and external C libraries.
<dsx> Oh it looks like it is building fresh k8s now
<dsx> infinisil: thank you!
<noonien> i'm having a bit of trouble understanding the first one though
<infinisil> :)
<dsx> infinisil: I've been struggling to understand this since yesterday night
ij has joined #nixos
<infinisil> noonien: I prefer the second, I don't like srcs, it's weird
<Alling> Trying to use kmeans-par from Hackage by adding it to stack.yaml. When I run stack build, I get an error about "Missing dependencies on foreign libraries:"
<Alling> "* Missing (or bad) C libraries: blas, lapack"
<noonien> infinisil: yes, it is, i'm still trying to understand how it works
<Alling> "This problem can usually be solved by installing the system packages that provide these libraries (you may need the "-dev" versions). If the libraries are already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are."
<Alling> So hm, how do I know if I have those packages installed (NixOS)?
<infinisil> Alling: Use the stack nix integration: Add a section `nix: \n packages: [ blas ... ]` to stack.yaml
mmlb has quit [Ping timeout: 252 seconds]
orivej has quit [Ping timeout: 245 seconds]
maximiliantagher has quit [Ping timeout: 252 seconds]
<Alling> infinisil: Wow, cool! However, blas seems to work, but lapack is an "undefined variable" according to stack.
<infinisil> > pkgs.lapack
<{^_^}> attribute 'lapack' missing, at (string):220:1
<infinisil> > pkgs.liblapack
<{^_^}> "<derivation /nix/store/8ipqj9m9pmrlv27v67waqx2acb2qpdb8-liblapack-3.8.0.drv>"
<Alling> Is {^_^} a bot, gchristensen? :D
<gchristensen> yes
drakonis has quit [Quit: WeeChat 2.3]
<Alling> Very handy, I must say!
<gchristensen> infinisil did all the hard bot stuff :)
selfsymmetric-pa has joined #nixos
<infinisil> ;D
<infinisil> ,whomademe
<{^_^}> #<prnumber>, ',command' and '> nix' are implemented in infinisil's backend https://github.com/infinisil/nixbot utilizing gchristensen {^_^} frontend https://github.com/NixOS/ofborg/tree/released/ircbot . The rest of the features are done by other people's backends
<ddellacosta> folks, I'm still stuck on making some modifications to a Haskell transitive dependency using overlays. This is based on what srhb helped me with yesteday, and while it is not throwing errors, it doesn't seem to be doing what I want either: https://gist.github.com/ddellacosta/910c09f284e6a1eabdf9d3c658547019
<infinisil> Oh that link doesn't work anymore
<ddellacosta> anyone see any obvious problems?
maximiliantagher has joined #nixos
<selfsymmetric-pa> Hi! I have a `python` on my path and I can't figure out where it comes from. It's at `/nix/store/gbwx5sc4w0i0ipnmsa0nsk88svs983vl-python3-3.7.2/bin/python`. On Arch I remember I could specify a binary and pacman would tell me where it came from. I figure on Nix it should be even easier, since I have the hashed derivation. Is there a command which can tell me which package made this `python`?
<gchristensen> oh cool I pushed it
<infinisil> ddellacosta: How are you testing this? Try just doing `Diff = throw "DIFF!";` to see that you're actually accessing the overlay
johanot has quit [Quit: WeeChat 2.2]
<ddellacosta> infinisil: cool, let me try that, one sec
<infinisil> ,whomademe = #<prnumber>, ',command' and '> nix' are implemented in infinisil's backend <https://github.com/infinisil/nixbot> utilizing gchristensen {^_^} frontend <https://github.com/grahamc/ircbot/>. The rest of the features are done by other people's backends
<{^_^}> whomademe redefined, was defined as #<prnumber>, ',command' and '> nix' are implemented in infinisil's backend https://github.com/infinisil/nixbot utilizing gchristensen {^_^} frontend https://github.com/NixOS/ofborg/tree/released/ircbot . The rest of the features are done by other people's backends
<timor> selfsymmetric-pa: what does `which python` say?
mmlb has joined #nixos
maximiliantagher has quit [Remote host closed the connection]
<Alling> Wow, that's really cool, infinisil gchristensen!
maximiliantagher has joined #nixos
<Alling> ,ask
<{^_^}> Just ask your question. It's the best way to know if anybody can help. Or look at other ways of getting in touch with the Nix community here: https://nixos.wiki/wiki/Get_In_Touch
<Alling> ,ask What is NixOS?
<{^_^}> What is NixOS?: Just ask your question. It's the best way to know if anybody can help. Or look at other ways of getting in touch with the Nix community here: https://nixos.wiki/wiki/Get_In_Touch
adamt has quit [Ping timeout: 255 seconds]
<Alling> > 5 + 3
<{^_^}> 8
<selfsymmetric-pa> `timor` it says `/nix/store/gbwx5sc4w0i0ipnmsa0nsk88svs983vl-python3-3.7.2/bin/python`. That's kind of the problem...
<dsx> infinisil++
<{^_^}> infinisil's karma got increased to 55
xqsl has joined #nixos
<selfsymmetric-pa> I'm in a nix-shell, but I don't have `python` as a environment package.
<infinisil> Alling: If you want to try out the bot, #bottest is the best place (spam allowed ;))
<selfsymmetric-pa> I'm trying to figure out which one is sticking it in there. It's frustrating since I think a virtualenv is sticking around and wrecking my environment...
<timor> selfsymmetric-pa: nix-shell adds dependencies' bin directories to PATH
<selfsymmetric-pa> Hm, okay. Does it track which packages provide those dependencies?
<timor> selfsymmetric-pa: nix-store -q --referrers /path/to/store
<ddellacosta> infinisil: yeah that gave me the exact same output so I guess this is completely not getting picked up. Hmm...the output of cabal2nix for the specific package I'm trying to build to test this specifies the compiler vs. using haskellPackages...could that be the issue? I assumed haskellPackages would apply to anything but maybe not?
<selfsymmetric-pa> timor Brilliant, thank you.
<infinisil> ddellacosta: Oh, you might need to use haskell.packages.ghc822 or so instead
<ddellacosta> infinisil: sorry I should have said, the default.nix I added for the cabal2nix output...okay yeah, let me try that. Thanks!
<infinisil> ddellacosta: haskellPackages is only the default haskell package set
maximiliantagher has quit [Ping timeout: 245 seconds]
<ddellacosta> infinisil: right, so if my default compiler doesn't match whatever I'm using in a given project, the overlay won't get picked up, do I have that right?
<ddellacosta> (I mean, if I'm only specifying haskellPackages in the overlay)
<infinisil> Yeah I think so
<ddellacosta> okay cool
<infinisil> I'm wondering myself how this should be done optimally now
Tucky has joined #nixos
jasongrossman has quit [Ping timeout: 255 seconds]
<infinisil> Unfortunately the docs still use packageOverrides and override, which are both discouraged..
<{^_^}> [nixpkgs] @veprbl merged pull request #56862 → openafs: fix OpenAFS 1.6 on Linux 4.20 → https://git.io/fhxiZ
<{^_^}> [nixpkgs] @veprbl pushed commit from @artemist to master « openafs: fix OpenAFS 1.6 on Linux 4.20 (#56862) »: https://git.io/fhp8s
<infinisil> (override for haskell packages is discouraged)
<infinisil> (not the .override in non-haskell packages)
<infinisil> (my god this is too confusing, I want unity!)
<ddellacosta> infinisil: so I simply naively substituted "haskell.packages.ghc844" everywhere "haskellPackages" appeared in that overlay and now I'm getting "attribute 'packageOverrides' missing," so I'm clearly still not understanding something
<yl[m]> 👍
<ddellacosta> infinisil: yeah, the haskell infrastructure is pretty hard to get familiar with at first :-(
<noonien> where can i read more about how `srcs` works?
<infinisil> ddellacosta: Not as easy as that, the link i posted demonstates this a bit, you need a bunch of //
<infinisil> I gotta go for now though, be back later
<ddellacosta> yeah although I'd rather stick with using an overlay at this point rather that use a separate technique, but I guess whatever :-/
<ddellacosta> rather *than
<ddellacosta> infinisil: oh but maybe I can apply what you linked me to in the overlay, I see--thanks!
dsx has left #nixos [#nixos]
yl has joined #nixos
<Alling> I ran into more problems. Adding blas and liblapack to stack.yaml worked, but now it complains about dependencies. I've added subdependencies to extra-deps as it suggested, but now it suggests adding base-4.6.0.1, even though it's already there.
ubert has quit [Remote host closed the connection]
linarcx has joined #nixos
<timor> noonien: I wondered that myself recently. I think pretty much everything there is to that you can find in pkgs/stdenv/generic/setup.sh in unpackPhase().
<linarcx> Hi. i installed i3. and in config file there is a section that shows bar. the error is:`Error:status_command not found or is missing a library dependency`
Dr8128 has quit [Ping timeout: 240 seconds]
<Alling> Also in my regular dependencies I have "base >= 4.7 && < 5" and it seems that stack build finds base-4.12.0.0 which it doesn't like.
<noonien> timor: hmm, i'll give that a look, thanks!
<linarcx> what is statu_command? is there seperate package or option for it?
<timor> linarcx: How did you install i3?
<linarcx> timor: I follow the wiki.
<linarcx> services.xserver = {
<linarcx> enable = true;
<linarcx> layout = "us";
<linarcx> desktopManager = {
<linarcx> xkbOptions = "eurosign:e";
<linarcx> default = "none";
_kwstas has joined #nixos
<linarcx> xterm.enable = false;
<linarcx> };
<linarcx> # Enable the SDDM Display Manager.
<linarcx> displayManager.sddm = {
<linarcx> enable = true;
<linarcx> autoNumlock = true;
<timor> linarcx: please use a paste bin
<linarcx> theme = "maya";
<linarcx> };
<linarcx> windowManager.i3.enable = true;
<linarcx> };
<linarcx> services.xserver.windowManager.i3.extraPackages = with pkgs; [
<linarcx> dmenu
<linarcx> i3status
<linarcx> i3lock
<linarcx> #i3nagbar
<linarcx> ];
<linarcx> I have not browser right now. sorry.
<slack1256> you can use: `$ cat file | curl -F 'f:1=<-' ix.io` as a pastebin from the cli
<tilpner> Or | nc termbin.com 9999
<tilpner> Which I find easier to remember
<slack1256> (although I would like irc to handle multiline msgs)
<{^_^}> [nixpkgs] @zimbatm merged pull request #56495 → pipenv: fix python loading issue → https://git.io/fhNMC
<{^_^}> [nixpkgs] @zimbatm pushed to master « pipenv: fix python loading issue (#56495) »: https://git.io/fhp8w
_kwstas has quit [Client Quit]
<ddellacosta> what's The Right Way to specify a patch path when using appendPatch (https://github.com/NixOS/nixpkgs/blob/756e7cd84e38dd7dd2e80200e85a238bbe6a3628/pkgs/development/haskell-modules/lib.nix#L184)?
<{^_^}> [nixpkgs] @amazari closed pull request #56794 → chromium: Add optional vaapi hw video decoding support → https://git.io/fhxY8
<Shouou> If I have a /nix/store/p72iz7ha8g7lsbm3ygf5vralj1jhbv96-X-1.0/bin/app should `app` be in PATH or is there some extra magic I have to sprinkle after placing a binary in $out/bin?
<srhb> ddellacosta: My "the right way" sense it tingling again. ;-)
<symphorien> Shouou: you obtained the binary wit nix-build ?
<symphorien> nix-env -i ./result is the quick and dirty way
linarcx has quit [Ping timeout: 245 seconds]
<srhb> ddellacosta: The short version is just `appendPatch yourPackage patch`
<ddellacosta> srhb: haha
<symphorien> Or even nix-env -i /nix/store/...
linarcx has joined #nixos
<ddellacosta> srhb: so I've tried refering to the patch that I put in my .config/nixpkgs/overlays/ directory as well as hardcoding the full path, but no luck--I still get "no such file..."
<ddellacosta> so I'm thinking I need to somehow "import" the file into the nix work directory or something, somehow
<Shouou> symphorien, ah I completely forgot. Thanks!
<srhb> ddellacosta: No, the path is correct. care to share a snippet?
<symphorien> ddellacosta: Did you quote the path ?
<ddellacosta> srhb: sure one sec
<ddellacosta> symphorien: yeah, tried it multiple ways--it clearly sees what I'm adding based on the error
<srhb> ddellacosta: It should not be quoted.
<timor> linarcx: sorry, I probably won't be able to help you with the specifics. The reason I asked how you installed it is that sometimes new users get confused how to install a window manager. But you could post the commands you ran, and the errors you received, maybe relevant logs, too.
vidbina has joined #nixos
<linarcx> timor: indeed. i have to read the logs?
<timor> linarcx: well, that depends on what happened. `journalctl -eu display-manager` is usually a good starting point
<ddellacosta> srhb: ah okay, well I've tried it without too so dunno
<srhb> ddellacosta: The diff-header looks wrong
<srhb> ddellacosta: Is it complaining about "Test-Patched.hs" ? :)
<ddellacosta> I just added the error I'm getting in a comment srhb
<srhb> Is that with the unquoted path?
<ddellacosta> oh yeah, with unquoted, full path
<ddellacosta> that is the output I get
<yl[m]> this is ready for review: https://github.com/NixOS/nixpkgs/pull/56927/files
<ddellacosta> sorry I have a bad habit of tweaking gists after the favt
<symphorien> Relative paths must start with ./
<ddellacosta> *fact
<ddellacosta> symphorien: again, tried relative, full path, quoted, unquoted--nothing works
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/18fec2687c0 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<pie_work> is it possible to get pypi2nix to generate a nix file but not actually try to build anything?
<srhb> ddellacosta: That is funny. Let me try and reproduce..
erasmas has quit [Quit: Lost terminal]
linarcx has quit [Ping timeout: 245 seconds]
erasmas has joined #nixos
<srhb> ddellacosta: It ought to be normalized to a nix store path
<ddellacosta> srhb: you mean, whatever I pass in should get normalized, as long as it can find it in the first place?
<ddellacosta> or are you talking about something I need to be doing that I'm not?
<ddellacosta> argh okay wait a second now it looks like I am in fact getting an error with the patch itself. Sorry folks. Let me work on this and come back if it's still not working
<srhb> ddellacosta: Okay :)
<ddellacosta> srhb: looks like your initial guess may have been exactly right!
<srhb> ddellacosta: And yes, that error seems to imply that the file is literally not there such that it couldn't be put into the store even.
<ddellacosta> right, okay
Tucky has quit [Quit: WeeChat 2.2]
maximiliantagher has joined #nixos
linarcx has joined #nixos
<srhb> ddellacosta: It should look like this: https://gist.github.com/298ffcb2ff78e6379642278e70a86852
<srhb> (approximately)
Ariakenom has quit [Ping timeout: 252 seconds]
judson_ has quit [Ping timeout: 250 seconds]
yl has quit [Quit: WeeChat 2.2]
linarcx has quit [Client Quit]
judson has joined #nixos
linarcx has joined #nixos
linarcx has quit [Client Quit]
<{^_^}> [nixpkgs] @amazari opened pull request #56973 → chromium (72): Add hardware video decoding using VAAPI → https://git.io/fhp8j
linarcx has joined #nixos
<dmj`> Is it possible to nix-copy-closure with nixops
cryptomonad has joined #nixos
<linarcx> Anybody has `status_command` error in i3?
<dmj`> similar to how you can scp with it
erictapen has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @veprbl pushed to release-18.09 « pythonPackages.sqlalchemy_migrate: a dummy change to trigger hydra build »: https://git.io/fhp4U
reinhardt has joined #nixos
<{^_^}> [nixpkgs] @vcunat opened pull request #56974 → knot-dns: 2.7.6 -> 2.8.0 → https://git.io/fhp4I
<ddellacosta> srhb: yeah, apparently I don't know the right flags to diff to make it do that so I just manually edited the second filename to match. Thanks!
kreisys has joined #nixos
<srhb> ddellacosta: Here's a trick. nix-build '<nixpkgs>' -A haskellPackages.Diff.src; tar xf result; cd Diff-*; git init; git add .; [edit file]; git diff
<noonien> should i quote paths given by nix, such as $out?
MichaelRaskin has joined #nixos
<srhb> noonien: $out itself will never contain a space.
<gchristensen> can't hurt, but no
<ddellacosta> srhb: oh nice, thanks
<noonien> srhb: what guarantees this?
<noonien> can a user not change the "/nix" prefix?
maximiliantagher has quit [Remote host closed the connection]
<srhb> noonien: .. I suppose you're right!
<noonien> not that it matters anyway, from what packages i've read, none escape $out anyway
<gchristensen> I suppose you are
Xal has quit [Ping timeout: 245 seconds]
<tilpner> Technically yes, but everything else will break too
maximiliantagher has joined #nixos
<gchristensen> you would be in a nightmare if you tried it though, hehe
<noonien> so chaning the /nix prefix will probably break a lot of stuff
<srhb> noonien: I had never considered that tbh :)
<srhb> noonien: It does. Caching, for one.
<srhb> noonien: (Even without breaking nixpkgs with spaces in $out :-P)
<noonien> oh, i had a question i wanted to ask for a while, what would you change about the nix language/ecosystem? i for one would improve the "stdlib", by moving most functons from pkgs.lib into builtin, and making them more easily available
reinhardt has quit [Quit: Leaving]
<MichaelRaskin> I have done some cross-builds with non-/nix store
<MichaelRaskin> But no spaces
<timor> noonien: Do you need them that often?
<srhb> C:\Nix Store
* srhb runs away scared
<gchristensen> srhb: you're hurting me
<srhb> Sorry xD
<noonien> timor: i've not used nix long enough to answer that, but i did use `lib` in my short time using nix
<ldlework> doh, summon is not in nixpkgs
<srhb> noonien: My very vague feeling is that I'd prefer the builtins to be as few as possible to keep the core language really simple
Xal has joined #nixos
<srhb> noonien: So it should only implement things that are impossible in nixlang
<pie_work> this seems sketchy, i need to pass -E python27 to get this to work: pypi2nix -e unicorn -E python27
<srhb> noonien: Right now, we also have to implement things that are too _slow_ in nixlang.
<srhb> noonien: So I guess my wish is: Faster nixlang :)
<timor> noonien: I think it is good to have a clear distinction between `nix` and `nixpkgs`. The `lib` you mention comes from the latter.
<infinisil> noonien: Yeah I agree, a standard library of sorts would be nice
<noonien> for example, even easy stuff as string manipulation seems tricky in nix, for exammple https://github.com/NixOS/nixpkgs/blob/master/lib/strings.nix#L333 makes simple operations on unicode strings broken
<ldlework> anyone good at packaging go apps
<infinisil> noonien: But I don't think it should be in builtins.
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<srhb> ldlework: Does "good" mean "better than just running go2nix and sticking the thing in nixpkgs" ?
<noonien> i've found the stdlib to be a really important factor when choosing a language
<ldlework> nope, do that
<ldlework> thx
<noonien> the least stuff i use outside the stdlib the better
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/18fec2687c0 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
<srhb> noonien: Fun, I have the opposite experience.
<ldlework> lol srhb think that would work on this? https://github.com/cyberark/summon
<noonien> Hmm, interesting
<ldlework> looks pretty simple...
<noonien> I find that library providers rarely give as much thought to APIS/functionality as as given the stdlib
<timor> noonien: Do you plan to use nix for something else besides system configuration and package management?
kreisys has joined #nixos
<srhb> ldlework: Hard to say, I don't know go very well. Give it a shot, it usually works.
<noonien> timor: to be honest, i'm unsure
<timor> I think that would be quite unusual
<srhb> noonien: fwiw I come from mostly Haskell, and there's a ton of top-notch libraries, and the base language is really quite small.
<timor> With that in mind, I think the set of core features matches the intended class of problems to solve quite well.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<noonien> i love it so far, best of everything i have experience with so far
ij has quit [Ping timeout: 240 seconds]
<infinisil> srhb: Haskell does however come with a default set of packages available
<srhb> infinisil: base?
<ldlework> srhb: when you run go2nix and it shits out the files, how do you then add it to nixpkgs?
<noonien> srhb: i've not used any functional programming languages tbh, i dislike haskel for a number of reasons
<ldlework> do you have to get the .nix files comitted to the project?
<srhb> ldlework: iirc there's two files, one that doubles as the default.nix, one that's the deps.
<infinisil> srhb: Yeah, and I think a bunch more are also included in ghc by default, text and bytestring are part of that set
<srhb> ldlework: search the nixpkgs tree for goDeps (I think) for examples
<srhb> infinisil: True!
<ldlework> :S
<noonien> out of all the languages i've used, i came to prefer go the most. because of its stdlib, libraries tend to work together a lot better in my experience
<srhb> ldlework: Or read the nixpkgs manual go section :)
<infinisil> noonien: srhb: timor: (Btw, we would have a #nix-lang channel focusing on nix as a language)
<srhb> infinisil: Thanks, I always forget that. Maybe I should just, like, hang out >_>
<srhb> It's not like I already have too much #nix-blah in my sidebar...
<noonien> and ease of code documentation, something i see nix has as well, which a LOVE! havinng to write documentation independent of code, or having to go through painful rituals and convetions makes writing documentation even more of a chore
<noonien> i'm also unsure how cross-compilation works in nix, but it would have been super great if it was built into nix, and not an artifice of nixpkgs
<srhb> I firmly disagree with that last point, but yeah, probably a better topic for -lang :)
gagbo has joined #nixos
<noonien> cross-compilation?
<srhb> Yes.
slack1256 has quit [Remote host closed the connection]
<infinisil> Let's go to #nix-lang shall we?
Christia7 has joined #nixos
<noonien> sure
<ddellacosta> infinisil, srhb : on a positive note this patch finally worked! So thanks so much for all of your help. Unfortunately I'm now seeing this: https://gist.github.com/ddellacosta/4f4b4341c72fd9596e333a97c5436f12 Any chance either of you know what this could be? Seems like this may be a more haskell-specific issue though, something I need to include as an explicit dependency or something
<ddellacosta> I feel like the fact that the library it's complaining about is called "patience" is some kind of cosmic message to me
<srhb> ddellacosta: I believe so too :-)
<ddellacosta> heh
<srhb> ddellacosta: What version is it at?
<srhb> You may just need to jailbreak things.
<ddellacosta> srhb: I don't think I'm explicitly requiring that lib in my cabal file, if that's what you're asking about.
<srhb> ddellacosta: Is your package chell?
Christia7 is now known as Christia9
<srhb> ddellacosta: chell is demanding patience == 0.2.*, but your version of patience is (nix eval nixpkgs.haskellPackages.patience.version)
<srhb> ddellacosta: Which, if you're on 18.09, is 0.1.1
<ddellacosta> oh no, it's my web site, basically a hackyl install
<srhb> ddellacosta: Somehow you're (possibly transitively) depending on chell, which depends on patience in that version.
freeman42x has joined #nixos
<ddellacosta> ah, okay, so this may be simple to fix, and moreover, all about my cabal setup. Sorry--let me mess with it and come back if I'm still stuck. Thanks as always for your copious amounts of help srhb !
<srhb> ddellacosta: (The possible solutions are: bumping patience locally for your build, jailbreaking chell (with probable other breakage to follow), ... )
<srhb> ddellacosta: Sure
<ddellacosta> gotcha
Christia9 has quit [Quit: issued !quit command]
<nh2> Myrl-saki srhb infinisil __monty__: Here is the finished improved filterSource function I built based on my earlier question btw: https://gist.github.com/nh2/c5e9b81f6d90fb55589fa824232caf67
<infinisil> nh2: Oh nice! nh2++
<{^_^}> nh2's karma got increased to 5
<srhb> nh2++ indeed
<{^_^}> nh2's karma got increased to 6
<nh2> infinisil: I got sick of all kinds of build outputs making it into my build inputs, so I made that properly now
<infinisil> nh2: I've just been using this ugly incantation all over the place: https://github.com/Infinisil/soph/blob/master/default.nix#L15
<nh2> tilpner: it also has the tree stuff you helped me with ^
<infinisil> nh2: I feel like ideally Nix should have something like this builtin, instead of the really inconvenient and confusing builtins.filterSource
erictapen has joined #nixos
ddellacosta has quit [Ping timeout: 252 seconds]
ddellacosta has joined #nixos
cmacrae has quit [Ping timeout: 252 seconds]
<srhb> infinisil: "like this" ~ regex filtersource?
<pie_work> garbas, can i tell pypi2nix to use pillow from nixpkgs?
genesis_ has joined #nixos
genesis_ is now known as genesis
<infinisil> srhb: Eh, I don't think a regex is all that useful for filtering files
<srhb> infinisil: Hmm, then i don't understand what you're asking for.
<infinisil> srhb: nh2's gist is what I want :)
<srhb> Ah, agreed :-P
Ariakenom has joined #nixos
<lejonet> srhb: *prod prod*
timor has quit [Ping timeout: 245 seconds]
gagbo has quit [Ping timeout: 250 seconds]
Ariakenom has quit [Ping timeout: 240 seconds]
pie_work has quit [Ping timeout: 252 seconds]
<infinisil> nh2: Are you considering PRing that to nixpkgs?
<srhb> lejonet: Yes! I do have a pubkey for you, I've just been... Lazy tonight xD
<srhb> lejonet: btw, your name has a horrible impact on me.
<lejonet> srhb: haha, whaat? xD
calbrecht is now known as Guest41138
<nh2> infinisil: would surely not mind, where should it go?
<srhb> lejonet: The Sabaton song keeps running in my head Q_Q
<lejonet> srhb: how's that horrible?!
<{^_^}> [cabal2nix] @peti pushed 2 commits to v3: https://git.io/fhp4S
<srhb> lejonet: It's not, just when we work together I hear it every day :D
linarcx has quit [Quit: WeeChat 2.4]
<lejonet> srhb: moahahahaha!
<infinisil> nh2: Well, there is nixpkgs/lib/sources.nix that already has a bunch of filter stuff, I wouldn't mind it in a separate directory in lib though
<infinisil> (defined in sources.nix as `import ./filterSourceConvenience.nix`)
selfsymmetric-pa has quit [Remote host closed the connection]
vidbina has quit [Ping timeout: 255 seconds]
<Izorkin> infinisil: nothing more needs to be fixed?
ericsagnes has quit [Ping timeout: 252 seconds]
<infinisil> Izorkin: If there's something I want to say I'll do it in the PR
<Izorkin> ok
JonReed has quit [Ping timeout: 256 seconds]
ericsagnes has joined #nixos
<nh2> infinisil: do you think it should have a better name? `filterSourceConvenience` sounds a bit generic
Guest41138 has quit [Quit: rcirc on GNU Emacs 27.0.50]
<ddellacosta> srhb: okay so I'm reviewing what you wrote, and I'm confused because for my system, `nix eval nixpkgs.haskell.packages.ghc844.patience.version` gives me 0.2.1.1 (the latest), and chell is at 0.5 and requires 0.2.* according to hackage (and the error output). This seems broken?
<infinisil> nh2: Hmm can't think of a better name right now, maybe ask for some discussion on that in the PR
<srhb> ddellacosta: Are you sure your expression uses the same version of nixpkgs?
<ddellacosta> srhb: pretty sure, only because I spent so much time figuring out that I needed to refer to haskell.packages.ghc844 vs. haskellPackages to get the patch working in the first place
<srhb> ddellacosta: This was 18.09, right?
<ddellacosta> yeah, 18.09
<srhb> (I get a different problem with chell on unstable)
<srhb> Let me check..
<ddellacosta> I mean, I do also have nixpkgs-unstable in my channels if that is relevant, but that's it
<infinisil> nh2: Maybe such a long and unwieldy name is a good thing, because maybe we could deprecate all other filter functions eventually, then this could become the new lib.filterSource (or so)
arjen-jonathan has joined #nixos
<infinisil> And the unwieldy name is good so people don't get confused
<infinisil> It's like naming something thingThatDoesFooYetToBeNamedProperly :P
<srhb> ddellacosta: On a clean 18.09, it looks like chell builds for me. So something is fishy.
<srhb> ddellacosta: Pastebin your full build log please
<srhb> ddellacosta: Maybe I missed something :)
<ddellacosta> srhb: more likely I did, haha...but sure thing, one sec
<{^_^}> [cabal2nix] @peti pushed 2 commits to v3: https://git.io/fhp4j
<{^_^}> [nixpkgs] @andir pushed 27 commits to openssl-1.1: https://git.io/fhpBk
<Shouou> My Python package complains about not finding lame, which I've listed in propagatedNativeBuildInputs – is this correct usage or should I list it elsewhere?
<symphorien> probably propagatedBuildInputs
<symphorien> hum, is lame a C lib ?
<ddellacosta> srhb: finally, http://ix.io/1CIG
<Shouou> symphorien, I assume so, or C++.
<symphorien> then you need to find the python code opening the lib, and replace it by a full path
<srhb> ddellacosta: chell-0.5 is not in 18.09 as far as I can see
<srhb> ddellacosta: So you appear to be using a different channel than you expect.
<Shouou> symphorien, it works within a nix-shell where I manually list the deps, so I assume it's not necessary then?
<srhb> ddellacosta: (It should be 0.4.0.2)
* ddellacosta sobs
<srhb> ddellacosta: Psychic debugging: Have you named your unstable channel "nixpkgs" ?
<ddellacosta> srhb: I don't recall naming it anything, but it is in fact named nixpkgs apparently
<srhb> That's not good :)
<Shouou> symphorien, luckily it seems I don't need to do that – propagatedBuildInputs actually did the trick. Thanks for the help!
<ddellacosta> damn
<srhb> ddellacosta: You may be using it for a lot more than you bargained for.
<symphorien> nice :)
<nh2> infinisil: I think I should also kill the use of `builtins.filterSource` in my `.filter` helper and use `builtins.path` instead there: https://github.com/NixOS/nix/issues/1305#issuecomment-415902068
<srhb> ddellacosta: delete, readd under a name like nixpkgs-unstable, update your channels, try again.
<ddellacosta> srhb: yeah I'm starting to wonder if this is the cause of a bunch of my problems
<ddellacosta> yeah, just did that
<__monty__> nh2: That looks pretty good. Why put it in pkgs rather than lib though? Wouldn't that get rid of the dependency on lib?
calbrecht` has joined #nixos
Alling has quit [Ping timeout: 256 seconds]
<ddellacosta> it annoys me that by default doing `nix-channel --add https://nixos.org/channels/nixpkgs-unstable` names it 'nixpkgs' by default...seems like I'm not the only beginner that could bite
<ddellacosta> I didn't think about it until now
<srhb> ddellacosta: I'm not sure how to save beginners from nix-channel at all :P
<ddellacosta> I mean, I'm just cranky because of how much time I've spent on this, lol
<nh2> __monty__: I put it into pkgs only in my local project, to indicate that it's not a standard nixpkgs thing; for the PR into nixpkgs, it'd go into lib
<{^_^}> [nixpkgs] @kyren opened pull request #56977 → stepmania: switch to clangStdenv → https://git.io/fhpB0
<srhb> ddellacosta: But you're right, that might be a pitfall we could get rid of...
calbrecht` has quit [Client Quit]
<srhb> ddellacosta: To be fair, it's caused by two things: The default channel in nixos being called nixos instead of nixpkgs, which is a historical mistake, probably, and the fact that user and root channels can share names but be different, which is probably not something we want to change.
<laalf> https://github.com/NixOS/nixpkgs/issues/33231 still seems to be an issue. is anyone looking at this?
<{^_^}> #33231 (by jaens, 1 year ago, open): GDK_PIXBUF_MODULE_FILE should not be set in DE modules (KDE, Xfce)
adamt has joined #nixos
<ddellacosta> yeah, this kind of stuff happens. I'll think about how this could be improved myself...I've got a lot of documentation and beginner-learning-related notes to type up as soon as I get this sorted
<srhb> ddellacosta: Nice, thank you for that. :)
<ddellacosta> wait until I actually produce something, haha! But I'll ping you when I have something to show...
<jtojnar> laalf: the issue OP was having was fixed by https://github.com/NixOS/nixpkgs/pull/42562
<{^_^}> #42562 (by ambrop72, 36 weeks ago, merged): Use a NixOS module for generating the gdk-pixbuf loaders cache.
drakonis has joined #nixos
<{^_^}> [nixpkgs] @knedlsepp opened pull request #56978 → oclock: Fix build → https://git.io/fhpBa
Ariakenom has joined #nixos
<garbas> pie__: i'm assuming you are pie_work who pinged me an hour ago regarding pypi2nix. you can not use python packages from nixpkgs and pypi2nix.
<ddellacosta> srhb: oh hey guess what now that I fixed my nixpkgs-unstable channel name it builds without any overlays or cabal file tweaking. Wow, do I feel dumb...at least I learned something...a lot actually. I still feel stupid though, haha
<srhb> ddellacosta: Live and learn :)
<ddellacosta> indeed!
<pie__> garbas, hi yes thanks
maximiliantagher has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @knedlsepp opened pull request #56979 → xorg.editres: fix build → https://git.io/fhpBX
<pie__> garbas, the problem is I cant get pillow to work and its a dependency of something else, so I cant just not include it
calbrecht has joined #nixos
thomashoneyman has joined #nixos
maximiliantagher has joined #nixos
acarrico has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @LnL7 opened pull request #56980 → pythonPackages.distlib: init at 0.2.8 → https://git.io/fhpBA
maximiliantagher has quit [Ping timeout: 268 seconds]
orivej has joined #nixos
zupo has joined #nixos
<{^_^}> [nixpkgs] @knedlsepp opened pull request #56981 → Fix sewer → https://git.io/fhpRJ
ij has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #56982 → notmuch: 0.28.2 -> 0.28.3 → https://git.io/fhpRY
drakonis1 has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #56983 → xapian: 1.4.10 -> 1.4.11 → https://git.io/fhpRO
ddellacosta has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @dtzWill opened pull request #56984 → birdfont: 2.25.0 -> 2.26.0 → https://git.io/fhpRZ
ddellacosta has joined #nixos
pie_ has joined #nixos
ng0 has quit [Remote host closed the connection]
<noonien> how can i iterate over a list and create an attrset from it?
<pie__> noonien, you mean turn a list of strings into a set with attributes named like the strings_
<pie__> ?
<LnL> > stdenv.lib.listToAttrs [{ name = "foo"; value = 42; }]
<{^_^}> { foo = 42; }
<pie__> noonien, if you have some free time and motivation at some point, i highly recommend peeking through the lib directory
jasongrossman has joined #nixos
<noonien> no, not strings. i have a list like so: `[ { name = "foo"; src = fooSrc; } { name = "bar"; src = barSrc; } ]`, and i need to turn it into `{ foo = doSomething fooSrc; bar = doSomething barSrcl }`
work_ has quit [Quit: Connection closed for inactivity]
<noonien> pie__: i am looking at the documentation, have looked in the source before i remmeber seeing exactly what i need but i can't find the name, i'll look again
<garbas> pie__: let me find an example for pillow for you
<symphorien> use listToAttrs and then mapAttrs then I guess
<pie__> garbas, i did see a snippet in a makefile in your repo somewhere
<pie__> garbas, I tried it and it failed :/
<pie__> it was complaining about some jpeg stuff, but I had all the jpeg stuff in -e :/
<pie__> i mean -E
<noonien> symphorien: ah, builtins.listToAttrs is exactly what i was looking for, thanks!
<pie__> noonien, lnl gave an example after i started talking :)
<symphorien> yes credit goes to LnL
<noonien> oh, didn't notice that, thanks LnL!
<LnL> :p
<garbas> pie__: weird, let me try to get travis to be green again and then the example from there should work
calbrecht has quit [Quit: rcirc on GNU Emacs 27.0.50]
<mog> final spammining from me. new nixos apparel for 19.03! get it while its hot https://www.redbubble.com/people/mogorman/works/37459559-nixos-19-03-koi
<pie__> garbas, ty ^.^ i will try to occupy myself with something else meanwhile...hmm
<pie__> mog, wtf thats pretty rad
<mog> thanks. all profits go to nixos foundation
<{^_^}> [nixpkgs] @veprbl merged pull request #56925 → qtwebkit-plugins: fix hunspell build issue → https://git.io/fhpJ5
<{^_^}> [nixpkgs] @veprbl pushed commit from @stephengroat to master « qtwebkit-plugins: fix build for different hunspell version (#56925) »: https://git.io/fhpR6
<LnL> noonien: there's also genAttrs which is a bit more convenient for certain cases
<LnL> > stdenv.lib.genAttrs ["foo"] (name: 42)
<{^_^}> { foo = <CODE>; }
<noonien> it looks like listToAttrs is a better choice in this case, i'm looking how to iterate over an array now
<pie__> noonien, do you have any functional programming experience_
<pie__> ?
<LnL> map
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/4c089d328fe (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<LnL> > map (x: x + 1) [1 2]
<{^_^}> [ <CODE> <CODE> ]
<noonien> pie__: i do, but i prefer documentation to intuition.
ng0 has joined #nixos
<noonien> map was what i was going for as well, i was lookinng in the nix manual builtins and missed it
<pie__> noonien, ok just wondering, i was peeking at this the other day, also i highly recommend nix repl, though tab completion isnt always helpful beause either you think of the right name or not; map is a builting, theres also fold around somethwere
<pie__> yeah the builtin list is a good thing to read over
<LnL> there's some documentation here, but I think there's a bunch of stuff still missing https://nixos.org/nixpkgs/manual/#sec-functions-library
<pie__> LnL, oh theres things that arent in there? :O
<LnL> I noticed last time, it's only lib.attrsets.*
<pie__> might be nice if the docs mentioned the existence of undocumented functions
<pie__> maybe it does and i just didnt read carefully :V
<symphorien> the existence of undocumented functions is undocumented
<pie__> x'D
<{^_^}> [nixpkgs] @veprbl pushed commit from @stephengroat to release-19.03 « qtwebkit-plugins: fix build for different hunspell version (#56925) »: https://git.io/fhpR9
maximiliantagher has joined #nixos
freeman42x has quit [Quit: Leaving]
<{^_^}> #53055 (by tazjin, 9 weeks ago, merged): Add automatic generation of library function documentation
<noonien> `fonts = builtins.listToAttrs (map (font: { name = font.name; value = createFont font; }) srcs.fonts);` is what i went for
<LnL> ^ that incudes strings, lists, etc.
<noonien> font, in this case is `{ name = ..; src = ..l };`, should i use `{ name, src }:` instead of `font:` for better type checking?
<tazjin> LnL: I think the new docs will be included on nixos.org once the manual is updated after the 19.03 release
<LnL> noonien: ^ that's the one you want
<LnL> tazjin: yeah just checked that, thought you did it before 18.09
<tazjin> There are also still two files or so missing, because cleaning up the doc comments is a bit of work (to ensure we generate nice docs with annotated parameters etc.)
<tazjin> LnL: I did it at NixCon last year so it was just about too late :)
<LnL> yeah, but this is much better already
<gchristensen> tazjin++
<{^_^}> tazjin's karma got increased to 2
<{^_^}> [cabal2nix] @peti pushed to v3 « cabal2nix: greatly simplify the CLI »: https://git.io/fhpRx
<infinisil> > :p map (x: x + 1) [1 2]
<{^_^}> [ 2 3 ]
ij has quit [Ping timeout: 268 seconds]
<tazjin> LnL: if you fancy writing some docs yourself, check out #49383 for the cleanup that was necessary in the existing modules
<{^_^}> https://github.com/NixOS/nixpkgs/pull/49383 (by tazjin, 18 weeks ago, merged): Update library function "docstrings" for nixdoc generation
<tazjin> it's usually not even writing new docs, just making sure comments are in the right places etc.
vk3wtf has joined #nixos
<{^_^}> [nixpkgs] @nh2 opened pull request #56985 → sources: Add explicitFilterSource → https://git.io/fhp0T
maximiliantagher has quit [Ping timeout: 250 seconds]
<nh2> infinisil: srhb __monty__ Myrl-saki tilpner: https://github.com/NixOS/nixpkgs/pull/56985
<{^_^}> #56985 (by nh2, 2 minutes ago, open): sources: Add explicitFilterSource
<nh2> infinisil: I added it to `sources` in the end, it seems to fit in quite nicely there, also because of the terminology of the other `...filter = path: type` functions
<{^_^}> [nixpkgs] @thpham opened pull request #56986 → [WIP] azure waagent: 2.0 -> 2.2.36 → https://git.io/fhp0Y
<{^_^}> [nixpkgs] @bachp opened pull request #56987 → nixos/nextcloud: fix escapings and ocm-provider → https://git.io/fhp03
<__monty__> Sounds really good, great work : )
Dr8128 has joined #nixos
<noonien> is there a contribution guide for nixpkgs?
<infinisil> nh2: Nice, I'll give some feedback in the PR
<infinisil> noonien: Take a look at the nixpkgs manual, there is one :)
<noonien> oh, awesome!
<nh2> infinisil: thanks!
<noonien> is there a formatting issue?
<noonien> or are the contributing guidelines just for python modules/applications?
<{^_^}> [nixpkgs] @jtojnar pushed to master « pulseeffects: 4.4.7 → 4.5.5 »: https://git.io/fhp0l
<tilpner> Does anyone have an example of packaging a Go application that doesn't vendor everything?
<tilpner> They say it uses go modules from Go 1.11
<noonien> oh, so sorry, perhaps i'm too tired
<noonien> jtojnar: thanks for noticing!
slack1256 has joined #nixos
<{^_^}> [nixpkgs] @bkchr opened pull request #56988 → Plasma5: Use upstream xsession/wayland-session files → https://git.io/fhp0E
<pie__> garbas, to be fair im not even sure whats pulling in Pillow and I'm not sure how to find out. I googled and pipdeptree only seems to operate on already installed packages.
<tazjin> tilpner: there's a buildGoPackage helper in nixpkgs for which you generate derivations using different tools based on the dependency manager used in the project
<tazjin> I haven't used the "official" modules but it seems like the tool for that is https://github.com/adisbladis/vgo2nix
<adamt> Is it safe to assume all services have a `enable` attribute? I want to get the list of enabled services, and use it to generate monitoring templates. :-)
vk3wtf has quit [Ping timeout: 258 seconds]
<tilpner> tazjin++
<{^_^}> tazjin's karma got increased to 3
<noonien> jtojnar++
<{^_^}> jtojnar's karma got increased to 7
<noonien> infinisil++
<{^_^}> infinisil's karma got increased to 56
Neo-- has quit [Ping timeout: 240 seconds]
maximiliantagher has joined #nixos
ng0 has quit [Remote host closed the connection]
ng0 has joined #nixos
<pie__> garbas, ok i figured out that the first part of pypi2nix output shows dependency resolution as it happens
<noonien> i've got `boot.kernelPackages = pkgs.linuxPackages_latest;`, combined with `boot.kernelParams = [ "zfs.zfs_arc_max=5368709120" ];`, when doing a rebuild, i get `modinfo: ERROR: Module alias zfs_arc_max=5368709120 not found.` am i doing something wrong?
ij has joined #nixos
<{^_^}> [nixpkgs] @knedlsepp opened pull request #56989 → pythonPackages.wrf-python: Fix build → https://git.io/fhp0X
maximiliantagher has quit [Ping timeout: 244 seconds]
ij has quit [Client Quit]
slack1256 has quit [Remote host closed the connection]
slack1256 has joined #nixos
slack1256 has quit [Remote host closed the connection]
slack1256 has joined #nixos
shibboleth has joined #nixos
<{^_^}> [nixpkgs] @PombeirP opened pull request #56990 → nsis: init at 2.50-1 → https://git.io/fhp0Q
<noonien> is there a convention for providing a script that updates a package i'm creating that gets called by a bot?
<garbas> pie__: can you open an issue with what are you trying to build
Fare has joined #nixos
<Fare> How does NixOS deal with zero-day exploits, such as today's Chrome exploit?
<noonien> Fare: can you link to the exploit by any chance?
maximiliantagher has joined #nixos
<{^_^}> [nixpkgs] @teh opened pull request #56991 → pytorch: Use nativeBuildInputs to specify binary build dependencies. → https://git.io/fhp0p
hedning has joined #nixos
sheyll has joined #nixos
<{^_^}> [nixpkgs] @hedning pushed 81 commits to gnome-3.32: https://git.io/fhpEv
<{^_^}> [nixpkgs] @garbas merged pull request #56982 → notmuch: 0.28.2 -> 0.28.3 → https://git.io/fhpRY
<{^_^}> [nixpkgs] @garbas pushed commit from @dtzWill to master « notmuch: 0.28.2 -> 0.28.3 »: https://git.io/fhpET
<MichaelRaskin> Chromium is worst-case, obviously…
acarrico has joined #nixos
<MichaelRaskin> (because rebuilding it takes time)
<MichaelRaskin> Well, worst case is probably a glibc bug only triggered by Chromium
<sheyll> I am having trouble groking the Chapter 3.3 in the nixpkgs manual "Specifying dependencies"; I find it very hard to follow, also there seem to be gramatical errors; I wonder what the problem is that they solve, and after spending hours trying to understand this, I wouldn't mind contributing to the documentation, but I still don't know if I have understood the chapter
<{^_^}> [nixpkgs] @bachp opened pull request #56992 → unifiStable: 5.10.17 -> 5.10.19 → https://git.io/fhpEm
<infinisil> Fare: If there's a patch, it can get applied and merged rather quickly (if somebody does it that is). Then it gets also backported to stable.
<symphorien> sheyll: the gist is: buildInputs are for .so and code which goes in the build product, and nativeBuildInputs are for tools used by the build system but which are not supposed to go in the build product, for example cmake, pkgconfig etc.
<symphorien> other types of dependencies are for tricky cross compilation cases
<sheyll> first of all it says "platforms imply whether or not the dependency is needed at run-time or build-time" but the footnote 1 says: " The build platform is ignored..."
<elvishjerricco> sheyll: It's a complicated system trying to cover all the corner cases of the target/host/build triad in cross compiling. Personally I find it vastly over engineered. buildInputs and nativeBuildInputs is a good distinction but the others are.... overdone IMO
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
<sheyll> @elvisjerricho: then footnote 1 is wrong?
<elvishjerricco> And most of that documentation section was written by like one or two people over a relatively short period of time, so errors in it aren't terribly surprising
<elvishjerricco> But I'm not sure about that footnote
<{^_^}> [nixpkgs] @veprbl pushed to master « rivet: 2.7.0 -> 2.7.0 »: https://git.io/fhpEs
<elvishjerricco> I don't understand the section well enough to say :P
<infinisil> sheyll: That is arguably the worst section of the manual.. , I don't think it should even be in the manual
<sheyll> so I get the idea somehow
<sheyll> but a simple example would be great
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @veprbl pushed to release-19.03 « rivet: 2.7.0 -> 2.7.0 »: https://git.io/fhpEG
drakonis1 has quit [Quit: WeeChat 2.3]
<elvishjerricco> infinisil: Something like it needs to be in the manual, but it needs improvement and probably needs a good sized chunk of it carved out and moved to a cross compilation chapter
hedning has quit [Remote host closed the connection]
ym555 has joined #nixos
<infinisil> Yeah something like that
<pie__> worst part of nix is waiting for builds :c
<elvishjerricco> But I think the bare minimum of describing buildInputs and nativeBuildInputs is an important distinction so that new package authors can get cross compilation without even realizing it
<pie__> productivty -> drain
<symphorien> also it becomes mandatory
<infinisil> pie__: Worst part about nix is having to debug nix!
<infinisil> At least you know a build will end at some point
drakonis_ has joined #nixos
<sheyll> in the formal explaination does "propagated-dep(h0, t0, A, B)" mean I am building derivation A which runs on h0 and produces binaries for t0, and requires B?
nD5Xjz has quit [Ping timeout: 252 seconds]
nD5Xjz_ has joined #nixos
<{^_^}> [nixpkgs] @flokli pushed commit from @wkral to release-19.03 « vagrant: re-add nowarn patch (#56863) »: https://git.io/fhpE4
<sheyll> or does it mean I am building derivation A on h0 such that A will run on t0, and requires B
<noonien> does anyone know, is it possible to fetch a specific github git commit using fetchsvn?
<infinisil> noonien: um, git /= svn
erictapen has quit [Ping timeout: 250 seconds]
<noonien> i know
<noonien> that's why i'm asking specifically for github, since it has svn support
<noonien> the reason i'm doing this is because i want to fetch only a directory from a git repo, which svn allows
<sheyll> I would like to help improve that documentation - even if you rip it apart - it might be worth making it clearer
drakonis has quit [Ping timeout: 246 seconds]
<symphorien> it is in the doc/ directory of nixpkgs
<sheyll> thanks .. found it
<symphorien> so "normal" PR workflow applies
<symphorien> there should be makefiles to build and lint it
<pie_> garbas, not sure how this happened but apparently this is also a thing "Error: Unable to find release for package jsonschema of version 0.0.0" via 'pypi2nix -V "2.7" -e jsonschema'
<noonien> and gchristensen(Sorry for the ping) suggested to use svn, which i have, and it works great, however, i would like to use a git commit hash instead of a svn revision (since i believe these might not point to the same commit in case of rebases)
nD5Xjz has joined #nixos
<sheyll> ok, but I am still seeking for help, I cannot improve unless I understand
<infinisil> sheyll: I think most of us here don't understand that section either..
jasongrossman has joined #nixos
<sheyll> :)
<sheyll> m)
jasongrossman has quit [Remote host closed the connection]
nD5Xjz_ has quit [Ping timeout: 252 seconds]
<sheyll> ok ... :) .. maybe I move on with live; how do I explicitly declare a runtime dependency?
<infinisil> ,runtimeDeps
<{^_^}> In order of preference: Patch source OR ((if it uses PATH -> wrap with new $PATH) AND (if it uses dlopen, (patchelf --set-rpath in postFixup OR wrap with new LD_LIBRARY_PATH)))
<symphorien> sheyll: can you be specific?
<sheyll> @infinisil thanks :)
imdoor has quit [Quit: imdoor]
<sheyll> @symphorien: I made a (Haskell) program, that calls some programs, e.g. "mkfs.ext4" and I would like to write a derivation that includes the nix derivation that contains "mkfs.ext4" as runtime dependency
<sheyll> @symphorien: ok... I would like to write a nix expression that generates a derivation that contains the program and a reference to "mkfs.ext4"
<symphorien> then either hardcode the path to mkfs.ext4 during the build, or wrap the executable with the correct PATH
stepcut has joined #nixos
nD5Xjz has quit [Ping timeout: 240 seconds]
<sheyll> @symphorien: thanks so much. This was really helpful!
<symphorien> as the factoid said, patching is "better"
<sheyll> @symphorien: with hardcoding you mean, passing the path the build such that it will be in the executable?
nD5Xjz has joined #nixos
<symphorien> or patching the source before building
<sheyll> ah ok, I get it.
stepcut has quit [Remote host closed the connection]
<sheyll> I also searched for "runtimeDeps" in the NixPkgs manual, but did not find anything, is this an attribute understood by 'derivation'?
jackdk has joined #nixos
<symphorien> no, runtime deps are implicit
arjen-jonathan has quit [Ping timeout: 252 seconds]
<symphorien> when the build finishes, nix will grep the outputs for /nix/store paths and add them as dependencies
<{^_^}> [nixpkgs] @flokli pushed commit from @bendlas to release-19.03 « azure-mgmt-*: re-init older versions for use with nixops »: https://git.io/fhpEK
<symphorien> this can be problematic when paths are zipped in a jar for example
<symphorien> but usually you don't have to worry about it
<sheyll> ah, so could one simple generate a dummy script that contains all the 'runtimeDeps' ?
<sheyll> using 'writeScript' for example?
Fare has quit [Ping timeout: 246 seconds]
<symphorien> writescript will result in another derivation so it won't work
<symphorien> (note that $out/nix-support is purely a convention)
<sheyll> won't there be runtime dependencies to that other derivation, whose runtime deps are propagated, such that instantiating one will cause the others to be installed?
<sheyll> oh wait... that makes no sense in nixos
<symphorien> nix does absolutely nothing at runtime
<symphorien> so either it has the path of its runtime dependency hardcoded
<symphorien> or it won't find it
<sheyll> I get it now
Makaveli7 has quit [Ping timeout: 250 seconds]
<sheyll> it is not about "installing" stuff, it is more about adding store paths to PATH for example
<sheyll> and nix figures out the exact paths of the totally isolates derivations, something like that... right?
<symphorien> yes
<sheyll> nix is different
<sheyll> and great
<symphorien> you can query the list of all the paths a derivation recursively depends on with nix-store -qR /nix/store/foo
<{^_^}> [nixpkgs] @aanderse opened pull request #56995 → superTuxKart: fix broken build → https://git.io/fhpEy
<symphorien> tar cvf foo.tar $(nix-store -qR /nix/store/foo)
<symphorien> send foo.tar to another machine without nix
<symphorien> untar
<sheyll> OMG
<symphorien> execute /nix/store/foo/bin/foo
Ariakenom has quit [Quit: Leaving]
<symphorien> it should work
stepcut has joined #nixos
<infinisil> Or even better: `nix-store --export $(nix-store -qR paths) > out`
<infinisil> Creates a single file
<symphorien> what format is the file ?
<infinisil> Move it to another machine, then `nix-store --import < out`
<symphorien> ah but then it needs nix
stepcut has quit [Read error: Connection reset by peer]
<infinisil> Ah
<sheyll> this is amazing
<symphorien> I wanted to illustrate that nix does nothing at runtime
stepcut has joined #nixos
vk3wtf has joined #nixos
<infinisil> Ah yeah
<symphorien> nix copy is also nice if nix in on the other end
<{^_^}> [nixpkgs] @amazari closed pull request #56973 → chromium (72): Add hardware video decoding using VAAPI → https://git.io/fhp8j
__monty__ has quit [Quit: leaving]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/b1f767ef902 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @qolii opened pull request #56996 → zsh-git-prompt: switch to a new fork. → https://git.io/fhpuJ
hamishmack has joined #nixos
hlavaty has joined #nixos
<pie_> is it just me or does using rec just to get a version in a name feel dirty?
<pie_> let ... in looks uglier imo but it feels less dirty
<symphorien> you can use pname instead
<symphorien> (unstable only)
<pie_> uh what exactly does that do because im looking at python stuff and that uses pname and im not sure its the same thing
<symphorien> name defaults to "${pname}-${version}"
<sheyll> OMG I just did "tar cvf firefox.tar $(nix-store -qR /nix/store/9r8mlpa8yf1hcams85n9c8i96ci7ay9m-firefox-65.0.1)" then copied that tar to a CENTOS machine and 'ssh -Y xxx@xxxxxxx /nix/store/9r8mlpa8yf1hcams85n9c8i96ci7ay9m-firefox-65.0.1/bin/firefox"
<sheyll> it worked!!
<symphorien> :)
<symphorien> some limitations apply: opengl stuff does not work, notably
<sheyll> that tar weighs only 500MB
<{^_^}> [nixpkgs] @amazari reopened pull request #56973 → chromium (72): Add hardware video decoding using VAAPI → https://git.io/fhp8j
<sheyll> this is really something for the companies deployments.
<{^_^}> [nixpkgs] @mtrsk opened pull request #56997 → Fixed fatal error with X11 and libGL while building playonlinux → https://git.io/fhpus
<elvishjerricco> sheyll: Wait till you get to NixOS. Deploying an entire OS has never been so trivial. Easier than containers IMO
<sheyll> I am on nixos right now
<ivan> I'm running /nix/store/rr4nd0hh48p7dwxz5yhc803x7rjss4xy-chromium-72.0.3626.121 but chrome://version says it's 72.0.3626.119
<sheyll> also the distinction between containers and "classical" installation vanishes with nixos
erictapen has joined #nixos
<sheyll> in some sence
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sheyll> in some sense, what remains is the cgroups stuff that "containers" eintail
maximiliantagher has quit [Remote host closed the connection]
<sheyll> nixos is even better than docker, since it enables "package"-level reuse of "containers" without giving up on isolation
maximiliantagher has joined #nixos
<symphorien> there are utilities in nixpkgs to generate docker images
<symphorien> so that you can have the runtime side of things
Shouou has quit [Ping timeout: 245 seconds]
<sheyll> I will read through this, once I am conviced deploying docker images in production is helpful for the scenarios I work in
jasongrossman has joined #nixos
drakonis_ has quit [Quit: WeeChat 2.3]
drakonis has joined #nixos
maximiliantagher has quit [Ping timeout: 255 seconds]
vk3wtf has quit [Ping timeout: 252 seconds]
ddellacosta has quit [Ping timeout: 252 seconds]
ddellacosta has joined #nixos
<sheyll> I just did 'readlink /run/current-system' and got '/nix/store/...-nixos-system-wega-18.09.2266.aabc61049c0' - I did a 'nix-store -qR' on this path and got a list that contains a lot of stuff. I this the 'whole' system, that I could copy to another system, set a few symlinks and boot into?
<sheyll> in order to clone the machine?
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<{^_^}> [nixpkgs] @knedlsepp opened pull request #56999 → cgui: 2.0.3 -> 2.1.0 → https://git.io/fhpuK
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fhpu6
<{^_^}> [nixpkgs] @Infinisil merged pull request #55936 → nixos/snapserver: init → https://git.io/fh5rk
Dr8128 has quit [Ping timeout: 245 seconds]
<jasongrossman> sheyll: I don't know, but the standard way would be to copy configuration.nix across and then regenerate the store. That way you can be sure you've got a consistent system.
<adamt> sheyll: Yeah, it should be. But you don't want to handle links manually, there's a store path that contains a binary that activates it as default
acarrico has quit [Ping timeout: 255 seconds]
<elvishjerricco> jasongrossman: I would not say that is the standard way
justanotheruser has quit [Ping timeout: 252 seconds]
thomashoneyman has quit [Ping timeout: 256 seconds]
<adamt> jasongrossman: We build our hosts locally, push them, and run the activation script, so that nothing is built remote
<elvishjerricco> I find it much more common (and much better) to build the system on a different system and simply `nix copy` the path to the target machine
<elvishjerricco> ^ what adamt said
<elvishjerricco> target machines (at least in my work) are generally quite weak in CPU performance, so they're no good for building on. Much easier to use Nix's excellent closure concept to just copy from a beefier build machine
<jasongrossman> I see.
<elvishjerricco> sheyll: NixOps is a tool for automating all this, as well as cloud resource provisioning. You give it a nix expression, it figures out what hardware to provision on the cloud provider, it builds the system locally, it copies it to the server, and it activates it
[Leary] has joined #nixos
<adamt> sheyll: If you want to do the copying manually, here's how you can activate the new system: https://github.com/DBCDK/morph/blob/master/ssh/ssh.go#L200
Lears has quit [Ping timeout: 255 seconds]
<{^_^}> [nixpkgs] @jtojnar opened pull request #57000 → gnome-keysign: init at 1.0.1 → https://git.io/fhpuD
maximiliantagher has joined #nixos
<averell> someone could merge the meld commit from https://github.com/NixOS/nixpkgs/pull/56705 the conflict there is with the redundant other commit.
<{^_^}> #56705 (by hedning, 4 days ago, open): Fix trash-cli and meld's checkPhase after #53440
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
shibboleth has quit [Quit: shibboleth]
<sheyll> thanks adamt
justanotheruser has joined #nixos
<adamt> Notice how there's two binaries being called. the nix-env one is needed to persist the configuration change (generate a new generation and set it as default). `configuration` here is just a store path, I think.
<justanotheruser> not sure this is a nixos issue, however thought I might ask here: I'm trying to get cron to work. /etc/crontab looks like this https://paste.debian.net/plain/1071984 and journalctl indicates that the cron job is being run https://paste.debian.net/plain/1071983 however the file ~/cron.log isn't being written to. How can I resolve this?
hedning has joined #nixos
<azazel> I have a problem that when my server comes up firewall fails to start because a firewall piece fails to resolve an IPv6 fqdn but then via ssh doing a "systemctl restart firewall" completes without issues.... what can it be
<azazel> justanotheruser: you really need cron when you have systemd?
<justanotheruser> azazel: I didn't realize I could replace cron functionality with systemd. Let me look into that
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
<azazel> justanotheruser: https://nixos.org/nixos/options.html#systemd.timers
sheyll has quit [Ping timeout: 256 seconds]
hedning has quit [Client Quit]
<azazel> just declare a timer and and an "oneshot" service with the same name
<jtojnar> ,locate cryptui-0.0
<{^_^}> Couldn't find in any packages
<justanotheruser> azazel: what is the cli equivalent to this page?
<justanotheruser> (unrelated, but I didn't realize this page existed)
<justanotheruser> good example, let me try that out
stepcut has quit [Remote host closed the connection]
<azazel> justanotheruser: what page?
<azazel> justanotheruser: it's just a searchable doc of all the configuration options, the same you can access using "man configuration.nix"
orivej has quit [Ping timeout: 245 seconds]
xkapastel has joined #nixos
<{^_^}> [nixpkgs] @andir pushed 2 commits to openssl-1.1: https://git.io/fhpux
erasmas has quit [Quit: leaving]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<justanotheruser> cool, got it to work, tyvm!
<{^_^}> [nixpkgs] @danbst merged pull request #56971 → nixos/nginx: Support additional listen parameters → https://git.io/fhpWt
<{^_^}> [nixpkgs] @danbst pushed commit from @dasJ to release-19.03 « nixos/nginx: Support additional listen parameters (#56971) »: https://git.io/fhpze
Rusty1 has joined #nixos
Lears has joined #nixos
[Leary] has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @jtojnar opened pull request #57001 → Almanah → https://git.io/fhpzt