<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.casbin: 0.13.0 -> 0.14.0 »: https://git.io/JLXu0
__monty__ has quit [Quit: leaving]
rb2k has joined #nixos
<bqv>
Why not!
vldn has joined #nixos
<bqv>
pushqrdx: proper answer: i really want to experiment with guix a while, because while nix now beats it in a lot of ways, it still beats nix in a lot of others. Best way to get familiar is to use it on the regular, and i already have it installed and set up as part of my nix config, so geronimo
<pushqrdx>
bqv yeah ofc why not didn't mean it in bad way sorry if it felt like that, i was just interested in the reason for the strage mix :D
<bqv>
oh no don't worry
littlebenlittle has joined #nixos
writtenoff has quit [Quit: writtenoff]
writtenoff has joined #nixos
tarruda4 has quit [Read error: Connection reset by peer]
tarruda has joined #nixos
AWizzArd has joined #nixos
xcmw has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @svrana opened pull request #107509 → go-minimock: init at 3.0.8 → https://git.io/JLXux
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 30 commits to staging-next: https://git.io/JLXuj
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 31 commits to staging: https://git.io/JLXze
rajivr has joined #nixos
astrofog has quit [Quit: Quite]
SomeoneSerge has quit [Quit: WeeChat 3.0]
<JJJollyjim>
hmm
<JJJollyjim>
is there a way to ask nixpkgs for "the latest kernel release", whether that be an -rc or a stable?
<JJJollyjim>
s/stable/latest/, in nixpkgs terminology
<JJJollyjim>
linuxPackages_testing is still 5.10-rc6
<infinisil>
Gaelan: gchristensen: It seems to be used for journal over the network
<gchristensen>
an obscure and not very good feature :)
<Gaelan>
So, I'm trying to cross-compile a NixOS configuration that's written as a flake. However, it doesn't look like nixFlakes cross-compiles well right now. Will it cause problems if I use nixFlakes to build the configuration, but "normal" nix on the target machines?
ece has quit [Read error: Connection reset by peer]
domogled has joined #nixos
iqubic has joined #nixos
ece has joined #nixos
iqubic has left #nixos ["ERC (IRC client for Emacs 28.0.50)"]
malook has quit [Quit: malook]
<{^_^}>
[nixpkgs] @xaverdh opened pull request #107525 → [staging] kernel/manual-config: prevent chmod errors when there is no arch specific Makefile → https://git.io/JLXSZ
<{^_^}>
[nixpkgs] @xaverdh closed pull request #107473 → kernel/manual-config: prevent chmod errors when there is no arch specific Makefile → https://git.io/JLXSc
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
cantstanya has quit [Remote host closed the connection]
Squarism has joined #nixos
cantstanya has joined #nixos
<Squarism>
So i have a working development project with default.nix file. Basically just compiler + packages needed to build the project. Now I want extend my "environment" by adding an editor (vscode + haskell-language-server) available when using the shell only
<Squarism>
I feel i need to "inherit" my default.nix from the new shell.nix.
felix[m]5 has quit [Quit: Idle for 30+ days]
Sajesajama[m]1 has quit [Quit: Idle for 30+ days]
sarcasticadmin has quit [Quit: Idle for 30+ days]
ejpcmac has quit [Quit: Idle for 30+ days]
neothefox has quit [Quit: Idle for 30+ days]
ManiacOfMadness has joined #nixos
<Squarism>
or how should i think? I mean, libraries that my editor needs must be compatible with my project?
mitsuhiko has quit [Ping timeout: 268 seconds]
ryjm has quit [Ping timeout: 268 seconds]
ctp has quit [Read error: Connection reset by peer]
joshmeredith has quit [Read error: Connection reset by peer]
bradparker has quit [Ping timeout: 256 seconds]
sorear has quit [Ping timeout: 256 seconds]
davetapley has quit [Read error: Connection reset by peer]
philipcristiano has quit [Read error: Connection reset by peer]
vdemeester has quit [Read error: Connection reset by peer]
etrepum has quit [Read error: Connection reset by peer]
r0bby has quit [Read error: Connection reset by peer]
alanz has quit [Read error: Connection reset by peer]
SrPx has quit [Read error: Connection reset by peer]
lally has quit [Ping timeout: 256 seconds]
m0rphism has joined #nixos
teozkr_ has quit [Read error: Connection reset by peer]
aristid has quit [Read error: Connection reset by peer]
jared-w has quit [Read error: Connection reset by peer]
bn_work has quit [Ping timeout: 268 seconds]
wpcarro_ has quit [Read error: Connection reset by peer]
etrepum has joined #nixos
alanz has joined #nixos
aristid has joined #nixos
philipcristiano has joined #nixos
s1341 has quit [Ping timeout: 260 seconds]
teozkr_ has joined #nixos
mitsuhiko has joined #nixos
jared-w has joined #nixos
vdemeester has joined #nixos
davetapley has joined #nixos
lally has joined #nixos
SrPx has joined #nixos
joshmeredith has joined #nixos
ctp has joined #nixos
wpcarro_ has joined #nixos
sorear has joined #nixos
bradparker has joined #nixos
r0bby has joined #nixos
ryjm has joined #nixos
bn_work has joined #nixos
s1341 has joined #nixos
sangoma has quit [Ping timeout: 256 seconds]
<Squarism>
how would I inherit from my default.nix in my shell.nix?
joshmeredith has quit [Read error: Connection reset by peer]
etrepum has quit [Read error: Connection reset by peer]
ctp has quit [Read error: Connection reset by peer]
joshmeredith has joined #nixos
ctp has joined #nixos
etrepum has joined #nixos
jared-w has quit [Ping timeout: 240 seconds]
SrPx has quit [Ping timeout: 256 seconds]
alanz has quit [Ping timeout: 256 seconds]
joehh1 has quit [Ping timeout: 246 seconds]
cole-h has quit [Ping timeout: 264 seconds]
joehh1 has joined #nixos
respawn_ has joined #nixos
alanz has joined #nixos
jared-w has joined #nixos
SrPx has joined #nixos
ManiacOfMadness has quit [Read error: Connection reset by peer]
<stephank>
I'm trying to get a custom kernel going with virtio_console=y, but extraConfig isn't working for me. I need to also set virtio_pci=y, but it appears extraConfig is applied by parsing prompts from the kernel build. Only, virtio_console appears before virtio_pci, and only offers options 'n' or 'm' because virtio_pci=m in the default config. Anyone
<gentauro>
how do I `feed` X11 libs to a package (shell.nix)? -> `conftest.c:10:10: fatal error: X11/Xlib.h: No such file or directory. 10 | #include <X11/Xlib.h>`
ManiacOfMadness has quit [Read error: No route to host]
<NobbZ[m]>
Dunno. But it's not there. And I rarely need it to be honest.
<NobbZ[m]>
I usually use udiskie for ephemeral or temporary mounts which puts them under a user specific folder or for permanent mounts I wouldn't use mnt either
<NobbZ[m]>
If you need it, you can of course create it.
<ocean>
NobbZ, That's interesting. Yeah I suppose it makes no difference. Thank you!
o1lo01ol1o has quit [Ping timeout: 240 seconds]
<Emantor>
colemickens: Um, wayland overlay seems to be broken again, one of the recent colebot commits updated the rev, but not the sha256.
<Emantor>
I did not notice this since nixos-unstable was stuck for a while…
<Squarism>
I have a working default.nix for building and repl. To it i added download of haskell-language-server. How do I create something I can pass to nix-shell that gives med "server" + "hls" in that shell? https://paste.ofcode.org/6Qy6TwEQCwPwLGNcJtJeai
<nasirhm>
I am trying to package a golang application which depends on libblkid, is there a package available in Nix for it ?
<simpson>
nasirhm: I think that that library is in `util-linux`.
<nasirhm>
simpson: Thank you, i'm testing it.
<nasirhm>
Nope, It's not there
<simpson>
,locate libblkid.so
<{^_^}>
Found in packages: libuuid, utillinux
<nasirhm>
Hmm, I've add both of them, It needs the equivalent of `-dev/-devel` library.
<nasirhm>
added*
<simpson>
nasirhm: This derivation's outputs are funky; "bin" is listed first. I don't know the historical context, but the upshot is that you'll need to explicitly specify `util-linux.out`.
<nasirhm>
,locate blkid.h
<{^_^}>
Found in packages: libuuid.dev, utillinux.dev
<simpson>
That said, /nix/store/7r9ls4v22h694w33qimb6b67g8z3zys9-util-linux-2.36 *does* have a lib/libblkid.so here.
lassulus_ has joined #nixos
<nasirhm>
hmm, what about blkid/blkid.h
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JLX79
lassulus_ has quit [Client Quit]
<simpson>
It'd be in `util-linux.dev`. In Nix, it's possible for a single derivation to have multiple outputs, and that's what's happened here.
<pingiun>
I have a local hydra deployment that fails on building a dependency (it's git), when I set useSubstitutes to true, it pulls from the nixos servers and continues to build however
<pingiun>
how can it be that git fails on my instance, but succeeds on the nixos hydra?
<simpson>
pingiun: Reading the build log, it looks like a git test failed. I'm not sure why, but it might be related to whatever dirty/changed state caused the rebuild in the first place.
<pingiun>
simpson: I don't think turning on substitutes is a good solution right? what would be a good solution?
<simpson>
nasirhm: Are buildInputs supposed to be in quotes? I don't think that that works, and when I try it here, I get the error that you mentioned.
werner291 has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 9 commits to staging: https://git.io/JLX5L
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 8 commits to staging-next: https://git.io/JLX5t
<simpson>
pingiun: Personally I'd try to figure out what's special about the evaluation context. What is it that isn't just vanilla nixpkgs?
<nasirhm>
simpson: Ah, it's building again.
<nasirhm>
It built.
<pingiun>
simpson: isn't nix supposed to have consistent contexts? I don't even know where to start looking
<simpson>
pingiun: Nix evaluates exactly what you ask it to evaluate. If you ask it to evaluate nixpkgs and also some extra scripts, then it'll do that. If you ask it to overlay all of nixpkgs with a change to libc, it'll do that.
<simpson>
Hydra isn't easy to administer, so I sympathize. I would first check the underlying system's channels, and see whether the system nixpkgs builds the problematic git or the working git from cache.
<simpson>
And then I'd go on to check the configuration for the project, see which branches are selected, etc.
<pingiun>
simpson: it's the exact same evaluation though, it uses a pinned (with niv) nixpkgs. I rebuild the same evaluation again, but this time it could just get the (in my case failing) git dependency from the binary server
nf has quit [Quit: Fairfarren.]
<simpson>
pingiun: If it's building different derivations, it's probably not the exact same evaluation?
<simpson>
Like, same hashes and everything?
nf has joined #nixos
<pingiun>
simpson: hmm no, hashes are different. so that means it did re-evaluate?
<pingiun>
I guess this is something I still don't fully get about nix, I thought the hashes were purely based on the inputs but I didn't change the inputs
<simpson>
Yes. It means that some of the dependencies had different hashes, too. Nix forms a hash tree for each derivation.
<pingiun>
it's still weird to me that this changes when changing just one hydra setting and nothing elsse
<pingiun>
between builds I only set useSubstitutes to true
<simpson>
I don't know anything about the git test which is failing, either.
<simpson>
A way to avoid this is to specify upstream nixpkgs as a Hydra build input. As a bonus, this means that your CI system will automatically integrate changes to nixpkgs.
<{^_^}>
[nixpkgs] @morganthomas opened pull request #107531 → linux/kernel/manual-config: prevent chmod errors when there is no arc… → https://git.io/JLXFZ
<{^_^}>
[nixpkgs] @morganthomas closed pull request #107531 → linux/kernel/manual-config: prevent chmod errors when there is no arc… → https://git.io/JLXFZ
<{^_^}>
[nixpkgs] @morganthomas opened pull request #107532 → linux/kernel/manual-config: prevent chmod errors when there is no arc… → https://git.io/JLXFC
<{^_^}>
[nixpkgs] @morganthomas closed pull request #107532 → linux/kernel/manual-config: prevent chmod errors when there is no arc… → https://git.io/JLXFC
<Duponin>
Hi, I try to create a derivation which relies on `/usr/bin/python` but it can't find it even when `nativeBuildInputs = [ python3 ];` is given. I also tried to edit to use `/usr/bin/env python` but it don't find `/usr/bin/env` (no such file or directory)
<{^_^}>
[nixpkgs] @3noch opened pull request #107538 → RFC: go: Add dev.go2go branch variant called 2-dev → https://git.io/JLXpg
<emilsp>
interesting, I added a raid card and a gpu, and now my enp12s0 is a enp13s0, which means that it doesn't have an IP :/
<Orbstheorem>
Hi I'm trying to deploy a remote a system using flakes. rebuild switch fails with message `/nix/store/...system/.../switch-to-configuration: command not found`, when I manually run `nix-copy-closure -vvvvvv` with the new system derivation, I get error `cannot add path /nix/store/... because it lacks a valid signature`.
o1lo01ol1o has quit [Remote host closed the connection]
CptCaptain has joined #nixos
<CptCaptain>
I can't mount a vfat drive for writing, reading works. What could it be? I remember from my archlinux days that you sometimes need a helper program for certain fs types. Is there such a thing in Nixos?
veleiro` has quit [Ping timeout: 256 seconds]
<CptCaptain>
sudo mount -t vfat /dev/sdb1 /mnt/ -o uid=foo,gid=user
<CptCaptain>
Gives me:
<CptCaptain>
mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error.
<pushqrdx>
how can i check what keeps a store package alive
K has joined #nixos
ezioedithore has quit [Quit: ZNC 1.8.1 - https://znc.in]
K is now known as Guest81803
<pushqrdx>
nix-store -q --roots /nix/store/path
rajivr has quit [Quit: Connection closed for inactivity]
ezioedithore has joined #nixos
<Guest81803>
Hello, does someone know how to enable sandbox in nix-builds but allowing internet access? (using fixed-outputs derivations is not an option)
<pingiun>
what kind of automatic gc should I enable on my hydra server?
<genevino>
can anyone explain this behaviour here? https://clbin.com/KRuBR e.g. why am i getting 1.7.15 with nix-shell while getting 1.7.12 with nix, and why does the latter one download 2100x the amount of data?
astrofog has joined #nixos
<gchristensen>
pingiun: ideally use a filesystem which does not count inodes separately from disk space (example: ext4, which has a hard limit of inodes, is not a great choice) because .drv's take up almost no space, but take up valuable inode count
<gchristensen>
pingiun: then, just maybe shoot for 30% disk space free
o1lo01ol1o has joined #nixos
tarruda has quit [Ping timeout: 256 seconds]
<pingiun>
gchristensen: I'm using the zfs setup from your erase your darlings post ;)
ezioedithore has quit [Client Quit]
<pingiun>
thanks :D
tarruda has joined #nixos
lord| has quit [Ping timeout: 268 seconds]
kirelagin has joined #nixos
lord| has joined #nixos
ezioedithore has joined #nixos
asheshambasta has quit [Ping timeout: 256 seconds]
<nf>
genevino: different versions of nixpkgs? i'm not sure what exactly `nix run nixos.element-desktop` does here
<nf>
is that supposed to be nixos#element-desktop ?
o1lo01ol1o has quit [Ping timeout: 264 seconds]
<nf>
oh, it's a stable nix thing
<pushqrdx>
i just screwed up myself really bad, now i learned the lesson to use nix-direnv or lorri to automatically add gc roots
<pushqrdx>
i did an accidental gc which deleted all my cached packages
<nf>
genevino: so yeah, nix-shell uses your nixpkgs channel while that nix run command uses your nixos channel, and they don't have the same version of element-desktop
<gentauro>
kraem[m]: hmmm seems strange. I have all the `xorg.lib` in my `/etc/nixos/configuration.nix` and it keep complaining. Now sudently it works (after af few `sudo nix-channel --update && sudo nixos-rebuild switch` over the last few weeks)
<gentauro>
kraem[m]: somebody realized that the `x11` package was broken?
<gentauro>
hmmm
<genevino>
nf: i don't even have a nixpkgs channel, the only channel "nix-channel --list" shows is called "nixos" and points to 20.09.
<nf>
right, i guess it uses the value of nixpkgs defined there
<kraem[m]>
Orbstheorem: you have to sign the binaries on the computer who’s pushing to the remote, and have the public key on the remote
ezioedithore has quit [Quit: ZNC 1.8.1 - https://znc.in]
<genevino>
nf: ok that's strange
<nf>
genevino: try running nix-channel --update
<{^_^}>
[nixpkgs] @wucke13 opened pull request #107545 → mission-planner: init at version 1.3.74 → https://git.io/JL1Up
ezioedithore has joined #nixos
Thaodan has joined #nixos
j4m3s__ has joined #nixos
<Thaodan>
Which libc++ version does nixos use? You have teamspeak3 client package similar to mine in the Arch User Repository currently arch uses libc++ 11 and that breaks it. I wonder how did you workaround that.
<kraem[m]>
gentauro: don’t know if it is.
<Orbstheorem>
kraem[m]: Why did that become a requirement wrt not using flakes?
astrofog has quit [Quit: Quite]
<kraem[m]>
hm think you can have the user in nix.trustedUsers and skip signing. don’t know if there’s a difference when not using flakes
oxalica has quit [Remote host closed the connection]
oxalica has joined #nixos
<Orbstheorem>
forgot to mention, but the deployment worked fine before switching to flakes.
<Orbstheorem>
(I'm building a previous configuration to see if it still works to discard a new nix thing)
o1lo01ol1o has joined #nixos
<Orbstheorem>
Something that comes to mind though is that the build may have been completely remote in the past, and if I don't know how well building on a remote using flakes is supported.
<Orbstheorem>
Yep, remote deploying without flakes works.
<lassulus>
tried it out a bit, looks like a very nice editor
kirelagin has quit [Ping timeout: 260 seconds]
<cole-h>
It's definitely very interesting
<lassulus>
little bit like spacemacs for vim :D
<cole-h>
I've tried it out a handful of times in the past, but only recently have I begun really getting into it.
<cole-h>
The scripting is really cool in that you can use POSIX shell for logic (e.g. there's no built-in branching to kakscript, so you have to use shell if you want to do conditionals)
<cole-h>
Big fan of that, especially coming from the archaic and tbqh ugly vimscript
<lassulus>
hmm, sounds very interesting indeed
<lassulus>
I will try it out in the future, if I don't forget it
<cole-h>
haha
<cole-h>
The concept of almost everything being a selection is a little strange to get used to, though.
sefu has joined #nixos
eacameron has joined #nixos
kirelagin has joined #nixos
xcmw has joined #nixos
ezioedithore has quit [Quit: ZNC 1.8.1 - https://znc.in]
<eacameron>
Does Nix work on Apple's M1 machines yet?
<cole-h>
Through rosetta (or whatever the name is), it looks like
ezioedithore has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
blueberrypie has quit [Quit: Ping timeout (120 seconds)]
blueberrypie has joined #nixos
meh` has quit [Ping timeout: 256 seconds]
meh` has joined #nixos
v0|d has joined #nixos
<v0|d>
Mic92: need guidance on installing ghidra decomp on cutter?
<v0|d>
Mic92: help :p
<eacameron>
cole-h: Awesome!
meh` has quit [Ping timeout: 260 seconds]
pax-12 has joined #nixos
<pax-12>
buildInputs = [ stdenv.cc.cc.lib ]; in configuration.nix gives error: undefined variable 'stdenv' at /etc/nixos/configuration.nix:191:2 How can I fix this?
<pax-12>
I am on unstable btw
<v0|d>
pax-12: undefined is obvious but don't think stdenv.cc.cc.lib is destined to go into buildInputs.
<cole-h>
Does not compute. Why are you putting buildInputs in your configuration?
<cole-h>
buildInputs is only useful for stdenv.mkDerivation.
Sajesajama[m] has joined #nixos
<pax-12>
somebody told me to on another platform, I do not seem to have libstdc++.so.6 and I need it to run games. I did not see any info on using it on google
<cole-h>
Have you tried using steam-run?
<pax-12>
they are steam games
<cole-h>
steam-run is a tool specifically crafted for the purpose of running those games
<pax-12>
I followed all the things to put in configuration.nix and I often get errors relating to libstdc++.so.6 and ld.so
ManiacOfMadness` has joined #nixos
ManiacOfMadness has quit [Ping timeout: 256 seconds]
<cole-h>
are you running the games with steam-run?
<pax-12>
you can run individual steam games with steam-run?
<pax-12>
also the games are running with proton
ManiacOfMadness` has quit [Ping timeout: 272 seconds]
<pax-12>
how should I go about forcing steam-run on the steam proton games?
rb2k has joined #nixos
<Mic92>
v0|d: sorry, christmas today. Ask in a view days
riksteri has quit [Quit: riksteri]
<{^_^}>
[nixpkgs] @bjornfor merged pull request #107267 → nixos/nextcloud: fix missing quotes arround $* in occ wrapper and replace with $@ → https://git.io/JL2Aq
<{^_^}>
[nixpkgs] @bjornfor pushed commit from @beardhatcode to master « nixos/nextcloud: fix missing quotes arround $* in occ wrapper and replace with $@ »: https://git.io/JL1tQ
kirelagin has quit [Quit: kirelagin]
Thra11 has joined #nixos
meh` has joined #nixos
bqv has joined #nixos
jonringer has quit [Remote host closed the connection]
sangoma has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
meh` has quit [Ping timeout: 240 seconds]
meh` has joined #nixos
noudle has joined #nixos
oxalica has quit [Remote host closed the connection]
steell has quit [Ping timeout: 264 seconds]
oxalica has joined #nixos
Raito_Bezarius has quit [Ping timeout: 260 seconds]
<bqv>
Woohoo, I now have an issue where if nscd is running, nothing resolves!
<ronny>
again, whats the suggested way to build nixos vms/system configs from non-nix hos operating systems (ideally in a way that allows to acceptance test the vms as well
<supersandro2000>
anyone has any PR that he wants to get merged for christmas?
donofrio has joined #nixos
<cole-h>
ronny: nix-build '<nixpkgs/nixos>' -A vm -I nixos-config=./config.nix
xcmw has joined #nixos
<donofrio>
how so I start this env, I just installed it , at least I think I did (I have 10.15.7) I've sshed into my imac how do I check to see if its usable?
<Thra11>
supersandro2000: How about #103826 It's very similar to #102263 which you merged for me a while back (thanks!).
<donofrio>
I try nix-shell default.nix and I get no file found ;(
<cole-h>
Because you need to create one...
Dotz0cat has quit [Ping timeout: 272 seconds]
<donofrio>
I'm a brew user and just want to start using nix to install and do things.....
<cole-h>
You should click the link above and read the introductory pages.
<cole-h>
It will make Nix a lot easier to use.
<donofrio>
I did / am.... the version command ran
<cole-h>
Great, keep going!
<donofrio>
I don't want to do anything with flask I just want to start installing packages like youtube-dl and pianobar so I can enjoy my imac...
<cole-h>
Life is a journey, and so is Nix. You'll get there :)
Siyo has quit [Ping timeout: 256 seconds]
<donofrio>
I'm not looking for a journey, I just want to start using this so I can use it
<cole-h>
If you want to use it, you must first learn to use it, no?
<cole-h>
Sure, we can give you a command to run that will give you an environment with some packages, but you won't learn how to do it yourself and will end up coming here every time you want something slightly different.
<cole-h>
The goal is to "teach a man to fish, so he may eat for the rest of his life"
<cole-h>
or however the saying goes
<donofrio>
is it that hard to just "use" this env?
<cole-h>
If you're really that averse to learning, then I'll give you a way to get an environment with youtube-dl (note that it is ephemeral -- once you exit the shell, the package is unavailable until the next time you enter the shell):
<cole-h>
nix-shell -p youtube-dl
Siyo has joined #nixos
<donofrio>
is there a nix-shell -p bash ?
<qyliss>
donofrio: nix-shell -p pianobar will give you a shell with pianobar
<donofrio>
will it keep everything it copies because I'd just like a static install not dynamic at least not yet
<cole-h>
Unless you garbage collect, yes.
<donofrio>
I'm getting this when I run pianobar "Illegal instruction: 4" ;(
<qyliss>
donofrio: oh no :(
<qyliss>
maybe that's because of AVX after all
<donofrio>
yah how do I recompile without AVX?
<qyliss>
(donofrio and I were talking in #machomebrew, and they were suggested to come here because the don't have AVX and the Homebrew package enables it)
<qyliss>
Does somebody in here know if we enable AVX by default on Darwin?
o1lo01ol1o has joined #nixos
justanotheruser has joined #nixos
<qyliss>
donofrio: I don't have a Mac to check on -- could you tell me what nix-instantiate --eval -E 'with import <nixpkgs> {}; stdenv.targetPlatform.avxSupport' outputs?
<donofrio>
cole-h, is this a vm? why would I garbage collect a shell?
<qyliss>
donofrio: Nix will keep the package around in /nix/store, rather than downloading it every time you run nix-shell
<tpw_rules>
donofrio: if you run garbage collection, all your shells will be considered garbage and deleted
<donofrio>
qyliss, comes back with "false"
<qyliss>
every so often you can run nix-collect-garbadge and it'll delete everything it has cached that's not currently in use
lord| has quit [Ping timeout: 240 seconds]
<qyliss>
donofrio: hmm, so that sounds like AVX should be disabled already
<infinisil>
qyliss: pianobar itself could have added compiler flags to compile with avx enabled
lord| has joined #nixos
<qyliss>
yeah that's what I'm thinking
<qyliss>
donofrio: Could you try exiting the nix-shell, then nix-store --delete $(nix-instantiate -A pianobar '<nixpkgs>'), then nix-shell -p pianobar --option substitute false ?
<qyliss>
that'll recompile pianobar on your computer rather than downloading the prebuilt version
<qyliss>
in case it does its own detection for whether AVX is present
<qyliss>
donofrio: but also, please exit the nix-shell before doing that
<qyliss>
infinisil: oh true
<donofrio>
oops
<donofrio>
didn't do that
inkbottle has quit [Quit: Konversation terminated!]
alanz has quit [Ping timeout: 258 seconds]
<donofrio>
well unlike brew nix is compiling this time....
ctp has quit [Ping timeout: 264 seconds]
lally has quit [Ping timeout: 264 seconds]
mitsuhiko has quit [Ping timeout: 260 seconds]
<donofrio>
eek it's compiling the bootstrap tools so it will be "awhile" I'm guessing.
<qyliss>
oh no
<qyliss>
uh, ctrl-c that
<donofrio>
;) "error: interrupted by the user"
vdemeester has quit [Ping timeout: 260 seconds]
sorear has quit [Ping timeout: 260 seconds]
<donofrio>
I'm out now....
jared-w has quit [Ping timeout: 260 seconds]
wpcarro_ has quit [Ping timeout: 268 seconds]
r0bby has quit [Ping timeout: 268 seconds]
<donofrio>
I'll exit should I garbage collect to remove old things
<qyliss>
no, keep them around
<donofrio>
k
etrepum has quit [Ping timeout: 260 seconds]
<donofrio>
exiting the shell
<qyliss>
they'll be helpful later
nz__ has quit [Ping timeout: 268 seconds]
<donofrio>
do I still run nix-shell -p pianobar or just -p bash?
<qyliss>
don't run anything for now
<qyliss>
give me a moment
<donofrio>
k holding
<donofrio>
take your time
zebrag has joined #nixos
<donofrio>
this is fun learning
<qyliss>
donofrio: out of curiosity, what hardware are you running on that doesn't have AVX?
ryjm has quit [Ping timeout: 264 seconds]
bradparker has quit [Ping timeout: 264 seconds]
joshmeredith has quit [Ping timeout: 268 seconds]
SrPx has quit [Ping timeout: 258 seconds]
<qyliss>
donofrio: glad you're enjoying it -- please know that I consider it a bug this isn't working and will do my best to fix it.
<donofrio>
imac 2008 w/Catalina (used dosdude1's patcher to make a usb key that got me this far on 12 year old host)
teozkr_ has quit [Ping timeout: 268 seconds]
<qyliss>
ahh
nicker has joined #nixos
nicker has quit [Remote host closed the connection]
<qyliss>
so Homebrew probably enables AVX since I'd guess every Mac that can officially run recent OSes supports AVX
davetapley has quit [Ping timeout: 260 seconds]
nickeraqua has joined #nixos
<donofrio>
I tried the brew install -s pianobar (that should have compiled it but in brew it didn't seem to have as much progress compiling as nix does)
alanz has joined #nixos
jared-w has joined #nixos
nz__ has joined #nixos
wpcarro_ has joined #nixos
mitsuhiko has joined #nixos
lally has joined #nixos
ctp has joined #nixos
<qyliss>
donofrio: nix-build -A pianobar.buildInputs -A pianobar.nativeBuildInputs '<nixpkgs>'
sorear has joined #nixos
etrepum has joined #nixos
joshmeredith has joined #nixos
<donofrio>
1134 people is is a hot project it seems ;)
<qyliss>
donofrio: that'll fetch all the dependencies for pianobar so you won't have to build the bootstrap tools and stuff
ryjm has joined #nixos
<donofrio>
ok I'll try that
teozkr_ has joined #nixos
vdemeester has joined #nixos
<qyliss>
it won't actually build pianobar -- let me know when it's done and then we'll figure out what's next
bradparker has joined #nixos
r0bby has joined #nixos
<donofrio>
it's done
<nickeraqua>
What is the cause for hash mismatch in fixed-output derivation? I'm using a custom /nix/store path does that have anything to do with the error?
davetapley has joined #nixos
aristid has quit [Ping timeout: 264 seconds]
<qyliss>
nickeraqua: depends on what the FOD is
<qyliss>
donofrio: okay, can you try this again? nix-shell -p pianobar --option substitute false
<infinisil>
nickeraqua: No that doesn't have anything to do with it
<qyliss>
This time it should compile pianobar, but not any of the bootstrap tools and stuff
SrPx has joined #nixos
aristid has joined #nixos
<donofrio>
yah it's compiling now
<qyliss>
cool
<donofrio>
with brew install -s pianobar compiled....
<qyliss>
fwiw I still don't expect this to work, but if you're willing to stick around we'll get to the bottom of it
<donofrio>
with = wish
<donofrio>
I'm here this is my Christmas gift if it works ;)
<nickeraqua>
It's a fetchfromgithub hash in bash-completion
<nickeraqua>
I was told fetchFromGitHub is different than fetchgit
philr has joined #nixos
<nickeraqua>
But when I run nix-prefetch-git, it gives me a hash that doesn't match
jared-w has quit [Ping timeout: 260 seconds]
<qyliss>
nickeraqua: does nix-build -A bash-completion.src '<nixpkgs>' work?
<qyliss>
(with the original hash)
<donofrio>
I wonder if I could have setup a cross compile so I could have used by 7 rpi3's or my rpi4b to compile this faster ;)
<nickeraqua>
I still get a hash mismatch. I used --check since I already had it
<qyliss>
donofrio: cross-compiling to macOS is hard
<qyliss>
but maybe possible? I'm not sure
<qyliss>
nickeraqua: what Nixpkgs rev?
<donofrio>
qyliss, it was just a thought ;)
<nickeraqua>
I'm using master nixpkgs pulled from github
<qyliss>
nickeraqua: what commit?
<qyliss>
(so I can make sure I'm looking at the same thing as you)
<infinisil>
gives me 0m3brd5jx7w07h8vxvvcmbyrlnadrx6hra3cvx6grzv6rin89liv
<infinisil>
Which matches the one in nixpkgs
<nickeraqua>
Oh wow I see
<nickeraqua>
Thanks for letting me know
<nickeraqua>
I wonder why then I get the error during install of bash-completion
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/JL1Oj
<hodapp>
haaarblgaaarbl, I made Pithos get past its silly keyring issue, but now it core dumps a few seconds after startup because... something with gdk-pixbuf and not finding icons?
<infinisil>
nickeraqua: Can you paste the exact error?
miscalculated has quit [Remote host closed the connection]
donofrio has quit [Remote host closed the connection]
donofrio has joined #nixos
<qyliss>
donofrio: hmm, that doesn't seem right
<qyliss>
donofrio: oh, if you want, ctrl-C it and run nix-build -A pianobar.src, then retry
<donofrio>
what does that do?
miscalculated has joined #nixos
<qyliss>
It downloads the Pianobar sources, but not in recompile-everything mode
<donofrio>
it's been running for 40 min now maybe it's close to being done?
<qyliss>
so it won't need to build curl and stuff
<qyliss>
donofrio: it's probably been building a bunch of other packages that are now finished -- you probably won't lose much by stopping and restarting it
<donofrio>
maybe youtube-dl might need it rebuilt?
<qyliss>
how's youtube-dl involved?
<donofrio>
I would like to use it as well
<qyliss>
ah I see
<donofrio>
it also gives illigal instruction in brew
<qyliss>
oh!
<qyliss>
that's a good clue
<qyliss>
because both depend on ffmpeg
<qyliss>
but no, youtube-dl won't need perl rebuilt -- it'll be able to download a binary for that
<qyliss>
but because we want to test recompiling pianobar, the command I told you to run forbids it from downloading any prebuilt binaries
<qyliss>
I meant nix-build -A pianobar.src '<nixpkgs>'
<qyliss>
donofrio: the version there is the version of the macOS SDK we build for
<qyliss>
Apple usually lags behind a bit on releasing open source bits we rely on, so it's usually a few versions outdated, but that's okay because programs built for older versions should still run on newer ones
<donofrio>
qyliss, wow that last command was lighting quick....and it didnt recompile anything but I ran pianobar againa and I still get "Illegal instruction: 4"
<qyliss>
okay
<qyliss>
my theory is that it's ffmpeg that's using avx
<donofrio>
qyliss, unless your doing nixos on the m1 then wel...... (mind you I'm not doing that just replying to your statement about a few versions behind is ok)
<qyliss>
yeah idk what the m1 situation is
<donofrio>
ok so nix-build -A ffmpeg.src
<donofrio>
?
<qyliss>
give me a moment to look at the package
<donofrio>
k I'm here and your like santa tonight - just saying I really appricate all of this that your doing....
<qyliss>
I'm mostly waiting for things to compile tonight so I have lots of free time :P
<qyliss>
donofrio: can you do nix-shell -p ffmpeg and see if ffmpeg runs?
o1lo01ol1o has quit [Remote host closed the connection]
<donofrio>
I have pianobar working now!
<donofrio>
wow
<qyliss>
recompiling everything?
o1lo01ol1o has joined #nixos
<donofrio>
no just ran the last command... nix-shell -p pianobar --option substitute false
<qyliss>
aha okay
<donofrio>
youtube-dl still doens't work ;(
<donofrio>
same process for that?
<qyliss>
try it and see
<qyliss>
I'm not really sure what was up here so can't say for sure
omnipotententity has joined #nixos
<omnipotententity>
Is there an easy way to get the git revision string from the tag name?
<omnipotententity>
within a nixos expression that is
<donofrio>
seems to be working now
<qyliss>
omnipotententity: only if you leaveDotGit
<donofrio>
lol I'm happy going to the host and see if I can run it interactivly....
<donofrio>
so I just run nix-shell -p bash and then I can run what I want?
<qyliss>
no, running nix-shell -p bash just gets you bash
o1lo01ol1o has quit [Ping timeout: 256 seconds]
<donofrio>
from bash I run pianobar?
<omnipotententity>
@qyliss, thanks for letting me know this exists, would it be preferred if I use leaveDotGit or manually update a variable containing the hash?
<qyliss>
omnipotententity: latter
<donofrio>
just tryin to know what to run....eventally I want to garbage collect and see what really made it work
<qyliss>
donofrio: if you want pianobar you nix-shell -p pianobar
<donofrio>
k
<qyliss>
(with --option substitute false if you want to disable substitution i.e. binary package downloading)
<omnipotententity>
alright.
<qyliss>
omnipotententity: the best thing you could do would be to write an updateScript that would update it
<qyliss>
donofrio: once you're done experimenting with nix-shell you also install it globally
<qyliss>
someone will help you with that when you're ready, I'm sure :)
<donofrio>
weird
<omnipotententity>
Do you have documentation handy for that @qyliss ?
<omnipotententity>
I've never attempted that
<donofrio>
I exited out of all the shells and it doesn't run now
<omnipotententity>
or is this an informal thing where I just have a bash script to do it for me.
<qyliss>
omnipotententity: there might be something in the Nixpkgs manual -- I usually just look through Nixpkgs to find an example to copy
<donofrio>
I have to run this "nix-shell -p pianobar --option substitute false" or it doesn't work...
<qyliss>
yes, that's intentional
<qyliss>
nix-shell is a way to run programs as a one-off
<donofrio>
so I'm left with wondering do I still need brew? how do I remove it if it's redunant to nix?
philr_ has joined #nixos
<qyliss>
(it's one of the cool things Nix can do that traditional package managers can't)
<qyliss>
You can install packages with Nix and have them available everywhere without needing nix-shell, but we'll get to that :)
<qyliss>
donofrio: that depends on how much you like Nix :P
<qyliss>
Homebrew is definitely easier to use (for simple use casese)
<donofrio>
well pianobar works with nix and i've not used nix before I've used brew and well here I am even after knowing brew
<qyliss>
But Nix can do everything Homebrew can and much more, with some effort.
red[evilred] has joined #nixos
<red[evilred]>
Then everything breaks
<red[evilred]>
Until you do an update to osx
<donofrio>
lol
<red[evilred]>
It's true
rb2k has joined #nixos
<V>
it's always spooky seeing matrix people join and reply to something that was said before they joined
<donofrio>
don't think I'll be updating osx....10.15.7 is the most I think dosdue1 will take this 12 year old host
<red[evilred]>
Whereas nix doesn't break as it only has itself as a dependency
<qyliss>
V: oh I was wondering what happened there
philr has quit [Ping timeout: 260 seconds]
<simpson>
V: Like summoning wizards by knowing a fragment of their True Name.
<V>
qyliss: bridge[evilred]
<V>
simpson: quite
<donofrio>
so nice to have pianobar running on this 12 year old host ;)
<hexa->
,locate dhcp-lease-list
<red[evilred]>
Sorry
<{^_^}>
Couldn't find in any packages
<red[evilred]>
Lol
<donofrio>
I wonder what sort of dynlib crosspath I have from osx system libray to brew libraires to nix libraries
<red[evilred]>
I am a ghost, wooooo😃
donofrio has quit [Remote host closed the connection]
<red[evilred]>
I prefer my irc client, but for mobile use it's hard to beat matrix
donofrio has joined #nixos
<qyliss>
donofrio: Nix builds everything in a sandbox, so brew can't interfere with it :)
<V>
red[evilred]: you could perhaps configure your matrix bridge to not timeout connections? it makes it impossible to send anything via PM
<qyliss>
and it would only work for X11 windows, which are rare on macOS
<astylian>
Hi, I am just trying nixos and I need some help to find a package. This package 'lib32-gcc-libs' is from Arch linux, where is it at NixOS repo? I have found nixos.libgcc but I need a 32bit one
<donofrio>
that would be fine, I think I use hexchat and it is upset about a cert for freenode so it is not working on osx so I figured why not run it from nix