<oborot>
Anybody good with pulse audio? Trying to follow the Pulse Audo wiki to troubleshoot my lack of sound. I can see my "HDA Intel PCH" chip in AlsaMixer with a number of vertical bars.
<oborot>
How can I configure Pulse Audio to use that?
<oborot>
Would it be "options snd slots=HDA Intel PCH"?
<day|flip>
it great for non desktop or window manager
<oborot>
Where am I to be selecting the device? I don't see the devices in pavucontrol that I can see in AlsaMixer.
<day|flip>
configuration tab
<day|flip>
then output devices
virus_dave has quit [Quit: virus_dave]
<day|flip>
playback if you want
<oborot>
Do I need to test all the various profiles?
<oborot>
All I see is the profiles drop-down on the config tab
<oborot>
There's 20+ options
<day|flip>
lol.
<day|flip>
are you doing gpu passthrough or from the main computer
<day|flip>
normally Analog stero duplex should be find
<oborot>
Nope
<day|flip>
in output devices. make sure you devices is not mute
<oborot>
Is there a sound test button in this?
<day|flip>
normally im lazy. just run youtube video that like a hour long. till i figure thing out
<oborot>
OK, I did that.
<oborot>
I can see the blue bar moving in pavucontrol.
<oborot>
But no sounds
<day|flip>
in playback. you have the right device to what your playing?
<day|flip>
im guessing you have a nvidia card. and it set that as default
lovesegfault has joined #nixos
<oborot>
No external graphics card
<oborot>
Just intel graphics
<oborot>
It's a x230 thinkpad
<day|flip>
do you have headphone?
<day|flip>
using with headphone?
<oborot>
Not currently, but I'll try
selfsymmetric-mu has joined #nixos
<day|flip>
you could try going back to Configuration and change to Analog Sorround 2.1 out
<oborot>
Those aren't working either
<codedmart>
Anyone that can help setup a hp scanner. I have sane enabled the hp scanner is at a specified local ip which I put in extraConfig."hpaio" like this wiki shows: https://nixos.wiki/wiki/Scanners#Network_scanning
<day|flip>
Make sure there not mute in output devices
<oborot>
I don't even have that option
<oborot>
Nope, it's not muted
<codedmart>
Still after logout and login or reboot no scanner when I run scanimage -L as normal or root users.
<oborot>
I just tried all the profiles, nothing
<day|flip>
oborotanalog stero output?
<oborot>
Oh, yeah I have that
<oborot>
Doesn't work either :/
<oborot>
Wonder if it's having issues with the sound control built into the thinkpad
<oborot>
Because I do see that listed as one of the chip options in AlsaMixer
<Miyu-chan>
Okay. Stupid idea, add "only" if operator? (<-)
<Miyu-chan>
Err
<Miyu-chan>
"only if"
<gchristensen>
like the logical implication operator?
<Miyu-chan>
Exactly. :) onlyIf x y is just if y x.
<Miyu-chan>
Where if is logical implication
<gchristensen>
is it different from the logical implication operator?
jasongrossman has joined #nixos
<Miyu-chan>
Nah, `x -> y` == `y <- x`. I was wondering what the usecase would be.
<gchristensen>
ah
<gchristensen>
we use them in asserts
<Miyu-chan>
Yeah, I've used logical implication myself. It's pretty nice.
<Miyu-chan>
High-key want to see them in other languages now.
<gchristensen>
hah
<gchristensen>
every time I use or see the -> operator I have to write out a truth table
<gchristensen>
probably need practice :)
<Miyu-chan>
Same. But it's very easily read IMO. :)
<Miyu-chan>
Oh wait.
<Miyu-chan>
You said "see".
<Miyu-chan>
For me, I don't know how to write it, but it seems kindaa logical in assertions.
<Miyu-chan>
"Check the right condition if the left condition is true."
<Miyu-chan>
I guess in a way, `assert x -> y` == `if x then assert y else noop`
<Miyu-chan>
I just realized that right now, actually.
<Miyu-chan>
And more reason for me to want to see it in other languages lol
<gchristensen>
:D
<Miyu-chan>
I think what would really throw people off is that `if (x) if (y)` is `if (x && y)` adding the implication operator might make that less obvious?
<Miyu-chan>
We've had enough `if (x < 2^32)` in C.
<gchristensen>
hehe
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
day|flip has quit [Remote host closed the connection]
jasongrossman has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
<gchristensen>
is there a handy tool which can do fancy word diffs, not just line diffs?
<gchristensen>
and then it gives up reading secrets
<gchristensen>
simply touching that file (as root), charon writes "include ipsec.d/ipsec.nm-l2tp.secrets" to the file, and it works
<gchristensen>
going to reboot, erase /, and try again to verify .brb
<gchristensen>
yep, that does it
<gchristensen>
I need to go to bed, but if you'd like to PM me or open an issue and write some stuff up, I can take a look in the morning :) (or maybe you'll be on in ~8h)
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
kvda has quit [Read error: Connection reset by peer]
<craige>
nix-index / nix-locate is my new best friend. Thanks teto!
<teto>
craige: you are welcome. you can also use them via the bot in this channel
Myhlamaeus has quit [Read error: Connection reset by peer]
<teto>
,locate bin firefox
<{^_^}>
Found in packages: firefox, firefox-esr, firefox-unwrapped, firefox-esr-60-unwrapped, firefoxPackages.tor-browser, firefoxPackages.tor-browser-7-5
<{^_^}>
[nixpkgs] @vcunat pushed 12 commits to release-19.03: https://git.io/fjXbs
wfranzini has quit [Remote host closed the connection]
<teto>
craige: you can /query it so as not to spam the room. Even if I have it locally, my overlay/nixpkgs fork sometimes break the evaluation so this can be a good backup
<Ralith>
hmm
<Ralith>
trying to put Nix on a chromebook's linux environment
<Ralith>
the install script hits a segfault
<Ralith>
looks like it happens while installing nix itself
<switchy>
I'm having a go at updating fenics/building on linux. the package is defined like 'let fiat = { ... }; ufl = { ... }; in stdenv.mkDerivation...' -- can I somehow get nix-shell for fiat or ufl? maybe I need to break that into its own derivation?
slack1256 has joined #nixos
jasongrossman has joined #nixos
johnny101 has quit [Remote host closed the connection]
<charukiewicz>
My drive is partitioned where / has less space allocated to it than /home, which is why I prefer to have /nix in /home/<user>/...
<sphalerite>
charukiewicz: no.
<switchy>
in case that doesn't work, you could probably bind mount it
<sphalerite>
A bind mount should work though.
<sphalerite>
hehe
<switchy>
jynx!
v88m has joined #nixos
MmeQuignon has joined #nixos
<etu>
charukiewicz: I have tried, it's possible to boot on it. But nix doesn't like interacting with it :D
<charukiewicz>
thanks
<charukiewicz>
so if I were to bind mount, should I do the move first?
mexisme has quit [Ping timeout: 272 seconds]
<charukiewicz>
I don't want the "space" from my root directory to be eaten up, I'd rather have the files live in my /home directory partition
<charukiewicz>
e.g. mv /nix ~/nix then mount --bind /home/<user>/nix /nix ?
<etu>
charukiewicz: What I would do is to add the bind-mount to your nix config, then rebuild a new generation to get that bind-mount into the store's generation
<etu>
Then I would do a "rsync -avzP /nix/. ~/nix/."
<etu>
And then reboot to see that it works
<charukiewicz>
I'm just using nix package manger on arch
<charukiewicz>
not nixos
<etu>
oh
<etu>
that makes a big difference :D
<charukiewicz>
I haven't quite graduated to the OS level yet
<etu>
Yeah, then you don't depend on the coreutils inside of the nix store to be able to do the move and the mount
<etu>
And then a move is much less pain :)
<charukiewicz>
does the bind mount persist after reboot?
<colemickens>
pie_, yes that's one of the comments I read a while ago that stuck with me and inspired my intrigue over "is guix a better choice" for various definitions of better.
<pie_>
colemickens, for no well founded reason im leaning towards yes :C , i agree with the "support instead of compete" sentiment but at the end of the day youre still using either one or the other system
<colemickens>
I've been watching the Rust keynote at the Racket conf and it makes me wonder where NixOS could be with a bit more organization around development efforts...
<pie_>
colemickens, yeah i was kind of wondering about that as well.. but im not sure its a developer organisation thing
<pie_>
colemickens, you have me getting curious why guix _appears_ to have some special kind of progress and i have no idea hwy
<pie_>
are we stuck in a tooling tarpit? are we spending tons of resources keeping our package set maintained...?
<colemickens>
I need to get my hands dirty before I make any more guesses, I feel. I've never done more than a few minutes of reading/poking, plus I've invested time myself, plus I like the people here, etc.
<pie_>
same
<pie_>
i just have so many things i need to get my hands dirty with :(
<pie_>
one major disadvantage is probablt the limitation to free software and whatnot thoguh
* colemickens
nods
<pie_>
colemickens, yeah the time investment is what has me feelng a little sad if i do decide to switch. nixos is probably more mature by mass at this point at least. but i find the idea of a using the same language across ones system (ideally anyway) enticing
<dminuoso>
What exactly does nix-shell do from an internal perspective? I've dabbled a bit with kernel modules and was surprised to be able to just call unpackPhase, it apparently being a shell function.
slack1256 has quit [Remote host closed the connection]
<pie_>
ive got the carrot but do i get the stick :D
<dminuoso>
Is there any relevant documentation for me to read?
<pie_>
dminuoso, i dont know but it probably calls nix-instantiate somewhere and most of the magic is done by stdenv (for things that use stdenv)
<colemickens>
I also don't know how I feel about Nix some days, and even more so about Guile. I have zero experience with Lisp languages. I'm on another 6 hour train today though, so I might dig in a bit.
<pie_>
for example phases are an stdenv thing and there *is* documentation for that in the ?nixpkgs? manual
<pie_>
colemickens, do report back i guess :D, its kind of a love hate relationship. i dont know about lisp.
<pie_>
at the least nixpkgs probably did a lot of groundbreaking work
<dminuoso>
pie_: There is some documentation about stdenv, but what is `stdenv` actually? Is that just a shell library defining some functions?
<dminuoso>
I mean of course there is `stdenv` the attribute set.
<pie_>
dminuoso, well the c++ code is the interpreter itself...
<dminuoso>
I see. Never made it there
<dminuoso>
pie_: But yeah, discoverability is certainly not easy with nix.
Ariakenom has joined #nixos
<pie_>
dminuoso, i dont suppose you have any experience building search engines? :P
<charukiewicz>
etu: thanks for the help with the bind mount. I just added it to /etc/fstab and rebooted and it works like a charm. Building a Haskell project with nix-build now.
<balsoft[m]>
Hi! I'm getting a strange bug with nixops on GCE. It's quite annoying given it prevents our hydra instance from building anything.
<balsoft[m]>
`warning: are you sure you want to destroy GCE image 'n-324ac857a4aa11e982124201c0a80402-bootstrap'? (y/N) error deploying with check, ?hydra-provisioned-0?: can't proceed further`
juliendehos has quit [Quit: Leaving]
___laika has joined #nixos
<balsoft[m]>
Of course I've worked around it by forcefully deleting the deployment and then creating it again, but I'd like to fix it in a better way
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
johanot has joined #nixos
<sphalerite>
aveltras: It's not on a per-user basis but a per-system basis; it doesn't offer structured config options; it's not usable on other distros like home-manager is
ym555 has quit [Ping timeout: 248 seconds]
linarcx has quit [Read error: Connection reset by peer]
<aveltras>
sphalerite: ye indeed, just realised you can't define a directory as a source too which is limited then
<sphalerite>
huh, I thought that should work
linarcx has joined #nixos
<yorick>
Miyu-chan: semi-recently, things got rewritten to use fetchrebar3 everywhere
<yorick>
this patch broke my non-sandbox builds :D
obadz has quit [Quit: brb]
<yorick>
(well, it broke my sandbox builds, but we didn't find out)
<pie_>
i was thikning of ankhers
<{^_^}>
[nixpkgs] @das-g opened pull request #64879 → doc: put Java software's build-time dependencies into nativeBuildInputs instead of into buildInputs → https://git.io/fjXAg
<sphalerite>
nh2[m]: exactly, pandoc is the one I have in mind :)
pie_ has quit [Ping timeout: 276 seconds]
Makaveli7 has quit [Quit: WeeChat 2.5]
fendor has joined #nixos
<nh2[m]>
sphalerite: I don't think it is technically necessary. From a linking/loading perspective the executable is certainly standalone, as `ldd` confirms. But `strings $(which pandoc) | grep nix/store` shows that it has builtin strings to 3 Haskell *libraries* (HTTP-4000, the pandoc Haskell library, and pandoc-types). Haskell libraries depend on GHC.
<nh2[m]>
sphalerite: I think there are 2 parts to fixing it: Ensuring those strings don't make it into the binary (need to check what they are used for), and ensuring that the generic-builder makes Haskell libs build-time-only dependencies (this may already be done, probably need to ask peti or domenkozar for that)
<{^_^}>
[nixpkgs] @FRidh pushed to staging-next « libyaml: actually use 0.2.2 »: https://git.io/fjXxe
<{^_^}>
[nixpkgs] @FRidh pushed 129 commits to staging-next: https://git.io/fjXxJ
<jD91mZM2>
clever: No difference, still just a "blank" screen (only the background image with a NixOS logo at the top)
<clever>
jD91mZM2: i'm not sure its supported under efi, you may need to temporarily switch to legacy booting
<jD91mZM2>
(Unrelated: My desperate attempt to change keyboard layout in that same config didn't work)
<jD91mZM2>
clever: Does that mean I have to install grub in legacy mode and toggle "legacy" somewhere in BIOS?
<clever>
jD91mZM2: yeah, for nixos, you just need to set boot.loader.grub.device = "/dev/sda"; and then it will do both legacy and efi at the same time
<clever>
jD91mZM2: you will also need a bios boot partition, 1mb, not formated, not mounted
<shandogs>
Is there a way to have one the binaries from one package (e.g. nodejs 10) exclusively available to another package (e.g. vim) without installing it system/user wide?
MmeQuignon has quit [Ping timeout: 245 seconds]
<dminuoso>
shandogs: You just reference that package
<dminuoso>
shandogs: e.g. somewhere in your derivation you refer to it as `${yourPackage}/bin/blah`
pie_ has joined #nixos
linarcx has quit [Ping timeout: 248 seconds]
<exarkun>
does the bindMounts feature of declarative nixos containers work? whatever I set it to, it seems to be ignored. containers start with no bind mounts.
linarcx has joined #nixos
veske has quit [Quit: This computer has gone to sleep]
<abbiya>
something weird happened. i didnt uninstall nix from my ubuntu but `which nix and nix-env` gave nothing. I had to reinstall nix but the previously installed packages are still there
<abbiya>
if i cant figure out to use ui apps from menu i will have to reinstall them
samrose_ has joined #nixos
samrose has quit [Ping timeout: 272 seconds]
<__monty__>
Did you reboot to verify the menus don't get populated?
<__monty__>
Maybe you need to set that in ~/.xprofile?
<sonercirit[m]>
how can I install version `3` of `godot` instead of `3.1`
bakakuna has joined #nixos
<sonercirit[m]>
need to do some small fixes on an old project
<abbiya>
-iA godot-3.1 ?
<abbiya>
reboot didnt get them
<__monty__>
sonercirit[m]: That's not possible unless nixpkgs explicitly has a godot_3. If it doesn't you'll need to pin the package in an overlay with an old nixpkgs.
veske has quit [Quit: This computer has gone to sleep]
veske has joined #nixos
linarcx has quit [Quit: WeeChat 2.4]
<{^_^}>
[nixpkgs] @dgchurchill opened pull request #64901 → emacs: Also allow imagemagick dependency when using withNS → https://git.io/fjXjW
bakakuna has joined #nixos
bakakuna has quit [Client Quit]
srid6390803 has quit [Ping timeout: 268 seconds]
o1lo01ol1o has joined #nixos
<nurelin__>
andi-: thank you but how can I create a shell.nix to give me the cross compiler ? I tried to give the crossSystem parameter to nixpkgs to make a stdenv.mkDerivation but it tries and fails to compile c-ares
<tilpner>
pmiddend: nix-store -qR or -q --tree on the derivation
<pmiddend>
tilpner: Ah, seems alright, thanks
<pmiddend>
Do you have a solution with directory sizes as well?
mkoenig has quit [Remote host closed the connection]
<pmiddend>
By randomly googling stuff, I found nix path-info -r path -s, giving me bytes at least.
mkoenig has joined #nixos
<{^_^}>
[nixpkgs] @abbradar opened pull request #64903 → bazel: drop absolute Python path → https://git.io/fjXj5
bahamas has joined #nixos
vmandela has quit [Quit: Leaving]
dwdr has joined #nixos
bakakuna has joined #nixos
<nurelin__>
last question, how do I build a local derivation with a cross-compiler, I would not be able to use pkgsCross.mingwW64.mypackage if it is not in the all-packages.nix ?
<{^_^}>
[nixpkgs] @abbradar opened pull request #64904 → buildBazelPackage: cleanup hacks and enforce them for all builds → https://git.io/fjXjp
<saum>
what's your nix-workflow to develop server applications (e.g. on a lamp stack)? till now i used docker-compose, however i'd like to migrate to nix. nixos-container looks nice, however i'm not too happy about it requireing root permissions. nixops with virtualbox/virtd would be an option, however it'd be more resource intensive. Is there another option?
<jabranham>
I'm on nixOS. The system channel is nixos-19.03 and my user's channel is nixos-unstable. Can someone help me understand why when I do "nix-shell -p emacs26" I get emacs 26.1 instead of 26.2?
<lordcirth>
jabranham, have you run nix-channel --update?
<jabranham>
lordcirth: yes, everything should be up-to-date
ryantrinkle has quit [Ping timeout: 248 seconds]
<linarcx>
saum: I can't use "torify" with upgrade command: `error: while setting up the build environment: cannot open IP socket: Operation not permitted`
<linarcx>
saum: I also set `http_proxy` to: `127.0.0.1:8118`, but nothing changed.
<stites>
I'm trying to bump the pytorch version to 1.1
is_null has quit [Ping timeout: 268 seconds]
erictapen has joined #nixos
v88m has joined #nixos
Drakonis has joined #nixos
<stites>
https://i.imgur.com/oSCrKLK.png << is the exact stack trace, but I'm really just trying to get into an environment where I can build the derivation steps manually
<andi->
colemickens: not yet, flokli, arianvp and me will. Probably try moving to that as default. It will not work right now because of some missing systemd dependencies.
<colemickens>
andi-: any idea if there's an existing Issue I can subscribe to?
<andi->
colemickens: not sure but feel free to join #nixos-systemd
<colemickens>
nice, will do, thx
boogiewoogie has joined #nixos
zupo has joined #nixos
ardumont has quit [Ping timeout: 252 seconds]
rsoeldner has quit [Ping timeout: 244 seconds]
<boogiewoogie>
hey, I'm trying to disable mouse acceleration through a `/usr/share/X11/xorg.conf.d/50-mouse-acceleration.conf` file. setting `environment.etc."X11/xorg.conf.d/50-mouse-acceleration.conf"` in my configuration.nix doesn't work though ("The option value `environment.etc.X11/xorg.conf.d/50-mouse-acceleration.conf' in `/etc/nixos/configuration.nix' is not of type `submodule'"). how do I have to do this?
<exarkun>
Hello. I'm failing to build a rust library using this expression, <https://github.com/LeastAuthority/privacypass/blob/nix-derivation/ristretto.nix>, because "error: the lock file /build/source/Cargo.lock needs to be updated but --frozen was passed to prevent this". I don't know Rust or the Rust toolchain well so I don't really have a clue what to do with this error.
<exarkun>
Alright I got past my Rust issue. The Rust library's Cargo config was broken. I reverted to a version that wasn't broken and it managed to build.
<{^_^}>
#64931 (by toonn, 1 minute ago, open): Wire-desktop refactor to add Darwin support
<frognix>
exarkun: did you install python-saml? my first day at new job, the legacy code is killing me
<exarkun>
I have never tried to install python-saml, nope
<exarkun>
How did you try to install it and what happened?
<exarkun>
I am currently fighting a python package named "milksnake" which exists, inexplicably, to glue random non-python build systems in to python's build system
<{^_^}>
[nixpkgs] @bhpdt opened pull request #64932 → mkl-service: init at 2.1.0 → https://git.io/fj1k4
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
hmpffff has joined #nixos
<adisbladis>
frognix: Yes and IME it's not worth it.
<frognix>
adisbladis: really? crap
<adisbladis>
For simple stuff you can use python nixpkgs but for larger projects it's just so much overhead to write derivations for every single little thing..
<{^_^}>
[nixpkgs] @danbst merged pull request #64421 → trivial-builders: support '/' in writeTextDir → https://git.io/fjicx
<adisbladis>
My preference is to have a simple shell.nix which provides ONLY the python interpreter and non-python deps. Not a single dep will come from nixpkgs.
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fj1kE
<inquisitiv3>
simpson: Is nix-bundles sandboxed with security in mind?
rsoeldner has quit [Ping timeout: 248 seconds]
<simpson>
inquisitiv3: Somewhat; it uses Linux user namespacing in order to isolate the binaries being run, but at the same time, the binary can interact with the rest of the running system in quite a few ways. https://github.com/matthewbauer/nix-bundle has more details.
<frognix>
could not found a version for libxmlsec1
<frognix>
i think nix will not help me either
o1lo01ol1o has quit [Remote host closed the connection]
<inquisitiv3>
simpson: I can't seem to find information about the security aspects. Aware that's something in the works.
o1lo01ol1o has joined #nixos
Myhlamaeus has joined #nixos
<simpson>
inquisitiv3: Reading through http://docs.flatpak.org/en/latest/sandbox-permissions.html, it would seem that the main difference between this ideology, and something like nix-bundle or using vanilla Nix on a non-NixOS (Linux) system, is that Nix delegates the fine-grained security policy to the user, while Flatpak requires explicit configuration.
Chiliparrot has joined #nixos
<simpson>
frognix: It's called `xmlsec` in nixpkgs.
ym555 has joined #nixos
linarcx has joined #nixos
pukkamustard has quit [Ping timeout: 248 seconds]
<simpson>
inquisitiv3: Keep in mind that much of Nix's security is structural, and that we isolate binaries at compiletime rather than runtime.
shomodj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drakonis_ has joined #nixos
<frognix>
simpson: i have already install that but stil not working, xmlsec.dev is the -devel version right?
<adisbladis>
FRidh2: Yes I saw that (I gave pipenv2nix a go before I gave up on pipenv entirely) :/
o1lo01ol1o has quit [Ping timeout: 246 seconds]
<inquisitiv3>
simpson: Could you expand on the last part please, or link to a good short learning resource? I've never heard the concept of isolation at compile time and security in the same sentence. A little confused :3
<inquisitiv3>
:S
<clever>
frognix: what and how did you install it?
<simpson>
frognix: Usually, the .dev output is for the development headers, or other artifacts needed to build/link against the library. If xmlsec had many sonames, say xmlsec2, xmlsec3, etc., and they had users, then they would have their own top-level names in nixpkgs.
wildtrees has joined #nixos
Shoubit has quit [Ping timeout: 244 seconds]
<simpson>
inquisitiv3: I usually start with the Principle of Least Authority (https://en.wikipedia.org/wiki/Principle_of_least_privilege). In Nix, access to things like build tools is privileged, and that access is only allowed based on permissions granted explicitly in a Nix expression.
<adisbladis>
FRidh2: I think it's a side effect of how it's passed to `pip`
<frognix>
mkShell { buildInputs = ]}
<frognix>
sry
<FRidh2>
adisbladis: you could use the pypi json api to determine what files the hashes correspond to so you can obtain url's
<clever>
frognix: nix will get .dev automatically, you shouldnt need to list both
<adisbladis>
FRidh2: Yes I could. Though that would require a round trip which I can't do from nix expressions.
pukkamustard has joined #nixos
<clever>
> xmlsec.outputs
<{^_^}>
[ "out" "dev" ]
<adisbladis>
I _really_ don't like to run code generation if I could get away without it
<FRidh2>
ok
<inquisitiv3>
simpson: Thanks! I'll read up on it and nix-bundles.
<exarkun>
I tried to use substituteInPlace on one of the source files in this project and of course it failed because the source file is in /nix/store... how am I supposed to use substituteInPlace?
<simpson>
inquisitiv3:
<adisbladis>
FRidh2: It's a backup option I'd consider if upstream won't merge the lock format changes
<clever>
exarkun: copy the file to the working directory, and then use that
<exarkun>
but then the build system won't use it?
ym555 has quit [Read error: Connection reset by peer]
<clever>
andi-: you dont want to make a nix expr to allow you to nix-build your videos? lol
<andi->
clever: actually not at this time :-)
<samueldr>
somehow, it doesn't sound as mad as using nix to parse pdf documents :)
<gchristensen>
get. out.!
<infinisil>
clever: I do have a nix expression that generates a blurred version of a pic for my grub background :)
o1lo01ol1o has joined #nixos
<infinisil>
s/grub/sddm
<sphalerite>
I started making a fancy boot animation with SVG at one point, but then I couldn't be bothered getting it into some form usable with plymouth.
<sphalerite>
Plus plymouth doesn't seem to work that well
<sphalerite>
on nixos
<infinisil>
Yeah..
<infinisil>
I also had to turn it off recently due to #44965
<lordcirth>
plymouth usually ends up annoying me pretty quickly
<clever>
sphalerite: i had plymouth working in not-os at one point, lol
<elvishjerricco>
Plymouth basically just doesn't work for me. The time between stage 1 ending and my display manager starting is close enough to zero that the Plymouth screen never shows up
<clever>
infinisil: i believe there is a special plymouth command you have to run, to expose the text console
<clever>
infinisil: and zfs should wrap its prompt with that
<gchristensen>
oh cool
<infinisil>
clever: Ah neat, can you make that a comment in that issue?
<elvishjerricco>
Really NixOS should just use Plymouth in stage 1 and prompt for passwords with its GUI password prompt
<samueldr>
(when plymouth is enabled)
mexisme has joined #nixos
<samueldr>
is plymouth big? because it could be an issue with multiple generations
<clever>
elvishjerricco: yeah, it also has a prompt thingy
<infinisil>
samueldr: 200MB closure size for pkgs.plymouth..
<samueldr>
though in the initrd it's likely to be slimmed down a bunch
<infinisil>
How so?
<clever>
infinisil: what part of the closure is so big?
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fj1I5
xelxebar has quit [Remote host closed the connection]
<infinisil>
For reference (and because it took me a while to find), this is the command I used to find the biggest deps: nix-store -qR $(nix-build --no-out-link '<nixpkgs>' -A plymouth) | xargs du -d0 -h | sort -h
cyraxjoe has joined #nixos
xelxebar has joined #nixos
<__monty__>
Has anyone had issues with the emojione font? http://ix.io/1OGB
<infinisil>
I think you could do it with nix path-info and a bit of jq now though
qqlq has joined #nixos
stepcut has joined #nixos
<infinisil>
Hehe yeah, I did this before, it's still in my history: nix path-info -hSr $(nix-build --no-out-link '<nixpkgs>' -A plymouth) --json | jq 'sort_by(.narSize) | map((.path | tostring) + " " + (.narSize | tostring) ) | .[]' -r
Myhlamaeus has quit [Read error: Connection reset by peer]
<infinisil>
It's a bit different than the du one though, not sure why
<clever>
infinisil: when nixos is generating an initrd, it will copy just the bin/plymouth file, and then run ldd to find the .so's it needs, then copy just those, and re-patchelf things
<clever>
infinisil: so the closure is heavily stripped down
<infinisil>
Neato
stepcut_ has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @mattmelling opened pull request #64942 → pythonPackages.mwparserfromhell: init at 0.5.4 → https://git.io/fj1IF
o1lo01ol1o has quit [Remote host closed the connection]
<infinisil>
It's enabled by default since recent NixOS
<__monty__>
I was calling xar with an absolute path, dropped the absolute part and then nix-build complained about not finding it. After adding that I realized I may have an undeclared gzip dependency too.
rsoeldner has quit [Ping timeout: 248 seconds]
<infinisil>
Ah, well if you put an absolute path like "${/home/paul/bin/xar} -foo -bar" it copies xar into the nix store and makes it a dependency
Ariakenom has joined #nixos
<__monty__>
infinisil: Doesn't seem to be for me. But then again I'm not on NixOS. Don't have a nix.conf
linarcx has quit [Client Quit]
<qyliss>
You can try building with --option sandbox true
<__monty__>
I just had the bare /usr/bin/xar in an unpackPhase.
<infinisil>
And I suggest you should add an /etc/nix/nix.conf with "sandbox = true"
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fj1LJ
linarcx has joined #nixos
ryantrinkle has quit [Remote host closed the connection]
<qyliss>
Sandbox is disabled by default on darwin, fwiw
<qyliss>
you may not have a good time if you enable it
<infinisil>
Ah yeah, so the "${/usr/bin/xar} -foo -bar" would've worked even with sandbox enabled. The "/usr/bin/xar -foo -bar" way will fail with sandbox enabled
<infinisil>
(Oh actually, the former probably would've failed with sandbox enabled too actually, because it depends on things outside the nix store)
arjen-jonathan has quit [Ping timeout: 276 seconds]
<clever>
but "${/usr/bin/xar} -foo -bar" will hash the xar binary, copy it to /nix/store/, and your $out is based on the hash of xar
<clever>
so you cant use the binary cache to help you if xar has a different hash
<clever>
hydra will also fail to eval the expr, because nixos lacks /usr/bin/xar
FRidh2 has quit [Quit: Konversation terminated!]
<infinisil>
Yeah, it's definitely not something you'd want to do. But I can see people accidentally using ${/usr/bin/xar} and not noticing that they have an impure build
knupfer has quit [Ping timeout: 264 seconds]
<infinisil>
*That* would've been caught with --pure-eval :)
<clever>
ah
<infinisil>
I've never thought about it this way, but Nix really has 3 levels of purity: evaluation time (enforced with --pure-eval), build time (enforced with --option sandbox true), and runtime (enforced with a minimal VM)
melling has quit [Quit: ciao]
o1lo01ol1o has quit [Remote host closed the connection]
<infinisil>
Unfortunately I suspect nixpkgs contains a lot of impurities of the third kind
<infinisil>
gchristensen: One thing I've caught in a PR is a /usr/bin/env python shebang which didn't get patched. Wasn't noticed by the PR author because they had python available in PATH
<__monty__>
--option sandbox true is making it get stuck after curl, just like --pure
saum has quit [Ping timeout: 246 seconds]
<__monty__>
Is gunzip part of the standard build environment?
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/fj1LG
jb55 has joined #nixos
knupfer has quit [Ping timeout: 264 seconds]
<__monty__>
Ok, the hang after download seems to be unrelated to pure/sandbox, it happens when I remove the absolute prefix. Why isn't nix-build complaining it can't find xar? I didn't add it to the dependencies or buildinputs.
<{^_^}>
[nixpkgs] @ambrop72 opened pull request #64945 → libglvnd, ocl-icd, vulkan-loader: Remove addOpenGLRunpath where not needed. → https://git.io/fj1Lc
<colemickens>
infinisil: I thought you could use a pure nix-shell with just a single package to check against the third kind of impurity?
<infinisil>
gchristensen: Ahh yes
npmccallum has quit [Quit: npmccallum]
detran has quit [Ping timeout: 248 seconds]
<rndd>
__monty__: I want to automate the process
<infinisil>
colemickens: That only prevents impurities in env vars
<infinisil>
colemickens: Not impurities in user files or so
<__monty__>
gchristensen: I'll make the change but I don't really see how that improves things? It just takes more code? Like I said, I only did it this way because it's how an example I found in nixpkgs did it.
<gchristensen>
it is simpler and more in-line with how other packages work
<gchristensen>
infinisil: but again, I think it is not the right thing to do over all. I don't know that wire should be packaged for darwin in nixpkgs
<infinisil>
colemickens: (And btw, you can start a nix-shell without any packages with `nix-shell -p` :))
<gchristensen>
especially if this is all it is doing
rsoeldner has joined #nixos
mexisme has joined #nixos
<infinisil>
__monty__: Just define the meta in a let in before both declarations, then `inherit meta;` in them
<infinisil>
No more code that way and cleaner expression
<__monty__>
gchristensen: From my understanding of the linux code it's not doing much more. That's not actually building anything either.
<infinisil>
gchristensen: I agree with __monty__ there
<gchristensen>
sure, but on NixOS there is no other option
<gchristensen>
on macOS there is a *better* option
<infinisil>
I think I'd still prefer a Nix version over messing with brew if I'm using macOS :P
terlar has joined #nixos
<terlar>
Anyone knows how to override an elpa package with a patch?
<rndd>
gchristensen: thanks 4 help =)
<infinisil>
__monty__: Shove the mkDerivation to the darwin/linux definitions directly
shandogs has quit [Ping timeout: 268 seconds]
<__monty__>
gchristensen: But howebrew doesn't give you the darwin-rebuild switch experience when setting up a new system. And like I said, I have vague plans to rewrite the expression to fetch the css/html/js and wrap it with electron. As per clever's suggestion.
<terlar>
I tried using the same way for the elpa package: jsonrpc = super.jsonrpc.overrideAttrs(attrs: { patches = [ ./emacs/patches/jsonrpc.patch ]; });
<terlar>
but the patch is not applied and there are no complaints
<infinisil>
alienpirate5: your first overrideAttrs doesn't take a function
<infinisil>
terlar: Hm yeah not much of a clue myself, the emacs packaging stuff is a bit ugly
rfold has quit [Ping timeout: 258 seconds]
<alienpirate5>
what does this mean?
mexisme has quit [Ping timeout: 268 seconds]
<terlar>
Ah, thanks anyways, I agree, a bit hard to wrap my head around it, I managed to patch it in emacs, but realized other packages are using the elpa one.
<alienpirate5>
so how do I do distributed cross builds?
<gchristensen>
just like distributed regular builds
<alienpirate5>
also*
Chiliparrot has quit [Ping timeout: 250 seconds]
<switchy>
hey all, looking for a hint about how to package this program... there's a c++ library that builds fine with a normal derivation, but there's a python subdirectory that's not incorporated in the main build system. should I just package this on its own (like, a separate buildPythonPackage that changes to the python subdirectory)
<switchy>
cool, I'll give that a go. thanks infinisil!
stites has joined #nixos
<infinisil>
:)
<__monty__>
infinisil, gchristensen: I just noticed I have been pushing commits with the wrong details : s Can I amend and force-push to my branch or should I leave it as is because of the PR?
<__monty__>
Talking about name/email.
<gchristensen>
you can force push
<infinisil>
^^
<gchristensen>
often preferred, even :)
mexisme has joined #nixos
civodul has joined #nixos
mexisme_ has joined #nixos
justanotheruser has joined #nixos
<aanderse>
anyone running fish shell? i have no idea when this started but i just typed in "history" and got an error about "less -R: command not found"
<aanderse>
across 3+ nixos stable machines
<aanderse>
:\
drakonis_ has joined #nixos
mexisme has quit [Read error: Connection reset by peer]
shandogs has joined #nixos
Jackneill has quit [Remote host closed the connection]
MmeQuignon has quit [Quit: WeeChat 2.4]
Ariakenom has quit [Quit: Leaving]
<__monty__>
aanderse: I get the same error.
<aanderse>
__monty__: thank you for confirming
<adisbladis>
aanderse: Indeed I see the same behaviour
<aanderse>
if either of you files an issue on github please do copy
<aanderse>
i probably wouldn't get around to doing so until tomorrow
<adisbladis>
aanderse: I'll investigate a bit first. If you create an issue can you cc me?
shandogs has quit [Ping timeout: 245 seconds]
<__monty__>
I'll go ahead and open an issue and mention you both?
<adisbladis>
__monty__: Sure :)
<aanderse>
__monty__ <3
<aanderse>
hmm... <3 __monty__
<{^_^}>
__monty__'s karma got increased to 6
<aanderse>
:)
rndd has quit [Ping timeout: 272 seconds]
virus_dave has quit [Quit: virus_dave]
<{^_^}>
[nixpkgs] @costrouc opened pull request #64952 → Fix 8 python packages in python-unstable → https://git.io/fj1ti
<pie_>
infinisil, so just to check that im getting this right, builtins_.pruviloj is a package named pruviloj that depends on self.prelude and self.base?
<infinisil>
pie_: Yup
<infinisil>
It is done a bit weirdly tbh
justanotheruser has quit [Ping timeout: 258 seconds]
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
shandogs has quit [Remote host closed the connection]
azdle has quit [Remote host closed the connection]
stepcut has quit [Remote host closed the connection]
jasongrossman has joined #nixos
<alienpirate5>
how do i build a package with a set version of auoconf/automake?
<pie_>
infinisil, im feeling smol brain but i think i want to refactor it once i actually figure out what _exactly_ is going on, or manage to structre stuf fsuch that i can iterate on it a few times
lambda-11235 has quit [Ping timeout: 248 seconds]
acarrico has quit [Ping timeout: 245 seconds]
<AtnNn>
alienpirate5: you can depend on a specific autoconf or automake, for example automake116x or autoconf213
<alienpirate5>
Ok
<alienpirate5>
The specific issue I'm having is that libasyncns refuses to build
pamplemousse has joined #nixos
<AtnNn>
How are you building it? On what platform?