<v0|d>
um, on my unstable, 5.4.69 kernel, rtl 8723, 8812, 8814, 8821 rtlwifi_new does not build.
<addcn>
Hello! I want to create a new Nix package for this, so I tried to install it manually first to see if I could understand how the package works. I'm stuck at 'missing libusb' when I run the configure file, no matter what nix package i use (I've tried `nix-shell '<nixpkgs>' -A libusb1` and variations). Does anyone have an idea on how to do this?
<clever>
addcn: `nix-shell '<nixpkgs>' -A libusb1` gives you a shell suitable for building libusb, not using libusb
<clever>
addcn: you want `nix-shell -p libusb1` to use it
<{^_^}>
[nixpkgs] @unode opened pull request #100120 → linuxPackages.cpupower-gui: init at 0.8.0 → https://git.io/JTfRS
<Unode>
worldofpeace: thanks a lot for all the help. I managed to get it working as intended. Turned out the polkit.rules file was not being installed at all.
cosimone_ has joined #nixos
rajivr has joined #nixos
grobi has quit [Remote host closed the connection]
cosimone has quit [Ping timeout: 260 seconds]
cosimone_ is now known as cosimone
grobi has joined #nixos
liuyb has joined #nixos
orivej has joined #nixos
fresheyeball has joined #nixos
<fresheyeball>
hey out there
<fresheyeball>
how can I run `nix-shell` inside a systemd module?
<fresheyeball>
I need my systemd module to run in that env
<fresheyeball>
normally if I want to run things in a certain .env, I use nix-shell
<Wulfsta>
I'm trying to package the latest pygmsh, and the python gmsh api is preventing me from doing so due to my lack of knowledge of how to handle it
<fresheyeball>
if there is a better way I would very much like that!
<simpson>
Wulfsta: Write a patch to change line 29 to point to the library where the shared objects live.
<Wulfsta>
Sure, but what would the derivation itself look like?
<fresheyeball>
it's not just supplying packages
<simpson>
Not sure if there's documentation, but this is a pattern that shows up in the Python subsystem whenever ctypes is used. ctypes needs the absolute path to the C libraries, and Nix happens to have it.
<Wulfsta>
Does the standard makePythonPackage work with this?
<fresheyeball>
so here is another thing
<fresheyeball>
I did a nix-build of the env
<Wulfsta>
For instance do I just use `${gmsh.src}` in the python derivation?
<fresheyeball>
and I got just like a weird space seperated list of nix store paths
Acou_Bass has joined #nixos
<fresheyeball>
what is going on there? what is an env really anyway? what does build it with nix-build result in this weird output?
<Wulfsta>
simpson: If you could provide an example of a similar package it would be appreciated
<simpson>
There's other ways to do it, but this is relatively clean and readable, at the cost of an external patch file. (My preferred method is with sed, because I am bad at readability.)
<Wulfsta>
simpson: I have done something similar packaging tensorflow for ROCm so I understand what you mean - my concern is that we already have `gmsh` in nixpkgs
<Wulfsta>
And using pypi means that we essentially have the same derivation twice, which is discomforting
samhza has joined #nixos
<simpson>
Maybe the existing gmsh derivation should do this, then?
<Wulfsta>
I would prefer to reference the source for the `gmsh` derivation in a python package derivation, and input `gmsh` as a propagated build input
<Wulfsta>
But my idea of how to do this might be wrong
Acou_Bass has quit [Ping timeout: 260 seconds]
<Wulfsta>
gmsh itself is a standalone piece of spftware with a gui that just happens to have several apis for scripting (to my limited knowledge about it)
<simpson>
Then put it in a separate output?
<Wulfsta>
I don't follow, I have seen this type of thing as a `let <derivation> in makePythonPackage` but am not sure what you mean
acarrico has quit [Ping timeout: 258 seconds]
Acou_Bass has joined #nixos
<Wulfsta>
Ideally we would also package the Julia API
<simpson>
Oh, I had thought that there was a `pythonPackages.gmsh`. There isn't, but there could be.
<Wulfsta>
Ah yes, I believe that's what I'm aiming for
<simpson>
> pythonPackages.fipy # uses gmsh, could be inspirational?
<Wulfsta>
I eyeballed `fipy` and it doesn't seem to use the gmsh API through a `import gmsh`
bbarker has quit [Remote host closed the connection]
<Wulfsta>
So I don't think that this is the same - I have previously had pygmsh versions working before nschloe started using the python gmsh api, but this is a roadblock for me
<simpson>
I'm suggesting that you'll take the Python library and patch it to refer to Nix's already-packaged `gmsh` derivation. I'm not sure how this differs from other ctypes situations. There are nightmare scenarios where all of the C++ and Python have to be built at once, like Z3, but I don't think that this is one of them.
<Wulfsta>
I think I see the way to go about this then - is there anything special to consider for makePythonPackage since this is a single file?
<simpson>
Yeah. You could just yoink the single file, not bother with setup.py, and instead directly produce a wrapper from the given `pythonPackages.python`. (I don't remember how to make Python wrappers; read some other packages.)
<Wulfsta>
I'll eyeball it, thanks
<worldofpeace>
Unode: no problem. 90+% of the projects I've packaged for nixpkgs have been like this, and using meson (I maintain pantheon and gnome)
<fresheyeball>
I could still use help understanding this
cjpbirkb1 has joined #nixos
cjpbirkbeck has quit [Ping timeout: 264 seconds]
Guest47842 has quit [Changing host]
Guest47842 has joined #nixos
Guest47842 is now known as miyu-saki
<kandinski>
I have a nix-shell hashbang that fails with a syntax error, but the relevant bit doesn't fail when the nix-shell is invoked in an interactive shell. Any suggestion? https://termbin.com/p2tj
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JTfh0
<Reiser>
Anyone know how to launch stage 2 from stage1 in the NixOS installation ISO? Managed to repair the environment but can't figure out how to get it to resume
<infty1>
the grub 2 tpm setting is broken in 20.03?
<infty1>
okay let me wind back a bit: I had a ubuntu setup with tpm and full disk encryption, now I was changing it to nixos and the way I did it was to just nuke the encrypted partition with luksFormat
rprije has quit [Ping timeout: 256 seconds]
malook has joined #nixos
<infty1>
so currently I get a warning when I am in my usb booted system that the Locking directory /run/cryptsetup is missing so I figure that may be a problem with why I can't boot the system as it is without the TPM support enabled
nixos has joined #nixos
<infty1>
actually the only way I could get the installation to finish was by setting efiInstallAsRemovable in the grub options
<nixos>
this is infty1 I'm rebooting the other system
infty1 has quit [Quit: WeeChat 2.7.1]
<nixos>
anyway, when I installed the system that way my issue is that it doesn't seem to prompt me to unlock the partition with the system on it
<nixos>
but I think that is because I have TPM enabled and it wants me to sign the changes in boot before continuing
<nixos>
when I enabled trusted boot and the systemHasTPM flags under grub the problem is that it is incompatible with efiSupport and I am stranded (also that the package is broken in 20.03
<nixos>
)
<nixos>
so I don't know how to continue? is this even possible to do with nixos currently?
<nixos>
ahh maybe I can manually boot with luksOpen in /boot rescue mode and if so then I can probably make that a script and add it to /boot with boot.loader.grub.extraFiles
<nixos>
it's a bit painful though, does anyone know anything about HEADS + NixOS?
Izorkin has joined #nixos
<nixos>
or maybe I have another boot partition inside the crypt with something like reFind? then the grub guy works with heads and it's purpose is to open the disk and boot refind and then once I'm in the trusted zone I can boot nixos from the other boot partition?
<nixos>
but I don't know how to do that with nix, so I guess I'll be booting manually for a while and opening a forum thread once I've collected my thoughts
cantaloupe has quit [Ping timeout: 256 seconds]
<nixos>
I would really appreciate it if someone who is more knowledgable could give me some guidance on what is the best way to accomplish this
Fare has quit [Ping timeout: 260 seconds]
Fare has joined #nixos
ilmu has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nixos>
okay I;
<nixos>
m giving this a shot, but I'm still lurking with a cloud guy
<jbo>
Hi there - I've a dual-boot windows/nixos machine, and the nixos disk has disappeared from my boot menu. I suspect that the EFI partition has broken somehow. I'm downloading the nixos liveusb so I can mount the nixos root disk. Any advice on how to chroot into it and recreate/fix the EFI partition?
sneak has joined #nixos
<sneak>
hi all! is there a program in nixpkgs like macOS' Photo Booth.app or Kamoso? I just got a new usb webcam and want to test it out
<sneak>
hmm, perhaps i will write something modern
<simpson>
sneak: Oh huh, curious, I must be mixing it up in my mind with some other software. I wonder what I'm thinking of...
<sneak>
simpson: photo booth is the little one that just has a live preview window and a 'take picture' button. i think shotwell is like the photo management analog
<tpw_rules>
you can also open UVC cameras in VLC and mplayer
<simpson>
sneak: I don't remember GNOME well, but there's some sort of video editor in the ecosystem which includes live camera preview and capture. Outside of GNOME, there's of course OBS, packaged as `obs-studio`, but that is overkill for merely testing cameras.
<sneak>
i should have known obs is in nixpkgs, it has everything
<tpw_rules>
(also for the record UVC is "USB video class", which most webcams implement. it's not just a linux thing)
<sneak>
i even found someone's github repo that packages kamoso for nix but i don't know the nix dsl well enough yet to use random repos
jani1234 has joined #nixos
<simpson>
tpw_rules++ (Right, there are other webcam drivers in Linux, but most hardware is UVC because (1) USB and (2) standards make life easier)
<{^_^}>
tpw_rules's karma got increased to 3
<sneak>
i bought some $20 no-name usb webcam and plugged it in and fired up chromium to a temporary google meet room to test, and it Just Worked, and i had a moment where i recalled linux in the 90s/2000s and said a little hallelujah
<sneak>
how do y'all manage /etc/nixos? i did a 'git init' right in there and just committed all of it, is there a better way?
<simpson>
Not really; version control is pretty common practice. There are tools for managing configuration, usually in the context of distributed farms of many machines.
<sneak>
also, is there some metapackage to pull in all the k* kde desktop apps?
<sneak>
not that i've been fiending for kmines or anything
meh` has quit [Read error: Connection reset by peer]
<simpson>
I haven't run KDE for a long time, but AFAICT the DE itself is enabled by `services.xserver.desktopManager.plasma5.enable`, and the applications live in `kdeApplications`, which is a set. I don't know if there's one single metapackage.
<sneak>
looks like kdeApplications is it, will try that
sputny has quit [Remote host closed the connection]
pbogdan has joined #nixos
AlpineLlama has joined #nixos
<sneak>
hmm i'm getting an "is not of type `package' when i try to add it to my systemPackages
<simpson>
Right, it's a set, not a package.
Izorkin has joined #nixos
<sneak>
i found the magic wrapper 'builtins.filter stdenb.lib.isDerivation (builtins.attrValues set)` but now it's saying some are broken. is there a way to filter on broken flag?
<{^_^}>
[nixpkgs] @mweinelt opened pull request #100147 → python3Packagesansible: split into ansible and ansible-base, update to 2.10.x → https://git.io/JTJEy
<{^_^}>
Found in packages: libdrm, xorg_sys_opengl
jani1234 has quit [Ping timeout: 258 seconds]
<Athas>
Which packages do I need to install to run XFCE?
<Athas>
XFCE seems to be broken into a bunch of derivations with incorrect dependencies, for some reason.
<Athas>
If I install 'xfce.xfce4-session' I get something that can start an X server, but with no window manager, toolbar, or anything else.
antifuchs has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<antifuchs>
I've got a problem booting a raspberry pi 3 b+ into nixos: it doesn't get to the bootloader without an hdmi cable attached. I tried hdmi_safe=1 and hdmi_force_hotplug=1 in /boot/config.txt, but it just won't progress to the u-boot selector unless I (however briefly) plug in an hdmi cable; unfortunately I have no serial connectivity with which to debug this hdmi-less... has anyone else run into this yet?
otulp has quit [Ping timeout: 272 seconds]
astylian_ has quit [Read error: Connection reset by peer]
<bqv>
,locate libgdb.so.1
<antifuchs>
(I'm aware of the *simultaneous* problems with 5.7 kernels seemingly hanging when they should activate hdmi; that's not what I'm running into: I want the device to boot entirely headless)
<bqv>
,locate libgbm.so.1
<{^_^}>
Found in packages: mesa, driversi686Linux.mesa
<Athas>
Ke: yeah, Iḿ doing that now, but it bothers me that it has to be a global setting. I wanted a shell script that just uses nix-shell to launch XFCE.
lsix has joined #nixos
<betaboon>
colemickens: I'm just trying to build sway off of nixpkgs-wayland on an aarch64 device but I'm running into glesv2 not found. any hints?
astylian has joined #nixos
hnOsmium0001 has joined #nixos
sangoma has joined #nixos
pbogdan has joined #nixos
IlliusDope has quit [Quit: Leaving]
dxtr has quit [Ping timeout: 260 seconds]
TheSirC[m] has joined #nixos
proofofkeags_ has joined #nixos
proofofkeags has joined #nixos
<TheSirC[m]>
Hey, how would you setup a python environment. Just tried Mach-nix without success
abathur has quit [Quit: abathur]
<colemickens>
betaboon, maybe just open an issue and I can take a look in a few hours. My CI has been down lately for reasons so I'm having to keep an eye on it lately.
astylian has quit [Ping timeout: 264 seconds]
<betaboon>
colemickens: done :D
sputny has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @primeos pushed 3 commits to release-20.09: https://git.io/JTJSz
astylian has joined #nixos
<m1cr0man>
Hey folks. I am trying to setup a netboot image which mounts the readonly nix-store from NFS instead of a squashfs image. What do I need to add to initrd to support nfs mounts? I am getting "Protocol not supported" during boot stage 1 mounting NFS.
<{^_^}>
[nixpkgs] @samuelgrf opened pull request #100162 → pcsx2: build with gtk3 and support x86_64 builds → https://git.io/JTJS1
drdee has joined #nixos
drdee has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @primeos pushed 2 commits to release-20.09: https://git.io/JTJ9k
<m1cr0man>
betaboon: Would you be able to share configs? I could really not figure out a way to get it to work without nfsv4?
sangoma has quit [Ping timeout: 258 seconds]
malook has left #nixos [#nixos]
graham has joined #nixos
graham is now known as Guest26770
Guest26770 has quit [Remote host closed the connection]
sangoma has joined #nixos
<TheSirC[m]>
I am trying to run the following code for Python 3.7 `python -m pymodaq.dashboard` and I am getting `ImportError: libGL.so.1: cannot open shared object file: No such file or directory `
<TheSirC[m]>
Would anyone know how to solve it?
<{^_^}>
[nixpkgs] @risicle merged pull request #100012 → bazel_1: fix build on darwin → https://git.io/JUhMg
<{^_^}>
[nixpkgs] @samuelgrf opened pull request #100165 → jpexs: rename to jpexs-ffdec → https://git.io/JTJAt
<{^_^}>
[nixpkgs] @jonringer merged pull request #100151 → doc: Document a workaround for using an FQDN as hostname → https://git.io/JTJgi
bbarker has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @jonringer pushed commit from @primeos to master « doc: Document a workaround for using an FQDN as hostname »: https://git.io/JTJAC
cosimone has quit [Quit: cosimone]
Darkmatter66_ has joined #nixos
zupo_ has joined #nixos
<{^_^}>
[nixpkgs] @jonringer opened pull request #100166 → doc: Document a workaround for using an FQDN as hostname → https://git.io/JTJAa
Darkmatter66 has quit [Ping timeout: 272 seconds]
MmeQuignon has joined #nixos
<selfsymmetric-mu>
infinisil++ That was it, thank you!
<{^_^}>
infinisil's karma got increased to 363
<TheSirC[m]>
> I am trying to run the following code for Python 3.7 `python -m pymodaq.dashboard` and I am getting `ImportError: libGL.so.1: cannot open shared object file: No such file or directory `
<TheSirC[m]>
Anyone?
<TheSirC[m]>
> Would anyone know how to solve it?
<{^_^}>
error: syntax error, unexpected $undefined, expecting ')', at (string):325:54
<{^_^}>
error: syntax error, unexpected ')', expecting ID or OR_KW or DOLLAR_CURLY or '"', at (string):326:1
lorimer has joined #nixos
<{^_^}>
[nixpkgs] @jonringer opened pull request #100167 → [20.09] python3Packages.dask: limit processes on tests, fix downstream → https://git.io/JTJxo
<TheSirC[m]>
<selfsymmetric-mu "TheSirC: Hm. Maybe `hardware.ope"> Even inside a `nix-shell`?
cr4y1 has joined #nixos
sam_d has quit [Read error: Connection reset by peer]
sam_d has joined #nixos
sam_d has quit [Read error: Connection reset by peer]
rajivr has quit [Quit: Connection closed for inactivity]
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
yCmuxHat0961 has quit [Remote host closed the connection]
zupo has quit [Client Quit]
<{^_^}>
[nixpkgs] @thoughtpolice pushed commit from @happysalada to master « vector: 0.8.1 -> 0.10.0; fix Darwin build »: https://git.io/JTJhu
<selfsymmetric-mu>
TheSirC[m]: Oh, I guess not. Sorry, I don't know.
meh` has quit [Ping timeout: 260 seconds]
<__monty__>
Hmm, I'm finding myself with a new problem. Usually packages I contribute get into unstable quick enough that I can have an overlay point at my nixpkgs repo, checked out to the branch for the new package and by the time I submit a new package I get the other one from the new branch which branches off master after the first package got merged. Now I have two branches with unique commits. Is there a way to
<__monty__>
specify the branch in my overlay without this meaning multiple copies of nixpkgs in my store?
<__monty__>
fresheyeball: That has to do with cross-compiling.
<__monty__>
And the nixpkgs haskell infra registers the packages in the ghcpkg database somehow iiuc.
<fresheyeball>
oh
<ardumont>
lewo: in the end, for my systemd service override, i used a composition of replacing a module and a dedicated nixpkgs-"master" source (through niv)
<fresheyeball>
well mission accomplished on my end
<fresheyeball>
but damn was that counter intuitive to pull off
<__monty__>
If you're struggling with the haskell infra and this is for development, not inclusion in nixpkgs, check out haskell.nix. It's better in most ways except caching.
<fresheyeball>
I am doing something admittedly fancy
<andreos>
what is the proper way to set `path` for a systemd service? `path = [ pkgs.wget ]` is found in examples, but how to set it to all system packages
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @Jiehong to release-20.09 « doc: add the removal of Python 3.5 to the 20.09 release notes (#95765) »: https://git.io/JTUOP
<humancalico[m]>
Hey, if I add a package to the nixpkgs repo, how do I test it locally? I added the dracula tmux plugin https://github.com/NixOS/nixpkgs/pull/100169 and It builds alright with the `nix-build -A pkg-attribute-name <path to your local nixpkgs folder>/default.nix` command. I tried to change the Nix expression search path using home-manager `-I nixpkgs=/home/humancalico/code/nixpkgs/ switch` but that started building
<humancalico[m]>
everything from scratch including firefox which failed. Is there any other way I can test this?
<humancalico[m]>
* Hey, if I add a package to the nixpkgs repo, how do I test it locally? I added the dracula tmux plugin https://github.com/NixOS/nixpkgs/pull/100169 and It builds alright with the `nix-build -A pkg-attribute-name <path to your local nixpkgs folder>/default.nix` command but I don't know how to test it. I tried to change the Nix expression search path using home-manager `-I nixpkgs=/home/humancalico/code/nixpkgs/
<humancalico[m]>
switch` but that started building everything from scratch including firefox which failed. Is there any other way I can test this?
<immae>
Raito_Bezarius: The install script builder seems to be in https://github.com/NixOS/nix (see flake.nix hydra job)
<selfsymmetric-mu>
humancalico[m]: What I personally like to do is make a work-in-progress pull request, add `https://github.com/NixOS/nixpkgs/archive/pull/<pr-id>/head.tar.gz` as a channel, and build from there.
<Raito_Bezarius>
immae: indeed, I just need to build it on my local system
<selfsymmetric-mu>
My way is not local, but it does let you test the derivation before merging.
<humancalico[m]>
selfsymmetric-mu: Thanks.
pbb has joined #nixos
kloenk has joined #nixos
<humancalico[m]>
fwiw Is there a way to do this locally?