<Church->
Because I don't plan to install it unless I know basic graphics work
<ryantm_>
samueldr: You could make it get passed a attrset instead, so that in the future we don't need a new function to keep the api compatible
<samueldr>
the installer image is read-only; rebooting isn't an option, don't think everything would be ready to kexec
<clever>
samueldr: thats why i prefer installing to a usb, rather then using the iso
<Church->
Fuck
<samueldr>
:)
<clever>
then you can just nixos-rebuild and changes persist
<samueldr>
maybe we need sd-image-but-for-usb-and-x86_64
<Church->
So, install and hope for the best then? God damnit
<worldofpeace>
It would be nice to do what opensuse does with their installers
<Church->
clever: Define install to a usb? Have / live on the usb?
<samueldr>
worldofpeace: explain, never used openSUSE
<Church->
Not as a live cd
<clever>
Church-: yep
<Church->
Sigh.... how'd you do it?
<clever>
Church-: just go thru the normal install procedure, but use the blockdev of your usb stick, not a sata disk
<worldofpeace>
samueldr: Things can persist in one type of their images
<Church->
Gotcha, guess I'll try that next.
<clever>
worldofpeace: ive messed around with that before on gentoo, created a custom initrd that let me tar up the tmpfs and persist it to the next boot
<clever>
worldofpeace: for several months, i lived like that, entirely in ram :P
<clever>
if i wanted anything to persist, i had to tar it up and put it back on the usb, at shutdown
<samueldr>
clever: I'm assuming only the system files were like that, right?
jperras has quit [Ping timeout: 268 seconds]
<clever>
samueldr: everything, including $HOME
<samueldr>
though since you said USB, maybe not
<samueldr>
yeah
<clever>
hard drive optional! :P
<{^_^}>
[nixpkgs] @volth opened pull request #48244 → [wip] meson: fix cross compilation of systemd → https://git.io/fx8VQ
<worldofpeace>
that poor usb
<clever>
it was VERY noticable when i accidentally plugged it into a usb 1.0 hub
mekeor has quit [Remote host closed the connection]
<samueldr>
Church-: worldofpeace: the installer image uses latest LTS, which is 4.14
jperras has quit [Ping timeout: 250 seconds]
<samueldr>
so it is a possibility that a newer kernel helps
<worldofpeace>
samueldr: Yeah we came to that since Church- intel graphics support is alpha there
<samueldr>
great :)
<Church->
Great community here.
<clever>
samueldr: in theory, you could take my haskell-init idea, and just forkIO every single process on the machine, and run your entire distro from pid 1, lol
jonreeve has joined #nixos
<Church->
Now we just people to do docs. :P
<samueldr>
clever: well, don't everyone run their whole distro from PID1
<drakonis_>
Church-, told ya
<drakonis_>
next year's gsoc should have a project for doing docs
<jonreeve>
So, this is really a beginner question, but how can I install a package I've just build with nix-build?
<clever>
jonreeve: nix-env -i ./result
<jonreeve>
Awesome, thanks!
<worldofpeace>
Church-: So `boot.kernelPackages = pkgs.linuxPackages_latest;`
<samueldr>
if you haven't enabled any wireless options I believe the only way out is to use non-wireless networking or using the nixos installation media to add the option and "re-install" over
<clever>
Church-: you can still connect to open and wep networks without wpa_supplicant
<clever>
Church-: ethernet is much simpler, and dhcpcd will auto-detect the moment you insert any cable
<gchristensen>
oh, this isn't the install environment?
<samueldr>
fresh install
<gchristensen>
may be easier to just reboot in to the install environment, it isn't so annoying and nixos-install is idempotent
<samueldr>
do hopefully the usb drive hasn't been chucked away
<samueldr>
so*
<Church->
Nope. Just gonna do that
<samueldr>
you don't re-format, simply mount as previously done, edit, re-run nixos-install
LysergicDreams has quit [Ping timeout: 252 seconds]
<samueldr>
I personally do the simple thing and just enable network manager; nmtui is a fine enough interface imho
<gchristensen>
same
<samueldr>
well, simple UX, not simple code :)
<gchristensen>
+1
<samueldr>
even here on my workstation without wireless
<clever>
samueldr: ive been avoiding NM like the plague :P
<disasm>
I only use network manager on my laptop and that's just because it's easier to deal with wireless when your jumping across a bunch of networks.
<clever>
disasm: i just run wpa_passphrase as root, and restart the service!
<disasm>
I still hate it, but nmtui makes it bearable.
<Church->
And there's the hardware config
<worldofpeace>
Church-: At this point you just want intel to work (forgot nvidia) ?
<Church->
Eyep
<disasm>
clever: maybe when we're in London we'll hack at my laptop wireless setup. I'd love to kill network manager. It's not my favorite tool by far.
<clever>
samueldr: this allows you to manipulate IP's (v4 and v6) in nix
<clever>
samueldr: it can do things like generate a PTR record for dns
<Church->
Wanna install top and see the fuck is up
Shados has joined #nixos
<{^_^}>
[nixpkgs] @volth opened pull request #48248 → use buildPackages in environment.extraSetup → https://git.io/fx8K0
<Church->
And cursing again. Apologies
silver has quit [Read error: Connection reset by peer]
<clever>
samueldr: my original plan, was to auto-generate dns and dhcp config, to assign IP's to macs, and map names to ip, and back
<worldofpeace>
Church-: It's just language, people use it differently :)
<Church->
Okay genuinely curious why everything is lagging and running my cpu ragged?
<clever>
Church-: it might be low on ram
<worldofpeace>
there should be `top`
<Church->
clever: 32GB?
<Church->
Taking all of it?
<samueldr>
you said "hot" earlier; are the fans running fine?
<samueldr>
might be thermal throttling?
<clever>
Church-: not likely, but i have gotten ghc to max out 32gig, lol
<samueldr>
(though shouldn't be that bad?)
<Church->
They're running fine
<Church->
Lagging after a reboot and getting dmseg errors about cpu tasking lagging
<Church->
This is amazing
<Shados>
I've noticed that if I build something like an iso via `config.system.build.isoImage` using a remote builder, nix will end up copying intermediate products (like a squashfs image) back to the local system, which is a bit wasteful in terms of network and storage. What causes this to happen? Are these somehow incorrectly marked as run-time dependencies of the final iso image derivation, or does Nix need the dependencies to exist locally to coordinate the build of
<Shados>
each derivation...?
drakonis1 has quit [Ping timeout: 250 seconds]
<Church->
Alright so nix-env is sorta working
<clever>
Shados: nix doesnt know which things are going to build locally, which remotely, and which on a different remote slave
<acowley>
I have a builder that needs to download things and I'm getting unknown host errors. I can't remember what I need to do to help it out. Is this ringing a bell for anyone?
<acowley>
The build works fine in (a non-pure) nix-shell
<Church->
Christ might as well go back to ubuntu and just use nix/home-manager
<clever>
Shados: if you want to force the entire build to happen remotely, you can use tricks like nix-instantiate, nix-copy-closure the drv over, nix-store -r the drv remotely, then nix-copy-closure the result back
<clever>
Shados: nix-build --store ssh-ng://remote may also work, but ive not played with it enough yet
<Church->
But yeah nothing works. Just a blinking cursor and nada.
<Shados>
Hmmm. It does seem like Nix could plan out the query builders and plan out the build process to avoid this, but I guess that would probably be more complexity than it would be worth...
<Church->
This definitely isn't my graphics card
<Shados>
Er, missed a few backspaces there
Synthetica has quit [Quit: Connection closed for inactivity]
<Shados>
*could query the builders and plan out the build process to avoid this
drakonis1 has joined #nixos
<clever>
Shados: and also nix requires that all runtime deps of a package exist, before the given package can exist
Purple-mx has quit [Ping timeout: 250 seconds]
<worldofpeace>
Church-: What steps did you take now?
Purple-mx has joined #nixos
<{^_^}>
[nixpkgs] @aanderse opened pull request #48249 → apacheHttpd: add lynx binary path to apachectl → https://git.io/fx86T
<Shados>
clever: These *should* be build-time deps really
<clever>
Shados: nix doesnt know if its runtime or buildtime until after the build is done
<clever>
Shados: and also, what if the remote machine GC's something you where just about to use, but didnt save locally?
<Church->
worldofpeace: Just trying to install a package or run nixos-rebuild causes it to hang
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
<acowley>
Oh, hm, building in a nix-shell --pure also works
halfbit has quit [Ping timeout: 252 seconds]
<Church->
And now I can't reach out to the net. The hell
<worldofpeace>
Church-: You corrected your networking via nixos-install?
jasongrossman has joined #nixos
<Church->
worldofpeace: Nope, usb was empty. But was able to get dhcp up with ethernet
<Church->
And the usb doesn't even show up in /dev anymore... christ I regret today
<Church->
Well lets try a reboot shall we
<Church->
Always have my recovery partition
<Shados>
clever: Neither of those are show-stopping problems. For the latter, Nix already has both gc roots and locks. For the former, Nix would 'just' need to interrogate remote stores about intermediate build outputs? The larger problem would be that you'd have to implement an algorithm to work out when it is worthwhile to move the dependencies to another builder vs. building on the builder that already has the deps, and that'd be painful. As I said, I don't think it'd
<Shados>
be impossible to automate a solution, just probably more complexity than worth in doing so...
<clever>
Shados: when nix is doing remote builds, it usually disconncts from the slave (and releases all locks) between each derivation
<clever>
and thats when the remote box could nuke your things
<acowley>
I guess I need to disable the sandbox. How do I do that for a single build?
<clever>
Shados: and if you did hold the lock, your running more risks, for when the remote machine goes away, and you loose half of what you had built, because you didnt keep a local copy
<clever>
acowley: one sec
<clever>
acowley: add the following to your derivation, outputHashAlgo = "sha256"; outputHash = "d20f20e45d519f54fae5c61d55eadcf53e6d7cdbde9870eeec80d499f9805165";
<clever>
outputHashMode = "recursive";
<Shados>
clever: Yes, the idea would need other changes/additions to Nix as well. Like I said, too much complexity. Although the "remote builder goes away" thing is honestly not a huge problem, if you lose work you lose work. Still going to be faster and smaller (in disk space) most of the time, unless you have some hella dodgy build machines.
<clever>
acowley: if you have those 3 attributes, then you will get full network access
<acowley>
clever: ah, geese, I saw something like that and couldn't find any reference so ignored it
<clever>
acowley: (and your build will fail if your output doesnt have the defined hash)
<Church->
I almost think my ram and swap got changed...
<acowley>
clever: the hash is computed of what directory at what point?
<acowley>
clever: (thank you)
<clever>
acowley: nix will basically `nix-store --dump $out | sha256`, the `nix-hash` util can also do the hashing
<acowley>
Oh, interesting
<clever>
acowley: and you can also just put a purposely wrong hash, let it fail, and nix will tell you the current hash
<acowley>
Wow the odds of this being stable are probably below zero, then
<clever>
acowley: when outputHashMode = "recursive";, nix uses a nix-store --dump, which generates a NAR over the dir
<Church->
And no more recovery partition. Sigh.
<clever>
when outputHashMode = "flat"; then it just uses the raw sha256 of the file at $out
<worldofpeace>
Everything is mounted correctly, you did 'swapon'
<Church->
Yeah just did swapon and reran nixos-gen
<Church->
So swap is there.
<Church->
Still a second fs though...
mvnetbiz has quit [Ping timeout: 245 seconds]
<worldofpeace>
UEFI or BIOS ?
<worldofpeace>
That looks like an like an esp
<Shados>
clever: ssh-ng:// sort-of works... with nix-build it builds it on the remote, leaves it there, and prints the store path. With `nix build` it does the same, except doesn't print the store path. So I guess I still need to wrap it to nix-copy-closure the result back. Is there a way to get the `nix build` to also report the path?
<worldofpeace>
Ahh UEFI (didn't read the config.nix)
<worldofpeace>
can you paste the output of `lsblk` and `blkid`
<worldofpeace>
Also can you get the current `hardware-configuration.nix` on the installed system? Just to see what destruction happened :D
<Church->
I can not, already over wrote. Sorry
<worldofpeace>
Ok, I'm assuming that it tried to install root to your esp too :(
<worldofpeace>
Please mount /dev/sda3 to /mnt/boot and check if it's still alive
<jasongrossman>
NP. I've been trying to use the exwm window manager, with a very simple NixOS configuration, and I get all sorts of bugs - all sorts of things that don't work the way the manual says they should. The reason that's strange is that I can't find anything on the web that suggests that exwm is particularly buggy. Anyone know whether there's any interaction with NixOS?
<Church->
Sure one sec
<Church->
worldofpeace: Already mounted there
<Church->
Empty but mounted
<worldofpeace>
Empty? So a complete wipe of /dev/sda is fine right
boomshroom has joined #nixos
<boomshroom>
!
<boomshroom>
Hello!
<boomshroom>
I asked earlier and got an answer, but I forgot and didn't get around to doing it until now, but I'm trying to get Steam working again.
<clever>
Shados: if you use `nix-instantiate` locally, you can get the final output path in a few ways
<boomshroom>
Last time I asked, I was told to delete the runtime and have Steam redownload it. I deleted the 2 ubuntu folders and steam.sh and had Steam reinstall. It doesn't seem to have worked.
<clever>
Shados: nix-instantiate -E 'with import <nixpkgs> {}; "${hello}"' just gives you the path of a drv, without building it
<clever>
Shados: nix-instantiate file.nix -A attr, then nix-store --query --binding out /nix/store/foo.drv gets you the $out of something
<o1lo01ol1o>
clever: you'll be thrilled to know that I got Hydra running and cloning my project.
<clever>
o1lo01ol1o: nice
<o1lo01ol1o>
clever: yes, it was due to user error in my hydra fork
<clever>
ah
<Shados>
clever: Yeah, that works. Thanks for your help, should save me a nice chunk of time and disk space, as I'm building a bunch of images for something currently
<o1lo01ol1o>
in anycase, are there any examples around of how to write nixexpressions that hydra can understand? I currently just have a shellHook = '' nix-build -etc” in my hydrabuild.nix but it doesn't look like it does what hydra expects
<clever>
o1lo01ol1o: generally, you have a release.nix, that contains a set of derivations, without any shell hooks, such that you can nix-build release.nix -A thing
<Church->
worldofpeace: So just remake /mnt/boot and remount /dev/... ?
gspia has joined #nixos
<o1lo01ol1o>
kk
<o1lo01ol1o>
thanks!
<Church->
Did that, /mnt/boot is there, /dev/sda3 is mounted, /mnt/boot is still empty however
orivej has quit [Ping timeout: 252 seconds]
<worldofpeace>
Church-: Partiton setup looks good, . Just rerun `nixos-generate-config --root /mnt` and verify it
<boomshroom>
Anyone have Steam working recently?
<clever>
boomshroom: yeah, but i havent updated my channel in a bit
<boomshroom>
So you're saying I might need to rollback?
<clever>
[clever@amd-nixos:~]$ nixos-version
<clever>
18.09pre150708.083220867c7 (Jellyfish)
<clever>
boomshroom: you could maybe try a bisect on nixpkgs, to find out when it broke
<clever>
it is working on the above rev
<boomshroom>
I'm currently on 19.03pre154487.0a7e258012b (Koi)
<clever>
oh wait, steam is in nix-env!
<clever>
so it doesnt have any relation to the above rev
<worldofpeace>
Church-: From then on please ensure that you have the proper network configuration.
<boomshroom>
You use a separate channel for nix-env?
<clever>
it uses the same channel, but it doesnt update every time i nix-channel --update
LysergicDreams has quit [Ping timeout: 268 seconds]
<clever>
so the steam is potentially older
<boomshroom>
I don't bother with nix-channel --update. I don't even have any user channels.
<clever>
i only have nixos-unstable on root
ajs124 has quit [Read error: Connection reset by peer]
<boomshroom>
Same.
<Church->
worldofpeace: Yep verified and network is good
<clever>
boomshroom: just nix-env -iA'd steam from the rev i previously stated, and it still works
<worldofpeace>
Church-: Can you paste then one more time so it's certain :D
LysergicDreams has joined #nixos
<Church->
Just started.
<Church->
Welp
<Church->
I didn't load from ram this time.
<Church->
So my usb is good at leasr.
<drakonis_>
are things working?
<Church->
Let's see. Installing rn
sb0 has quit [Ping timeout: 245 seconds]
sb0 has joined #nixos
rprije has quit [Read error: Connection reset by peer]
rprije has joined #nixos
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
<Church->
And we're booting...
<drakonis_>
noice
<boomshroom>
Hmm... I checked out the commit you gave and built the steam version from it, but it's giving me the sail failure.
<clever>
boomshroom: the problem might be your xorg opengl stuff then, what is the failure?
<Church->
And now it's hanging directly after starting x11 server
<worldofpeace>
Church-: Sorry I wasn't clear. `services.xserver.autorun = true;` is what you want. systemd.mask=display-manager.service is for kernel command line
<worldofpeace>
that in configuration.nix with `sudo nixos-rebuild switch`
<worldofpeace>
to realize it
<Church->
Okay done
<Church->
Run x11 again and then reboot?
<worldofpeace>
did it restart `systemd-journald.service` ?
<Church->
Yep
<worldofpeace>
ok do that
<Church->
Alright old on a mo'
<Church->
worldofpeace: Still nothing
<Church->
The frack
reinzelmann has joined #nixos
<jluttine>
i thought i had a lot of open pull requests for nixos (7) but looking at the total number of pull requests (937) i can feel that some people are having quite a lot of work going through them :D
<worldofpeace>
Church-: I'm not sure about this, but you could try the new NVIDIA optimus config here.
<worldofpeace>
Church-: Also how new is your machine again? (output of lspci)
<Church->
New
<Church->
Sec
<Church->
worldofpeace: What package is lspci in?
<worldofpeace>
pciutils
<worldofpeace>
,locate bin/lspci
<{^_^}>
Found in packages: busybox, pciutils
<worldofpeace>
yeah
<Church->
Thanms
<worldofpeace>
oneliner is `nix run nixpkgs.pciutils -c "lspci"`
<Church->
Weird. Running it twice froze my top
<Church->
worldofpeace: But yeah it's new. Cannon lake processor
<Church->
6core, bla bla bla
o1lo01ol1o has quit [Remote host closed the connection]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Church->
worldofpeace: Running fine so far.
<Church->
Reboot once done?
<worldofpeace>
Yes since `nixos-rebuild boot` doesn't activate it, it sets it as boot default
<Church->
Gotcha
orivej has joined #nixos
dhess has quit [Ping timeout: 252 seconds]
<Church->
worldofpeace: Booted, time to flip the switch
* Church-
turns on the x11 death ray
<worldofpeace>
:D
<Church->
Ayyyyyy
<Church->
Jesus fucking christ this was an adventure
<worldofpeace>
It works?
<Shados>
colemickens: if you have Nix's sandbox option turned on, then yes, build processes will not have network access. IIRC it defaults to on under NixOS, but off for Nix itself (so if you're running Nix on another distro, it should be off).
rprije has quit [Ping timeout: 250 seconds]
<worldofpeace>
The suspense
<Church->
Yep
jonreeve has quit [Ping timeout: 246 seconds]
<Church->
Can you pm me those two hastebins?
<Church->
Since I will inevtiably break this tomorrow. :P
<worldofpeace>
Hah sure I safeguard them
<worldofpeace>
And demand someone backports that fix ASAP
<Church->
worldofpeace: Last stupid question, what package is nmapplet and nmtui in?
<Church->
Yeppp
<Church->
Who should I talk to? Willing to offer cash for this.
<worldofpeace>
I think `networking.networkmanager.enable` will do
<Church->
Oh yeah. Doy.
<Church->
I'm tired. This has been a day.
<worldofpeace>
I'll ask on the pr on github
<Church->
Going to sleep. Ta' I owe you a beer mate
<Church->
Truly do
<worldofpeace>
Your welcome (nudges to solicit karma)
Ariakenom has joined #nixos
<jasongrossman>
worldofpeace++
<{^_^}>
worldofpeace's karma got increased to 4
<worldofpeace>
:)
<Church->
worldofpeace++
<{^_^}>
worldofpeace's karma got increased to 5
<Church->
worldofpeace++
<{^_^}>
worldofpeace's karma got increased to 6
orivej has quit [Ping timeout: 252 seconds]
<Church->
Now I just need to get set up my app configs with home-manager
<worldofpeace>
I use it in nixos configuration and it's nice
<Church->
Yep I have a basic config set up. Just need to get it setting up my i3 config and what not
<Church->
Wonder if I can have it pull configs down from github...
Lisanna has joined #nixos
<Lisanna>
Is there a viable strategy for having two modules contributing to the same configuration string? e.g., services.udev.extraRules
<Lisanna>
i.e., If module A and module B both want to set extra udev rules, what can they do?
LysergicDreams has quit [Ping timeout: 252 seconds]
<Lisanna>
Oh, nvm, there's a special "lines" type, that makes them mergable
<worldofpeace>
^ Was about to say
xenog_ has joined #nixos
smolboye has quit [Quit: WeeChat 2.2]
xenog has quit [Ping timeout: 252 seconds]
smolboye has joined #nixos
drakonis1 has quit [Ping timeout: 272 seconds]
drakonis1 has joined #nixos
LysergicDreams has joined #nixos
hyper_ch2 has joined #nixos
slack1256 has joined #nixos
Ariakenom_ has joined #nixos
Ariakenom_ has quit [Read error: Connection reset by peer]
Ariakenom has quit [Ping timeout: 244 seconds]
vasiliy_san has joined #nixos
<colemickens>
I have a patch for a package that adds a source file
<colemickens>
but it's not available under $src, because thats the unpatched source?
<{^_^}>
[nixpkgs] @fpletz merged pull request #48093 → cfssl: allow building on all platforms → https://git.io/fxnJE
<{^_^}>
[nixpkgs] @fpletz pushed commit from @edude03 to master « cfssl: allow building on all platforms (#48093) »: https://git.io/fx8Sg
<colemickens>
how do I reference it to the output?
<colemickens>
I checked `env` in a nix-shell for the package, but nothing seems to point at the patched source location?
<vasiliy_san>
A ha, and I am using `nixos-18.03` and probably should've been using `nixos-18.09`
<etu>
vasiliy_san: 18.09 is recently released
<etu>
:)
dhess has joined #nixos
<vasiliy_san>
I guess I can google it, but probably you will give me a quick hint how to properly switch to a newer version ?
<etu>
vasiliy_san: Update your channel
<etu>
nix-channel --list
<etu>
If you're on nixos you'll have to run it as root
trevthedev has joined #nixos
<trevthedev>
hi
Ariakenom has joined #nixos
<trevthedev>
im currently trying to install nixos through ubuntu 18.04
<trevthedev>
when trying to generate the config, it says read_file 'proc_swap' - sysopen: Permission denied at /home/trev/.nix-profile/bin/nixos-generate-config line 318
<trevthedev>
im running the command straight out of the manual for installing nixos in place of another linux distro
<srhb>
trevthedev: No access to /proc/swaps I guess?
<trevthedev>
how can i fix that?
<srhb>
trevthedev: Are you root?
<srhb>
Actually I think it should be world readable normally...
<trevthedev>
i ran the generate config file as sudo yes
<trevthedev>
ill deal with this tomorrow, is nearly 3am if it isnt already, gn
trevthedev has quit [Quit: WeeChat 2.2]
ZeDestructor has joined #nixos
nD5Xjz has joined #nixos
brejoc has joined #nixos
leothrix has quit [Ping timeout: 252 seconds]
ThatDocsLady has quit [Remote host closed the connection]
Itkovian has joined #nixos
Synthetica has joined #nixos
ThatDocsLady has joined #nixos
orivej has joined #nixos
mayhewluke has quit [Ping timeout: 252 seconds]
mayhewluke has joined #nixos
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
<jonge>
hi there. when i build some dynamically linked executable on nixos, it IS possible to use a "series of patchelf calls" to make this executable runnable on any linux system, right? i think of throwing all the libs and the executable into a folder, use patchelf to make the executable search for them in its CWD and then make a tarball from it. that is completely doable, right?
hyper_ch2 has quit [Ping timeout: 256 seconds]
drakonis1 has quit [Ping timeout: 245 seconds]
Havvy has joined #nixos
isHavvy has quit [Ping timeout: 252 seconds]
hyper_ch2 has joined #nixos
<Yaniel>
jonge: it's usually done the other way but yes
<srhb>
jonge: It's doable. Sounds like more work than just copying the closure, though.
<makefu>
jonge: since this year there is a autoPatchelfHook
<makefu>
it should do just that
<srhb>
makefu: How so? That sounds like the other way around.
<jonge>
Yaniel: srhb: makefu: The thing is that i am working on a client project and would REALLY like to use nix for the whole building and testing etc. etc. - the problem is that the client would never accept it if i am not able to give him a self-contained tarball that can be used for their existing crufty processes.
<jonge>
so i am owning a linux component now and my hope is that they don't care how i build it if in the end something drops out that is 100% nix agnostic and looks like they are used to.
<Yaniel>
didn't someone make an appimage-ish thing for nix
<Yaniel>
that literally gives you a tarball that you can run anywhere
<jonge>
Yaniel: i looked into these, but there is a chance of 0% that the client would accept it.
<jonge>
it has to look like the silly stuff they have been building before, unfortunately...
<Yaniel>
and they specifically want a binary?
alex`` has joined #nixos
reinzelmann has quit [Ping timeout: 250 seconds]
<Yaniel>
I mean nix-bundle doesn't require anything from the host system
<jonge>
Yaniel: their current build process looks like a docker image (based on centos 6.0 wtf) that builds the whole project, compiles all the dependencies themselves (although they have no patches on them) and then throws it all into a tarball.
<jonge>
this tarball is then picked up by their strangely configured teamcity foo infrastructure etc. and i have to match exactly that.
<Yaniel>
can you just give them something with a remotely sane build system that they can build on whatever abomination they want?
slack1256 has quit [Ping timeout: 245 seconds]
<jonge>
because then it vanishes in their enterprise infrastructure and i have no control over that. so it would be easier to apply rocket science to my own nix scripts that results in the format they need - compared to discussing with their build system admins and architects.
orivej has quit [Ping timeout: 268 seconds]
<makefu>
srhb, jonge: ah the other way round, sorry i misinterpreted that
<joko>
Hey, is it possible to add nix channels in nixos?
<srhb>
joko: Yes.
<joko>
eeem, meant declaratively
<joko>
:S
<srhb>
joko: All the channels are just nixpkgs from some branch, at some level of testedness
<Yaniel>
jonge: sounds like a static binary would be what you want then?
<srhb>
joko: "ish" -- by not using channels.
<Yaniel>
with just the ELF interpreter rewritten with patchelf
<jonge>
Yaniel: that would be the nicest way. but the dependencies are GPL and the product is proprietary, so it would be illegal to distribute a static binary from that
<srhb>
joko: I prefer a local git checkout, personally.
<joko>
srhb: I meant to declare them in nixos configuration instead of running nix-channel --add
<srhb>
joko: Yes, I got that. :)
<joko>
srhb: the drawback with pinning is that I need to update the hash of the channel, I would like the update process to be more flexible
<joko>
And this is not for the nixos channel, I would like to have additional ones
<srhb>
joko: There's a lot of ways to do this. I tend to prefer having the "main channel" (that which is known as "pkgs" to NixOS modules) be a local git checkout.
<Yaniel>
jonge: would they accept something like a .rpm
<srhb>
joko: And every additional channel is an overlay.
<joko>
srhb: so you update revisions and hashes every time?
thc202 has joined #nixos
<Ke>
if I am using toFile to create a store, is there a way to make the name of the store exclusively dependent of the file contents?
<Ke>
seems to have a dependency on the origin of the string
<srhb>
joko: I update them when I want to, using scripts that generate the new definition from nix-prefetch-url and nix-prefetch-git
<Ke>
which is ovbiously stupid, as the file is absolutely defined by the string
<joko>
srhb: are any of those scripts publically available? :D
<srhb>
joko: right now they're in my private config repo I'm afraid, but there are tons of them out there. The usual method for eg nix-prefetch-git is that it can dump a json blob, which you can then builtins.fromJSON i nix
<srhb>
in nix*
<joko>
right, right
<jonge>
Yaniel: i think an .rpm would be great. but that would not be enough. i would need to create everything that they create in their crufty infrastructure. that would be .debs also etc. etc
<jonge>
Yaniel: does nix support creating such things out-of-the-nixpkgs or are there any fancy 3rd party projects?
<Yaniel>
well deb/rpm is a matter of preference
<Yaniel>
the point is that it's a tarball with the fs structure your package needs
reinzelmann has joined #nixos
<jonge>
Yaniel: _i_ understand that. and i guess the individual people i work with would understand it, too. but when you have a group of enterprise-process-driven people, it's hard to convince people about "nice fancy new tools like nix", do you know what i mean?
<Yaniel>
sure
<jonge>
Yaniel: so i hope to get the foot into the door with nix with the stupid plain tarball that is 100% as they like to have it. and then longterm evolve from that...
<jonge>
Yaniel: my hope is that as soon as they give me some baremetal linux machine with access to the git repos, it should be feasible to blow them away with a demo hydra server that executes integration tests on their product on new pull requests. this is something they have never seen.
<cryptix>
hey, can somebody tell me the difference between setting my user shell to /run/current-system/sw/bin/$shell and ${pkgs.$shell}/bin/$shell - they both seem to work but since i'm trying to modify the packge of my shell the current-sys way seems better but maybe my module code is just wrong and now everything is a bit broken somehow... can some1 give me a nice example of modules for zsh or fish? i tried to
<cryptix>
browse the wiki page with all the user configs but I got lost in all the repos
Tucky has joined #nixos
<hyper_ch2>
cryptix: using /run/c-s/sw7bin/$shell will just use wahtever version is currently loaded in the profile. using the other option will use that exacte same version of the shell
<cryptix>
okay - so with the /run/curr.. i could have an unusable system if I don't also include that in my env. good do know.. I should make sure my module overrides the package regardless (like, i want my editor and shell across the system, not just in my user)
<hyper_ch2>
in other words, the first one will just use whatever /run/c-s/sw/bin/$shell points to while the second one will use something like /nix/store/[hash]-shell-[version]/bin/shell
<hyper_ch2>
if you ls -al /run/c-s/sw/bin/$shell you'll see its store path... depending on the loaded environment it could be e.g. bash 3 or bash 4 (as example)
<cryptix>
thanks hyper_ch2 I got it
<sphalerit>
hyper_ch2: I tend not to use nonfree stuff like that :p I do use kodi
<hyper_ch2>
sphalerit: I see
<hyper_ch2>
kodi requires to install a desktop :(
<cryptix>
I recently wondered how hard it would be to clone what libreelec is doing on nixos
<hyper_ch2>
no idea waht libreelec is
<cryptix>
"just enough OS to run kodi" is the tagline
<cryptix>
I _think_ it was based on rasbian at one point but never looked that deep into the build process
<cryptix>
thy have raspi images and it just boots into kodi, no desktop env or anything
<andi->
depends on java... if we have a JDK/JRE on aarch64 these days it might work ;)
<goibhniu>
cryptix: I recently set up a kodi box (not on arm though) ... but it boots straight into kodi, without any desktop
<goibhniu>
... with tvheadend too
<cryptix>
goibhniu: good to know - yea having written system nixos configs myself now for servers and i3 desktops I also don't imagine it as beeing to hard
<cryptix>
andi-: huh - kodi is java? sigh.. i just knew the plugins where python
* goibhniu
is also surprised to hear kodi requires java somehow
<andi->
cryptix: no it is not but the build dpendencies have java as a build dependency somewhere
<srhb>
I think it's only a build-time dependency
<srhb>
Right..
<cryptix>
hehe... just sprinkle some ants in somehwere for the warm and fuzzies.. ;)
<hyper_ch2>
I wonder if I should post my nginx plexe reverse proxy config into the wiki
LysergicDreams has joined #nixos
<cryptix>
is it all/mostly nix? personally i'm always interested in _how others do_...
<__monty__>
It's negligible compared to writing a good contribution though.
<rawtaz>
hyper_ch2: no, it doesnt mention it as a requirement, and there probably isnt one either as this is not a defined thing of a wiki so to speak. doesnt take away that the one and original wiki, i'd argue, has that characteristic
<rawtaz>
to me it's a given part of a wiki, otherwise it's just like any other documentation system
<rawtaz>
each to their own though :)
<rawtaz>
__monty__: there's a cost to requiring registration :P
<rawtaz>
eitehr way, this is a pointless discussion
<rawtaz>
some people dont mind having to register, some do.
<hyper_ch2>
"A wiki (/ˈwɪki/ ( listen) WIK-ee) is a website on which users collaboratively modify content and structure directly from the web browser. In a typical wiki, text is written using a simplified markup language and often edited with the help of a rich-text editor."
jasongrossman has joined #nixos
<rawtaz>
but the interesting thing is that the ability to edit without an account is leading to misuse, but the ease of editing without an account also leads to moderation. a friend of mine did a test many eyars back where they added an incorrect statement in a wiki article (i think it was about pokemons :P), and it was corrected by someone else within 30 minutes. neither of these seemed to be a moderator
<infinisil>
hyper_ch2: rawtaz: -> #nixos-chat
<rawtaz>
bah.
orivej has quit [Ping timeout: 246 seconds]
reinzelmann has quit [Ping timeout: 250 seconds]
orivej has joined #nixos
jasongrossman has quit [Remote host closed the connection]
<hyper_ch2>
it's not like anyone is asking a nix/nixos related question anyway right now
nD5Xjz has joined #nixos
mayhewluke has quit [Ping timeout: 268 seconds]
mayhewluke has joined #nixos
<CMCDragonkai>
it seems like to use ecryptfs, you need to enable security.pam.enableEcryptfs. Without it, all the commands fail because they are looking for the `/run/wrappers/bin/mount.ecryptfs_private` file which won't exist without that option on NixOS.
vasiliy_san has quit [Quit: Connection closed for inactivity]
<__monty__>
lunik1: A regular single user install doesn't work?
<lunik1>
__monty__: I don't have root permissions
viric has joined #nixos
<lunik1>
so I can't create a /nix
kiloreux has joined #nixos
kiloreux_ has joined #nixos
<__monty__>
lunik1: Hmm, that's a pretty big problem. I think you'll want to ask an administrator to create it for you then. If the store is not in /nix/store you won't be able to use any binary caches. Which means you'll need to build *everything*.
<lunik1>
well was running pkgsrc before so I'll live, just wanted to switch to nix since I'm already running nixos elsewhere and it has a couple more thing packaged that I need
<srhb>
If you can live with no binary cache for your base store, you can do it with a source build. You could then use nix run --store for everything else to still get binary caches for that.
<LnL>
effsquared: why would you want that, nix builds don't have network access
<Church->
Man nix has so many neat options
doublescale has joined #nixos
<effsquared>
LnL: That is a very good point. I did not even think of that. I trying to building Slicer (github.com/Slicer/Slicer), which does some kind of "super build".
<effsquared>
LnL: I am fully aware that the idea of a "super build" conflicts with core idea of nix.
xenog_ has quit [Remote host closed the connection]
xenog_ has joined #nixos
drakonis1 has quit [Ping timeout: 252 seconds]
kiloreux_ has quit [Ping timeout: 268 seconds]
kiloreux has quit [Ping timeout: 268 seconds]
drakonis1 has joined #nixos
doublescale has quit [Remote host closed the connection]
Tucky has quit [Quit: WeeChat 2.2]
<pepesza>
is the rule about "Make sure libraries build for all Python interpreters" a hard one? I.e. I have a lib that is for python3 only.
jasongrossman has joined #nixos
abcrawf has quit [Remote host closed the connection]
<lunik1>
doesn't look like building from source is going to work. gcc is too old and there's no package for brotli. is there no way to have a custom store using a binary installation?
<Myrl-saki>
lunik1: There is.
<Myrl-saki>
lunik1: OTOH, what do you mean brotli won't work?
<{^_^}>
[nixpkgs] @bendlas closed pull request #48090 → chromium/update.sh: don't use remote builders, lots of copying for work → https://git.io/fxZdm
LysergicDreams has quit [Ping timeout: 252 seconds]
LysergicDreams has joined #nixos
cryptix has quit [Ping timeout: 250 seconds]
Mateon1 has quit [Ping timeout: 268 seconds]
Mateon2 has joined #nixos
fragamus has joined #nixos
Mateon2 is now known as Mateon1
LysergicDreams has quit [Ping timeout: 246 seconds]
fragamus has quit [Client Quit]
o1lo01ol1o has joined #nixos
LysergicDreams has joined #nixos
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @bendlas pushed commit from @dtzWill to release-18.09 « chromium: update to 69.0.3497.100 (and others), ran update.sh »: https://git.io/fx4W0
<{^_^}>
[nixpkgs] @bendlas closed pull request #47492 → chromium: update to 69.0.3497.100 (and others), ran update.sh → https://git.io/fxv2i
<shreyansh_k>
Hi, I'm trying to add rst support to the Hugo package. It requires only adding path to python's docutils & pygments package in the env. I've tried many approaches like adding the buildInputs, nativeBuildInputs... etc and even trying to use wrapper with mkwrapper and also tried using wrapProgram.
<shreyansh_k>
Could somebody show me how to do this?
<shreyansh_k>
Nix won't record the python deps as it's path in not stored in the binary after compilation. So, it thinks it's only a build dep.
<shreyansh_k>
I'm currently trying to wrap hugo like in the case of neovim-qt so that it includes python3Packages.{docutils, pygments} but I'm all out of ideas.
shabius has quit [Remote host closed the connection]
astrofog has joined #nixos
astronavt has joined #nixos
fendor has joined #nixos
iyzsong has joined #nixos
<apeyroux>
hello, howto list "options" for exemple emacs have withX, withGTK2 ... I can't figure out how to list the options that are available properly. I tried with emacs.drvAttrs
<effsquared>
Can anybody point me to a in depth guide to package gtk apps, incl. the gsettings schema path stuff.
YellowOnion__ has joined #nixos
Synthetica has quit [Quit: Connection closed for inactivity]
astrofog has quit [Remote host closed the connection]
<lunik1>
looks like I can't unshare the mount namespace anyway, ah well
<typetetris>
I have nix shell for some haskell library, how can I determine, why it needs a different one. I would try `nix why-depends` but I don't know how to use it and I don't know, how to get the store path of the haskell library, which is reported to me by `ghc-pkg list`?
mayhewluke has quit [Ping timeout: 244 seconds]
lewo has joined #nixos
YellowOnion_ has quit [Ping timeout: 268 seconds]
mayhewluke has joined #nixos
LysergicDreams has quit [Ping timeout: 250 seconds]
<nikivi>
how would I get nix-shell with node of 10.4.0 ver.
<thibm>
I'm trying to install NixOS on a Hetzner physical machine. I'm using nixops as it seems to be the simple path to get a running nixos on the server. But I get the following error (ran with --debug): http://sprunge.us/fxgDgm
<thibm>
I'm using nixops 1.6.1 but it did not work with 1.6 neither
<manveru>
nikivi: you can pass specific versions to the derivation in pkgs/development/nodejs/v10.nix, afaict
<manveru>
and it'll build them for you
<thibm>
does anyone know what's going wrong?
<nikivi>
manveru pass in how?
<manveru>
there's a buildNodejs function
<manveru>
lemme try it :)
<thibm>
The network specification is the simple nixops' example with a httpd serving valgrind's documentation.
<manveru>
it was in nixpkgs in the past, so you can just an old nixpkgs :)
<infinisil>
Any ZNC users here? If you've been frustrated with the ZNC NixOS module's flexibility, please check out my #45470. While I tested it myself, it would be nice to have some others test it as well and to have some review
<gchristensen>
yeah so I'm doing a nix-build with "${./my-big-file}..." in there somewhere, and it fails when copying that file to the store
<sphalerite>
LnL: --add maybe?
<LnL>
that's something different
effsquared has quit [Quit: Time to go.]
<sphalerite>
ah ok so it does exist but it's not documented :|
<dhess>
infinisil: I'm a ZNC user and wrote my own (hacky) module because I was unhappy with the upstream one. My input on your PR is that the password/password hash should not be inlined in the config because then it gets written to the store.
<dhess>
that's the main reason i wrote my own, to avoid that problem.
<dhess>
It should be loaded at start time somehow, maybe the config is copied from the store to /etc/znc or something and the secret is templated in at that time.
<LnL>
sphalerit: one of the prefetch* tools use it IIRC
<dhess>
Anyway I see that as the main issue with your proposed change, otherwise it looks good to me.
<Taneb>
gchristensen: thanks for documenting some of the nixpkgs library functions! :D
<Taneb>
I'd like to do what I can to help
<gchristensen>
:) you're welcome! great! my suggestion would be to pretty much copy the structure of an existing function, and copy-paste the docs from the .nix file in to the .xml
<gchristensen>
it isn't so hard
siers has quit [Ping timeout: 245 seconds]
<Taneb>
:)
iyzsong has quit [Ping timeout: 268 seconds]
LysergicDreams has quit [Ping timeout: 246 seconds]
<schmittlauch[m]>
What's the best way to get the sha256 has for usage in FetchFromGitHub? Just download the zip and sha256sum it?
<schmittlauch[m]>
Or are there more convenient helpers for that?
<symphorien>
,tofu schmittlauch[m]
<{^_^}>
schmittlauch[m]: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
LysergicDreams has joined #nixos
<symphorien>
also you can use nix-prefetch-url
<schmittlauch[m]>
ah, thx
Itkovian has joined #nixos
elgoosy has joined #nixos
typeggzero has joined #nixos
<typeggzero>
yo
<jabranham>
How do I start dunst on nixos? It errors with "BadAccess (attempt to access private resource denied)"?
<thibm>
Well, I start it in my WM starting script
<infinisil>
dhess: thanks, yeah that's a good point, but i think that's orthogonal to my PR, maybe I'll implement this another time
siers has joined #nixos
elgoosy has quit [Remote host closed the connection]
<clever>
jabranham: installing things like that shouldnt fix things, lol
<jabranham>
thibm: nix-env -i dunst
<thibm>
clever: well, libnotify comes with a binary (notify-send)
<thibm>
but I guess dunst uses the actual library
<jabranham>
clever: but I want dunst to be available for all applications when logged in. nix-shell isn't for that sort of stuff, right? I'm new to nix/nixos, so perhaps I'm misunderstanding things
<manveru>
jabranham: i use dunst via home-manager, if i don't know it yet :)
<jabranham>
thibm: well it worked in the sense that before dunst notifications from Emacs weren't working but now they are
<jabranham>
thibm: looks like the alert package relies on having the notify-send binary. So not a dunst problem.
<gchristensen>
fyi infinisil, elvishjerricco, sphalerite: there were some ideas on ways to do it, but I'm going to just use `zfs send` to ferry the file around and not manage it with Nix.
o1lo01ol1o has joined #nixos
<thibm>
jabranham: and that not because emacs relied on the notify-send binary package?
<infinisil>
gchristensen: What are you referring to?
<thibm>
oh, too late
<gchristensen>
infinisil: my question about referring to a very big file during a nix evaluation
<infinisil>
Ah
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<o1lo01ol1o>
when I tell nixos to `nix-build -opts paths` how is paths resolved? I'm looking at a nix-build that calls a value in path I don't recognize and I want to know where it comes from.
<gchristensen>
o1lo01ol1o: does it start with `<` and end with `>`?
<pareidolia>
I'm having trouble building a package "orc" on a Rpi2, can someone take a look at my output? https://pastebin.com/satN8cch
<o1lo01ol1o>
gchristensen: no, it's just foo.bar.baz
<gchristensen>
we'll need an actual example
<infinisil>
pareidolia: sidenote: pastebin is usually discouraged because of its bloatedness and ads
<o1lo01ol1o>
gchristensen: typo above: it's in a shell script: $(nix-build --no-out-link -A completeServer.aws.system --args)
<gchristensen>
-A means it is build the attribute completeServer.aws.system and there is no file being declared.
<gchristensen>
so it uses the default, ./default.nix
<o1lo01ol1o>
right, that's what I thought. But I can't find "completeServer.aws.system" anywhere in the codebase.
<gchristensen>
can you find completeServer?
<Church->
Man it feels like I'm running gentoo again almost.
fendor has quit [Quit: Leaving]
<infinisil>
,locate bin gnome-terminal
<o1lo01ol1o>
gchristensen: doh, yes, I can.
<{^_^}>
Found in packages: gnome3.gnome-terminal
<infinisil>
Church-: ^
<o1lo01ol1o>
gchristensen: thanks, still adapting to the nix syntax
<infinisil>
,locate
<{^_^}>
Use ,locate <filename> to find packages containing such a file. Powered by nix-index (local installation recommended).
<pareidolia>
/quit
<Church->
infinisil: Yeah I found it. :P
<Church->
Kinda odd, what group should a regular user be in to run nix-env and what not?
Mateon1 has joined #nixos
<gchristensen>
by default, any
<gchristensen>
see allowed-users in `man nix.conf`
<Church->
Thanks.
<Church->
Hmm, more errors...
* Church-
is having fun again
<mpickering>
If I want to install agda I have to refer to it as `haskellPackages.Agda`?
<mpickering>
There is an attribute called agda which doesn't contain the compiler
<mpickering>
and then a bunch of libraries but no top level definition which contains the compiler itself
drakonis has joined #nixos
drakonis1 has quit [Ping timeout: 252 seconds]
LysergicDreams has quit [Ping timeout: 252 seconds]
LysergicDreams has joined #nixos
<sphalerite>
gchristensen: hahaha
<gchristensen>
sphalerite: hm? :)
<sphalerite>
gchristensen: using zfs send to solve your problem
<gchristensen>
hehe
<gchristensen>
well it makes sense, I'd be using nix to copy a file just so I could load the contents in to a zfs zvol anyway
<gchristensen>
so skipping nix and xfering the zvol directly is just fine with me
nDuff has joined #nixos
<mightybyte>
How do you find the sha of nixpkgs for use with builtins.fetchTarball?
<nDuff>
Where would I look for documentation on activation scripts in NixOS?
<nDuff>
I'm particularly interested in knowing exactly when they run -- if they're guaranteed to happen before systemd services on boot, f/e (or if they happen on boot at all, or only during a nixos-rebuild)
LysergicDreams has quit [Ping timeout: 245 seconds]
drakonis has quit [Ping timeout: 260 seconds]
drakonis has joined #nixos
LysergicDreams has joined #nixos
<sphalerite>
mightybyte: easiest to put in the wrong one and copy the one in the error message
<clever>
nDuff: if you have any error in the activation script (like trying to do network), it can break stage-2.sh, causing systemd to not even be in PATH, and lead to confusing boot errors
<sphalerite>
infinisil: I haven't, I'm on a very poort internet connection curently
<infinisil>
sphalerite: It does in fact not report the correct hash, only the error mightybyte showed
<mightybyte>
sphalerite: I can confirm definitively that that does not work with builtins.fetchTarball
<sphalerite>
damn
<sphalerite>
time to file a bug? :D
<mightybyte>
I just got the hash right and it works now.
<nDuff>
clever, thank you. I'm trying to build a module for a service that wants to use filesystem UUIDs as keys for its configuration, but for a declarative configuration, making the user specify a UUID that is intentionally assigned at instantiation time seems like a Really Bad Idea. My current thought is to use a higher-level id like fs label when writing configuration from the nixos module, and then go from that to a config file in the format it expects (with
<nDuff>
the actual UUID) from the activation script.
<clever>
mightybyte: did you use --unpack?
<mightybyte>
Yes
drvirgilio has joined #nixos
<infinisil>
sphalerite: It's such an obvious oversight that I feel like there might even be some reason behind it
<infinisil>
Not sure though
<clever>
mightybyte: what is the exact expression you used?
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<emily>
does anyone have advice for using NixOS without a display manager? should I just install xinit and write my own .xinitrc in the usual way?
<emily>
(I'd like to run Xorg as non-root, too, preferably)
<infinisil>
emily: You can just put a ~/.xsession file
<infinisil>
That's where I have my window manager started
<infinisil>
Along with some systemd stuff
<infinisil>
Managed via home-manager
<infinisil>
emily: The NixOS xserver config will prefer that file over all its DE/WM settings
<emily>
infinisil: ah, cool. the display manager shell preamble seemed to have a bunch of stuff I don't want though (like assuming that $XDG_DATA_HOME is $HOME/.local/share)
<emily>
I guess I could patch it
<infinisil>
emily: Yeah that could use some work
<infinisil>
Honestly, this X session stuff should all be user managed to begin with, not globally in the nixos config
<emily>
just not super inclined to patch this stuff when I'm planning to jump ship to wayland once some packages make it into master
<infinisil>
Ohh I wanna get on the wayland train too eventually
<emily>
and sway configuration involves none of this nonsense
<emily>
infinisil: the main problem is that right now you need a meson update for sway alpha
<gchristensen>
infinisil: how do I use ,tell again?
<emily>
so it rebuilds the world ;w;
<infinisil>
,tell
<{^_^}>
infinisil: Use `,tell john Remember to do the laundry` to send this to john next time he's talking in this channel
<gchristensen>
,tell vcunat ping me about your mac =)
<mpickering>
I am trying to package something where the build program tries to write files into the source directory
<mpickering>
what's the usual way to work around this?
[0x4A6F] has joined #nixos
fpob has quit [Max SendQ exceeded]
MichaelRaskin has joined #nixos
fpob has joined #nixos
LysergicDreams has quit [Ping timeout: 268 seconds]
<srhb>
mpickering: What do you mean by source directory exactly? Usually, the source is unpacked into a mutable area and most builds do indeed modify that.
<{^_^}>
"Every once in a while, a new NixOS release may change\nconfiguration defaults in a way incompatible with stateful\ndata. For instance, if the default version of PostgreSQL\nchanges, the new version w...
elgoosy has quit [Remote host closed the connection]
<infinisil>
I guess it's cut off, but you can see the full description
<infinisil>
online or so
elgoosy has joined #nixos
<Zajcev_>
ok I see, nad how is it related with containers? should I declare stateversion in every container?
<Zajcev_>
and
elgoosy has quit [Remote host closed the connection]
elgoosy has joined #nixos
<o1lo01ol1o>
I have an expression question. I'm trying to set a new value on a single attribute from an imported set (while maintaining the rest of the attributes). what's the syntax for this? I have something that looks like: `let foo = import foo-path {}; in foo{baz=NewValue}`
<clever>
Zajcev_: yeah, i would define it for all nixos evals, including containers
<{^_^}>
[nixpkgs] @bjornfor opened pull request #48279 → lib.version: change from "pre-" to "post-" → https://git.io/fxBvI
<Zajcev_>
ok, I thought so, but ... when I want to upgrade system to next version?
<Zajcev_>
I think, main problem could be databases
<{^_^}>
[nixpkgs] @Ekleog opened pull request #48280 → nheko: mark as insecure → https://git.io/fxBv3
<{^_^}>
[nixpkgs] @Ekleog opened pull request #48281 → nheko: drop package, no longer maintained → https://git.io/fxBvn
<Zajcev_>
or only one problem?
<hodapp>
"hey, let's do an upgrade on a Friday afternoon", thought hodapp, as he started the upgrade to 18.09
<infinisil>
> let foo = { bar = 10; }; in foo // { baz = 20; }
<{^_^}>
{ bar = 10; baz = 20; }
<infinisil>
o1lo01ol1o: Like that?
<hodapp>
I am setting myself up for failure, aren't I
<cocreature>
hodapp: at least you have all weekend to fix it!
<hodapp>
but I'm at work >_>
orivej has joined #nixos
<hodapp>
I'll do my home machine later
<cocreature>
I guess you have to stay at work for a while :)
<o1lo01ol1o>
infinisil: potentially, what's the difference between that and .override
Acou_Bass has joined #nixos
<infinisil>
.override is for overriding function arguments where specifically supported
<infinisil>
E.g.
<hodapp>
cocreature: a certain US president might be in a certain nearby city this evening, so if I don't get out of here in about 2 hours, I'm gonna be here probably all evening
<cocreature>
if a license used by a package is not already in lib/licenses.nix should I just add it?
<cocreature>
also is there a convention for licenses not in spdx?
<hodapp>
because they're shutting down stretches of US-71 and nearby overpasses/underpasses
<cocreature>
hodapp: ouch :/
<hodapp>
er, I-71
<infinisil>
> let myfun = { bar }: { result = bar + 1; }; foo = lib.makeOverridable myfun { bar = 10; }; in foo
<infinisil>
> let myfun = { bar }: { result = bar + 1; }; foo = lib.makeOverridable myfun { bar = 10; }; in foo.result
<{^_^}>
11
<infinisil>
> let myfun = { bar }: { result = bar + 1; }; foo = lib.makeOverridable myfun { bar = 10; }; in (foo.override { bar = 2; }).result
<{^_^}>
3
<infinisil>
o1lo01ol1o: ^
<o1lo01ol1o>
got it, thanks
<infinisil>
> let myfun = { bar }: { result = bar + 1; }; foo = lib.makeOverridable myfun { bar = 10; }; in foo // { bar = 2; }
<{^_^}>
{ bar = 2; override = <CODE>; overrideDerivation = <CODE>; result = <CODE>; }
<cocreature>
also what is the policy wtr to the unfree licenses? if there is a specific license being used that’s not osi compliant but allows for redistribution should I just use unfreeRedistributable or add a new license?
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 0 commits to yegortimoshenko-patch-1: https://git.io/fxBTd
<{^_^}>
[nixpkgs] @xeji merged pull request #48281 → nheko: mark as insecure → https://git.io/fxBvn
<{^_^}>
[nixpkgs] @xeji pushed commit from @Ekleog to master « nheko: mark as insecure (#48281) »: https://git.io/fxBTj
<sphalerit>
hodapp: I find that for stuff like texlive and JavaScript dep stuff, using a value like 100 can help to offset the time it takes them all to run individually
<{^_^}>
[nixpkgs] @xeji pushed commit from @Ekleog to release-18.09 « nheko: mark as insecure (#48281) »: https://git.io/fxBkZ
<{^_^}>
[nixpkgs] @xeji closed pull request #48280 → nheko: mark as insecure → https://git.io/fxBv3
<schmittlauch[m]>
What's a good starting point for writing an expression to drop me into a development environment? My specifical problem is qt-creator needing qt development packages.
<schmittlauch[m]>
While nix-shell -p qt5.full might work, a specific nix expression might be nice for pulling in other dependency libs.
<clever>
schmittlauch[m]: qt-creator is a pain in the ass to get working
<schmittlauch[m]>
stdenv.mkShell?
<clever>
schmittlauch[m]: nix-shell auto-generates a qmake bash script that has the right deps, you must then dig it out of /tmp, and feed it to qt-creator in the settings ui
<clever>
and once you exit the nix-shell, it breaks, and you have to re-configure creator all over
<schmittlauch[m]>
oof :(
<schmittlauch[m]>
rly?
<clever>
but qt itself does work under nix-shell, if you dont care about creator being able to compile on the fly
<clever>
so i just use `qmake ; make` in nix-shell, and edit with vim
<clever>
but maybe things have improved, its been about a year since ive done anything QT in nix
<schmittlauch[m]>
Then I might say "fuck it" and add all development packages to my user environment. At least they have stable links then.
<schmittlauch[m]>
But the "write an expression dropping you to your developmen environment" use case still interests me, haven't found anything in the docs
<clever>
libraries dont work if you install them with nix-env
<clever>
nix ignores headers when installing things
<schmittlauch[m]>
I use home-manager, does that change anything?
<clever>
nope
<schmittlauch[m]>
meh
<schmittlauch[m]>
are they just not symlinked?
<clever>
yeah
<clever>
and you need the stdenv to setup env vars to even make gcc work
<schmittlauch[m]>
gnarf
<schmittlauch[m]>
so what about putting them into system packages then?
<schmittlauch[m]>
I thought NixOS was developer friendly
<clever>
you can only ever compile things inside nix-shell or nix-build
<clever>
systemPackages and nix-env dont install headers
<{^_^}>
[nixpkgs] @yegortimoshenko opened pull request #48284 → go: do not wrap with `go get` tools → https://git.io/fxBIV
<clever>
schmittlauch[m]: nix-shell helps greatly with development of things, but qt-creator is one of the few things that dont really work nicely still
<drakonis_>
that it exists?
pointfourone has left #nixos ["Leaving"]
<schmittlauch[m]>
clever: but nix-shell does make the haders and libs available, does it?
<Acou_Bass>
eey everyone, i installed the skype4linux package, it works fine but it needs to log in each time it loads.. it pulled in GNOME keyring when i installed it, but i dont run gnome so i dont even know if gnome-keyring is in use XD is there anything i can do to fix/help that?
<clever>
schmittlauch[m]: yeah, nix-shell makes all headers and libs available in gcc's search path
<gchristensen>
can anyone help me come up with a type signature for lib.attrsets.zipAttrsWithNames' `f` parameter?
<gchristensen>
I'm trying to write some docs for it, but its meaning is escaping me
<clever>
*looks*
halfbit has joined #nixos
<clever>
gchristensen: line 335 runs f on the list of names, and the result of catAttrs...
<gchristensen>
is it a [ Any ]?
<clever>
catAttrs returns a list of values, and filters
<gchristensen>
(String -> [ Any ] -> Any) ?
<siers>
Is deploying applications easier with nixo(p)s? Only if you've packaged everthing neatly and have no docker containers? (since they can't currently be provisioned declaratively via nixos modules)
<clever>
gchristensen: i think its [String] -> ([ a ] -> a) -> Map String a, for the entire function
<clever>
oops, missed the `sets` arg
trevorriles has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gchristensen>
clever: isn't `name` just one name, not a list of them? ie, would you agree with: zipAttrsWithNames :: [ String ] -> (String -> [ Any ] -> Any) -> AttrSet -> AttrSet
<clever>
gchristensen: names is a list of keys to keep, and f is ran on a list of values, for a given key (oh, type is off more), to merge them
<gchristensen>
some of these functions take like 30s to write up docs for, others leave me ????
<clever>
gchristensen: thats much closer, but the `sets` is a [AttrSet] i believe
<infinisil>
gchristensen: I think its String -> [Any] -> Any
<gchristensen>
ah
<infinisil>
(as you said)
<gchristensen>
nice!
<gchristensen>
thank you!
<infinisil>
ekleog: Automating this sure would be nice..
<clever>
gchristensen: trying an example in repl...
<gchristensen>
automating what?
<infinisil>
gchristensen: This type resolution
<gchristensen>
heh, yeah, but then many things would be meaningless, like optionalAttrs' type lies about itself
<clever>
> lib.attrsets.zipAttrsWithNames [ "a" "b" ] (name: vals: builtins.foldl' (a: b: a + b) 0 vals) [ { a = 1; b = 1; c = 1; } { a = 10; } { b = 100; } { c = 1000; } ]
<{^_^}>
{ a = <CODE>; b = <CODE>; }
<clever>
{ a = 11; b = 101; }
<infinisil>
optionalAttrs would then just be :: Bool -> a -> (a | Attrs Any)
<infinisil>
I guess this gradual typed could make it better
<clever>
names is a list of keys to filter the sets on, f takes a single name and a list of values to merge, and then you give it a list of sets
<ekleog>
infinisil: hmm… context?
<clever>
the c attr is filtered out, and the foldl sums up all the a's and b's seperately
<infinisil>
ekleog: Because you mentioned typing nix in #nix-lang
<ekleog>
oh :)
<clever>
nix-repl> lib.attrsets.zipAttrsWithNames [ "a" "b" ] (name: vals: "${name} ${toString (builtins.foldl' (a: b: a + b) 0 vals)}") [ { a = 1; b = 1; c = 1; } { a = 10; } { b = 100; } { c = 1000; } ]
<clever>
{ a = "a 11"; b = "b 101"; }
<clever>
gchristensen: and making use of the name
<gchristensen>
nice!
<gchristensen>
thank you :D
<ekleog>
well, currently I'm only dynamically typing, I still have hope that regnat will someday be able to finish up his prototype :)
<clever>
gchristensen: you could then use this to merge the .config every nixos module returns, and use the name to lookup the merge rules in .options
<ekleog>
(but he's… out of time for nix due to external reasons, unfortunately)
<clever>
gchristensen: and whenever you hit a set, recursively call itself, with the subtree of sets to merge
<infinisil>
ekleog: I once thought of implementing Nix typing in Nix itself
<clever>
gchristensen: but checking the source, i dont think modules actually use this method exactly
<gchristensen>
shlevy did that with some ADTs
<clever>
infinisil: you up for a rewrite? lol
<infinisil>
rewrite of what?
<clever>
infinisil: using zipAttrsWithNames to handle merging .config trees
<ekleog>
infinisil: hmm… do you mean in the nix language, or in nix-the-software?
<infinisil>
ekleog: Typing the Nix language, so it does inference, you can mark the type of stuff and report when the types don't match
<infinisil>
gchristensen: Are the letters on your "<" and ">" keys still visible? xD
<gchristensen>
I don't type <'s or >'s very often
<{^_^}>
[nixpkgs] @grahamc pushed 7 commits to release-18.09: https://git.io/fxBtD
yosslid has quit [Ping timeout: 246 seconds]
<clever>
ekleog: when // is merging 2 sets, it will alternate between the 2 iterators, to keep them at the same relative point, to ensure the output is sorted
<ekleog>
clever: wait… is set ordering visible from the nix language?
<clever>
ekleog: note, that this order is the ints behind the keys
<clever>
ekleog: behind the scenes, nix has a `Map String Int` for every string ever used as a key, and then the attr sets are actually `Map Int Value`, not `Map String Value`
<Church->
gchristensen: Yeah that my other thought.
<clever>
gchristensen: lately, ive found that github is using ~3-4gig of ram in chrome, and that renderer process often stalls and causes only github tabs to hang for ~5 seconds
<Church->
clever: If I install FF via home manager how would I install -bin?
<clever>
but thats likely just due to the sheer number of github tabs i have open
<clever>
Church-: install firefox-bin instead of firefox
<infinisil>
My FF performance is horrible :(
<infinisil>
No hardware acceleration whatsoever
<infinisil>
With videos and stuff
[0x4A6F] has quit [Quit: [0x4A6F]]
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to master « xdgmenumaker: 1.4 -> 1.5 (#47708) »: https://git.io/fxBsK
<Church->
Hmm anybody have a ready to go module for auto configuring fancontrol?
<Erayaydin>
Hi, I think migrate to nixos from arch (I use arch 4-5 years). What are pros and cons u guys tell to an arch user? I love to lightweight and KISS
<Drakonis__>
Erayaydin, my man, arch ain't lightweight nor kiss
<Church->
I mean it can be.
<Erayaydin>
Drakonis__: why not? Except systemd
<Erayaydin>
I use lightweight packages and applications like i3,mutt,irssi,vim,polybar etc
<Erayaydin>
and most of them have KISS principle
<Drakonis__>
that doesn't make arch into a lightweight distribution?
<Erayaydin>
Drakonis__: its have no graphical installation, no already installed bloat packages etc.
<Drakonis__>
again, that doesn't make it lightweight
<Erayaydin>
hmm then how you define lightweight for a "distro"
<Drakonis__>
if you define a distribution by the packages it has, then you have failed
<maurer>
Erayaydin: Pros: If your system works, and you try something new, you can always go back to how it was before. Declarative configuration means it's easy to port a system configuration to a new machine
<Church->
Hmm, odd. Pwmconfig doesn't sense any sensors...
hyper_ch_ has joined #nixos
<Drakonis__>
if i run all these packages you mentioned, does it make any distribution into a lightweight and kiss distribution?
<maurer>
Erayaydin: Cons: If someone else has an "installer" or a "universal binary" it's not going to work without sacrificing a goat
<Erayaydin>
no if you build that packages from huge distro its make no lightweight Drakonis__
hyper_ch has quit [Ping timeout: 264 seconds]
hyper_ch_ is now known as hyper_ch
<Erayaydin>
I can still bleeding edge right ?
<Erayaydin>
on nixos
<samueldr>
yeah
<worldofpeace>
very
<samueldr>
it has releases
<Drakonis__>
extremely.
<samueldr>
but a bunch of users and devs use what's called "unstable"
<samueldr>
which is close to a rolling release
<worldofpeace>
^
<Drakonis__>
Erayaydin, that doesn't make any sense
<Erayaydin>
Drakonis__: if you use i3,mutt,irssi,vim etc on Ubuntu, I say its not lightweight and you have big bloat packages
<Drakonis__>
maurer, instead of sacrificing a goat, why not toss it into a vm or container
<Erayaydin>
Because u have and u just "didnt" use
<Drakonis__>
seems less painful
<Drakonis__>
that actually doesn't make any sense because its the same binaries and the same kernel
<maurer>
Drakonis__: Because that means everyone else has to do that too, rather than you fixing it once and putting it in nixpkgs
<samueldr>
maurer: universal bianries with steam-run sometimes run right :)
<Drakonis__>
oh yeah that's a problem
<Drakonis__>
you can do that or sacrifice a goat for the greater good
<maurer>
The only piece of software I run containerized is IDA
<Erayaydin>
Another question, what about hardware specific issues on nixos?
<Drakonis__>
something something the road to hell is paved with good intentions
<samueldr>
Erayaydin: nixos is linux
<Church->
Can't run pwmconfig though...
jbgi has quit [Ping timeout: 252 seconds]
<maurer>
Erayaydin: Only issue I've ever had is difficulties getting optimus to work, but that's not a nixos-specific issue
<samueldr>
so uh, generally if something works on other distros, it should here
<Drakonis__>
you're still running all the same binaries on linux
<Church->
But sensors can still read my temps... the heck.
<Erayaydin>
I mean, for example, nixos have x11 configuration in built, may I change alllll x11 configuration like on arch
<worldofpeace>
samueldr: unless they're being greedy and not sharing it
<maurer>
Drakonis__: And that's because IDA's installer and binary are... temperamental, due to their userbase literally consisting entirely of hackers, so the rocket surgery would be very involved, and break on the next point release
<Erayaydin>
I think, I can do whatever on nixos like I did on arch, right?
<o1lo01ol1o>
is it possible that hydra doesn't pull the latest project source from github when I trigger an evaluation?
<samueldr>
some options (most?) allows you to completely override the config file
<Drakonis__>
maurer, i'm aware
<Drakonis__>
radare finally caught up with ada anyways
<maurer>
Disagreement box
<samueldr>
and "whatever", yeah, as long as you don't want to modify the nix store, which is a big no-no
<Drakonis__>
ida sorry
<maurer>
but then again, I work on BAP, so I may have different views on Radare's flaws
<Drakonis__>
samueldr, was there any progress on overriding immutable files with user provided files?
<Drakonis__>
looks like the original radare doesn't but the new one might?
<Drakonis__>
this is definitely not my field of software
<maurer>
Yeah, basically, Hexrays is actually nowhere near the state-of-academic-art in terms of decompilation, but nobody in academia has bothered gluing together techniques or robustifying them
<maurer>
but last I checked, it was the only thing you could reasonably call a C decompiler
<maurer>
there's things like boomerang, but they just fail on a ton of code
<maurer>
(there's also BAP Phoenix, but it also doesn't do what you want - it has superior control flow reconstruction, but inferior type reconstruction, which is funny, because I had superior type reconstruction in another branch)
<maurer>
(they just never got merged together)
<maurer>
Also, the "user interface" is a joke, as you might expect
<Church->
And still no pwm-capable modules
<Church->
Sigh. For later then
isHavvy has joined #nixos
<Drakonis__>
maurer, haven't you heard, hackers love CLI
Gohla has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @xeji pushed commit from @pmiddend to master « fcppt: 2.5.0 -> 2.9.0 (#48257) »: https://git.io/fxBlJ
<maurer>
Phoenix actually does have a gui implemented as a web frontend
<maurer>
but it doesn't support any kind of annotation injection or propagation
<maurer>
which is one of the more important features in hexrays - if you rename a variable, you can propagate it around the program, same with functions or function arguments
<maurer>
It also supports limited type propagation if you annotate them
<maurer>
both of those allow a human reverser to drastically improve the output of the automated engine
<Drakonis__>
i am absolutely not supposed to have opinions on things i don't work with
<maurer>
However, we're way off topic here, if you want to continue, send a line in #nixos-chat and I'll resume
<Drakonis__>
ya
<Drakonis__>
back on track
<worldofpeace>
Church-: I don't think there's a module for configuring fancontrol.
<Drakonis__>
where did we stop regarding moving from arch to nixos
<Drakonis__>
Erayaydin, you don't get the leeway that arch provides you
<Drakonis__>
where you can just live vicariously by breaking everything all the time
Havvy has quit [Ping timeout: 246 seconds]
<Erayaydin>
Personally, x11 issues or hardware issues not problem. I can fix that with updates, also there is an option you just not update that package and u didnt break, its like myth on arch
<Church->
worldofpeace: There should be? Running pwmconfig gives that error
<Erayaydin>
I use Arch on my daily job without problem
Gohla has joined #nixos
<Church->
So I can't gen a config for fan control
<Erayaydin>
But you right, some people need "stability"
<Drakonis__>
that's not what i implied
<worldofpeace>
Erayaydin: It's not even "stability" your system can be screwed and only a reinstall could fix it
<worldofpeace>
Erayaydin: With nixos every configuration change is as good as a clean install
<Erayaydin>
worldofpeace: I use arch without reinstall with 4 years :\
<Erayaydin>
Still use latest package without any screw
<Erayaydin>
(checked everywhere of system)
<Erayaydin>
But, Its true NixOS really good, I'll try
<Erayaydin>
Thats why I joined IRC channel and asked questions
<Erayaydin>
My lovely interest point of NixOS is, "configuration based"
<Drakonis__>
yes it is entirely configuration based
<worldofpeace>
Though there will most likely be pain points re-implementing your workflow
<samueldr>
YMMV, turns out I hadn't much to re-implement or change, mostly learn how to package whatever was missing
<Drakonis__>
there's an adaptation period as you can't just live vicariously by changing files at random
<Drakonis__>
like with arch
<samueldr>
yes, that's the most defining point I'd say
<worldofpeace>
I think everything is just more intentional
<samueldr>
since the store is immutable, you can't "just change something" to fix a thing
<samueldr>
but woah that's a good thing in the end
<Drakonis__>
there are some things i'd like to flip the immutability switch off
<{^_^}>
[nixpkgs] @jslight90 opened pull request #48292 → add custom hooks directory to gitlab-shell → https://git.io/fxB4S
<Drakonis__>
but other than that it is all fine and dandy
<kim0>
Is there some way to request a specific package to be upgraded? I just pinged fpletz since he seems to be the maintainer, but not sure if I should be doing something else
<Drakonis__>
which package?
<kim0>
xmr-stak
<Drakonis__>
usually there's automated pull requests
aminechi1haoui has joined #nixos
<Drakonis__>
oh its monero :|
<kim0>
it's hard forking next Thu .. and should be upgraded to 2.5 or will stop working
<Church->
Yeah I need to get pypandoc upgraded.
<Drakonis__>
why not update it yourself?
<Church->
Seems broken.
<Church->
Hmm could do that
<kim0>
coz maybe I don't know how to :)
<Drakonis__>
its not exactly hard to do that
<Church->
worldofpeace: Looks good. Give it a try
<Church->
Ta'
<kim0>
yeah .. but I'd rather not go there anyway
bjall has joined #nixos
<Drakonis__>
its fairly easy
aminechi1haoui has quit [Client Quit]
<Drakonis__>
why not try?
<kim0>
I know and edited some pkgs a year ago .. but this time, I'm only really interested in the result
<{^_^}>
[nixpkgs] @xeji pushed commit from @costrouc to master « pythonPackages.tinycss: 0.3 -> 0.4 refactor move to python-modules (#48163) »: https://git.io/fxB0t
<Drakonis__>
rather, i don't see why is it a hard fork
<maurer>
Drakonis__: It's a PoW change, the hardfork isn't in the code, it's in the protocol it will have to speak to other monero clients
<kim0>
huh? Monero hard forks every 6 months anyway to apply upgrades .. This time they're changing the proof of work function to evade ASICs
<Drakonis__>
that seems like a hilariously poor way to say "we upgraded the protocol"
simukis has quit [Quit: simukis]
<maurer>
The reason they call it a hard fork is that every time they do this, there's a risk that some people will say 'no eat shit' and stay on the old protocol
<judson>
This is going to sound whiny, but is there a way to get a shell to map paths of executables? I now have a symlink from /usr/sbin/visudo to make puppet tests work, because the path is hardcoded.
<Drakonis__>
haha welp
<maurer>
This has def. happened with other cryptocurrencies, though I think Monero has _usually_ moved forwards
<maurer>
judson: General rule there is to unhardcode paths with sed during installation?
<Drakonis__>
judson, have a web of symlinks you can point to binaries
<Drakonis__>
cryptocoin drama is not my thing anyways
<maurer>
e.g. sed s%/usr/bin/visudo%${sudo}/sbin/visudo% or wherever it really is
<maurer>
during patchPhase
<judson>
This is a development repo though, which pulls in a bunch of ruby code via 700 git clones. Sed'ing them isn't feasible or friendly.
alex`` has quit [Quit: WeeChat 2.2]
<judson>
I mean, symlinking as needed, I guess I can live with.
<maurer>
OK. I'm not going to be able to help you then. My personal opinion is "stop vendoring so hard, oh my god I hate vendoring".
<Drakonis__>
this seems like a horrible thing don't do it
<Drakonis__>
do we have any nixpkgs policy manual?
<Drakonis__>
it would be nice for these terrible cases
<Drakonis__>
debian has a book on packaging policy, do we?
<maurer>
Drakonis__: I don't think he's trying to package
<maurer>
I think he's trying to dev
<maurer>
if he's trying to package, nobody's going to accept this
<Drakonis__>
i have complained a little bit about debian's packagers being like this
<maurer>
Not to say that policy wouldn't be good. If stuff stabilizes, it might be good to codify best practices
<Drakonis__>
domain independent best practices
Drakonis__ is now known as Drakonis
<maurer>
right now it's pretty much "Fill out the meta. Don't not fill out the meta. Test with sandboxing on. Don't turn off tests unless they fail or take a long time, and if they fail, check thoroughly. Avoid vendoring if possible. Do what other people in this area of nixpkgs are doing already (e.g. be compatible with the giant functorish thing that retargets a library set to a particular compiler)
<Drakonis>
would probably be best to solidify it after getting stronger tooling
bjall has quit [Ping timeout: 256 seconds]
<Drakonis>
still gotta solve the "import packages from external package manager" problem
<maurer>
I mean, the answer to that is never going to be able to be policy coded?
<maurer>
It is basically "Appoint a wizard for your language, make sure they do it right"
<Drakonis>
probably
<Drakonis>
but then that's where you get domain specific policy
<Drakonis>
for what you can't codify for everything
<{^_^}>
[nixpkgs] @xeji pushed commit from @volth to master « nixos/qemu-guest-agent: pkgs.{kvm -> qemu} (#48293) »: https://git.io/fxBEo
slyfox has quit [Ping timeout: 252 seconds]
slyfox has joined #nixos
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @avnik to release-18.09 « nixos/rmilter: don't enable by default, if rspamd enabled »: https://git.io/fxBu2
<neonfuz>
can I just add nixpkgs.config = ... in my configuration.nix?
jluttine has joined #nixos
<lorilan>
hi I just installed the build tool pants using `nix-env -iA nixos.python27Packages.pants`. I try `pants goals` and I get "Exception caught: (<type 'exceptions.ImportError'>) Exception message: /tmp/tmp3uWaq5/native_engine.so: invalid ELF header" and I have no idea what to do :(
<lorilan>
Is there anybody who could hint me a direction where to find the solution ?