<fuzzypixelz>
the nix manual says: "e .attrpath[ or def ] Select attribute denoted by the attribute path attrpath from set e. (An attribute path is a dot-separated list of attribute names.)
<fuzzypixelz>
could someone explain this to me?
<gchristensen>
> { hello = "hi" }
<{^_^}>
error: syntax error, unexpected '}', expecting ';', at (string):460:16
<energizer>
currently does using pipewire mean you're using alsa + pulse + pipewire? or is it possible to use pipewire without those?
<bqv>
you can turn them on piecemeal
<bqv>
i just happened to turn on alsa,pulse,and jack compatibility
<bqv>
cause why the hell not
<energizer>
i mean will stuff work if im not using alsa/pulse/jack?
<Yaniel>
pipewire has its own interface
<Yaniel>
and it has compat shims for pulse, alsa and jack
fuzzypixelz has quit [Ping timeout: 265 seconds]
<Yaniel>
but I don't think there are many things that can use the pipewire interface directly yet
<bqv>
i couldn't find anything that could
acarrico has joined #nixos
<Yaniel>
the compat shims just make the applications think they are talking to whatever they used to but pipe everything to the pipewire server instead
<Yaniel>
gstreamer AFAIK supports pipewire out of the box so anything based on that should work I guess
<Yaniel>
assuming it's up to date
domogled has joined #nixos
fuzzypixelz has joined #nixos
<bqv>
is there a volume utility based on gstreamer?
Jd007 has quit [Quit: Jd007]
aswanson has quit [Ping timeout: 256 seconds]
<donofrio>
lukegb, any thoughts about youtube-dl without borking pianobar?
Jd007 has joined #nixos
orivej has quit [Ping timeout: 272 seconds]
<bqv>
awesome
<bqv>
that reboot seems to have killed it
<bqv>
now pipewire's broken again
<bqv>
god bless technology
<Yaniel>
is your user in the audio group
<bqv>
groups says yes
<bqv>
i can see stuff moving in pavucontrol, and change volume in that and alsamixer
<bqv>
but no actual sound
<Yaniel>
default output wrong?
<bqv>
nope
<energizer>
is pipewire emulating jack or actually using it?
<bqv>
wierd, works in my headphones
<bqv>
oh
<bqv>
nevermind, powercut had also put my subwoofer on bluetooth mode
<ZaraChimera>
I'm looking to do a multiboot system with Windows 10, openSUSE and NixOS. According to the Wiki, os-prober will add the entries automatically. Would there be an issue with it on an MBR system? My BIOS doesn't support UEFI.
<Yaniel>
if you set the `services.pipewire.jack = true;` option in configuration.nix
<energizer>
bqv: % nix-shell -p pipewire --run 'nix-store -qR $(which pipewire)' | grep jack -> /nix/store/fz3ll5pivnsalmixjabwm7g2k1b4hc5k-libjack2-1.9.16 so i guess it does use jack
<fuzzypixelz>
it's funny how no linux distro packages eclipse (because they have this installer thingy) except nix
<fuzzypixelz>
not even ubuntu, "just use snap"
<Yaniel>
energizer: that sounds wrong
<energizer>
Yaniel: what does that output mean then?
slack1256 has joined #nixos
<Yaniel>
it does pull in the libjack package, I guess for headers
<Yaniel>
but I also see /nix/store/sir368khac0k1s1fgwvxs9cjxxi4zl26-pipewire-0.3.18-jack which contains the replacement libs
<Yaniel>
and there's pw-jack which puts those replacements to the front of LD_LIBRARY_PATH
<lukegb>
donofrio: my only real thought is to try a python build without optimizations
<Yaniel>
ZaraChimera: on a MBR system I don't think anything will change from how you would have to do it in the past
<Yaniel>
i.e. os-prober should handle it
Volk has quit [Quit: See you next time!]
<ZaraChimera>
Good to know. Thank you.
Volk has joined #nixos
slack1256 has quit [Remote host closed the connection]
<lukegb>
donofrio: if you drop something like https://gist.github.com/lukegb/aa76a4957b46bc95bdb75d92316ccc5e into a shell.nix (make a new directory somewhere), and then run `nix-shell --option substitute false` - does the youtube-dl you get out of that work or does it still crash
<Yaniel>
energizer: looks like pipewire-jack includes some jack headers for types
<energizer>
cool
<Yaniel>
I don't think it needs anything from there at runtime though
jmeredith has quit [Quit: Connection closed for inactivity]
<fuzzypixelz>
stupid question: what are the parts of nixos that need the most work atm?
<Yaniel>
doesn't look like it calls any jack_* functions it didn't (re)define itself
<energizer>
fuzzypixelz: are you looking for a project?
<energizer>
fuzzypixelz: nice. i'm not the right person to answer, but if you say what your skills are then people might be able to point in a good direction
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JLAX1
<bqv>
fuzzypixelz: that's a bit like asking "what parts of the middle east need work"
<fuzzypixelz>
energizer, bqv: I'm not really sure what I'm expected to know
<bqv>
Honestly if you have the time and willpower, the best to do is probably go hound people to merge PRs. That's kinda the only way stuff gets done around here
<energizer>
fuzzypixelz: do you know any programming?
<fuzzypixelz>
energizer: I know python well, I know C and some C++, I know Haskell which makes Nix click faster for me (still going through all the builtins), I had some interaction with js through basic MEAN stack webdev, plus very very basic Java (I've been avoiding that behemoth)
<energizer>
fuzzypixelz: oh. in that case there's undoubtedly plenty to do.
rb2k has joined #nixos
<energizer>
fuzzypixelz: discourse.nixos.org has a lot going on as does #nixos-dev
<lukegb>
Download it to a new directory (named shell.nix)
<donofrio>
ok
<donofrio>
wget throws illigal instruction ;(
emptyflask has quit [Ping timeout: 264 seconds]
<donofrio>
I wonder how to test all binaries and see what the exit code is?
<donofrio>
thinking I have many binries that are trying to leverage AVX?
m0rphism has quit [Ping timeout: 260 seconds]
emptyflask has joined #nixos
Jd007 has quit [Quit: Jd007]
<{^_^}>
[nixpkgs] @SuperSandro2000 merged pull request #106281 → conjure: set branch to master; add vim-oscyank, nvim-scrollview → https://git.io/JIB3J
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 5 commits to master: https://git.io/JLAMQ
h0m1 has quit [Ping timeout: 272 seconds]
justan0theruser has quit [Ping timeout: 264 seconds]
heyitsrama has quit [Remote host closed the connection]
h0m1 has joined #nixos
donofrio has quit [Read error: Connection reset by peer]
verdys has joined #nixos
verdys is now known as klapaucius
donofrio has joined #nixos
donofrio has quit [Read error: Connection reset by peer]
aveltras has joined #nixos
donofrio has joined #nixos
donofrio has quit [Read error: Connection reset by peer]
<aveltras>
i'm trying to install nixos on a new laptop but the installer doesn't seem to detect the nvme disk
donofrio has joined #nixos
<aveltras>
i've been able to install ubuntu though and the disk is available when i lsblk in ubuntu (but not with nixos installer)
<aveltras>
any idea ?
donofrio has quit [Read error: Connection reset by peer]
Jackneilll has quit [Ping timeout: 246 seconds]
donofrio has joined #nixos
<danielbarter>
are you using the graphical iso or the minimal iso? Very weird that it isn't being detected with lsblk
<aveltras>
minimal
<aveltras>
nixos unstable
donofrio has quit [Read error: Connection reset by peer]
<aveltras>
the thing i find puzzling is that ubuntu found it without problem so i dont find that s something to change in bios
<danielbarter>
maybe it isn't plugged into the motherboard correctly? I've installed nixos on multiple nvme drives with no issue before
<aveltras>
ye me too on my other laptop, never had an issue either
donofrio has joined #nixos
<danielbarter>
if it isn't showing up with lsblk, then it isn't being detected by the kernel
donofrio has quit [Read error: Connection reset by peer]
<cole-h>
I'd check dmesg for anything suspicious
<{^_^}>
[nixpkgs] @fanzeyi opened pull request #108632 → add darwin support for wezterm → https://git.io/JLADP
<aveltras>
not very familiar with the kernel stuff but could it be possible that the ubuntu installer is packed with more modules enabled than the nixos one ?
donofrio has joined #nixos
donofrio has quit [Read error: Connection reset by peer]
<danielbarter>
the kernel in any recent nixos iso should have absolutely no issues with nvme drives
donofrio has joined #nixos
<donofrio>
sorry irc client was acting up....
<donofrio>
did I miss how to check all binaries for illigal instructions?
<aveltras>
i'll give up for tonight then, will try to install it over ubuntu as a last resort
<donofrio>
wget throws an exception ;(
<aveltras>
thanks for the answers
<bqv>
aveltras: modprobe nvme?
<bqv>
Nevermind :p
<aveltras>
bqv: am i supposed to run that in the installer ?
<{^_^}>
[nixpkgs] @tckmn opened pull request #108633 → foma: init at 0.9.18alpha → https://git.io/JLADN
<bqv>
Yeah
<bqv>
If its not already loaded
<donofrio>
lukegb, if wget doesn't run how do I do your shell.nix test?
Jackneilll has joined #nixos
<bqv>
If its not in lsblk then the kernel hasn't seen it, so, module's missing
<danielbarter>
aveltras: if it isn't too much trouble i would open it up and make sure the drive is plugged in properly (after checking that nvme drivers are loaded)
omnipotententity has quit [Remote host closed the connection]
<aveltras>
Modprobe doesnt change anything
omnipotententity has joined #nixos
<aveltras>
Id prefer not having to open it already since its only a week old ;) ill try again tomorrow, its quite late here
<aveltras>
Thanks again for the answers
emptyflask has quit [Ping timeout: 246 seconds]
amerigo has quit [Quit: Connection closed for inactivity]
<Ashy>
i've updated my channel to 20.09 and am attempting to rebuild my config but it's failing to build git 2.29.2 with a ruby error: /nix/store/p3fxahqwzk79mhml27afkqb19ris4k45-ruby-2.6.6/lib/ruby/2.6.0/bundler/lockfile_parser.rb:108:in `warn_for_outdated_bundler_version': You must use Bundler 2 or greater with this lockfile. (Bundler::LockfileError)
<Ashy>
has anyone seen this recently?
<danielbarter>
im trying to get pkgsStatic.nix to work on a linux cluster where I don't have root access and user namespaces aren't enabled. When i run the static executable, i get the normal help message, but when i try and run nix repl it trying to lstat "/nix" even though i have --with-store-dir and --localstatedir set to folders in my home dir
<danielbarter>
anyone know a work around?
<danielbarter>
or even better, why it is trying to lstat a directory that it shouldn't?
KarlJoad has joined #nixos
<danielbarter>
the kernel in any recent nixos iso should have absolutely no issues with nvme drives
<danielbarter>
the kernel in any recent nixos iso should have absolutely no issues with nvme drives
<danielbarter>
sorry about that^^
<KarlJoad>
If I have a package for something with the exact same name as another for nixpkgs, what should I do?
<energizer>
KarlJoad: is it the same package?
<KarlJoad>
energizer: No, they are 2 completely different things. This package is a library for octave to interact with spreadsheets, named "io". There is also a programming language in nixpkgs called "io".
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #nixos
<energizer>
KarlJoad: if there are a lot of octave packages maybe it should get an octavePackages namespace
<KarlJoad>
They already exist under the octavePackages namespace. However, I have also built octave so you can say `octave.withPackages (ps: with ps; [ io other-lib ])`. When doing it that way, nix "confuses" the 2 io's.
<fuzzypixelz>
example of differences between `nixpkgs.stdenv.lib` and `nixpkgs.lib`. Which one do most people use?
<KarlJoad>
fuzzypixelz: Are you asking that question in general, or as a follow-up to my question?
spudly1 has quit [Ping timeout: 256 seconds]
<fuzzypixelz>
oh I'm asking in general, sorry
spudly1 has joined #nixos
<cole-h>
> pkgs.stdenv.lib == pkgs.lib
<{^_^}>
true
<cole-h>
They're the same.
domogled has quit [Remote host closed the connection]
<cole-h>
But in PRs, I prefer to use `lib` explicitly, rather than `stdenv.lib`
danielbarter has quit [Quit: ERC (IRC client for Emacs 27.1)]
<fuzzypixelz>
wait, why do they both exist then? cole-h
<{^_^}>
[nixpkgs] @cdepillabout pushed 2 commits to haskell-updates: https://git.io/JLAy7
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
aw has joined #nixos
spacefrogg has joined #nixos
aswanson has joined #nixos
<fuzzypixelz>
suppose I have source code that's mostly written in bash and has `#!/bin/bash` all over the place, what's the least painful way to package it?
<{^_^}>
[nixpkgs] @qmx opened pull request #108637 → fix build error on nix-darwin → https://git.io/JLAyA
rb2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<fuzzypixelz>
first, suppose it only depends on bash
<fuzzypixelz>
is there some sort of wrapper for that?
<cole-h>
Package it as normal? I'm pretty sure patchShebangs happens automagically in all `mkDerivation`s
aswanson has quit [Ping timeout: 264 seconds]
<fuzzypixelz>
wow
<cole-h>
(patchShebangs turns #!/bin/bash / #!/usr/bin/env bash into #!/nix/store/............./bin/bash)
<cole-h>
Might need to add bash to the buildInputs or nativeBuildInputs
<Ashy>
what would make nixos-rebuild even want to build git-2.29.2 from source?
<fuzzypixelz>
cole-h: a reference for mkDerivation?
<Ashy>
why wouldn't it be using the cache?
<fuzzypixelz>
huh
<fuzzypixelz>
you have no overlays?
<Ashy>
OH, i do have an overlay for vagrant which is pinning a specific bundler version
<supersandro2000>
I'll take a look at tit tomorrow
<{^_^}>
[nixpkgs] @andrewchambers opened pull request #108638 → bupstash: init at 0.6.3 → https://git.io/JLASz
<KarlJoad>
supersandro2000: :thumbsup:
<KarlJoad>
I also have another branch set up with all the rest of the packages on forge, so I can bring that in closer to when we're done.
gustavderdrache has quit [Quit: Leaving.]
captn3m0- has quit [Ping timeout: 272 seconds]
captn3m0 has joined #nixos
Jd007 has joined #nixos
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #nixos
Guest_6126 has joined #nixos
Guest_6126 has quit [Remote host closed the connection]
captn3m0- has joined #nixos
lordcirth__ has quit [Ping timeout: 260 seconds]
captn3m0 has quit [Ping timeout: 260 seconds]
ps11 has joined #nixos
Darkmatter66 has quit [Ping timeout: 272 seconds]
lordcirth has joined #nixos
<bqv>
Hey, I remember a repo I saw which made nix shells without polluting the env so much
<bqv>
Anyone recall its name?
<bqv>
I'm beginning to be interested
<KarlJoad>
bqv: You can pass the --pure flag to `nix-shell`. You can also use a combination of `direnv` to switch out env vars and `lorri` to keep your project built and in the nix store/cache.
<KarlJoad>
bqv: The strange thing is that particular source builds perfectly fine on my end.
<SleepBag>
I just a quick question regarding file permissions so I basically ran ``` groff -ms -Tpdf > doc1.pdf ``` but when I run it I always get $ bash: doc1.pdf: Permission denied what is the reason
lordcirth__ has quit [Ping timeout: 260 seconds]
<KarlJoad>
SleepBag: Where are you trying to create the file?
<SleepBag>
in my documents dir
<KarlJoad>
bqv: If nothing else, I can send graham a ping tomorrow.
<bqv>
i would
<KarlJoad>
SleepBag: You're running the groff command from your shell or a nix-build script.
<SleepBag>
from bash
<KarlJoad>
The only reasons I can think of is 1) Your current user does not have write permissions to that location. 2) You (as the current user being the same as the owner of that directory) don't have write permissions to that directory. This doesn't quite seem like a Nix thing to me.
<KarlJoad>
bqv: Aight. I'll do that then.
<SleepBag>
Also I had some problems with different shells namely the Nu and the Ion shell because I could not run some nix native commands like nixos-rebuild
<SleepBag>
The response from the shell is command not found
<SleepBag>
Any solve for that
<KarlJoad>
In the rebuild's case, that could be due to the shell not having the newest set of environment variables loaded.
<SleepBag>
Could like dumb it down a bit Noob Alert
<KarlJoad>
I have no clue how something like that could be happening, but your shell starts with a set of environment variables, and if you change them while the shell is running, the shell doesn't get the updated values.
<KarlJoad>
Are you using Nix or NixOS? If so, we could try narrowing the problem down.
<KarlJoad>
Can we not see what grahamcofborg is running while it is running? Is that a GitHub thing?
pbb has joined #nixos
daf29 has quit [Remote host closed the connection]
<cole-h>
What do you mean by "what ofborg is running while it is running"?
<KarlJoad>
All I see during the main ofborg evaluation is "ofborg-eval --- doing something (vague)". I would like to see what it runs or its outputs while running.
<bqv>
and someone i went to school with, in the kernel mailing list
hke has quit [Read error: Connection reset by peer]
hke has joined #nixos
ZaraChimera has joined #nixos
bitmapper has quit [Quit: Connection closed for inactivity]
KarlJoad has quit [Quit: ERC (IRC client for Emacs 27.1)]
zebrag has quit [Read error: Connection reset by peer]
zebrag has joined #nixos
psy3497 has joined #nixos
<bqv>
[thinking aloud] so what i would want from automation, would be to every day take the latest commit in the live branch of my repo, update a subset of flake inputs, and build (and pin) the resultant defaultPackage. i guess i could do that all with cron, realistically
<bqv>
cron and git-worktree
Mic92 has joined #nixos
<bqv>
no, wait, same problem i have with hydra, the worktree would need to unlock git-crypt
cole-h has quit [Quit: Goodbye]
cole-h has joined #nixos
Ariakenom has joined #nixos
<bqv>
but it's still better than hydra, because i can't update the lock without using some heathen-level IFD
Derek68 has joined #nixos
sss2 has quit [Quit: Leaving]
<Derek68>
Hi guys! Does anyone know how to setup NixOS to choose GPU driver dynamically? I have a NixOS machine in QEMU, sometimes I will view its screen via the virt-manager's builtin client and sometimes I will passthrough the GPU. But by setting videoDrivers = ["nvidia"], I won't be able to see login screen in virt-manager.
<bqv>
[still thinking aloud] or maybe separate the parts... have a cron job to automate the flake input updates, then hydra can actually do the rest
<erred>
fran iptables at sourceforge: excelent f-iptables
<tejing>
Derek68: that's why videoDrivers is a list, not just a single value. you can set to a priority list and the first one that works will be used
pjt_tmp has quit [Ping timeout: 260 seconds]
AlesHuzik[m] has joined #nixos
chiefgoat has quit [Ping timeout: 256 seconds]
erred has quit [Ping timeout: 264 seconds]
andreas303 has quit [Quit: andreas303]
andreas303 has joined #nixos
mvnetbiz_99 has joined #nixos
dansho has quit [Remote host closed the connection]
dansho has joined #nixos
cole-h has quit [Ping timeout: 260 seconds]
erred has joined #nixos
erred has quit [Max SendQ exceeded]
erred has joined #nixos
bn_work has quit [Quit: Connection closed for inactivity]
daf72 has joined #nixos
<{^_^}>
[nixpkgs] @FRidh pushed to master « ecasound: let it use more dependencies »: https://git.io/JLANe
<daf72>
hi all
<daf72>
I am trying to build this project inside a nix-shell, and I get `gl_EARLY: command not found` when running `./configure`. I have the following buildInputs defined: `guile autoconf automake gettext`
<ehmry>
oosl: because that string references a derivation, and thus needs to be written to the store as the product of a derivation, use pkgs.writeText
<oosl>
ehmry: but doesn't the traceVal output imply that it was built?
<contrun>
Following the instructions How to debug tests ? on https://nixos.wiki/wiki/NixOS_Testing_library, I started a new qemu instance after running nixos-run-vm. But I don't how to run commands in this vm. This is what I got, I can't type commands like in a regular console.
eacameron has quit [Quit: Connection closed for inactivity]
domogled has joined #nixos
<madonius[m]>
o/
<madonius[m]>
For some reason nix thinks that the option proxyWebsockets in the nginx package does not exists. The documentation tells me that it does… any ideas?
<madonius[m]>
> For some reason nix thinks that the option proxyWebsockets in the nginx package does not exists. The documentation tells me that it does… any ideas?
<madonius[m]>
The issues was that I did not put the Option under "locations"
<{^_^}>
error: syntax error, unexpected '<', at (string):460:1
<{^_^}>
error: syntax error, unexpected IN, expecting ')', at (string):460:60
respawn_ has quit [Quit: Leaving]
Darkmatter66 has joined #nixos
<ZaraChimera>
Ran into this issue when using the KDE iso of 20.09: the liveCD saw my WiFi card and I can connect to my SSID, and ping a server through the terminal, but Firefox wouldn't connect to websites. After completing install, the system did not see my WiFi at all. I tried both enabling wpa_supplicant and creating wpa_supplicant.conf and networkmanager. Neither one worked. Using the GNOME iso, networking
<aveltras>
im trying to install nixos on a new laptop but my ssd drive is not recognized by the nixos 21.03 minimal installer (same for 20.09) iso
<aveltras>
so i tried to install ubuntu instead which worked fine
<{^_^}>
[nixpkgs] @djanatyn opened pull request #108648 → rdrview: init at unstable-2020-12-22 → https://git.io/JLxem
<aveltras>
and now im trying to use nixos lustrate to install nixos in place but the ssd is not recognized by the nixos-generate-config since it isn't in the generated hardware-config
<aveltras>
i now the drive is working since im on ubuntu right now
<aveltras>
any idea ?
cfricke has quit [Quit: WeeChat 3.0]
<{^_^}>
[nixpkgs] @SuperSandro2000 merged pull request #108378 → pythonPackages: cleanups, test disabled if there are not tests, dependency fixes, add aliases for pytest packages with _ → https://git.io/JLFET
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 47 commits to master: https://git.io/JLxeP
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JLxJ2
<aveltras>
Anyway, ubuntu found the drive even with intel vdm, not sure that s not something that could be done with nixos install scripts, seems quite the edge case though
<aveltras>
Had trouble when reinstalling win10 too, had to add the driver on the usb key
<Ashy>
supersandro2000: i'm trying to build a rust crate that depends on it just in a nix-shell `nix-shell -p rustup fuse3 fuse-common` => `cargo build`
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 3 commits to master: https://git.io/JLxTM
<eyJhb>
Trying to package a python package (mautrix-facebook), but for some reason it will not greate a $out/bin/mautrix-facebook for it, like it does for mautrix-telegram. I am not sure what I am doing wrong, or if it is because of setup.py that is different...
<supersandro2000>
Ashy: nix shell does not give you the dev version of fuse-common
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 3 commits to staging: https://git.io/JLxkV
<b42>
eyJhb: missing messages, locked me out of my account couple of times ... that was 6 months ago though and the package seems actively developed so there's a good chance things are better now
<erred>
script for iptables, fran iptables at sourceforge
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JLxk5
<Ashy>
supersandro2000: fuse-common.dev doesn't seem to exist for nix-shell
<Ashy>
lukegb: no change in behaviour with adding pkg-config to the nix-shell
<lukegb>
Ashy: weird; with `nix-shell -p rustup fuse3 fuse-common pkg-config`, I can run `pkg-config --list-all` and get `fuse3 fuse3 - Filesystem in Userspace`
<eyJhb>
b42: Ehmm.. That's how it normally is. Atm. Bitlbee does not work, as it just instantly gets kicked off
<eyJhb>
Funny enough, Facebook do not want you to use such things :p
<supersandro2000>
Ashy: you might wanna use fuse3 which has libs and includes
knupfer has quit [Remote host closed the connection]
<Ashy>
hmm, it just successfully built in this temp nix-shell: nix-shell -p rustup fuse fuse-common pkg-config
<Ashy>
after a `cargo clean` though i'm not sure if that should have mattered
<Ashy>
ah, so i think you were correct all along about just needing to include pkg-config explicitly
<Ashy>
lukegb: cheers
<lukegb>
fuse-common shouldn't be needed for compiling things, it mostly contains udev rules
cantstanya has joined #nixos
hiro99 has quit [Ping timeout: 240 seconds]
nicoo has joined #nixos
<Ashy>
sweet, the passthrough example is working too
mbrgm_ has joined #nixos
ericsagnes has joined #nixos
<viric>
How does the cache in builtins.fetchgit work? Sometimes I wait minutes for that evaluation, for revs that never change.
mbrgm has quit [Ping timeout: 265 seconds]
mbrgm_ is now known as mbrgm
<raboof>
I think I have some stuck processes: 'nix-store --realise ...' returns 'waiting for locks or build slots...' but 'top' doesn't show any particularly busy process
<raboof>
I see a `nix-daemon xxxx` process - perhaps I can just kill that?
<siraben>
I remember seeing a way to run programs on NixOS that assumed FHS, what was it again?
<raboof>
siraben: IIRC people also sometimes use 'steam-run' to get such an environment on the commandline quickly
<siraben>
raboof: what kinds of things will this let you do?
<raboof>
siraben: run binaries that expect ld-linux in /lib64 without patchelf'ing them
<siraben>
Ah
<raboof>
(probably more, but I think that's the *main* thing I use it for - akka-grpc uses a plugin that downloads-and-runs a binary, with no easy way to patchelf it. I'm eagerly awaiting the next version of that plugin which makes it work out-of-the-box on nix ;) )
<{^_^}>
[nixpkgs] @jtojnar pushed 530 commits to staging-next: https://git.io/JLxLX
<vegan_power[m]>
I switched to GNU/Windows with XNU Kernel
<vegan_power[m]>
:D
vegan_power[m] has left #nixos ["User left"]
jb55 has quit [Remote host closed the connection]
fuzzypixelz has joined #nixos
cfricke has quit [Quit: WeeChat 3.0]
madalu has joined #nixos
ghasshee has joined #nixos
<sphalerite>
manveru[m]: no, it doesn't build by design.
respawn_ has joined #nixos
<sphalerite>
actually, attempting to do IFD will realise the path…
zebrag has quit [Quit: Konversation terminated!]
<manveru[m]>
hmm
<sphalerite>
manveru[m]: it's terrible and you shouldn't do this, but using builtins.pathExists on a drv will realise it.
zebrag has joined #nixos
<sphalerite>
why would you want this?
<manveru[m]>
just did `readDir`, but `pathExists` is better :)
<manveru[m]>
cool
<sphalerite>
again, why?
<sphalerite>
You really shouldn't be doing this.
<manveru[m]>
well, the reason is that i want to use `symlinkJoin` to make a FHS-alike for any arbitrary flake attr
<manveru[m]>
and avoid having a separate call to `nix build` because then i have to both return the drvPath and the outPath and parse stuff...
<manveru[m]>
like this: `nix eval --raw nixpkgs#ruby --apply 'let pkgs = builtins.getFlake "github:NixOS/nixpkgs?rev=aea7242187f21a120fe73b5099c4167e12ec9aab"; in (pkg: let syms = pkgs.legacyPackages.x86_64-linux.symlinkJoin {name = "foo"; paths = [pkg];}; in builtins.seq (builtins.readDir syms) syms.outPath)'`
<sphalerite>
uh, what?
justanotheruser has quit [Ping timeout: 260 seconds]
<manveru[m]>
the reason for this is that i'm adding nix support to the nomad exec driver
<manveru[m]>
it builds a task directory where your job runs, and i'm copying in the requisites for the derivation and then link them to `/bin` etc for ease of use
TonyTheLion has quit [Ping timeout: 264 seconds]
<manveru[m]>
so kinda like buildDockerImage :)
TonyTheLion has joined #nixos
<{^_^}>
[nixpkgs] @moritzschaefer opened pull request #108668 → Add sh/bash dependency to fix 'missing sh in PATH' error → https://git.io/JLxmg
<eyJhb>
b42: I see you also copied the telegram file!
<b42>
eyJhb: i'm currently not using mautrix-facebook btw but if you're going to open nixpkgs PR feel free to cc me @mmilata
<b42>
:))
<eyJhb>
I get a error regarding the as_token...
<eyJhb>
Which I don't get
<eyJhb>
Ohh, the config file is seperate from the registration file, and it does not read from that?
<eyJhb>
b42: Having this be my first interaction with Matrix does not aid my endevours atm. :p But will do :D
<b42>
yes iirc
<lucidpossum961>
manveru[m] thanks!
<lucidpossum961>
@lucid
<afreak>
how does one develop dotnet in nixos? ive added sdk_3_1 but not sure how i would add amazon.lambda.tools for instance, ive run `dotnet tool install *` and it says its installed, but it doesnt seem like it. do i have to make nix packages for every nuget thing?
<eyJhb>
b42: Seems like it doesn't work for me.. Damn :( Can see the bot, but not login etc.
klapaucius has joined #nixos
philr has quit [Ping timeout: 240 seconds]
klapaucius has quit [Client Quit]
<oxalica>
What's the difference between nixos-unstable and nixpkgs-unstable?
<etu>
oxalica: channels that starts with the name nixos have undergone "operating system required tests" such as bootloader tests while nixpkgs havent.
<nly>
how do i add kernel module v4l2loopback to system?
malook has joined #nixos
<pushqrdx>
shouldn't it be some facility for nix-shell to run the build/install into current directory without going into the store?
<nly>
nvm
nly has quit [Remote host closed the connection]
<pushqrdx>
genericBuild kinda does that except that without special config it will attempt to install and fix at a store path that it doesn't have permission to
<pushqrdx>
i kinda got around that with the following added to my nix expression http://ix.io/2Lb0 but it feels clunky to do this for each derivation. I wonder if there's a way to either provide this globally, or add a special genericBuild like alternative that uses --prefix argument
oxalica has quit [Remote host closed the connection]
<{^_^}>
#108678 (by grahamc, 1 hour ago, open): Deshaw: create team and reassign limeytexan's maintainership
<{^_^}>
[nixpkgs] @Emantor opened pull request #108684 → mpris-scrobbler: init at 0.4.0.1 → https://git.io/JLxcm
<pushqrdx>
i can see that in manual under the stdenv chapter there's a way to create and use a custom builder script that can use the generic builder, but i wonder if there's someway to have a meta builder script that is available to me in all shells
justanotheruser has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JLxcB
<gchristensen>
thanks lukegb !
<lukegb>
np
<{^_^}>
[nixpkgs] @grahamc merged pull request #108678 → Deshaw: create team and reassign limeytexan's maintainership → https://git.io/JLxsZ
<{^_^}>
[nixpkgs] @grahamc pushed to master « Deshaw: create team and reassign limeytexan's maintainership (#108678) »: https://git.io/JLxc0
nly has joined #nixos
veleiro` has joined #nixos
<nly>
nixos-rebuild switch ...
<nly>
root module: v4l2loopback -> not found
<pushqrdx>
global shellHook?
<pushqrdx>
is this possible
hnOsmium0001 has joined #nixos
<pushqrdx>
alright here's an easier question, anybody knows of any "nix init" boilerplate generator tool (i know i can just create bash script for that) but just in case someone made the effort already
<pushqrdx>
would be nice if there was such thing that also have different languages, so nix init rust|go etc
<dv78>
I have cloned a project with nix configuration. But when i try to build it using nix-build from the shell i get "error: unsupported argument 'submodules' to 'fetchGit', at /nix/store/g60drlh1ii1r9d40xslj25ippvpzsyj1-source/default.nix:6:41"
rb2k has joined #nixos
fuzzypixelz has quit [Ping timeout: 264 seconds]
<dv78>
How can I overcome it? I've double checked that I have a newest version (2.3.10) and this problem has to be solved in before.
nly has left #nixos ["ERC (IRC client for Emacs 27.1)"]
ilios has joined #nixos
<{^_^}>
[nixpkgs] @nomeata opened pull request #108685 → coreutils: Do not autoreconfHook on Musl → https://git.io/JLxCx
<{^_^}>
[nixpkgs] @B4dM4n opened pull request #108691 → qmltermwidget: fix build with gcc10 → https://git.io/JLxlX
kim0 has joined #nixos
pareidolia has quit [Ping timeout: 260 seconds]
Neo---- has quit [Remote host closed the connection]
<ouzu>
Hi there, I'm trying to package a go program (linx-server). I used buildGoModule but the build process of the programm requires a command (rice append --exec [...]) to be run after the build to add resources to the binary. Is it possible to do this?
KarlJoad has joined #nixos
pareidolia has joined #nixos
<adisbladis>
ouzu: You'll want to look at some of the post* phases. Probably postBuild or postInstall
zebrag has quit [Remote host closed the connection]
<AWizzArd>
Got a fresh ThinkPad. I "burned" NixOs 20.09 on a usb stick, with UEFI support and in BIOS I say "only boot UEFI". Yet it seems I can't boot from that stick. Could this be connected to UEFI not being supported by NixOS?
<{^_^}>
[nixpkgs] @Mic92 opened pull request #108696 → tensorflow: drop 1.x → https://git.io/JLxBK
<tpw_rules>
nixos does not support uefi?
erasmas has quit [Quit: Lost terminal]
erasmas has joined #nixos
Ariakenom has quit [Quit: Leaving]
sreybastien has quit [Ping timeout: 240 seconds]
<AWizzArd>
Well, when I disable "Secure Boot" in the BIOS I get a menu. So it is connected to Secure Boot.
<esotericn>
does anyone know how to fix this deleted derivation issue?
<lukegb>
donofrio: err, at this point I'm somewhat stumped without being able to try things easily
ouzu has quit [Quit: WeeChat 2.9]
<donofrio>
lukegb, I'm here to try whatever is needed....would like a working nix env without AVX issues....anyone else I'm here to run commadns and share background
<donofrio>
I needed this version for Edge support being newly unemployed I only had this imac around to use....so here I am with a working system just with these AVX issues
<tpw_rules>
actually nvm
<tpw_rules>
you'd have to pass in nixpkgs.flatbuffers or whatever the source is
<Izorkin>
How to fix this error - Error: modDirVersion 5.10.5-hardened specified in the Nix expression is wrong, it should be: 5.10.5.a-hardened. Building linux kernel hardened 5.10.5
<donofrio>
and with pianobar working it shows this can be done just seems I need the "subsitution" to be global not just for pianobar
<tpw_rules>
either way, there must be some build that is failing as a result of flatbuffers being missing. use --repair when trying to build trhat
malook has joined #nixos
<esotericn>
`error: repairing is not supported when building through the Nix daemon` lol
<esotericn>
i'm half minded to just uninstall and reinstall nix
lsix has quit [Ping timeout: 264 seconds]
cosimone has joined #nixos
<{^_^}>
[nixpkgs] @eduardosm opened pull request #108700 → webbrowser: mark as broken → https://git.io/JLx0Y
Boomerang has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @teto merged pull request #108627 → linux: build with multipath tcp support → https://git.io/JLA65
<{^_^}>
[nixpkgs] @teto pushed commit from @petabyteboy to staging « linux: build with multipath tcp support »: https://git.io/JLx0O
<toppler>
Hi. I'm trying to use fetchgit with a private git repository over ssh: "nix-shell -E 'let pkgs = (import <nixpkgs> {}); in pkgs.stdenv.mkDerivation { name = "test"; src = pkgs.fetchgit { url = "ssh://<host>/<path>"; sha256 = "<hash>"; }; }'" but I'm getting "No user exists for uid 1000". I've tried to trace this down, and I get this error just invoking ssh in the builder.sh. I'm seeing the same error message mentioned
<donofrio>
lukegb, how do I do "Gobal Subsitution" not just for pianobar within nix when it comes to compiling new applications?
zebrag has joined #nixos
omnipotententity has quit [Read error: Connection reset by peer]
omneh has joined #nixos
omneh has joined #nixos
omneh has quit [Changing host]
Kritnich has quit [Quit: Ping timeout (120 seconds)]
ifthenelse9 has joined #nixos
Kritnich has joined #nixos
ifthenelse has quit [Read error: Connection reset by peer]
ifthenelse9 is now known as ifthenelse
costrouc has quit [Quit: costrouc]
justsomeguy has quit []
<lukegb>
donofrio: the substitute=false thing already said "don't fetch this precompiled"; you can put that in your /etc/nix/nix.conf. I believe on macOS it might not exist by default so you may need to create it but could well be wrong
rajivr has quit [Quit: Connection closed for inactivity]
<toppler>
viric: Can this built-in be used safely in my main nixos configuration.nix? If I understand it, I'll need to be sure that git is on the path whenever I now do "nixos-rebuild switch"?
<nomeata>
Hi! Maybe that is common knowledge, but I am always unsure about it: What kind of backports are eligible for the release-* branch. Only bugfixes, but no version bumps? Version bumps if they fix bugs? Or simply anything that I care enough about to bother creating a PR for?
reactormonk has quit [Quit: WeeChat 2.7.1]
reactormonk has joined #nixos
<cole-h>
Depends on who merges it, but I, personally, would put a hard-no on non-trivial version bumps (open to interpretation).
<nomeata>
BTW, I regular run into breakage of rather basic musl packages (e.g. pkgsMusl.coreutils). I understand that the musl target may not be important enough to block changes to nixpkgs master, but are there plans to at least monitor and notice if packages no longer build? (Or is the reason these are not kept working more a question of build time and cache space, rather than that you don’t want block changes for musl?)
<nomeata>
Thanks! I guess I should … but then, I am just a thankful user, who only very occasionally needs something.
kim0 has quit [Quit: Connection closed for inactivity]
<cole-h>
That's the thing. pkgsMusl only really has "thankful users". Not a whole lot of people depend on it (and thus breakages can go mostly unnoticed).
akavel has joined #nixos
berberman_ has joined #nixos
berberman has quit [Ping timeout: 260 seconds]
<akavel>
Hi! When I'm writing a bash snippet in a multiline string, and want to insert some comments inside, is there some Nix expression "idiom" to use?
<nomeata>
Yeah, that’s what I feared :-). Well, I’ll fix what I can then
<akavel>
Ideally, I'd like the existence of those comments to not influence the expression's hash...
<cole-h>
akavel: If you don't want the comments to be part of the snippet, you can end the multiline string, write your comment, and then do `+ ''` to continue the multiline string
<akavel>
cole-h: thanks! so, should I put the `+ ''` on a new line, below the comment?
<akavel>
One more question: I once tried moving some commands from `buildPhase` to `preBuild`, but they didn't seem to do work then; does something like `preBuild` even exist? or should it work and I just made a typo or something?
nbbfehhgdhos^ has quit []
<cole-h>
preBuild exists, but if you override buildPhase, you need to `runHook preBuild` before the meat of your buildPhase
<cole-h>
And ideally `runHook postBuild` after the meat
<{^_^}>
[nixpkgs] @omasanori closed pull request #102870 → nixos/networking: make /etc/netgroup by default → https://git.io/JTxfC
<akavel>
cole-h: ohhhhhh, ok, thanks again! it's not the first time you're here and helping me, thank you for being so awesome! <3
<akavel>
Hm, one more question, mostly stylistic I believe: if I have to ln some stuff into the build directory for the package's custom build system to work, does it feel like belonging in postPatch, or preBuild? (or elsewhere?)
<cole-h>
I usually put that stuff in postPatch, but both are pretty much the same.
<eacameron>
clever: You have a qemu module for building aarch64 on x86. But it's no longer working against recent nixpkgs (at least for 20.09). Do you know of any other way to do this?
<aanderse>
Izorkin: it would be great if someone could test. i'm sorry i haven't had a chance to. i wanted to, but too many other things... if no one else is going to extensively test it will be best to just merge sooner rather than later
<lordcirth>
pushqrdx, but without specifying an attribute to load, you asked to load all of nixpkgs
<cole-h>
akavel: It is, but only for inputs to a flake.
<pushqrdx>
lordcirth but why doesn't this with (import <nixpkgs> {}); load all nixpkgs too?
<cole-h>
e.g. self.shortRev, self.lastModified{,Date}
<pushqrdx>
lordcirth with that line at the top, i can run nix-shell without specifying any attributes and it works
<aanderse>
Thanks for your work Izorkin we will merge soon
<aanderse>
i pointed out a couple typos if you don't mind
<cole-h>
pushqrdx: It does. It makes everything from Nixpkgs available in that shell.
<cole-h>
However, since Nix is a lazy language, unless you access AAA....., that error won't be thrown.
<akavel>
cole-h: ah, but 'self' is... self, right? I seem to have `src = self;` in fact...?
<pushqrdx>
cole-h alright then it makes no sense why would it throw an error if i try to do it like nix-shell "<nixpkgs>" or with "with (import <nixpkgs> {});"
<cole-h>
But if you run `nix-shell '<nixpkgs>'`, it will try to make every single package in Nixpkgs a part of your shell environment
<cole-h>
akavel: `self` is `inputs.self`.
<Izorkin>
aanderse: ok, i will update later
<aanderse>
thanks
<akavel>
cole-h: ok I'll try and see, thanks! Do you know if that's documented somewhere? what are the names of the available fields in self?
<pushqrdx>
i still don't get what is the difference between `with (import <nixpkgs> {});` and `nix-shell "<nixpkgs>"` if both make the whole nixpkgs available in the shell why would one throw and the other not
manj-gnome has quit [Quit: Leaving]
<lordcirth>
pushqrdx, because the latter evaluates it more by trying to add the packages to your path
<pushqrdx>
perhaps that the with expression is lazily evaluated while the "<nixpkgs>" is eagerly evaluated?
<{^_^}>
[nixpkgs] @fabaff opened pull request #108712 → python3Packages.airly: init at 1.0.0 → https://git.io/JLxVO
<lordcirth>
It's still technically lazy, but more of it is pulled
<cole-h>
pushqrdx: 11:57 <cole-h> But if you run `nix-shell '<nixpkgs>'`, it will try to make every single package in Nixpkgs a part of your shell environment
ManiacOfMadness has joined #nixos
<pushqrdx>
lordcirth ah, makes sense now, but how can i make it so i have a derivation in default.nix without using with (import <nixpkgs> {});
riksteri has quit [Quit: riksteri]
<pushqrdx>
cole-h i have been using the default.nix with a callPackage to app.nix thingy but i don't like it
<pushqrdx>
i just want a default.nix that is a derivation but also a shell
<pushqrdx>
a lot let hassle
<cole-h>
... you know you can run `nix-shell` on whatever file is holding your derivation, right?
<cole-h>
If you don't want to callPackage, just `let pkgs = import nixpkgs {};` in your app.nix and use `pkgs.dependency` and stuff.
<cole-h>
Or you could just do a `with import nixpkgs {};` and not deal with `pkgs.`
<pushqrdx>
yeah but if the derivation doesn't have with (import <nixpkgs> {}); it will complain about missing dependencies
<pushqrdx>
i wish there was a way to nix-shell into derivations copied from nixpkgs as is
<akavel>
pushqrdx not 100% sure if that's relevant here, but my typical 'idiom' for starting default.nix is: `{ pkgs ? import <nixpkgs> {} }:`
fendor_ is now known as fendor
vs^ has joined #nixos
<akavel>
or if I need more, it's: `{ pkgs ? import <nixpkgs {}, foo ? pkgs.foo, bar ? pkgs.bar }:`, though usually every one of them on a separate line
<cole-h>
pushqrdx: nix-shell can take an expression
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JLxVE
<cole-h>
FYI, stdenv is available via `pkgs.stdenv` (where `pkgs = import nixpkgs {};`)
<Izorkin>
aanderse: in mariadb 10.5 TokuDB error builded. I think it's better to leave "dropped"
<akavel>
pushqrdx: IIRC, you can create a special `shell` attribute in default.nix (or was it in mkDerivation?) and it is only used by `nix-shell`, so it can be tweaked as necessary
<aanderse>
ah, ok, sorry, i was just having a quick look over the upstream documentation
<aanderse>
you are correct then 👍️
<aanderse>
i didn't realize that
<pushqrdx>
cole-h yeah this kinda does the job i think http://ix.io/2LcU
<pushqrdx>
akavel what shell attribute?
<cole-h>
It's the shellHook.
<akavel>
pushqrdx: ah maybe I was thinking about the `shellHook` you used
<akavel>
and lol, I expect to actually need it soon, so I'll steal this now to my notes :D
<pushqrdx>
yeah this is currently my solution to build stuff using genericBuild and have them installed and patched into a local directory
<{^_^}>
[nixpkgs] @ewok opened pull request #108713 → enpass: fix working only with root privileges on KDE → https://git.io/JLxVi
<pushqrdx>
after fiddling around i found it, i wish there was a default built-in addition to builder.sh that provided that out of the box, maybe localBuild function or at least the ability to specify genericBuild --prefix, that wouldn've been cooler than changing them through env vars
<pushqrdx>
makes me wonder though is there a way to extend the generic builder, perhaps have some extra config or functions in all nix-shells
<pushqrdx>
withought manually overriding builder in mkDerivation
<{^_^}>
[nix] @edolstra pushed to nix-prefetch « Add 'nix store prefetch-{file,tarball}' »: https://git.io/JLxoI
<{^_^}>
[nix] @edolstra opened pull request #4434 → Add 'nix store prefetch-{file,tarball}' → https://git.io/JLxot
<{^_^}>
[nixpkgs] @cpcloud opened pull request #108718 → nvidia-docker: fix VERSION reporting bug → https://git.io/JLxoZ
hke has quit [Read error: Connection reset by peer]
justanotheruser has joined #nixos
hke has joined #nixos
Jd007 has quit [Quit: Jd007]
<cole-h>
Wow, hydra seems to be at its quietest I've ever seen. ~1460 in queue, total.
Jd007 has joined #nixos
<akavel>
Is there some public CI, gratis for FOSS projects, with good support for Nix (ideally incl. flakes)? And/or, is there some common way of building Nix expressions in Travis/CircleCI/...?
asht has joined #nixos
<cole-h>
Isn't it as simple as running the installer (there's an option to not prompt for choices, I believe) and then running `nix{-, }build`?
<eyJhb>
Anyone using weechat-matrix, that has a config they can share for it?
<akavel>
cole-h: dunno, going to do that first time in my life, so thought to maybe start by asking here :D even before I started asking Google ;P thanks! :)
ShaRose has quit [Quit: I appear to have left for some reason.]
meh` has quit [Ping timeout: 240 seconds]
ShaRose has joined #nixos
supermule has joined #nixos
<supermule>
Hi... I am trying to install mssql-tools from a .deb package. Not going so well. I tried a script using buildFHSUserEnv, and I do get an executable but it fails as it expects to find /opt/mssql-tools/share/resources/en_US. I looked into the executable with less, and could find the path hard-coded. So how do I install executables with hard-coded
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JLxXw
fuiltilt has joined #nixos
<{^_^}>
[nixpkgs] @rhoriguchi opened pull request #108728 → vscode-extensions.brettm12345.nixfmt-vscode: init at 0.0.1 → https://git.io/JLxXP
<adisbladis>
supermule: I would try to avoid FHS envs if possible. It's likely you can get away with using a combination of autopatchelfhook & libredirect.
<supermule>
adisbladis: Looks promissing. I will look into that. Thank you very much.
supermule has quit [Remote host closed the connection]
gustavderdrache has quit [Quit: Leaving.]
gustavderdrache has joined #nixos
ransom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<toppler>
viric: Robust, rather than safe. I didn't have git as a system package, and I couldn't get a successful rebuild until I'd first added it. I'd rather avoid the risk of breaking things because I forgot to make sure I had git already installed. But it's no deal breaker.
erasmas has quit [Quit: leaving]
ShaRose has quit [Quit: I appear to have left for some reason.]
ShaRose has joined #nixos
davidv7 has quit [Ping timeout: 272 seconds]
fendor has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @rhoriguchi opened pull request #108733 → vscode-extensions.formulahendry.auto-rename-tag: init at 0.1.5 → https://git.io/JLxDj
bqv has quit [Quit: WeeChat 3.0]
bqv has joined #nixos
<{^_^}>
[nixpkgs] @rhoriguchi opened pull request #108734 → vscode-extensions.tyriar.sort-lines: init at 1.9.0 → https://git.io/JLxyG