jtojnar has quit [Remote host closed the connection]
<justanotheruser>
azazel: shouldn't this result in the script running `git` under the user `andrew`? https://paste.debian.net/plain/1071996 I'm getting "line 11: git: command not found"
<{^_^}>
[nixpkgs] @danbst pushed to release-19.03 « zram: revert "change default algorithm to zstd" (#56856) »: https://git.io/fhpzG
ddellacosta has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @danbst merged pull request #56948 → nixos/auto-upgrade: enable service only when it's enabled in options → https://git.io/fhpOi
<{^_^}>
[nixpkgs] @danbst pushed to master « nixos/auto-upgrade: enable service only when it's enabled in options (#56948) »: https://git.io/fhpzZ
ddellacosta has joined #nixos
<adamt>
justanotheruser: Also, if you use paths like "${pkgs.foo}/bin/foo" you don't have to add the pkg to the list of system packages. Nix will just ensure it's available from where you call it
<azazel>
justanotheruser: use the "path" option (a list) to specify what should be in the PATH of the script, or directly reference the full path to the git executable, like jackd suggested
fractalcat has joined #nixos
<garbas>
LnL: i see that a lot have changes in last 2 months with python packages. is there somewhere i can read about it? i need to know how to fix pypi2nix to work with unstable
ng0 has quit [Quit: Alexa, when is the end of world?]
rprije has joined #nixos
<LnL>
not sure, I mostly use my own infrastructure outside of nixpkgs
gagbo has joined #nixos
alex`` has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @danbst pushed to master « zram: revert "change default algorithm to zstd" (#56856) »: https://git.io/fhpzW
<LnL>
but I know mkPythonPackage now uses strictDeps = true which might be the main thing you're running into
stepcut has quit [Remote host closed the connection]
<garbas>
tnx. i'll try to play around a bit
<garbas>
<garbas>
propagatedNativeBuildInputs did the trick
<LnL>
without strictDeps everything gets added which is simpler, but less flexible since you can't choose between bin or headers/libs
<LnL>
I think the main reason it was enabled is the fact that propagated* inputs are overused
thomashoneyman has joined #nixos
<thomashoneyman>
alright folks i'm gonna give this another go. current status: day 3 of attempted NixOS installation on Dell Precision 5530 dual-booting windows
pie_ has quit [Ping timeout: 245 seconds]
<thomashoneyman>
as of this moment i'm able to boot into NixOS so long as I do not enable xserver
<thomashoneyman>
enabling it causes the machine to load into what looks like a blank terminal
<thomashoneyman>
using the graphical installer and booting from the usb has the same result
<thomashoneyman>
just in case i messed up the graphical installer, i'm using windows and the rufus application to write the nixos 18.09 installer to a 16gb usb
mbrgm_ has joined #nixos
<thomashoneyman>
actually: using the installation guide's recommended installer, USBWriter
<thomashoneyman>
any advice on translating this into a nix configuration?
kyren has joined #nixos
ErAsMuS has joined #nixos
vk3wtf has quit [Ping timeout: 240 seconds]
<justanotheruser>
how can I get more information about the cause of this failure? Mar 06 19:43:09 iris systemd[1]: autocommit_cron.service: Main process exited, code=exited, status=123/n/a
<thomashoneyman_>
one more question: has anyone experienced or seen reports in the wild of the graphical installer booting on a Mac, but failing to launch the display manager on a Dell?
<thomashoneyman_>
to see if i was just being crazy i used the installer and successfully get through to the KDE Plasma desktop on a Macbook Pro 2015
<thomashoneyman_>
but get stuck at the blank terminal (no "Select the version of NixOS" or anything like that) on the Dell Precision
<{^_^}>
[nixpkgs] @kyren opened pull request #57006 → nixos/bepasty: switch to python3Packages to match bepasty package → https://git.io/fhp2Q
<ryantm>
hmm, I can't comment on NixOS GitHub PRs right now.
stepcut has quit [Remote host closed the connection]
<ryantm>
I see gchristensen posted a test comment no problem.
fractalcat has quit [Ping timeout: 268 seconds]
<gchristensen>
is there any reason they might have blocked you/
<ryantm>
I've been posting comments and reviewing PRs kind of fast.
<ryantm>
It says "You can't perform this action at this time."
<ryantm>
where the comment box normally is.
maximiliantagher has quit [Ping timeout: 245 seconds]
<gchristensen>
hrm. maybe you're super-human
<Myrl-saki>
When you're too productive so thye make you slow down a bit?
nD5Xjz_ has quit [Ping timeout: 255 seconds]
nD5Xjz has joined #nixos
<thomashoneyman_>
whoa!
<thomashoneyman_>
i got the installer to load a desktop!
<thomashoneyman_>
some combo of legacy boot things in the bios
<thomashoneyman_>
it's not connecting to wifi or anything but that's a big move
<thomashoneyman_>
just have to figure out what the hell is different in this
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
aw has joined #nixos
spacefrogg has joined #nixos
vk3wtf has quit [Ping timeout: 252 seconds]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamishmack has joined #nixos
hamishmack has quit [Client Quit]
thomashoneyman_ has quit [Ping timeout: 256 seconds]
xkapastel has quit [Quit: Connection closed for inactivity]
noonien has quit [Quit: Connection closed for inactivity]
selfsymmetric-mu has joined #nixos
<selfsymmetric-mu>
I'm having a belly of trouble with nixos and pipenv.
<selfsymmetric-mu>
I `nix-shell --pure` into a shell that only has `builtInputs = [pkgs.pipenv]`.
<selfsymmetric-mu>
Then I run `pipenv install` (or any pipenv command).
<selfsymmetric-mu>
Then it breaks.
<selfsymmetric-mu>
It breaks on `NameError: name 'py_version' is not defined`.
<selfsymmetric-mu>
If I go to the script, in `/nix/store/clwdqf1zrhv3gcbrrca2cklrs0xkpj26-python3.7-virtualenv-16.4.1/lib/python3.7/site-packages/virtualenv.py`, then indeed, the variable is wrong, it's undefined.
<selfsymmetric-mu>
I believe it should be `PY_VERSION`.
<selfsymmetric-mu>
The _more_ worrying thing is that I've deleted my Pipfile, so this is just using some arbitrary broken Python virtualenv?
obfusk has quit [Quit: No Ping reply in 180 seconds.]
<selfsymmetric-mu>
So either Python sandboxing is breaking way out of `nix-shell --pure`, or `pipenv`, a MAJOR Python environment tool, is totally broken on NixOS.
lucus16 has quit [Quit: No Ping reply in 180 seconds.]
<selfsymmetric-mu>
I'm hoping it's the former. Maybe there's a way I can be more sure about getting `pipenv` the right `virtualenv.py` it seems to need?
<{^_^}>
#57007 (by puffnfresh, 8 minutes ago, open): Chromium dev and beta might be vulnerable to CVE-2019-5786
ddellacosta has joined #nixos
rprije has joined #nixos
avn has joined #nixos
cyris212 has joined #nixos
talqu has joined #nixos
ekleog has joined #nixos
grw has joined #nixos
Jackneill has joined #nixos
freusque has joined #nixos
Serus has joined #nixos
arianvp has joined #nixos
xqsl has joined #nixos
srk has joined #nixos
akaWolf has joined #nixos
duairc has joined #nixos
unacceptable has joined #nixos
njha has joined #nixos
MasterdonY has joined #nixos
baum has joined #nixos
erhandsome has joined #nixos
duckonomy has joined #nixos
Niall__ has joined #nixos
dev3 has joined #nixos
acowley has joined #nixos
_cyril_ has joined #nixos
globin has joined #nixos
__red__ has joined #nixos
dkibi has joined #nixos
hexagoxel has joined #nixos
nbp has joined #nixos
mupf has joined #nixos
liori has joined #nixos
thomashoneyman has joined #nixos
tg has quit [Ping timeout: 255 seconds]
shreyansh_k has quit [Ping timeout: 244 seconds]
<thomashoneyman>
looks like i've borked things once more: i added the nixos-hardware channel to my nix channels, and now running `nixos-rebuild switch` produces a slew of errors
<thomashoneyman>
namely: "file nixpkgs/nixos was not found in the Nix search path (add it using $NIX_PATH or -I)"
<thomashoneyman>
alas $NIX_PATH seems to refer to a path that does not exist
<thomashoneyman>
oh!
<thomashoneyman>
i might be being dumb
pareidolia has quit [Ping timeout: 264 seconds]
tg has joined #nixos
Serus has quit [Ping timeout: 268 seconds]
Serus has joined #nixos
phreedom has quit [Remote host closed the connection]
<spikebike>
Is this not the right place for nix the package manager?
<ryantm>
spikebike: This is the right place!
<ryantm>
spikebike: Are you getting an error when you try to install it?
<spikebike>
Sorry, obviously I'm kinda confusing.
<spikebike>
(and confused)
<spikebike>
Did the multi-user install and when I run nix-shell
<spikebike>
$ nix-shell
<spikebike>
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
<ryantm>
No apology needed. I just want to get the terms straight.
<spikebike>
error: getting status of '/home/bill/default.nix': No such file or directory
<ryantm>
spikebike: nix-shell without any arguments expects a shell.nix or default.nix file to be in the current directory to do something.
<ryantm>
spikebike: How about try `nix-shell -p hello`?
<spikebike>
I was more worried about the ls.do error
<spikebike>
Interesting, that works, but I get 20 ish: ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
<clever>
spikebike: this runs plex full-screen (in tv mode) on my nas, which is plugged into the tv upstairs
<clever>
spikebike: so i just need 4 arrow keys, enter, and escape, to navigate my entire media library
<spikebike>
Very nice, and I use plex ;-).
ryantm has quit [Read error: Connection reset by peer]
ryantm has joined #nixos
endformationage has quit [Quit: WeeChat 2.3]
reinhardt has quit [Quit: Leaving]
maximiliantagher has joined #nixos
maximiliantagher has quit [Remote host closed the connection]
nD5Xjz has quit [Ping timeout: 255 seconds]
Lears has quit [Remote host closed the connection]
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
nD5Xjz has joined #nixos
etu has quit [Remote host closed the connection]
palo1 has joined #nixos
etu has joined #nixos
Lears has joined #nixos
etu has quit [Client Quit]
etu has joined #nixos
palo has quit [Ping timeout: 245 seconds]
palo1 is now known as palo
<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? I feel like it's likely that the dev node is not where I expect it (it's a VMWare VM) so maybe I need to get an initrd console to find it, but I'm
<srhb>
curious as to why the installer manages just fine..
<maurer>
Congratulations you found the race condition from the dawn of time
<maurer>
let me see if the fix is on my github or if I'm an idiot
<{^_^}>
#11003 (by evujumenuk, 3 years ago, closed): linux>3.19.x fails to mount root ZFS on NVMe during stage 1
Dr8128 has joined #nixos
<maurer>
tl;dr zfs devices doing udev settle don't always work how you expectr
<srhb>
Surprising...
<maurer>
This is with nvme, which shouldn't be super impactful during a VMware thing
<clever>
srhb: a common VM issue i have with zfs, there are no symlinks in /dev/disk/by-path
<clever>
srhb: because the VM doesnt specify details like that
<maurer>
but my guess is that udev settle is being as settly as you want
<srhb>
Right. I guess I need that initrd shell to find the dev nodes...
<srhb>
maurer: We'll see. THanks, it's another thing to check.
<clever>
srhb: boot.zfs.devNodes = "/dev/";
<clever>
that fixes it
_kwstas has joined #nixos
<MasseR>
How does the inherit keyword work? I've seen it used like `{ inherit a b; }` and `{ inherit (foo) a b; }` which both seem to work as intended. But I'm pretty sure I've also seen the form `{ inherit (foo); }` but this doesn't do what I expected
<{^_^}>
[nixpkgs] @7c6f434c pushed to release-19.03 « Merge pull request #56999 from knedlsepp/fix-cgui »: https://git.io/fhpw6
<srhb>
clever: Thanks :)
reinhardt has joined #nixos
calbrecht[mb] has quit [Remote host closed the connection]
calbrecht[mb] has joined #nixos
calbrecht has joined #nixos
<elvishjerricco>
srhb: let me know about your findings. This is an interesting problem I could see myself encountering at some point
calbrecht has quit [Quit: rcirc on GNU Emacs 27.0.50]
ddellacosta has quit [Ping timeout: 268 seconds]
maximiliantagher has joined #nixos
<hyper_ch2>
so, with my hosts list containing how over 140k entries, I wonder if I shouldn't better use dnsmasq instead... since dnsmasq woudl also allow wildcard entries and the hosts file doesn't
<Myrl-saki>
Hm.
<hyper_ch2>
the hosts file is now like 4.5 MB :)
<hyper_ch2>
or is the hosts file stored in memory somehow?
<clever>
hyper_ch2: i think its cached by nscd, when that is active
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
<srhb>
elvishjerricco: I think I'm just missing something obvious tbh. Like, the device nodes don't exist :-P
maximiliantagher has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @FRidh merged pull request #56991 → pytorch: Use nativeBuildInputs to specify binary build dependencies. → https://git.io/fhp0p
<{^_^}>
[nixpkgs] @FRidh pushed commit from @teh to master « pytorch: Use nativeBuildInputs to specify binary build dependencies. »: https://git.io/fhpwh
<{^_^}>
[nixpkgs] @FRidh pushed commit from @teh to release-19.03 « pytorch: Use nativeBuildInputs to specify binary build dependencies. »: https://git.io/fhpwj
<Myrl-saki>
Hm.
<pbb>
where on hydra.nixos.org can I see what builds or tests are keeping the nixos-unstable channel from being bumped?
<seqizz>
Hi. I am trying to compile tmux to test some stuff (independent from nix) and it complained about "can't find libevent". I installed this package but how can I make my shell (or nix-shell) to provide this library under LD_* and for stuff like pkg-config? :\
xkapastel has joined #nixos
jasongrossman has joined #nixos
maximiliantagher has joined #nixos
gilligan_ has joined #nixos
dramforever has joined #nixos
ym555 has joined #nixos
maximiliantagher has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixpkgs] @FRidh pushed to master « libr3: init at 1.3.4 »: https://git.io/fhp63
dramforever has quit [Quit: Leaving]
<clever>
,libraries seqizz
<{^_^}>
seqizz: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
silver has joined #nixos
nD5Xjz has quit [Ping timeout: 268 seconds]
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
calbrecht[mb] has quit [Remote host closed the connection]
calbrecht[mb] has joined #nixos
<gilligan_>
Anyone here by any chance looked at the 2.0 branch of https://github.com/xtruder/kubenix ? Trying to make sense of what the public interface has changed to and failing at doing so ;-}
<adamt>
From the 19.03 release notes: "For users of NixOS 18.03 and 19.03, NixOS defaults to Nix 2.0" -- shouldn't that be 18.09?
orivej has joined #nixos
fendor has joined #nixos
Dr8128 has joined #nixos
Neo-- has joined #nixos
<spikebike>
Anyone got suggestions for using nix package management with a NFS share across 100 NFS clients?
cfricke has quit [Ping timeout: 244 seconds]
civodul has joined #nixos
Dr8128 has quit [Ping timeout: 245 seconds]
<pbb>
Would it be possible to declaratively set the chromium search engine for the default profile? Or would I have to rebuild the whole chromium package for that?
<infinee>
I think my system is messed up. I have this directory ~/.nix-defexpr/channels_root and it's causing me warning "name collision in input nix expressions, skipping '/home/wayc/.nix-defexpr/channels_root/nixpkgs"
nD5Xjz has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @7c6f434c pushed to master « Release notes: switch to modesetting: mention backlight problem »: https://git.io/fhpij
<infinee>
joko: thanks, that fixed it all. nix-env -qaP doesn't give me any warnings now. Thanks!!
<joko>
infinee: kühl!
itorres has joined #nixos
maximiliantagher has joined #nixos
slack1256 has joined #nixos
maximiliantagher has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @dasJ opened pull request #57020 → nixos/openldap: Fix quoting of log level → https://git.io/fhpPo
Shouou has quit [Ping timeout: 255 seconds]
orivej has joined #nixos
FRidh has quit [Ping timeout: 245 seconds]
ym555 has joined #nixos
<ivegotasthma>
hello, I'm building a python wheel that gives me an error about zip not supporting timestamps before 1980. I saw an issue about that on github, but I don't see a solution.
<samrose>
any known issues with using osquery with nixos?
<{^_^}>
[nixpkgs] @bjornfor pushed commit from @dasJ to master « nixos/openldap: Fix quoting of log level »: https://git.io/fhpXT
Dr8128 has joined #nixos
Shouou has joined #nixos
<{^_^}>
[nixpkgs] @grahamc opened pull request #57021 → nspr: make reproducible → https://git.io/fhpXZ
maximiliantagher has joined #nixos
<Mic92>
gchristensen: to be honest, I only passed through scanners/printers so far through with virtualbox/vmware, where this was just a mouse click. I could give it a shot with my headset and modern.ie
<Mic92>
the USB protocol should be irrelevant. The only problem I see could be related to increased latency
<gchristensen>
interesting
Dr8128 has quit [Quit: Leaving.]
<gchristensen>
I could give it a shot with vbox and see if it helps
Dr8128 has joined #nixos
maximiliantagher has quit [Ping timeout: 245 seconds]
Dr8128 has quit [Client Quit]
Dr8128 has joined #nixos
<ivegotasthma>
azazel: thanks a lot, there was a solution to m problem there
<gchristensen>
for some reason, the audio latency isn't terrible right now, but I don't know what he did to fix it
<gchristensen>
for some reason, the audio latency isn't terrible right now, but I don't know what I did to fix it
<azazel>
ivegotasthma: I're welcome
_kwstas has quit [Quit: _kwstas]
noonien has joined #nixos
<ivegotasthma>
u're
lucus16 has joined #nixos
<azazel>
ops, yes ;-)
<Mic92>
gchristensen: since the usb protocol is packet based one can use wireshark to debug it :). I did this once for a rad1o (software defined radio equipment).
<andi->
lucus16: shortly after https://hydra.nixos.org/build/90248512 is done building and teste (a few more hours probably) the "correct" version should be available
<lucus16>
ok nice, thanks!
<andi->
(that is the build for 18.09)
<{^_^}>
[nixpkgs] @alyssais opened pull request #57023 → crystal: fix build on Darwin → https://git.io/fhpXj
Rovanion has quit [Ping timeout: 245 seconds]
<WilliamHamilton[>
hi, I'd like to write properly this idea: nix-shell --run 'cabal new-repl --extra-lib-dirs=$(nix-build "<nixpkgs> -A z3.lib/lib")'
<betawaffle>
are there still benefits to something like freenas over nixos with zfs?
<betawaffle>
(in a home environment)
<gchristensen>
does it do any magic?
<gchristensen>
I use NixOS with ZFS
* DigitalKiwi
too
<betawaffle>
it's based on freebsd, so has "better" zfs. it also has gui things, but i'm not sure how much i care about that
<clever>
all of my nixos recent machines are on zfs, including the nas
<gchristensen>
not for long ;)
<samueldr>
gchristensen: some would argue that it will keep being "better" zfs
<DigitalKiwi>
oh if anyone remembers me having realllllly slow nix problems on zfs it was my fault i had sync=always on that dataset >.>
<gchristensen>
nice
<clever>
i recently had some sqlite stuff take an hour, even with sync=disabled
<clever>
then i switched to a tmpfs, and it finished in 3 minutes
<DigitalKiwi>
set it to standard and now it is good
<avn>
betawaffle: I heard bsd have so better zfs, so plan to migrate to linux zfs ;)
<betawaffle>
i guess i'm wondering if there's any actually noticeable "betterness" of zfs on freebsd over linux
<betawaffle>
my only problem with freebsd is i'm not not as familiar with it
<clever>
betawaffle: i was recently helping a person migrate from a 4 disk jbod pool, to a 3 disk raidz on freenas, and we just did everything over ssh with normal zpool commands
<clever>
betawaffle: only real difference i noticed, is that `watch` wasnt the normal linux `watch`!
<avn>
betawaffle: without kidding -- linux zfs uses common zfs base code with other platforms (including ex-opensolaris), bsd are on the owns (and will switch to common as well)
<gchristensen>
betawaffle: can't be that much better, they're switching to linux's zfs
<betawaffle>
ok, well cool then
<gchristensen>
betawaffle: also, the ZFSs are effectively the same code, modulo kernel integrations
<betawaffle>
i'm much prefer nixos
<DigitalKiwi>
in my non expert opinion if you want to use freenas or freebsd on its own merits sure, but the zfs is a non-issue
<betawaffle>
i suspect freenas would be overall *easier* to set up to be useful as a nas, since i've never really done all that stuff on any platform before
* DigitalKiwi
uses zfs on linux on arch/nixos fine
<betawaffle>
but linux will be a good learning experience
adamt has quit [Quit: WeeChat 2.4]
<ar>
betawaffle: the "better zfs" argument is… arguable. freebsd people are porting over ZoL now, because most of the new developments happen in ZoL, and between them and the openzfs "upstream" they don't have the manpower
<mikky>
hi guys, I'm havin trouble building a QT5 app which depends on another library which in turn depends in libxml2. Both the app (called Datovka) and the library (called libisds) are not available in nixpkgs so I created derivations of my own (in my fork of nixpkgs tree). The library libisds builds fine but the build of the app fails with "/nix/store/...-libisds-0.10.8/include/isds.h:10:10: fatal error:
<mikky>
libxml/tree.h: No such file or directory"
<mikky>
I'm lost, tried adding libxml2 as propagated build input to libisds and as a dependency to Datovka but neither works
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<nefix>
Hey! I want to install NixOS in a Pine64, but I'm not sure how to proceed. It seems that is supported, but I can't figure out how should I boot it. There's the main arm64 image (2.2GB) and there's also the bootloader. Which should I write first? Should I write them both at the same time? Thanks!
fusion809 has quit [Ping timeout: 240 seconds]
fusion809 has joined #nixos
ericsagnes has quit [Ping timeout: 252 seconds]
AtomVelvet has joined #nixos
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<samueldr>
nefix: it'll be sd_image, then the bootloader; the sd_image would clobber the part of the sd (or emmc) where the bootloader is installed
<AtomVelvet>
Hi ! Is this the correct place to go for questions about nix as well?
<samueldr>
AtomVelvet: yes!
<AtomVelvet>
Great, thank you :)
<nefix>
samueldr: I tried that yesterday, but it didn't boot
<samueldr>
nefix: which board exactly?
<samueldr>
A64-LTS or the A64?
<samueldr>
they do not share the same bootloader
<nefix>
How can I tell the difference? It's the oh wait
<samueldr>
it's the oh wait? :)
<samueldr>
there should be an identifier next to the PI-2-bus
<samueldr>
ah, I assumed A64; completely different!
fusion809_ has joined #nixos
<nefix>
Yeah, my bad
<samueldr>
no problem
<samueldr>
still, the ordering should be to write the sd image, then the bootloader
<samueldr>
though I'm unsure as to whether it should work or not; u-boot should at least start
<nefix>
So, 1- download the arm64 NixOS image 2- download the custom uboot (linked in the wiki) 3- Flash NixOS image 4- Flash uboot 5- install?
<samueldr>
(the page says "The upstream aarch64 SD image may boot if U-Boot is placed at the correct location as described below, but this has not been tested.")
fusion809 has quit [Ping timeout: 240 seconds]
<AtomVelvet>
Hm, do I have to mess around with derivations if I just want to set up an environment with dependencies necessary for running a build tool?
<samueldr>
nefix: that's what I'd do, and have done for other aarch64 boards
<samueldr>
AtomVelvet: maybe not
<samueldr>
AtomVelvet: nix-shell -p zlib e.g. would setup stdenv + zlib, the compiler wrappers will know how to find zlib
<samueldr>
AtomVelvet: if you need pkgs-config, -p pkgconfig, etc
<samueldr>
AtomVelvet: (if you wanted to imperatively hack on some software)
<nefix>
Hmm I see
<AtomVelvet>
Ah, hm
<AtomVelvet>
samueldr: Is there a way to specify a file I can run to enter that env rather than having it pollute my personal user env? e.g. I only want to have those `installed` when I'm in my project folder
<nefix>
The thing is that yesterday I did exactly that and it didn't do anything
<AtomVelvet>
Uh
<samueldr>
nix-shell is not installing; it opens a (bash) shell with the software listed available
<AtomVelvet>
I somehow just cleared the history of my irc client, if there were any messages since my last I've lost them, my bad
<samueldr>
they will be downloaded to the store, but they won't be pinned from GC
<samueldr>
AtomVelvet: probably CTRL+L on the wrong window :)
<AtomVelvet>
samueldr: Ah yes, ctrl+L clears it :P
<AtomVelvet>
That looks like what I'm looking for though, thank you
ym555 has joined #nixos
<samueldr>
AtomVelvet: as for *automatically*, not natively, but there are tools like direnv which might help
<AtomVelvet>
samueldr: Are there any resources you'd recommend for learning about nix?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gagbo has joined #nixos
<AtomVelvet>
Like there's some stuff I'm just not sure how to fit into the Nix way of working. e.g. I'm trying to set up an environment where I can use a build tool called `yotta`, but installing that requires a bunch of packages and at the end, running `pip install yotta`. Each time I enter the environment I don't want to have to run `pip install yotta` - but I'm not sure how to go about doing this.
<edef>
you can package yotta
orivej has quit [Remote host closed the connection]
<AtomVelvet>
edef: But there's multiple things I'll have to install from pip
<edef>
such as?
orivej has joined #nixos
<DigitalKiwi>
you can package them too ;p (or if you're lucky someone already did)
* DigitalKiwi
should probably finish cleaning up the ones he did and PR
<srhb>
AtomVelvet: Usually you get the maximal payoff from Nix if you go all the way -- meaning stick everything in Nix :)
<symphorien>
it will work best if these are pure python package
<srhb>
AtomVelvet: That said, using nix-shell with shellHook can hack around some of these things, but it's less elegant and useful, most of the time..
<srhb>
AtomVelvet: (some of these things ~ executing some command in a given environment)
Ariakenom has quit [Ping timeout: 244 seconds]
<DigitalKiwi>
speaking of, can anyone help me package something? i spent a few days on it and couldn't so i just patched around it... it's a dependency for something that's a dependency for something else...the only package that uses it in nixpkgs patched it out too >.>
<simpson>
AtomVelvet: Yotta looks like the kind of thing that Nix replaces. What are you working on?
<AtomVelvet>
Hmm .. so I need to create Nix packages for each Python package that I want to have available in my environment?
<simpson>
AtomVelvet: Maybe? More likely you need to burn down your Yotta-using repo. What are you actually working on?
kreisys has joined #nixos
<AtomVelvet>
simpson: Building code for an ARM embedded platform. I can't get away from using Yotta - was just trying to make the experience more pleasant as some of the dependencies straight up aren't available on Ubuntu Cosmic right now.
<simpson>
DigitalKiwi: What's not working? Or do you want answers to the "Questions" in your gist?
<simpson>
AtomVelvet: Understandable. You should know, though, that nixpkgs already features robust cross-compiling support and that you may be choosing the Hard Way to do things.
<DigitalKiwi>
i already talked to puffnfresh a bit about the questions but if you want to comment more sure, but i never got setuptools_scm_git_archive to build
<simpson>
DigitalKiwi: Patching stuff out and disabling tests is pretty common in Python modules; if the dependent application still works, then it's acceptable.
<DigitalKiwi>
in fact i even started solving some of them and bumped the pdfminer_six and stuff and tested the ones that use it
kisik21 has quit [Ping timeout: 258 seconds]
<AtomVelvet>
simpson: Perhaps, and something I'll consider in the future, but unfortunately I'm stuck with Yotta for the moment. Was looking at Nix purely as a way to isolate its dependencies and get it working
<DigitalKiwi>
(the pikepdf default.nix is the one i added that wants the scm_git_archive)
Shouou has joined #nixos
gagbo has quit [Quit: I'm out !]
johanot has joined #nixos
<DigitalKiwi>
i just wanted to try to get setuptools_scm_git_archive to work so that other people could use it too :(
gagbo has joined #nixos
<AtomVelvet>
Is there a way to have nix-shell read from a file so I don't have to do for example nix-shell -p gcc-arm-embedded srecord python .... every time I want to enter the environment?
<symphorien>
yes, put a file called shell.nix in the directory
<symphorien>
then call `nix-shell` and the magic happens
maximiliantagher has joined #nixos
<AtomVelvet>
Perfect, thank you :)
<AtomVelvet>
Huh ... there's no package for python 3.7?
<symphorien>
> pkgs.python3.name
<{^_^}>
"python3-3.7.2"
<AtomVelvet>
Ah, thank you
<{^_^}>
[nixpkgs] @hedning pushed 14 commits to gnome-3.32: https://git.io/fhpHI
<Shouou>
A package relies on something relative to cwd during execution, how do I accommodate this?
<symphorien>
patching the source if possible
<symphorien>
or a wrapper which run `cd /nix/store/whatever` before exec'ing the executable
<Shouou>
I'm using makeWrapper, can this be done through that? Otherwise patching sounds good.
<symphorien>
yes --run iirc
maximiliantagher has quit [Ping timeout: 268 seconds]
<symphorien>
but prefer patching because the wrapper will prevent use to invoke the executable with a relative path as argument
<symphorien>
s/use/you/
zupo has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
<Taneb>
(it's a lemon)
<Taneb>
AAaaah I keep doing that
<Taneb>
(pressing up-enter without looking what terminal I'm in
<symphorien>
you can replace that habit by !! if you want
<Taneb>
symphorien: ooh, didn't know that
<symphorien>
I also like !$
<Taneb>
I guess if I get into that habit I'll just sometimes exclaim surprise on IRC
<symphorien>
I guess on average it's better :)
<DigitalKiwi>
what's !! ?
ddellacosta has joined #nixos
<symphorien>
it is replaced by the last command by bash, zsh and friends
<DigitalKiwi>
oh, neat
m0rphism has quit [Quit: WeeChat 2.2]
m0rphism has joined #nixos
<mikky>
ok, I got a bit further: at build time, there's couple of `g++ .... -Ipath/to/stuff` where stuff is *some* of the defined build inputs but not the proper path to libxml2-dev, *however*, there is a hardcoded `-I/usr/include/libxml2` in the source code. Is there some kind of logic in nix build that prevents the proper -I to be included when there's one similar hardcoded?
<clever>
mikky: is this on nixos or another distro?
<mikky>
clever: nixos, I posted about this about an hour ago, this is just a follow-up although somewhat self-contained :)
<clever>
mikky: nixos lacks a /usr/include dir, but g++ should check all of the -I paths
<clever>
so it should just ignore that entry
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Neo-- has quit [Ping timeout: 240 seconds]
<mikky>
the problem is the one path I need (i.e. -I /nix/store/...libxml-something/) is not there at all
<clever>
mikky: thats what NIX_CFLAGS_COMPILE is for
<mikky>
clever: I thought those should be populated automatically from buildInputs
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever>
mikky: it is, but it wont be visible on the cmdline when make runs things
<simpson>
mikky: Does it use autotools? You could use the autoreconf hook. If the path is hardcoded in the source, though, then you might have to patch it with sed or similar.
<mikky>
qmake in this case, if it makes any difference. No autotools
<clever>
mikky: check `echo $NIX_CFLAGS_COMPILE`
<clever>
mikky: can you pastebin the nix expression that is failing?
samrose has quit [Read error: Connection reset by peer]
fendor has joined #nixos
<AtomVelvet>
I want to make a nix derivation for libssl ... how would I even begin to do this? Pulling the .deb from debian repos? Building from source?
<clever>
AtomVelvet: building from source is almost always prefered
hiroshi has quit [Ping timeout: 245 seconds]
<simpson>
> openssl # AtomVelvet: would this one work?
<mikky>
it's just draft but it shows the deps (libisds) as well
<AtomVelvet>
simpson: Ahh, didn't think of that, thanks!
<simpson>
AtomVelvet: No worries, it looks like the `libssl` alias isn't there anymore?
<simpson>
> libssl
<{^_^}>
undefined variable 'libssl' at (string):220:1
simukis has quit [Read error: Connection reset by peer]
simukis has joined #nixos
<AtomVelvet>
What's the best resource to learn Nix? Nix pills?
<mikky>
clever: building with `nix-build -A datovka`
<clever>
mikky: pkgconfig and libxml are to blame
<clever>
mikky: nix did -I/nix/store/foo/include
<clever>
mikky: and your package is doing #include <libxml/tree.h>
<clever>
mikky: but! the file is at /nix/store/foo/include/libxml2/libxml/tree.h!!!
<clever>
libxml is mostly to blame, for putting the file in a subdir of include, and requiring you to -I/usr/include/libxml2, which is how they avoided conflicts between versions (the entire point of nix!!)
dbmikus has joined #nixos
fendor has quit [Ping timeout: 250 seconds]
<simpson>
AtomVelvet: The pills are pretty good, it seems. Reading nixpkgs can be instructive; grepping it can be even better.
<AtomVelvet>
simpson: Okay, thanks!
<srhb>
AtomVelvet: #nixos is the best resource, hands down ;-)
<clever>
mikky: pkgconfig is the usuall fix for this, bug datovka doesnt attempt to use it
camsbury has joined #nixos
<ddellacosta>
amusingly (perhaps to me only) the current version of docker is apparently 18.09
<clever>
ddellacosta: heh
<mikky>
clever: right, give me a few minutes to sink this in
<{^_^}>
[cabal2nix] @peti pushed to v3 « Drop the crazy fetcher auto-detection logic. »: https://git.io/fhpQB
<ajs124>
are there any formal requirements for inclusion of a package into nixpkgs? e.g. I recently packaged uefitool, which I could open PR, but I kind of doubt anyone will ever need it.
<AtomVelvet>
Is there a page where I can see what to put in my shell.nix file?
<clever>
ajs124: i have sometimes wanted to run it, to see what my bios is up to
<clever>
ajs124: i think thats enough reason to get it into nixpkgs
<mikky>
clever: thanks, I think I understand why this helps but I'm still not sure why this doesn't happen automatically in the first place
ThatDocsLady_ has quit [Read error: Connection reset by peer]
<ddellacosta>
AtomVelvet: there are a number of language-specific examples in the nixpkgs manual here: https://nixos.org/nixpkgs/manual/
ThatDocsLady_ has joined #nixos
<ddellacosta>
ymmv
<simpson>
ajs124: Two people have possibly had a use for it, and in addition I've heard of it; this makes uefitool more popular than a good portion of nixpkgs, probably. There is a loooooong tail of single-user packages.
maximiliantagher has quit [Ping timeout: 240 seconds]
<clever>
mikky: the problem is that nixpkgs is basically making -I/usr/include work automatically after packages are moved
<clever>
mikky: but libxml is being stupid, and needs -I/usr/include/libxml2
<ajs124>
clever, simpson: huh, ok, then I'll open a PR. The thing is, carrying it out of tree really isn't much effort for me, so I'm always wondering. Especially since we're at >1k open PRs...
<mikky>
clever: that's where I get confused - why libisds compiles then? It has the same dependency. In fact the original problem with Datovka is that it includes libisds which includes libxml...
<mikky>
it's from the same header file
<clever>
mikky: *looks*
<avn>
simpson: hehe. is a good to have any (opt int) voting -- should this package be added. I always doubt -- submit or not (sometimes I'd like to package stuff, but won't support it for long time)
<clever>
checking for xml2-config... /nix/store/5rnvl1aknc6myvmip48achjy79q3iccr-libxml2-2.9.9-dev/bin/xml2-config
<clever>
mikky: libisds runs xml2-config, a binary that can print out the correct -I flags
<clever>
mikky: but the other package is using qmake, and doesnt bother asking libxml where it lives
sigmundv has quit [Ping timeout: 250 seconds]
<mikky>
clever: ahh.. ok, now it finally makes sense :)
nefix has quit [Ping timeout: 256 seconds]
<mikky>
clever, thanks. I'll fill a bug with datovka as this looks like they're doing something wrong (i.e. assuming a path exists without any reason to)
ThatDocsLady_ has quit [Ping timeout: 240 seconds]
<ddellacosta>
wedens, if I understand what nvidia-xrun does, seems like you want the primerun script as described here? https://nixos.wiki/wiki/Nvidia
<ddellacosta>
not sure if there's anything available in nixpkgs however, if that was the thrust of your question
<wedens>
ddellacosta: thanks. I've seen this primerun script, but completely forgotten about it
<ddellacosta>
wedens: unfortunately I have not tried it myself--I'm lazy and just leave my nvidia card enabled all the time in my laptop, but according to that page at least it does the job
<AtomVelvet>
Hmm .. despite having openssl in my env, I can't seem to get libssl.so.1.1. Anyone know why that would be?
<AtomVelvet>
Actually, it seems the openssl package doesn't work at all
BlessJah has quit [Ping timeout: 240 seconds]
<symphorien>
,locate libssl.so
<{^_^}>
Found in packages: openssl, libressl, robomongo, scilab-bin, openssl_1_1, libressl_2_6, libressl_2_8, openssl-chacha
<infinisil>
Ah yeah, guess getLib does the right thing there
lpil has joined #nixos
<infinisil>
Oh wait, that output is the same for all drv outputs
<lpil>
Hi friends. I'm evaluating Nix as a tool for managing software and configuration on my development laptop, a task that I currently use ansible for. If using Nix but not NixOS will I still be able to perform tasks such as change a user's login shell, etc?
<{^_^}>
[cabal2nix] @peti pushed to v3 « cabal2nix.cabal: drop unused library dependencies »: https://git.io/fhp76
<DigitalKiwi>
simpson: i have a question so for that ocrmypdf thing it has a bunch of tests for itself, i didn't get them working (i think it involved packaging a few more things and i just wanted it to work) should i try to get them to work?
<lpil>
infinisil: Adding .desktop files to /usr/share/applications/, writing dotfiles, creating directories to be used as storage by programs, this sort of thing.
<simpson>
DigitalKiwi: Up to you. `doCheck = false;` is a time-honored tradition. If you need to include packages just for testing, you can put them in `checkInputs`.
<lpil>
I think Nix isn't quite what I'm looking for without also using NixOS. Thanks for the insight all!
lpil has quit [Quit: Page closed]
<{^_^}>
[nixpkgs] @NeQuissimus opened pull request #57035 → [WIP] Allow custom nssdb in Chromium → https://git.io/fhp7A
<DigitalKiwi>
is there a better word than dependee
<gchristensen>
what do you want to describe?
kreisys has joined #nixos
kisik21 has joined #nixos
zupo_ has joined #nixos
<DigitalKiwi>
like if a program that depends on a library, the library is a dependency, what's a word for the programs that depend on the library?
<gchristensen>
referers
<gchristensen>
for example: nix-store --query --referers $(which bash)
<DigitalKiwi>
is that like a nixos term or generic
<gchristensen>
that is the term Nix uses, it is probably a well selected term
<{^_^}>
[nixpkgs] @veprbl merged pull request #56859 → openafs: Add support for Linux 5.0 to openafs_1_8 → https://git.io/fhxKn
<{^_^}>
[nixpkgs] @veprbl pushed commit from @artemist to master « openafs: Add support for Linux 5.0 to openafs_1_8 (#56859) »: https://git.io/fhp5f
<DigitalKiwi>
and also thanks for that command i've been wondering how to do that
<noonien>
i want to get a hash for a file i get with fetchurl, however, i set `executable=true;`, is it possible to get the hash with nix-prefetch-url?
<matthewbauer[m]>
I wonder if the fix hasn't been applied in nixpkgs?
vidbina has joined #nixos
<DigitalKiwi>
i've been getting lots more errors lately in general :(
<DigitalKiwi>
taffybar finally started working again recently and now it doesn't
<DigitalKiwi>
and yeah i'm on nixos-unstable and i've tried other branches but then other packages fail i had to do (import (fetchTarball "channel:nixos-18.09") {}).freecad
<DigitalKiwi>
(i tried that for taffybar but that didn't help)
<Fare>
Sorry to bother again about the same question, but is there a way to track the issue wrt the 0day exploit fixed in chromium-72.0.3626.121 ? I don't see a fix in nixos-19.03 or nixos-19.03-small yet. A github search suggests that a fix is in the pipeline, though https://github.com/NixOS/nixpkgs/issues?utf8=✓&q=is%3Aissue+chrome
<gchristensen>
at build-time A depends on B depends on C, but A may not depend on B after build time -- only at run time
<DigitalKiwi>
oh, ok
<Fare>
Is the recommended workaround to use firefox and/or a chrome in a debian chroot?
<gchristensen>
DigitalKiwi: and also, A may depend on C at run time even if it doesn't depend on B at run time
<DigitalKiwi>
(there are lots of reasons to rather not)
<gchristensen>
Fare: let's see if we can ruslte the right people up, a fix should probably have been applied to 19.03 already :/
<noonien>
how an one get the path to the current nixpkgs?
<gchristensen>
(gently, DigitalKiwi, not using it is off-topic -- having process for this is important)
<Fare>
I *suppose* the issue is just a long pipeline, but I'm also worried about the lack of easy tracking for this (and all the future) 0day exploits.
<noonien>
notice that i changed the name of my root dataset to "zpool" instead of "zroot", this isn't anything special, just that most documentation on the nixos wiki asumes the dataset is called zroot
<noonien>
in hindsight, perhaps that would have been a better name
<clever>
noonien: i tend to use the hostname, duplicate pool names (recovering, and putting one hdd into another machine) cause issues
<elvishjerricco>
thomashoneyman: So I'm googling a bit and it looks like mountpoint issues. Can you run `zfs get mountpoint`?
<thomashoneyman>
it looks like you mount to zpool/root/nixos, whereas this guide mounts to zroot/root -- is that meaningful?
<thomashoneyman>
results of `zfs get mountpoint`:
<{^_^}>
[nixpkgs] @vcunat pushed commit from @Mic92 to release-19.03 « Merge #57015: lua packages: fix some bugs »: https://git.io/fhp55
<elvishjerricco>
thomashoneyman: Oh huh let me see...
<thomashoneyman>
1. name: zroot, property: mountpoint, value: none, source: local
kreisys has joined #nixos
<noonien>
also, i realy don't see the point in encrypting /boot, not without a proper secure enclave to provide security for it
<thomashoneyman>
2. name: zroot/root, property: mountpoint, value: legacy, source: local
<elvishjerricco>
noonien: Yea it's not super important. It was more about having /boot on ZFS for integrity and to share the disk space. And the rest of the ZFS pool needed to be encrypted
<clever>
noonien: of note, there is an EFI function to query if secureboot is enabled, but its just a bool, and its trivial to fake its response if secureboot is off
<elvishjerricco>
But in theory, a TPM can make encrypted /boot very valuable
<thomashoneyman>
elvishjerricco: later in this guide you have references to the encrypted and unencrypted disk names
<thomashoneyman>
i created the encrypted name with cryptsetup, right? so cryptsetup luksOpen <disk> <encrypted-name>
<thomashoneyman>
so here <disk> is the unencrypted name and <encrypted-name> is the encrypted name?
<elvishjerricco>
My terminology is that the decrypted name is the name you give to cryptsetup, and <disk> is the encrypted name
<clever>
thomashoneyman: yeah
<clever>
thomashoneyman: the man page should give a definite answer
<elvishjerricco>
Since disk refers to the media with encrypted data and the mapped name refers to media with decrypted data
<Denommus>
infinisil: yeah, that fixes its dependencies, but nixopsUnstable itself still has a build error
<thomashoneyman>
aw, that sucks for me, since i named the 'decrypted data' (the final argument to cryptsetup) 'nixos-enc'
<noonien>
thomashoneyman: sorry for not responding earlier, the reason i used zpool/root/nixos is because the zfs guide on the nix wiki suggested that i might have different roots for differents os', which seemed like a fair point
<noonien>
so i coud use zpool/root/ubuntu for example
<noonien>
don't think i'll ever use any other linux-based os except nixos ever though :D
timor has quit [Ping timeout: 252 seconds]
<thomashoneyman>
ah, i see
<Fare>
what is the Right Thing™ to do wrt building proprietary/experimental software on top of nixpkgs?
<Fare>
I depend on updates wrt what is on nixpkgs
<Fare>
is there a way to define my software as a layer on top of nixpkgs?
<Fare>
I'd rather not maintain a long-running fork of nixpkgs
<Fare>
gchristensen, if I nix-channel --update with nixos-19.03-small, the patch isn't there yet.
Shouou has quit [Ping timeout: 245 seconds]
<simpson>
,overlays
<{^_^}>
simpson: Did you mean overlay?
<{^_^}>
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
<slack1256>
Sometimes nix-shell take a while to initializate. I've been thinking on leaving a nix-shell open via tmux and make emacs send build commands through it
<slack1256>
Does anyone do the same? Care to share your setup?
ym555_ has joined #nixos
ym555 has quit [Ping timeout: 252 seconds]
ErAsMuS has quit [Quit: END-AUMF]
<{^_^}>
[nixpkgs] @matthewbauer closed pull request #31325 → nixos/gdm,nvidia: fix assertion for gdm not using wayland on nvidia → https://git.io/vF8EN
<thomashoneyman>
is there a way to check what type a field should be?
drewr has joined #nixos
<elvishjerricco>
thomashoneyman: You mean a NixOS option?
<thomashoneyman>
in configuration.nix
<elvishjerricco>
Yea
<thomashoneyman>
mostly for when it should be a number or a number string
<thomashoneyman>
alright! installing this...
<thomashoneyman>
oh no
imdoor has joined #nixos
<thomashoneyman>
"the option boot.initrd.luks.devices.nixos-enc.keyfile does not exist"
<thomashoneyman>
where 'nixos-enc' is my 'decrypted' disk name
imdoor has left #nixos [#nixos]
<elvishjerricco>
thomashoneyman: Uh oh. Hold on I have a link for you
<Denommus>
this is untested with azure, I just did what I could for the package to build
dashkal has joined #nixos
maximiliantagher has quit [Remote host closed the connection]
fendor_ has joined #nixos
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ym555_ has quit [Quit: leaving...]
zupo has joined #nixos
<noonien>
is it possible to get a hash for a file i download with `fetchurl { url = ...; executable = true; sha256 = "need this"; }`?
zupo has quit [Client Quit]
<elvishjerricco>
,TOFU
<gchristensen>
,tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<elvishjerricco>
hm I forget how to do that
<gchristensen>
infinisil: maybe strtolower() on the db
<noonien>
sure, but how can i get that hash?
<noonien>
i mean, i have an update.sh script that outputs a file with all the hashes i need
<noonien>
and in order to do that, i need to compute the hash for it programatically
<DigitalKiwi>
what's the speedfactor mean in distributed builds
Dr8128 has joined #nixos
<clever>
DigitalKiwi: the relative speed of that machiiiiiiiiine, compared to others in the list
<gchristensen>
"The “speed factor”, indicating the relative speed of the machine. If there are multiple machines of the right type, Nix will prefer the fastest, taking load into account.", https://nixos.org/nix/manual/
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stepcut has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @worldofpeace pushed to gnome-3.32 « gnome3.gnome-settings-daemon: bypass polkit by using an suid wrapper »: https://git.io/fhpFL
<gchristensen>
bigger is faster
<DigitalKiwi>
oh i checked the wrong manuals
<DigitalKiwi>
sorry
<gchristensen>
no worries ;)
<gchristensen>
the breakdown is a bit confusing to people new to them
reilithion has joined #nixos
drakonis_ has joined #nixos
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<reilithion>
How do I get a cross-compilation development environment?
<clever>
reilithion: i believe nix-shell still works against cross-compile deriations
drakonis1 has joined #nixos
drakonis_ has quit [Read error: Connection reset by peer]
<reilithion>
clever, So the thing to do would be to write a derivation (default.nix) for my development and then invoke `nix-shell --arg crossSystem '{ config = "i386-unknown-none-elf"; }'`?
<{^_^}>
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.
<infinisil>
gchristensen: Done that :)
<gchristensen>
,nice
<clever>
noonien: more to let me access non-cross things when i need them
<noonien>
hmm, when would that be the case?
zupo has joined #nixos
<clever>
noonien: if i need a tool like pkg-config, i want the x86 version, not the avr version
<elvishjerricco>
Why would I be getting this error on NixOS for an fs specified in a NixOS config? `mount: /foo/bar/baz: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program.`
<{^_^}>
[nixpkgs] @BadDecisionsAlex opened pull request #57045 → Updated to latest Version → https://git.io/fhpFd
ddellacosta has quit [Ping timeout: 240 seconds]
<elvishjerricco>
That's from `systemctl status foo-bar-baz.mount`
<noonien>
elvishjerricco: can you provide more info? what config do you suspect causes this?
ddellacosta has joined #nixos
<elvishjerricco>
noonien: A... silly one, so it may be hard to reproduce :P Essentially I'm playing with the notion of NixOS *inside* the initrd (or as a boot loader), so I'm copying `config.fileSystems` with `neededForBoot = true;` to the initrd NixOS config with `neededForBoot = false;`
<elvishjerricco>
Running this in qemu, I'm getting that on the 9p mounts that are generated
<elvishjerricco>
noonien: Regardless, I thought NixOS would take care of making sure any needed helper programs would be available, but I'm not sure how it does that
<reilithion>
clever, That didn't seem to work.
<elvishjerricco>
Or maybe I don't have a required kernel module loaded.
<elvishjerricco>
Might have missed some nixos option when copying the kernel module options to the nested config.
<simukis>
how does one produce multiple nix packages from a single "buildPhase"?
vk3wtf has joined #nixos
ixxie has joined #nixos
<clever>
reilithion: how does it fail?
<reilithion>
clever, gcc --dumpmachine tells me "x86_64-unknown-linux-gnu" instead of the expected "i386-unknown-none-elf"
<noonien>
hmm, should nix-prefetch-url print the path if i didn-t supply --print-path?
<{^_^}>
[nixpkgs] @xeji pushed commit from @knedlsepp to master « udocker: Fix build (#57002) »: https://git.io/fhpb5
hiroshi has joined #nixos
<charukiewicz>
Does anyone else experience a NixOps issue during deployment along the lines of: "unable to download 'https://cache.nixos.org/nix-cache-info': Couldn't connect to server (7); retrying in 4347 ms"
<{^_^}>
[nixpkgs] @xeji pushed commit from @knedlsepp to release-19.03 « udocker: Fix build (#57002) »: https://git.io/fhpbd
<clever>
charukiewicz: is your internet working on the remote and local machine?
<charukiewicz>
yes, it's an AWS instance
<reilithion>
Promising progress. I've got a build going. We'll see what happens when it finishes. Thanks for your help so far, symphorien and clever. ^_^
<charukiewicz>
clever: and it does seem to work, it just fires those warnings. it starts with a small timeout like 100ms then increases to 19000ms. the warning fires 10-20 times during a deployment
<{^_^}>
[nixpkgs] @xeji pushed commit from @bachp to master « unifiStable: 5.10.17 -> 5.10.19 (#56992) »: https://git.io/fhpNT
alex`` has quit [Ping timeout: 246 seconds]
alex`` has joined #nixos
Fare has quit [Ping timeout: 255 seconds]
<buckley310>
Can someone tell me what I'm doing wrong with this package? It seems like the patch is being applied but doesnt "stick"? package: http://ix.io/1CPN log: http://ix.io/1CPL
<buckley310>
the patch moves "qt5_use_modules" from 353 to 354, but cmake crashes on line 353...
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @eadwu to release-19.03 « vscode: 1.31.1 -> 1.32.0 »: https://git.io/fhpNN
jtojnar has joined #nixos
<noonien>
hmm, can i use the same fetchurl to fetch multiple files?
__monty__ has joined #nixos
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @eadwu to release-18.09 « vscode: 1.31.1 -> 1.32.0 »: https://git.io/fhpAe
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
sigmundv has joined #nixos
biopandemic has quit [Ping timeout: 240 seconds]
maximiliantagher has quit [Remote host closed the connection]
<infinisil>
noonien: Nope
maximiliantagher has joined #nixos
<noonien>
pft
<noonien>
i'm really struggling with fetching subdirectories from a github repo
<noonien>
i thought subversion might save me, since github has a svn bridge, and it can fetch subdirectories, but apparently it only works with one level paths
<buckley310>
cant just fetch the whole repo and pull out the files you need?
reilithion has quit [Quit: Leaving]
<noonien>
no, the repo has over 1gb worth of build artifacts in it
<buckley310>
how many files do you need from the repo?
<noonien>
~910
<noonien>
so having a fetchurl per file isn't really feasible
<buckley310>
you could create a fixed-output derivation, and then just stick whatever tool (wget, svn etc) in there to recursively grab the files
<infinisil>
Yeah, but at least you only need to clone it once then
<noonien>
a snapshot of the repo is about ~2GB
<noonien>
while ALL the fonts take ~220mb
<noonien>
idealy i would only download the source files for the fonts i need
<infinisil>
Well, if you have a solution that fetches the 2GB into the nix store directly, you'll have 2GB * (1 + number of times you use a new revision) space usage
<infinisil>
Of course <2GB would be better, but fetchGit should give you ~2GB
<infinisil>
constant
<noonien>
i believe that's what's currently in the nixpkgs
<infinisil>
noonien: Hmm.. I originally thought about not including all the variants, but users probably want all the variants
<infinisil>
You'd have to see the variants to choose one
<noonien>
Yeah, I don't want to deconstruct nerdfonts too much
seanparsons has joined #nixos
<noonien>
I've already implemented patching the fonts in nix, this way, the user could have mutliple variants per font
<infinisil>
Neat
ericsagnes has joined #nixos
<{^_^}>
[nixpkgs] @dtzWill opened pull request #57055 → pythonPackages.m2crypto: swig2 as nativeBuildInput so it can be invoked → https://git.io/fhpA2
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<noonien>
Hmm, I've got a tricky question. Can I get the output of a shell script in nix, and use it as a value?
freeman42x has joined #nixos
<symphorien>
not in nixpkgs
<symphorien>
otherwise, there is ifd
<symphorien>
,ifd
<{^_^}>
import-from-derivation (IFD) is when you evaluate nix from a derivation result, for example `import (pkgs.writeText "n" "1 + 1")` will evaluate to 2. This is a problem because it requires evaluating some, building some, and then evaluating the build result.
<noonien>
i'm asking because i want to get a list of files, then use those files to create a derivation
<infinisil>
,ifd = import-from-derivation (IFD) is when you evaluate nix from a derivation result, for example `import (pkgs.writeText "n" "1 + 1")` will evaluate to 2. This is sometimes problematic because it requires evaluating some, building some, and then evaluating the build result.
<{^_^}>
ifd redefined, was defined as import-from-derivation (IFD) is when you evaluate nix from a derivation result, for example `import (pkgs.writeText "n" "1 + 1")` will evaluate to 2. This is a problem because it requires evaluating some, building some, and then evaluating the build result.
<noonien>
the end derivation is a fixed output derivation
<infinisil>
noonien: Usually you'd use something that generates a nix expression first
nD5Xjz has quit [Ping timeout: 252 seconds]
nD5Xjz_ has joined #nixos
<noonien>
And commit that nix expression to the repo?
<infinisil>
Yeah
<noonien>
Or evaluate it right away?
<infinisil>
By committing the nix files it also makes it reproducible
<noonien>
Yes, but the end derivation is a fixed-output derivation
<infinisil>
IFD wouldn't work for you anyways because you won't have access to the network
<infinisil>
Ah, I guess you would if you give it the hash yeah
<infinisil>
For completeness, there's also this which you *could* use, but shouldn't:
<noonien>
there's a single quote after the variable name
<infinisil>
Oh it's just part of the name
<noonien>
Ah!
<infinisil>
> yesn't = true
<{^_^}>
yesn't defined
<noonien>
My logic is that, git for example, feetches a list of objects that it needs to download when it's run. I don't see why my tool shouldn't do the same thing, since it's a fixed output derivation
<noonien>
however, it seems i need to do that as part of builder.sh
<infinisil>
I'm not sure if git objects correspond to files
<infinisil>
Probably not
<noonien>
Well, no, but that's just an analogy
<noonien>
There's an initial step of getting a listing of what to download