<{^_^}>
[nixpkgs] @Infinisil pushed commit from @Frostman to release-19.09 « iperf3: fix compilation to support authentication creds »: https://git.io/JvTnZ
cosimone has quit [Ping timeout: 245 seconds]
Palpares has quit [Ping timeout: 240 seconds]
ambro718 has quit [Quit: Konversation terminated!]
<gchristensen>
anyone have a working shell.nix for hacking on ZFS?
Palpares has joined #nixos
<noonien>
can anyone point me to a project that uses nix to build multiple sub-projects?
<{^_^}>
[nixpkgs] @kalbasit pushed commit from @mdlayher to master « corerad: 0.1.4 -> 0.1.8 (#77848) »: https://git.io/JvTnh
<noonien>
exploring atm, but i'll be using nix to build a pretty big multi-language project, that also requires cross compilation, some projects need specific configuration values based on where they'll be deployed (not just target platforms, but different configuration values)
domogled has quit [Ping timeout: 268 seconds]
<noonien>
i'll have a few configuration-foo.nix for the most common builds though
Guest92090 has quit [Ping timeout: 272 seconds]
<noonien>
each language has its own dependency manager, build system, it gets tiresom
<evanjs>
infinisil: don’t worry, so was I, like for the duration of the PR 😂 I’d like to add the shell functions, too, though. Or rather, get hm to source them from the repo, etc
<infinisil>
I'm currently looking into extracting the shell functions from the source code
<infinisil>
With some sed magic :)
<noonien>
and i've tried most other build systems, from fac,tup to meson and bazel, each failing in different ways, i don't know why i haven't thought of nix earlier
waleee-cl has quit [Quit: Connection closed for inactivity]
<evanjs>
I mean we could just do that too haha. Sorta wish they were just in a resource file and `include_str!()`ed in the source but blah. I should make a PR for that...
jgeerds__ has quit [Ping timeout: 272 seconds]
<infinisil>
evanjs: Hm there doesn't seem to be a standard path for zsh functions to source
<clever>
lovesegfault: for most nixos systems, i dont, hydra is just configured to build from the channels, so things are pre-built, and i know if its going to work or not before i `nix-channel --update`
Guest92090 has joined #nixos
<lovesegfault>
I really need to set Hydra up...
kleisli has joined #nixos
<lovesegfault>
Idk why the hell I'm building with only 1 core on my aarch64 builder
<lovesegfault>
(by which I mean one job is using only one core)
<lovesegfault>
Is parallelize set to off for ghc?
<clever>
lovesegfault: what does `nix show-config | grep cores` report?
<lovesegfault>
clever: cores = 0
<clever>
then it will use whatever nproc reports, if enableParallelBuilding is set on the drv
<lovesegfault>
clever: Wait, should I have run that on my x86_64 host or on the aarch64 builder?
<clever>
on the builder
<lovesegfault>
Also 0 on the builder
<clever>
same answer then
<lovesegfault>
clever: enableParallelBuilding is not enabled, but is also not disabled
<notgne2>
looks like that actually failed to build, I'll double check with the minimal config to see if that works
gustavderdrache has quit [Quit: Leaving.]
<clever>
notgne2: how did it fail?
<notgne2>
lots of chained failures but I think `builder for '/nix/store/54fhgwxkvjp4bk9chfpj2mklc67lh9yv-compiler-rt-7.1.0.drv' failed to produce output path '/nix/store/9yz8dnwz88cyxfjcaa599i1nc7dlsimc-compiler-rt-7.1.0'`
<notgne2>
minimal builds fine
<notgne2>
maybe this is why there is no 32bit graphical ISO on the website
<clever>
notgne2: run `nix-store -r /nix/store/54fhgwxkvjp4bk9chfpj2mklc67lh9yv-compiler-rt-7.1.0.drv` to repeat that build
<clever>
notgne2: then you should see the real error more clearly
<clever>
notgne2: its only generating a $dev and not a $out
<clever>
notgne2: you should build the 64bit version, and see what is supposed to be in $out
kvda has joined #nixos
<notgne2>
`:b llvmPackages.compiler-rt` seems to give me both `dev` and `out`, however the `dev` path doesn't seem to exist
<clever>
notgne2: you need to build .dev too
<clever>
:b llvmPackages.compiler-rt.dev
dozn has quit [Quit: I'm probably just changing some settings or have had an outage, I'll be back soon.]
<clever>
when fetching from the binary cache, it can skip un-needed (or un-requested) outputs
kvda has quit [Client Quit]
<notgne2>
already tried that, it seems to give me the same 2 outputs
dozn has joined #nixos
<clever>
notgne2: try with nix-build -A instead?
<notgne2>
clever: I'm not sure how to do it with `nix-build -A` but I did `nix-build -E '(import <nixpkgs> {}).llvmPackages.compiler-rt.dev'` and it worked and gave me a working output
<notgne2>
so it builds both on 64bit just fine
<evanjs>
as before, adding myself to "inputs" seems to get my touchpad working again, but it's way too fast and scrolling is slow. No idea how it got in this state again. on 20.03 atm but I believe it happened with 19.09 as well
<CMCDragonkai>
are there lsinitrd or lsinitramfs in nixpkgs?
<simpson>
CMCDragonkai: I think that they are provided by dracut, which isn't packaged.
<CMCDragonkai>
Is there a reason why dracut isn't available in nixpkgs?
<simpson>
Because nobody's packaged it, probably. dracut isn't essential on non-Fedora, and NixOS usually doesn't have an initrd at all, AIUI.
<CMCDragonkai>
nixos doesn't have an initrd at all?
<evanjs>
there's an initrd haha
<evanjs>
boot.initrd.* options, etc
Palpares has quit [Ping timeout: 240 seconds]
<simpson>
Oh, nevermind, there's initrd. Not sure how we build it, but I don't think that we use dracut.
<CMCDragonkai>
it's just really small initrd
<CMCDragonkai>
it's built just using `nixpkgs/pkgs/build-support/kernel`
<CMCDragonkai>
which is just cpio and gzip
Palpares has joined #nixos
<simpson>
Ah, the classic tools. I haven't used Fedora in a while, but IIRC dracut provides not just tools *outside*, but also tools for *inside* the initrd. What are you working on?
<CMCDragonkai>
i want to modify the initrd
<CMCDragonkai>
and put stuff in it
<CMCDragonkai>
but i dont want the stuff to be inside the /nix/store
<CMCDragonkai>
so it has to be done outside the nix expression language
<simpson>
Aha, interesting.
<CMCDragonkai>
what would it take to package dracut then, or some alternative set of tools
<CMCDragonkai>
this is also one of their official repos
<CMCDragonkai>
they mirror between the kernel git and that
<lassulus>
what about boot.initrd.secrets ?
delli3_ has joined #nixos
<CMCDragonkai>
lassulus: that option doesn't exist?
<CMCDragonkai>
lassulus: even if it did
<CMCDragonkai>
it wouldn't change the problem
<CMCDragonkai>
it would end up in nix store
<lassulus>
In my understanding it would have just appended it to the initrd which resides on the /boot partition
<lassulus>
the option does exist, but its marked as internal
<lassulus>
but I never tested it
<CMCDragonkai>
how is that any different from `boot.initrd.prepend`
<lassulus>
I would have to guess, but maybe the stuff from prepend ends up in the store?
delli3 has quit [Ping timeout: 260 seconds]
<CMCDragonkai>
there used to be an autotools setup hook...
<simpson>
Hm. I'm reading stage-1.nix to try to grok it. I think that lassulus may be right; certainly a lot of effort appears to have been spent to *try* to not just copy the secrets into the Nix store.
<CMCDragonkai>
simpson: if that is true, then you could not use `./pathtosomething` but it would have to be like a string `"./pathtosomething"`
<CMCDragonkai>
otherwise nix evaluation will bring that stuff into it
<simpson>
Yeah, probably.
<gchristensen>
> toString ./.
<{^_^}>
"/var/lib/nixbot/state/nixpkgs"
<CMCDragonkai>
which bootloaders supports secrets?
<CMCDragonkai>
it says unless the bootloader supports it
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
<CMCDragonkai>
why would a bootloader not support secrets?
<CMCDragonkai>
attempting to package dracut... requires patchShebangs on its configure script, it's not autotools, also requires pkg-config, but cannot find `libkmod`
<CMCDragonkai>
Perhaps you should add the directory containing `libkmod.pc'
<CMCDragonkai>
Package libkmod was not found in the pkg-config search path.
<CMCDragonkai>
to the PKG_CONFIG_PATH environment variable
<CMCDragonkai>
No package 'libkmod' found
<CMCDragonkai>
dracut needs pkg-config and libkmod >= 23.
<Ankhers>
I am trying to build something and I am getting an error about not being able to find libclang.so. Fair enough, I make a shell.nix with stdenv.mkDerivation and pass llvmPackages.libclang into the buildInputs. I enter the nix-shell and when attempting to build it, I still get the error that it is unable to find libclang.so. The error says I can use LIBCLANG_PATH variable to point to it, but I really do not know how to do that with a nix
<Ankhers>
shell. And do I really need to do something like that?
<NoctisLabs>
So when a package is installed as a user in configuration.nix, where do I view their place on the filesystem? Basically looking for the user version of /run/current-system
<NoctisLabs>
I think I found it, /etc/profiles/per-user?
<{^_^}>
[nixpkgs] @CMCDragonkai opened pull request #77868 → WIP: dracut: init at 049 → https://git.io/JvTBT
<keithy[m]>
when building in nix repl no output of the build is shown. It is suggested that nix-store -r does show output of build, but it doesnt either, I know it is in the logs, but home all the docs are wrong?
<keithy[m]>
including nix-store --help
tcecil has quit [Remote host closed the connection]
<{^_^}>
nix-pills#106 (by willbush, 48 weeks ago, open): pill 7.2: declare -xp shows no ouput in nix repl
<keithy[m]>
* when building in nix repl no output of the build is shown. It is suggested that nix-store -r does show output of build, but it doesnt either, I know it is in the logs, but howclme all the docs are wrong?
<keithy[m]>
* when building in nix repl no output of the build is shown. It is suggested that nix-store -r does show output of build, but it doesnt either, I know it is in the logs, but how come all the docs are wrong?
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xensky_ has quit [Ping timeout: 252 seconds]
ebzzry has quit [Ping timeout: 240 seconds]
xensky_ has joined #nixos
drakonis has quit [Quit: WeeChat 2.6]
ebzzry has joined #nixos
<{^_^}>
[nixpkgs] @tbenst opened pull request #77874 → <!-- Nixpkgs has a lot of new incoming Pull Requests, but not enough people to review this constant stream. Even if you … → https://git.io/JvTRo
<fgaz>
I too would like the default to be 8.8 but I guess there's a reason it's still 8.6
<dminuoso>
fgaz: I dont quite fully understand how the haskell ecosystem in Nix works yet, somehow I thought that the user-usable GHC would be different..
<dminuoso>
And the more I think about it, there's absolutely no reason it should be.
<fgaz>
nah, it mostly works the same as other distros if you only install cabal+ghc from nix
philr has joined #nixos
<fgaz>
if you want to use nix for haskell libraries too then it's another story
<olmer>
I need help with installing grub to my efi partition. I had this working before, but I lost the related configuration files. All it does right now is fail to find the disk.
<olmer>
If I run strings on EFI/NixOS-efi/grubx64.efi near the end it trees to a search.fs_uuid to a nonexistent UUID.
<olmer>
I have a feeling it should be installing a grub folder onto that partition and that uuid should be of that eff partition. Right now I am booting up via a live USB on unstable and am using nixos-install to test my changes.
<{^_^}>
[nixpkgs] @colemickens opened pull request #77883 → home-assistant: upgrade to 0.104.1, add support for zwave/zha adapters, add various python modules for components → https://git.io/JvTE7
<{^_^}>
[nixpkgs] @colemickens opened pull request #77884 → plex-mpv-shim: init at 1.7.0 → https://git.io/JvTE5
<ramses_>
Hey guys, I'm having a system which has issues mounting the root fs. Is there a way to get to an initramfs shell to debug the issue? I thought on other distros that in this case you get dropped into one automatically
<ramses_>
I get the prompt asking to type "r" or "*" to either reboot or retry. Retrying obviously doesn't help
<__monty__>
I was gonna suggest adding `init=/bin/sh` to the kernel line but that's not gonna help without `/` : s
<wedens[m]>
there is also `single` for single user mode (not sure how/if it works without root though)
<makefu>
__monty__: it may even work, because /bin/sh is already available in initrd
<wedens[m]>
my preferred solution to such problems is to use live usb and sort it out there
o1lo01ol1o has joined #nixos
<__monty__>
makefu: Ah, TIL. I have no idea how booting works tbh. I know clever talked me through a kernel issue using sh as init though.
<ramses_>
wedens[m] I would prefer a live usb too, but I don't have physical access... I am exploring my options. I don't even know what's the issue at this point, I'll have to debug it by given instructions over the phone to a network admin without linux skills...
<ramses_>
I will look at the different options given here and see where it leads me, thanks!
inferencerules has joined #nixos
<__monty__>
ramses_: Oof, speaking from experience that's gonna be *really* hard.
<tilpner>
ramses_: I don't want to lead you in the wrong direction, but perhaps you can build a live system and instruct the network admin to write it to a usb drive and boot the server off of it?
<tilpner>
ramses_: The live system would come with ssh preconfigured for your key, and you could have a look around yourself, as opposed to infuriating debugging-via-phone
<ramses_>
tilpner: you have any guide on how to do this? That would be a very interesting option
<ramses_>
Can I do this starting from a configuration.nix file?
<tilpner>
ramses_: Again, if you see an easier way to do this, feel free to ignore me. If NixOS is your hammer, some screws begin to look like nails :/
<tilpner>
I'll check for docs, but yes, you start with a configuration.nix
<tilpner>
Ideally, you can reuse the current config, if you had NixOS installed on it previously. If the network config is tricky, you need it to work on the first try
nakkle has quit [Ping timeout: 240 seconds]
<tilpner>
I hope the server has a public ipv4 address, that would make things easier for you
<ramses_>
tilpner no I like this idea! I didn't know this could be easily done
<tilpner>
You probably want to verify the ISO with at least a VM before sending it over
<ramses_>
We don't have public IPs but we use reverse ssh tunnels to access our server. I can just include our current modules in the live disc though and it should work
<DigitalKiwi>
(instructions applicable in numerous instances)
<tilpner>
DigitalKiwi: If you are suggesting themelios for ramses_s problem, what advantages would it have over building an ISO as described in the wiki link above?
<tilpner>
(I don't see any, but I'm not familiar with themelios)
<DigitalKiwi>
the second link is probably what's in the wiki
<tilpner>
It's fairly close
<keithy[m]>
I am working on using NixPkgs on top of Fedora CoreOS, the latter being self updating, might that be a useful option?
<keithy[m]>
The installation (including disk formatting) is specified using an ignition file (instead of confiuration.nix) which is embeddable in an iso for installation on bare metal. (FCOS went stable 2 a few days ago)
xkapastel has quit [Quit: Connection closed for inactivity]
<DigitalKiwi>
if you want
<lucc>
Hello people! I am trying to configure a regular backup with rsync in a systemd unit via systemd.user.services. Currentlý I have systemd.user.services.backup = { script = "/my/rsync/script.bash"; path = with pkgs; [bash rsync openssh x11_ssh_askpass];};
Guest92090 has quit [Ping timeout: 272 seconds]
<the_pumpkin_man[>
Hello, I am trying to get dnscrypt-proxy work on NixOS, so I just enable the service in the configuration.nix and reboot. Problem : it isn"t working because I got this weird error in the dnscrypt-proxy's logs : `[INFO] [INFO] Refetching server certificates[ERROR] Suspicious certificate received
<the_pumpkin_man[>
7 11:44:52 2020 [ERROR] No useable certificates found
<the_pumpkin_man[>
[ERROR] No useable certificates found
<the_pumpkin_man[>
[ERROR] Suspicious certificate received
<the_pumpkin_man[>
* Hello, I am trying to get dnscrypt-proxy work on NixOS, so I just enable the service in the configuration.nix and reboot. Problem : it isn"t working because I got this weird error in the dnscrypt-proxy's logs : `[INFO] [INFO] Refetching server certificates
<thelounge61>
Hello everybody! I'm trying to get Nixos 20.03 up and running on a Dell XPS 7390, there seem to be some issues with hardware video acceleration. Apps that use it (vscode, chrome e.g.) rarely update themselfes. Anybody heard of that?
Chiliparrot has joined #nixos
orivej has joined #nixos
<the_pumpkin_man[>
thelounge61: NixOS 20.03 ? Are you coming from the future ?
<dalto5>
So....I am trying to install vivaldi with codecs and widevine support. I took a look at the default.nix for the package and it looks like it supports that via setting. I looked at some sample configuration.nix files to see how this might be done. I tried this in my configuration.nix: https://pastebin.com/raw/w2B2R3BL but that didn't work. Can
<dalto5>
wedens[m] I tried that first, but wasn't sure how to use it in context. If I put that in inside of the systemPackages list I get an error that the entry is not of type packages. If I put it outside, I get a syntax error.
<dalto5>
I have another beginner question I have been struggling with. When there is two versions of the same application installed it creates a collision. If I want to explicitly make one version "win" the collision, is there a way to do that?
<dalto5>
When you have two packages with the same name installed from two different channels.
<wedens[m]>
install only one of them then? :)
fendor has quit [Ping timeout: 265 seconds]
<dalto5>
What do you do when one of them is pulled in as a dependency from another package/service?
ddellacosta has joined #nixos
<wedens[m]>
it shouldn't cause any conflicts (most of the time). do you have any specific example?
lucc has quit [Quit: WeeChat 2.6]
<dalto5>
I think last time it happened when was I wanted to try the version of kodi from nixos-unstable but something was bringing kodi in from 19.09. I ended up with both installed.
fendor has joined #nixos
<wedens[m]>
you probably enabled kodi service from default channel and explicitly installed kodi package from ustable
<wedens[m]>
in this case you should use overlay to make service use kodi from unstable
<dalto5>
OK, I will try that next time the situation arises. Thanks again for the advice!
waleee-cl has quit [Quit: Connection closed for inactivity]
dalto5 has quit [Remote host closed the connection]
ixxie has quit [Ping timeout: 268 seconds]
ixxie has joined #nixos
ixxie has quit [Ping timeout: 268 seconds]
domogled has quit [Ping timeout: 258 seconds]
eoli3n has joined #nixos
fendor has quit [Ping timeout: 268 seconds]
eoli3n_ has joined #nixos
justanotheruser has quit [Ping timeout: 240 seconds]
sigmundv has quit [Read error: Connection reset by peer]
sigmundv has joined #nixos
wavirc22 has joined #nixos
fendor has joined #nixos
myskran has joined #nixos
brano543 has joined #nixos
<brano543>
Hello. Can anyone help me with generating systemd files on non-nixos distribution? I would like to get systemd service file automatically generated for Postgresql.
<brano543>
wedens[m]: what I need to achieve is that the service files get automatically generated and placed to system directories so that systemctl can find it. I wanted to automate this step.
mmlb has quit [Ping timeout: 258 seconds]
mmlb has joined #nixos
<Ankhers>
Does anyone know how I can get libclang into a nix shell? Just adding llvmPackages.libclang to stdenv.mkDerivation's buildInputs does not seem to work.
human is now known as Enzime
<LnL>
that should work
<DigitalKiwi>
have you had this problemf or like a day or was that someone else
<LnL>
or clang-unwrapped.lib
<simpson>
Ankhers: Which stdenv were you using again? Was this a GCC-and-clang situation, or did you want a clang-only stdenv?
<Ankhers>
simpson: I'm fine with clang-only, but clangStdenv also does not seem to work. I had it working (accidentally) at one point because I installed llvmPackages.libclang using home manager and adding LD_LIBRARY_PATH to my rc file. Once I removed it, it stopped working.
<LnL>
whatever you're using might just be looking in the wrong place, since --prefix for clang.out and clang.lib are different
<simpson>
Oh, interesting. I bet that there's some Rust-specific things that can be done to make this easier.
<LnL>
have you tried the LIBCLANG_PATH?
<LnL>
problem is that llvm-config --prefix = clang.out not clang.lib
siiky has joined #nixos
prasket has joined #nixos
<LnL>
actually it's llvm not even clang
prasket has left #nixos [#nixos]
<Ankhers>
I don't really know how to set LIBCLANG_PATH here without doing it manually. There must be a way to do it from my shell.nix?
justanotheruser has quit [Ping timeout: 268 seconds]
f0x has quit [Ping timeout: 240 seconds]
joepie91 has quit [Ping timeout: 268 seconds]
<Ankhers>
DigitalKiwi: Unfortunately that was me.
<LnL>
Ankhers: just add LIBCLANG_PATH = "${libclang}/lib";
<LnL>
or the full path to the .so, depending on what it needs
Tucky has quit [Quit: WeeChat 2.7]
<Ankhers>
LnL: That did it. Thank you so much!
<o1lo01ol1o>
I'm getting Aborted: foo.nar file does not exist in binary cache in hydra
<o1lo01ol1o>
what execatly would be telling the queue-runner to look for foo.nar?
<o1lo01ol1o>
(it doesn't exist in the cache)
hyper_ch2 has quit [Remote host closed the connection]
justanotheruser has joined #nixos
<__monty__>
Hmm, what do I pass to nix-store -qR? If I pass a tab-completed path from my store I get "path ... is not valid."
drakonis has joined #nixos
<buckley310>
does nixos-unstable take zfs snapshots during upgrades now?
<infinisil>
buckley310: Nope
<gchristensen>
buckley310: what makes you ask that?
<infinisil>
Well, I didn't check, but I'm 99.9% sure the answer is no
<gchristensen>
seems like that one would require an RFC :P
<buckley310>
i have a few random snapshots i didnt take.
<buckley310>
names are just 64 random hex characters
<gchristensen>
can you show us `zfs get all dataset@snapshot`?
<the_pumpkin_man[>
```[INFO] Refetching server certificates[ERROR] Suspicious certificate received [ERROR] No useable certificates found```
<the_pumpkin_man[>
* Hello, I am trying to get dnscrypt-proxy work on NixOS, so I just enable the service in the configuration.nix and reboot. Problem : it isn't working because I got this weird error in the dnscrypt-proxy's logs :
<buckley310>
oh wait, im dumb, they are subvolumes, not snapshots.
<aanderse>
haven't put any thought into this yet, but decided someone in here may have done the same thing so i'd ask first: any good way to keep nixops target machines channels in sync with nixops master servers channel?
<infinisil>
aanderse: (replace ../external/nixpkgs with <nixpkgs>)
<buckley310>
looks like maybe podman or docker created the volumes....
<aanderse>
infinisil: yeah, that looks great. thanks!
drakonis has quit [Ping timeout: 248 seconds]
<jonreeve[m]>
Is it possible to have both Python and Haskell packages in the same environment? I can build a Python environment with pkgs.python3.buildEnv.override, and I can build a Haskell environment with `pkgs.stdenv.mkDerivation { ... shellHook = "eval $(egrep ^export ${ghc}/bin/ghc)";`, but how can I combine the two?
<infinisil>
jonreeve[m]: Look into pkgs.mkShell with the inputsFrom argument
<simpson>
jonreeve[m]: If you use python.withPackages, you can build a Python package and put it in the same environment as your Haskell derivation. Then put the shellHook on top.
<simpson>
...Also, what infinisil said; I don't know mkShell but it looks useful.
<the_pumpkin_man[>
Oh ok, thanks, then I gonna wait for it being updated, if it happens some day
brano543 has quit [Remote host closed the connection]
nakkle has quit [Ping timeout: 272 seconds]
laikq has joined #nixos
<{^_^}>
[nixpkgs] @FRidh pushed 236 commits to staging-next: https://git.io/JvTPF
<infinisil>
jonreeve[m]: Oh nevermind, you're forgetting some ()'s
<infinisil>
> :p [ lib.id 10 lib.id 20 ]
<{^_^}>
[ <LAMBDA> 10 <LAMBDA> 20 ]
<infinisil>
> :p [ (lib.id 10) (lib.id 20) ]
<{^_^}>
[ 10 20 ]
<infinisil>
But still, always post the error
<jonreeve[m]>
Hm it's `error: value is a function while a set was expected, at /nix/store/3ncjqs079xp7isfxsq2rfbsxhrk0ax3n-nixpkgs-20.03pre203529.e8f2764fe8d/nixpkgs/pkgs/build-support/mkshe
<jonreeve[m]>
ll/default.nix:14:40`
<jonreeve[m]>
Which seems strange to me, since that's an error in nixpkgs, right? And not my shell.nix?
<infinisil>
See what I wrote above
<schmittlauch[m]>
Looks like the 19.09 channel is broken again, it hasn't advanced for 3 days.
<jonreeve[m]>
Do you know where I'm missing parens?
<fgaz>
So _that's_ why java games based on it aren't in many distros
<gchristensen>
should probably drop it and punt it to AUR
<jonreeve[m]>
infinisil: What's strange is that this shell build succeeds, and drops me into a shell, but then I can't import any package, e.g. `import Control.Lens` in Haskell, or `import colormath` in Python. https://gist.github.com/JonathanReeve/98dc517ef74ba0ed6323eea524bc67fe
<fgaz>
Well, other than the fact that gradle's an absolute nightmare
drakonis has joined #nixos
<infinisil>
jonreeve[m]: Oh, haskell does its thing with .env
<infinisil>
jonreeve[m]: Try using (haskellPackages.ghcWithPackages ...).env instead
<infinisil>
schmittlauch[m]: Not sure, but I think it shouldn't take long for the channel to be updated now
<aanderse>
infinisil (@freenode_infinisil:matrix.org): well just the environment.etc.nixpkgs.source should be copying it over
<amanjeev>
I have a weird issue. I have two machines running NixOS same version. My config is identical except for the "hardware-configuration" of course. which means that I have same git package installed on both machines. But on one machine "git send-meail" works and on the other I get "no such command" error from git.
<infinisil>
aanderse: Ohh, yeah I think that doesn't work because the path to a channel is just /nix/var/nix/profiles/per-user/root/channels or so
<aanderse>
the path is copied as a string, but the actual path was not copied
<Taneb>
amanjeev: I presume you mistyped "git send-email" only in your message and not either of the two machines?
<infinisil>
aanderse: Yeah, so try removing the toString
<infinisil>
Though not sure if that actually helps
<infinisil>
aanderse: Or alternatively use `source = <nixpkgs>` directly, or `source = "${<nixpkgs>}"`. One of those *has* to work! (I think)
chloekek has quit [Quit: WeeChat 2.6]
<infinisil>
jonreeve[m]: Only use .env for the haskell one, not the python on
<infinisil>
e
<infinisil>
jonreeve[m]: Oh and your parens are wrong
<infinisil>
jonreeve[m]: It should be (haskellPackages.ghcWithPackages (ps: with ps; [ lens ] )).env, not (haskellPackages.ghcWithPackages (ps: with ps; [ lens ] ).env)
erasmas has joined #nixos
<jonreeve[m]>
infinisil: It tells me `attribute .env missing` when I try that
<infinisil>
(you can't access attributes of a function after all, (ps: ...) is a function)
lsix has quit [Quit: WeeChat 2.6]
<jonreeve[m]>
(With `(haskellPackages.ghcWithPackages (ps: with ps; [ lens ] )).env`)
<infinisil>
Oh, that's stupid of me, those are packages themselves, not things one would put in a shell.nix
<infinisil>
jonreeve[m]: Okay scratch that .env again and replace `inputsFrom` with `buildInputs`
<infinisil>
Would've been as simple as that
<jonreeve[m]>
infinisil: Sweet! It works! Thanks!
<infinisil>
Phew! :D
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<infinisil>
The inputsFrom you'd use if you have two nix-builds for two packages and you want an environment where you can build both of them
<amanjeev>
Taneb: Sorry I mistyped it here on IRC. "git send-email" is what I use on both machines.
<kalbasit>
gchristensen: I'm not sure I understand how does he serve it via HTTPS though
<kalbasit>
if I do *whatever* domain instead of cache.nixos.org
<kalbasit>
the signature will not be valid, am I assuming correctly?
<gchristensen>
sorry, I can't look in to that now
<kalbasit>
gchristensen: no worries
<kalbasit>
maybe someone else has setup a local cache proxy for cache.nixos.org?
<kalbasit>
https://nixos.wiki/wiki/FAQ/Private_Cache_Proxy does not go far enough to say what the hostname of the server fed to --binary_caches and how to get signature to be verified correctly.
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JvTyz
<rnhmjoj>
do you have any idea why nix would not be using remote builders for some specific derivation?
<qyliss>
is it marked preferLocalBuild?
<symphorien>
System features ?
<rnhmjoj>
qyliss: i don't think so. it's (an overrriden) wine
<aanderse>
<infinisil "aaron: Or alternatively use `sou"> exactly what i thought too. until i tried them all. and none worked. so then i mentioned to you in hopes you know more than i do on the matter :)
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JvTyQ
<Shouou>
How am I supposed to specify dependencies with haskell.lib.buildStackProject? Do I still pass in a ghc.withPackages? Do I add ghc as an argument that stack passes in, which maybe has the appropriate libraries? Something else? I assume not buildInputs.
<pikajude>
thanks LnL
<pikajude>
where did that go in master?
<aanderse>
oh yeah maybe they split the nixops backends into a different repo or something at some point?
<LnL>
pikajude: dunno, it's gone
<pikajude>
wack
mexisme_ has joined #nixos
ee194350 has quit [Ping timeout: 272 seconds]
<LnL>
ah "Deletion of files to be moved to other repos" sounds promising
<pikajude>
i wonder where it got moved
ee194350 has joined #nixos
<aanderse>
yeah there was that talk about splitting out the backends
tpanum has quit [Read error: Connection reset by peer]
meh has joined #nixos
tpanum has joined #nixos
meh has quit [Remote host closed the connection]
multipkg has joined #nixos
janneke has quit [Quit: janneke quits Mes'sing]
civodul has joined #nixos
janneke has joined #nixos
tjg1 has quit [Quit: DON'T KEEP CALM AND FUCK THIS. FUCK THAT. FUCK YOU. FUCK OFF.]
Forkk has joined #nixos
zupo has joined #nixos
tjg1 has joined #nixos
janneke_ has joined #nixos
janneke has quit [Read error: Connection reset by peer]
tjg1 has quit [Client Quit]
tjg1 has joined #nixos
Guest92090 has joined #nixos
drakonis has joined #nixos
kolaente_ has quit [Quit: WeeChat 2.6]
vidbina_ has joined #nixos
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
<ngyj>
I have a program I build with a simple makefile and gcc (called with buildPhase), there's one external dependency (cryptopp, a c++ library). Compiling isn't a problem, but I can't run the binary because it can't find the .so (I also checked with ldd, and indeed it can't find it). Am I supposed to patchelf it myself or is this some other way with nix to manage this? On nixpkgs, most programs that depend on cryptopp don't seem to do anything special...
leotaku has quit [Ping timeout: 272 seconds]
bvdw has quit [Quit: bvdw]
bvdw has joined #nixos
chloekek has joined #nixos
multipkg has quit [Ping timeout: 260 seconds]
leotaku has joined #nixos
socksy has joined #nixos
<socksy>
hi, I would like to update my nix system with `nixos-rebuild switch --upgrade`, but tdesktop (telegram) is failing to build. Is there any way I can get it to skip telegram but keep the binary i have currently?
<jeaye>
Every time I start a nix shell, I see `bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)`. Any quick fix for that?
mDuff has joined #nixos
<socksy>
i would normally just keep the one on my use profile installed with `nix-env -iA`, but that's obviously failing too rn :\
<ajs124>
socksy: you can nix-env -i it from a nixpkgs checkout of when it was working
<socksy>
ajs124: exactly what I was thinking, but the weird thing is that it hasn't actually changed since november, and I have that version. There's no binary cache so it's trying to build it again from scratch
<ajs124>
you can find the failing commit with git bisect run, if noone has done that yet
justanotheruser has quit [Quit: WeeChat 2.6]
<socksy>
you mean to fix the package?
<socksy>
or to run the same package build process with an older, working commit?
<ajs124>
to find a working commit. or rather, to find the commit that broke the build
<socksy>
but I'm not sure if that's what you're meaning
domogled has quit [Client Quit]
<ajs124>
That commit gives me /nix/store/dmh77g0wd37grnysmd0h72jmqqi40mjm-telegram-desktop-1.8.15, same as master. Which makes sense, because unstable shouldn't be too far behind master.
philr has joined #nixos
<socksy>
so, perhaps I could add e.g. the stable release to my nix channels, nix-env -iA stable.tdesktop, and it should work?
<socksy>
(sorry I am of course trying it out, but trying to get a working mental model)
<socksy>
ok that at least seems to be downloading stuff from cache.nixos.org, which is a good sign
<emily>
I'm trying to find a Nix autoformatter I vaguely remember being linked on IRC a while ago; so far I've found nixfmt, canonix, format-nix, and nixpkgs-fmt, of which none sound like the name I can remember.. did I just hallucinate it or does anyone know of another option I'm not aware of?
o1lo01ol1o has joined #nixos
<gchristensen>
nix-community's nixpkgs-fmt is pretty great
<adisbladis>
Indeed it is <3
<noonien>
hello!
<adisbladis>
\o
<noonien>
i've got a rpi3, on which i have ubuntu, and nix installed
<noonien>
i want to run in a nix-shell for which i have a shell.nix
<noonien>
is it possible to build the neccesary packages on my computer and then move copy the derivations to the rpi?
<erictapen>
noonien: hey, yes it is, but you'd need to cross compile, as your computer probably doesn't have the same architecture as your rpi.
ngyj_ has joined #nixos
<noonien>
yes,, i do
<noonien>
nixpkgs has the target in pkgsCross afaik
<noonien>
but i don't know how to put them together
<adisbladis>
noonien: Building things native ie non-cross results in different hashes than cross-built packages
<noonien>
oh, right, because it's a different stdenv :(
<noonien>
hmm, even building it in qemu might be faster than the actual rpi
<adisbladis>
noonien: Though once you've cross-built you can just run `nix copy` on the store path
<noonien>
yes, but how would i use those derivations in a nix-shell on the rpi?
<erictapen>
noonien: I can't think of a way where nix-shell works with cross-built packages, but you could still run the programs, so maybe there is another way for you to put the copied store path in your PATH?
<noonien>
except hardcoding the actual nix store pathhs :D
<clever>
noonien: if your running nix-shell on the rpi, and doing arm development, it will want a native built copy, not a cross-built copy
<noonien>
yeah, as erictapen suggested, that makes sense
<noonien>
is it possible to use qemu?
<noonien>
are there any tools to help? i don't mind setting up qemu myself, but would rather not
<{^_^}>
[nixpkgs] @matthewbauer pushed 4 commits to master: https://git.io/JvTbS
<erictapen>
noonien: and regarding a possible solution without qemu (afaik compiling on qemu will be very slow): I'd replace nix-shell with a buildEnv built on my laptop. this way you only need to put one store path in your PATH and can still use multiple programs.
<noonien>
hmm, interesting
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #76349 → shellFor: Refactor for consistency and cross → https://git.io/JeFPz
<noonien>
hmm, this takes me back to cross-compiling a shell.nix
<erictapen>
sort of
<noonien>
afair nix-build had some options to use pkgsCross
<noonien>
so i don't have to make a special .nix
<erictapen>
noonien: mh I don't think nix-build knows anything about cross compiling. that is logic that lives in nixpkgs.
<noonien>
hmm, actually, yeah, you are right
<noonien>
i think i can figure it out, thank you!
<erictapen>
noonien: you're welcome
ambro718 has quit [Quit: Konversation terminated!]
mexisme_ has joined #nixos
lorimer has quit [Read error: Connection reset by peer]
lorimer has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
mexisme_ has quit [Ping timeout: 268 seconds]
iz16 has quit [Ping timeout: 246 seconds]
iz16 has joined #nixos
chloekek has quit [Ping timeout: 268 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Raito_Bezarius>
Is there any way to perform a merge between two source directories which are derivations results?
<NoctisLabs>
I'm having a problem, when I install fluid-soundfont my applications aren't seeing it - and I'm not seeing it either in /run/current-system/sw.
remirol has joined #nixos
<NoctisLabs>
I'm kind of a NixOS noob so I'm probably missing something simple, but this used to work last I tried ~4 months ago.
ixxie has joined #nixos
lorimer has quit [Ping timeout: 268 seconds]
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
v0|d has joined #nixos
<AmandaC_>
4Are you adding it to environment.systemPackages or `nix-env -i`?
ashkitten has quit [Quit: WeeChat 2.4]
cosimone has quit [Quit: Quit.]
myskran has quit [Ping timeout: 240 seconds]
<NoctisLabs>
I tried systemPackages first, and then nix-env. So it's on both right now.
Rusty1 has quit [Remote host closed the connection]
<Raito_Bezarius>
Hmm, is there any way to have a local build cache directory for nix-build invocations?
kleisli has quit [Ping timeout: 258 seconds]
<NoctisLabs>
I see it in /home/nix/.nix-profile/share/soundfonts