gustavderdrache has quit [Ping timeout: 264 seconds]
Acou_Bass has quit [Ping timeout: 265 seconds]
lawr3nce has joined #nixos
lawr3nce has quit [Remote host closed the connection]
never_released_ has quit [Quit: ZNC 1.7.5 - https://znc.in]
never_released has joined #nixos
MmeQuignon has quit [Quit: WeeChat 2.8]
Acou_Bass has joined #nixos
<jlv[m]>
I want to refer to the directory containing default.nix, but the actual directory. If I use `./.`, I get a Nix store copy of the directory. Is this possible?
<energizer>
jlv[m]: the directory path at evaluation time?
<jlv[m]>
energizer: I suppose. It's mostly for `nix-shell`.
<emilsp>
I'm seemingly failing to build an alsa module or some firmware stuff - /nix/store/hrpvwkjz04s9i4nmli843hyw9z4pwhww-bash-4.4-p23/bin/bash: ./tobin: cannot execute binary file: Exec format error. I'm trying to cross-compile for the raspberry pi 4, and I've already disabled sound - I'm not sure what else should I do to not build this or resolve the issue
<gchristensen>
energizer: nix declares an invariant that for every artifact in the cache, that same cache has every dependency
proofofkeags has joined #nixos
<energizer>
gchristensen: i wonder how he'll do it then. he posted "Going to implement this in a few weeks" at the bottom
<gchristensen>
not sure, it's been a few more than a few weeks -- maybe he ran in to trouble
proofofkeags has quit [Remote host closed the connection]
<energizer>
i think we're still within the open-source-time-dilation "a few weeks"
proofofkeags has joined #nixos
<gchristensen>
domen + cachix is proprietary, though tbh in OSS if I see "in a few weeks" I usually assume it isn't happening
<energizer>
hahah :D
<gchristensen>
that isn't a dig on anyone or anything, just that typically in OSS either insiration struck now or it didn't, and a few weeks doesn't help
Arahael has quit [Ping timeout: 256 seconds]
thc202 has quit [Ping timeout: 256 seconds]
<energizer>
i'll just have to see if it gets done before i'm done uploading texlive...
Arahael has joined #nixos
<energizer>
tbh cachix push seems to be going quite slowly
bhipple has joined #nixos
proofofkeags has quit [Ping timeout: 260 seconds]
<energizer>
is there another way to get this build from remote to local? rsyncing /nix/store seems ridiculous but if that's my best option i'll do it
<energizer>
services.nix-serve.secretKeyFile i guess
<clever>
thats only if your using nix-serve
<clever>
which wont interact with `nix copy` at all
<energizer>
oh
<energizer>
so just nix.extraOptions then
bhipple has joined #nixos
m0rphism has quit [Ping timeout: 264 seconds]
<clever>
yep
<clever>
and then the public has to go into the trusted-public-keys on the receiver (dont use extraOptions for that one)
felschr[m] has joined #nixos
wnklmnn has quit [Quit: Leaving]
drisc has left #nixos ["WeeChat 2.8"]
<energizer>
can i run system commands at eval time?
<jlv[m]>
Does `nixops mount` work for anyone else? It keeps giving me "no such file or directory" errors, but I'm pretty sure I have the mount path right.
<emilsp>
oh, the alsa-firmware woes are fixed in master. Seemingly, a build tool was compiled for the target arch and not the build arch. Now to figure out how to splice the alsa-firmware from master into the rest of my build
<simpson>
How should I structure a package which ships a single (Mercurial) repo per source module, but in practice needs at least a half-dozen of these repos to build anything?
<simpson>
I started out with the idea of one file per derivation per invocation of fetchhg, but it seems to be a lot easier to keep everything in one file and write a helper function to build each piece.
<evils>
simpson: if most are built the same way, that seems sensible, here's something similar done https://git.io/JfDTn
<simpson>
evils: Yeah, definitely, that sort of situation. Thanks.
<simpson>
evils++
<{^_^}>
evils's karma got increased to 8
<hexa->
,locate festival
<{^_^}>
Found in packages: speechd, lilypond, asterisk_13, asterisk-lts, asterisk-stable, lilypond-unstable, lilypond-with-fonts
<drakonis>
,locate ping
<{^_^}>
Found in packages: axis2, cjdns, grass, irssi, toybox, busybox, iputils, charybdis, inetutils, ircdHybrid, factor-lang, silc_client, bashCompletion, home-assistant, unixtools.ping, nodePackages.gtop
<evils>
,locate pong
<{^_^}>
Found in packages: charybdis, ircdHybrid, factor-lang, xscreensaver
<infinisil>
,locate bin ping
<{^_^}>
Found in packages: toybox, busybox, iputils, inetutils, unixtools.ping
<infinisil>
I should maybe make the bot display "Found the ping binary in packages foo bar, found other ping files in packages baz qux"
davidv7 has quit [Ping timeout: 256 seconds]
proofofkeags has joined #nixos
<jlv[m]>
Is there a reason `man nixops` doesn't mention the `nixops scp` command? Is it not finished, or is the manual just missing it?
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
<clever>
jlv[m]: probably just missing from the manual
<fragamus_>
does someone have a docker image of a nix-serve server that acts as a proxy for the official nix cache
<fragamus_>
like it would receive requests and if there is a local cache hit then it serves that but if there is no hit it passes the request to the official server and caches the result
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
<{^_^}>
[nixpkgs] @zowoq opened pull request #89784 → various packages: add myself as maintainer → https://git.io/JfDqj
leungbk has quit [Remote host closed the connection]
sheepfleece has joined #nixos
Chiliparrot has joined #nixos
<sheepfleece>
Hello! I've tried home-manager recently, and my whole config file looks something like this: https://paste.debian.net/1150870/ . And I don't really know how to abstract over the pattern. Essentially I just want Nix to take every file in my folder and link it to ~/.config (or ~)
<angerman>
Ericson2314: if we could get that sjlj stuff merged (and into 20.03) that would be cool! Would prevent me from needing to run custom 20.03 branches.
<sheepfleece>
Can it be abstacted somehow?
<angerman>
Ericson2314: we are using it in github.com/input-output-hk/rust-libs.nix (which uses github.com/input-output-hk/rust.nix).
<Ericson2314>
angerman: sorry was mid leaving some comments while wresting with my gf's mac for reinstalling nix on catalina
<{^_^}>
[nixpkgs] @zowoq opened pull request #89786 → ffmpeg-full: inherit src/version from ffmpeg → https://git.io/JfDYP
<Ericson2314>
OK merged
<Ericson2314>
maybe comfirm for me everything still works after the reshuffle? and then I'll backport tomorrow
<Ericson2314>
That project should get us through the intensional store if all goes well, after which the recursive graph planning is doable, which I really hope will help everyone use the language stuff better
<Ericson2314>
(like subsume IFD and work with regular nixpkgs)
<angerman>
Let's make IFDs painless. That's something I'd really like to see.
<Ericson2314>
so my old dream might finally be on the way
<angerman>
haskell.nix does a lot of materialization to work around that right now, and while it's mostly automated, I dislike it needing to be there in the first place.
<Ericson2314>
we have path/to/drv!output today to mean build that drv and get me this outoutput
<Ericson2314>
I want `(path/to/drv!output0)!output1`
<Ericson2314>
i.e. get path to drv, build it and take some output, and then treat that as a drv and do more building
<Ericson2314>
which is a pretty good "monadic" primitive
<Ericson2314>
(! was always something like a join, but the first argument had to be `pure _`)
<sheepfleece>
energizer: thank you! It works for a `.config`, however I still don't know how to map over all files and prepend '.' to them (so I can put all of it in ~)
thomasjm has quit [Ping timeout: 264 seconds]
palo1 has joined #nixos
gerschtli has quit [Quit: WeeChat 2.7.1]
gerschtli has joined #nixos
<Ericson2314>
angerman: wait.... do you remember waht you did to fix?
<Ericson2314>
I removed the bad symlink and read the linked issues, but not sure what to put here instead
<Ericson2314>
and it doesn't work with nothing there
palo has quit [Ping timeout: 246 seconds]
palo1 is now known as palo
thomasjm has joined #nixos
<angerman>
Ericson2314: reinstalled it.
<Ericson2314>
oh, lovely
<sheepfleece>
energizer: Oh, no, instead ok `xdg.configFile` I can use `home`. but the problem is all my files (say xmonad) do not have a dot at the beginning, so I can't use `recursive` directly.
<angerman>
Ericson2314: throw away software
<Ericson2314>
i have one more guess before I call it a night to do that tomorrow
endformationage has quit [Quit: WeeChat 2.6]
<{^_^}>
[nixpkgs] @vcunat pushed to staging-next « systemd: avoid rebuild from the parent commit for now »: https://git.io/JfDOV
<energizer>
sheepfleece: so change that :)
o1lo01ol1o has joined #nixos
<energizer>
rename the files so they have the name they'll need
<angerman>
Ericson2314: I'll let you know when the rust-libs hydra job is done.
<Ericson2314>
angerman: sounds good!
<sheepfleece>
But that's exactly what I want to avoid!
o1lo01ol1o has quit [Ping timeout: 264 seconds]
gxt has joined #nixos
Acou_Bass has quit [Ping timeout: 256 seconds]
Acou_Bass has joined #nixos
xO1 has joined #nixos
hmpffff has joined #nixos
hmpffff has quit [Quit: nchrrrr…]
sheepfleece has quit [Quit: Lost terminal]
waleee-cl has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nixpkgs] @MostAwesomeDude opened pull request #89787 → relpipe: init at 0.16 → https://git.io/JfD36
<ninjin>
clever: Thanks again for the hints yesterday, here is my “Proto-Nixops” Makefile target >> https://pastebin.com/YZxABnhV
fragamus_ has quit [Ping timeout: 258 seconds]
kenran has joined #nixos
<clever>
ninjin: nix-build '<nixpkgs/nixos>' -I nixos-config=host/$1/configuration.nix -A system
<ninjin>
clever: Thank you, I will humbly simplify that. ♥
<mananamenos>
hi, https://nixos.wiki/wiki/Fish i have done this, however, opening the xfce-terminal I get bash. Need to `fish` to drop in fish? Isn't it suppose to be the default terminal after that configuration?
sbetrium has quit [Quit: sbetrium]
<{^_^}>
[patchelf] @domenkozar pushed to master « README: no more homepage »: https://git.io/JfDWL
<{^_^}>
[patchelf] @domenkozar pushed to ci-musl « not enough space »: https://git.io/JfDWR
<mananamenos>
manveru, manveru, do you mean the terminal? or the nixos itself?
<manveru>
your display-manager
mallox has quit [Client Quit]
<mananamenos>
manveru, i restart the terminal, but didn't log out from nixos and restarted the system
<manveru>
because that inherits the environment variables deciding your shell usually
<manveru>
so i'd try to login again
<mananamenos>
ok thank you
mananamenos has quit [Remote host closed the connection]
fragamus_ has quit [Quit: Connection closed]
sb0 has joined #nixos
mananamenos has joined #nixos
<mananamenos>
manveru, logging out did the trick, now the default terminal is fish. I do have the useful scripts snippet from wiki too, but `nix-shell -p hello` still puts me in bash shell instead of fish.
<mananamenos>
manveru, --run fish is ok. However, im supposed to see `inside: <nix-shell> ~>` prompt after editing fish_prompt.fish with wiki's example, but i dont.
ncakerlist has quit [Ping timeout: 258 seconds]
pjt_014 has joined #nixos
<manveru>
hmm, i don't know... never used fish
sheepfleece has joined #nixos
o1lo01ol1o has joined #nixos
<mananamenos>
manveru, thanks anyway. Im staying in bash too :)
mananamenos has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @nlewo pushed to release-20.03 « nixos/nextcloud: preserve OC_PASS env variable in the occ wrapper »: https://git.io/JfDli
<prusnak>
error: packages '/nix/store/wy6v1s2y8rvxcy98l2yvxqj280cq9wgc-binutils-wrapper-2.31.1/bin/ld.bfd' and '/nix/store/fb30zc52va0g99q8qgv7kx4ngq163pii-gcc-wrapper-9.3.0/bin/ld.bfd' have the same priority 10; use 'nix-env --set-flag priority NUMBER INSTALLED_PKGNAME' to change the priority of one of the conflicting packages (0 being the highest priority)
<prusnak>
shouldn't gcc get priority -10 ?
<{^_^}>
[nix] @gilligan opened pull request #3669 → Add compression unit tests → https://git.io/JfD8b
<{^_^}>
#89588 (by jonringer, 2 days ago, merged): python2Packages.pillow: freeze at 6.2.2
ncakerlist has quit [Ping timeout: 264 seconds]
Thra11 has quit [Ping timeout: 260 seconds]
justanotheruser has joined #nixos
eyenx[m]2 has quit [Remote host closed the connection]
Thra11 has joined #nixos
<sphalerite>
__red__: surprisingly high
<sphalerite>
(odds)
<sphalerite>
store paths with eeeee(...) hashes get generated by nuke-references and remove-references-to in order to replace store paths which would otherwise cause references with invalid ones
Neo-- has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<Ariakenom>
my nixos-rebuild switch isnt working and im failing in figuring out why. 1st it is doing a lot of deleting and building when i rerun. so it takes a long time and the logs are clogged. it shouldnt rebuild that much if i just rerun right?
o1lo01ol1o has quit [Remote host closed the connection]
<sphalerite>
Ariakenom: yes, you can also try `nix build -f '<nixpkgs/nixos>' system` to get terser output and progress
dguibert has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @SCOTT-HAMILTON opened pull request #89803 → KAppTemplate: Init at 19.12.3 → https://git.io/JfD2Y
<vandenoever>
is there a way to set /sys/class/drm/card0/device/hwmon/hwmon3/power1_cap via configuration.nix?
<AmandaC>
isn't there something called something like sysconfig for stuff like that?
<AmandaC>
I'm not sure though
<b42>
there's boot.kernel.sysctl but that's for /proc/sys
<b42>
don't know of anything for /sys though
orivej has quit [Ping timeout: 264 seconds]
<vandenoever>
i found that "echo 60000000 | sudo tee /sys/class/drm/card0/device/hwmon/hwmon3/power1_cap" works great to keep the GPU at low power use while still being perfectly usable
<betaboon>
vandenoever: you could do that with a systemd unit
<sphalerite>
Ariakenom: yeah, use '<nixpkgs/nixos>'
<talyz>
vandenoever: You can probably use udev rules (services.udev.extraRules) to make it permanent
orivej has joined #nixos
lorimer has quit [Read error: Connection reset by peer]
<sphalerite>
vandenoever: it's also quite common for tlp or powertop or similar to set that kind of limit, maybe also lm-sensors since it's a hwmon control
lorimer has joined #nixos
<Ariakenom>
oh ha parse error
<Ariakenom>
(for me reading your msg)
<Ariakenom>
sphalerite: that and --dry-build works. but not dry-activate
<{^_^}>
[patchelf] @domenkozar pushed to ci-musl « verbose »: https://git.io/JfDaB
o1lo01ol1o has joined #nixos
<sphalerite>
Ariakenom: no, though it will clean up build dirs from /tmp both on successful and failed builds
o1lo01ol1o has quit [Ping timeout: 264 seconds]
orivej has quit [Ping timeout: 264 seconds]
orivej_ has joined #nixos
<betaboon>
Mic92: can you confirm that cross-compiling go_1_14 fails on unstable? nix build -f '<nixpkgs>' pkgsCross.armv7l-hf-multiplatform.go_1_14
acarrico has joined #nixos
Lilpea is now known as lilpea
jakobrs has joined #nixos
<jakobrs>
Possibly a weird question but is it possible to mount an NTFS filesystem using the built-in Linux drivers even when fileSystems.something.fsType is "ntfs"?
<jakobrs>
Because adding a file system with fsType ntfs seems to override the default driver: mount -t ntfs uses ntfs-3g instead now
wnklmnn has quit [Quit: Leaving]
<Mic92>
betaboon: I have not cross-compiled it in a while
drakonis_ has joined #nixos
exfalso has joined #nixos
<jakobrs>
Note that the current behaviour posits a tiny theoretical security risk: the permissions with the `ntfs` and `ntfs-3g` drivers are different, ntfs has a default umask=277 while ntfs-3g has the more relaxed umask=000
<{^_^}>
[nixpkgs] @flokli merged pull request #89570 → pyxdg: fix call to missing class field Type → https://git.io/Jf16k
<jakobrs>
So if someone mounts an ntfs file system, and uses nixos-generate-config to add it to hardware-configuration.nix, they may think that only root can read from it, but when you reboot the entire ntfs partition will be world-writable
orivej_ has quit [Ping timeout: 246 seconds]
Ariakenom has quit [Quit: WeeChat 2.7.1]
<betaboon>
Mic92: building the way mentioned above fails with `gcc-debug-9.3.0-armv7l-unknown-linux-gnueabihf/bin/gcc: cannot execute binary file: Exec format error` for me. and thats blocking compilation of docker :( any ideas ?
orivej has joined #nixos
<Mic92>
betaboon: It should need a cross-compiled go to build docker. I would say something in the docker build is wrong
drakonis has quit [Ping timeout: 260 seconds]
<betaboon>
Mic92: should or shouldnt ?
<Mic92>
*shouldn't
o1lo01ol1o has joined #nixos
<Mic92>
betaboon: I would try to find the target go compiler and replace it with buildPackages.go
<Mic92>
betaboon: Ok. I think the issue is that this header file comes from the x86 python rather than aarch64. I have seen something like that before. I suspect the way we do python cross-compilation is wrong. Maybe open a ticket for that and cc FRidh
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<betaboon>
Mic92: thanks for the input. i think i will try to cc FRidh in that issue
o1lo01ol_ has joined #nixos
<bgamari>
nh2, angerman, do either of you know how to build a statically-linked icu?
<angerman>
Maybe it needs dontDisableStatic = true?
o1lo01ol1o has quit [Ping timeout: 260 seconds]
<kenran>
I want to use nix-gitignore.gitignoreSource [ some-stuff ] ./my-subdir; But now it seems to want a .gitignore in that directory, whereas I only have the "main" .gitignore at top-level (for this package). What can I do if I don't want to duplicate .gitignore contents all over my project?
<kenran>
(There are several subdirs where I wish to do this)
<angerman>
bgamari: libicu seems to have —enable-static, nix will default
<angerman>
to passing —disable-static, unless dontDisableStatic is set 🤷
<nh2>
bgamari angerman: that said, on my CI server, `for p in $(ls -1U /nix/store | grep icu); do find /nix/store/$p | grep '\.a'; done` does not show a single result, so I probably have never built .a files for that
<bgamari>
angerman, ahh
<fps>
hmm, i have an almost working xonotic package based on a nightly autobuild (which bundles sources, too), but for some reason the built binaries lack a libstdc++.so.6 rpath entry
<angerman>
bgamari: at some point I’ll start a crusade against the shared object fanbois.
proofofkeags has joined #nixos
<fps>
i guess i can add another patchelf entry for it
<angerman>
As much as someone can fix CVEs after the fact, they can also introduce them. After the fact.
<fps>
gcc-9.3.0-lib has it. hmm
<bgamari>
nh2, yeah, and it seems even if you pass dontDisableStatic=true, you get static objects that implicitly depend upon libstd++
<bgamari>
e.g. I see
<bgamari>
(.text+0xc80): undefined reference to `__dynamic_cast'
<jakobrs>
When/how does Nix add a package to the PKG_CONFIG_PATH?
<bgamari>
from symbols in libicuuc.a when linking against it
<jakobrs>
Wait, there's a difference between pkgconfig and pkg-config?
<jakobrs>
At least I'm getting different errors
<nh2>
bgamari: angerman: `dontDisableStatic = true;` is not enough for `icu64`. The `configure` output still says `checking whether to build static libraries... no`
<betaboon>
Mic92: about the docker-cross-compile issue: as `go` is in `buildInputs` it should require a cross-compiled go, right? only when i move it to `nativeBuildInputs` it shouldnt ?
<fps>
hmm, this didn't do the trick: patchelf --add-needed ${gcc.out}/lib/libstdc++.so.6 ...
lsix has quit [Ping timeout: 256 seconds]
<angerman>
bgamari: what’s the issue with depending on libstd++? .a is really just a collection of .o, and the linker is supposed to provide the std I the end.
<nh2>
angerman bgamari: No, you are right that `dontDisableStatic = true;` is the general flag to tell nix that *it* should not pass `--disable-static` to autoconf. But some projects deviate from autoconf's default of building both static and dynamic if no flags are given, and instead make it such that you have to explicitly pass `--enable-static` to get static ones as well. `fontconfig` is one of them, and apparently icu too
<bgamari>
angerman, the problem is that ghc uses gcc to link
<Mic92>
betaboon: yes, there other ways rather than buildInputs where a cross-compiled go maybe added by accident.
<bgamari>
angerman, so if you have a Haskell program which links against libicuuc then it won't link against libstdc++
<Mic92>
for example if your reference it somewhere else
<angerman>
bgamari: fun times. Link it explicit.
<bgamari>
angerman, well, the problem is that this propagates across packages
<bgamari>
angerman, you need to manually specify this for every executable that links against the library
<betaboon>
Mic92: like when there is a `${go}`/`${pkgs.go}` in any phase-script ?
<angerman>
yea.
<bgamari>
it's pretty brutal
<Mic92>
betaboon: exactly
<angerman>
bgamari: that’s why you usually get that from pkg-config.
<Mic92>
betaboon: you can use something like nix show-derivation to capture this
<Mic92>
or just do a cat on the .drv file
<angerman>
Or you link it explicitly in the extra-libraries.
<nh2>
"If you add the --enable-static option to the ICU command line build (Makefile or cygwin), ICU will also build a static library version which you can link to only the exact functions your application needs. Users of your ICU must compile with -DU_STATIC_IMPLEMENTATION."
<bgamari>
angerman, not in general
<bgamari>
nh2, yeah, I saw that
<bgamari>
nh2, indeed that is concerning
<bgamari>
I wonder what that macro affects
<nh2>
does thta really mean that all downstream projects have to pass `-DU_STATIC_IMPLEMENTATION` to their C preprocessor?
<nh2>
bgamari: would this be addressed by your proposal to change `8.6.5-binary.nix` to use ncurses ABI 6?
<meh`>
anyone ever deployed GitLab had gitaly failing to find the gitlab_shell_secret?
kloenk has joined #nixos
<bgamari>
nh2, I don't think so
sgrunert has joined #nixos
bhipple has joined #nixos
jgeerds has joined #nixos
<infinisil>
aanderse: I'm kind of dreading working on the settings thing, because the next step is writing docs for #82743 and #75584, and also finishing the RFC
sgrunert has quit [Remote host closed the connection]
<betaboon>
Mic92: with that patch it seems to work
drakonis has joined #nixos
<betaboon>
Mic92: switching to buildGoPackage i had to define a `goPackagePath` (which i set to `github.com/${owner}/${repo}`) but the buildPhase-script assumed the src to be at `.` (as in `cd ./components/engine`) which i changed to `cd ./go/src/${goPackagePath}/...`. sounds reasonable ?
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
dermetfan has joined #nixos
lordcirth has joined #nixos
is_null has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @doronbehar opened pull request #89813 → neomutt: small fixes that should go to the next release's version bump → https://git.io/JfDiH
is_null has joined #nixos
agsdheidjd has left #nixos [#nixos]
noudle has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
<davidtwco>
Using flakes: can I specify the output to be built from the current directory's flake with nix build? It defaults to `defaultPackage.x86-64_linux` but I don't know how to tell it to build another output.
<{^_^}>
[nix] @gilligan opened pull request #3670 → Add tests for pool.hh → https://git.io/JfDPu
orivej has quit [Quit: No Ping reply in 180 seconds.]
lunik16 has joined #nixos
orivej has joined #nixos
<betaboon>
Mic92: now it builds but fails after installPhase with '... docker-19.03.11-armv7l... is not allowed to refer to the following paths: ...-go-1.14.2' I'm lost here
icey_ has joined #nixos
lunik1 has quit [Ping timeout: 256 seconds]
lunik16 is now known as lunik1
<Mic92>
betaboon: does your build overrides buildGoPackage fixup phase somehow?
KindOne has quit [Read error: Connection reset by peer]
<{^_^}>
[nixos-homepage] @garbas pushed 2 commits to master: https://git.io/JfDXf
orivej has joined #nixos
<betaboon>
Mic92: how would i do that ? oO
<betaboon>
Mic92: the only reference that is mentioned to be not allowed is ...-go-1.14.2
<Mic92>
betaboon: when you start a build you see a derivation file printed in the log. Do a cat on this file.
<betaboon>
Mic92: the output of that includes a `("preFixup","find ....-go-1.14.2...") with exactly the path that is mentioned to be not allowed
<Mic92>
betaboon: that is interesting. What file contains the reference?
<Mic92>
You can use `strings` to find this out
<Mic92>
if you have `keep-outputs = true` in nix.conf
vidbina has quit [Ping timeout: 265 seconds]
<betaboon>
Mic92: I'm running with --keep-output atm. according to grep and strings it is `/libexec/docker/docker` and `/libexec/docker/dockerd` which ofc doesnt match $out/bin !?
<mdlayher>
I've written a PR to update a module I own to comply with Nix RFC 42, basically converting Nix attributes to a TOML configuration file via an external tool. i am curious if i'm on the right track here or if there is a pure Nix way to do this: https://github.com/NixOS/nixpkgs/pull/89781
<betaboon>
Mic92: thanks for the help. docker now succesfully compiled for armv7 and is running :)
<Mic92>
betaboon: you are welcome
<betaboon>
Mic92: i added my findings and a diff to the PR that you already commented in
agsdheidjd has joined #nixos
<Mic92>
betaboon: yeah, better to make it a PR directly. We can merge this to master as is.
orivej has quit [Ping timeout: 256 seconds]
shibboleth has joined #nixos
<betaboon>
Mic92: i would prefer nspin (the original author of that PR) to pick it back up as he is clearly interested in it + btrfs-progs still doesnt cross-compile and will block docker from cross-compiling when not disabled explicitly, so i think there is no rush.
<{^_^}>
[nixpkgs] @Mic92 merged pull request #89649 → rust-analyzer: 2020-04-20 -> 2020-06-01 and fix build of vscode extension → https://git.io/Jf1xN
<Mic92>
fps: try autoPatchelfHook and add `stdenv.cc.cc` to buildInputs
<Mic92>
than you don't need all the patchelf buisness
ddellacosta has quit [Ping timeout: 260 seconds]
ddellacosta has joined #nixos
<fps>
Mic92: ok
iqubic has quit [Remote host closed the connection]
<{^_^}>
[nixos-homepage] @garbas pushed to use-versions-from-released-nixpkgs « use nix and nixos version from released-nixpkgs input »: https://git.io/JfDM5
<fps>
Mic92: hmm, the thing is: the autobuild also has the source in it which i use to build all the things (tm)
<{^_^}>
[nixos-homepage] @garbas opened pull request #464 → Use nix and nixos version from released-nixpkgs input → https://git.io/JfDMj
detran has joined #nixos
<fps>
Mic92: autoPatchelfHook and stdenv.cc.cc has worked. i'd like to understand why tho :) let's first see if the build now finally works :)
<{^_^}>
[nixos-homepage] @garbas pushed to use-versions-from-released-nixpkgs « remove unused NIXOS_SERIES variable from Makefile »: https://git.io/JfDDJ
<asymmetric>
has anyone else had issues with drag-n-drop since 20.03?
<asymmetric>
mouse selection doesn't work either, i.e. clicking on something and dragging the cursor while keeping the button pressed
orivej has quit [Ping timeout: 246 seconds]
kenran has joined #nixos
slack1256 has quit [Remote host closed the connection]
<srk>
like you can also do init=/bin/bash on kernel command line but not on nixos I guess.. that would require something like init="/usr/bin/env bash" if that even works
<cole-h>
Could do /bin/sh
<srk>
++
<srk>
that didn't occur to me.
<srhb>
srk: There's single user flags to feed it as well.
<iqubic>
How do i enter those flags? Running Grub2.
<srhb>
I think it's 'e' to edit, but frankly the installer iso will be much more ergonomic and familiar
<cole-h>
tbh I'd avoid booting into a potentially corrupt disk, if it were me... I'd even go as far as to mount it read-only when diagnosing.
<srhb>
For sure. It's all too easy messing things up worse, especially when frustrated. Been there, done that.
proofofkeags has quit [Remote host closed the connection]
alp has quit [Ping timeout: 272 seconds]
proofofkeags has joined #nixos
iqubic has quit [Ping timeout: 245 seconds]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<energizer>
iqubic: not necessary to provide live updates :)
<bbarker>
are there any known issues with using stackage nightly with nixos? I'm having an issue where my project is looking for ghc 8.6.5 even though I'm on 20.03 and stackage nightly is on GHC 8.8.3
<infinisil>
energizer: Add <nixpkgs/nixos/modules/virtualisation/digital-ocean-image.nix> to imports, then build the `config.system.build.digitalOceanImage` attribute
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « angband: 4.2.0 -> 4.2.1 »: https://git.io/JfDHj
fragamus_ has joined #nixos
<energizer>
infinisil: where is the doc for nixpkgs.nixos?
<iqubic>
Getting Internet here is being a pain.
ebopp has joined #nixos
<fragamus_>
how can I force a build from source for this thing: RUN nix-env --fallback -f "<nixpkgs>" -iA haskellPackages.stack_0_1_10_1
<iqubic>
Switching to graphical iso
jakobrs has joined #nixos
<jakobrs>
Does installing libimobiledevice require doing anything special?
<jakobrs>
I mean, apart from `nix run nixpkgs.libimobiledevice`
Neo-- has joined #nixos
doomlist3 has joined #nixos
ncakerlist has quit [Ping timeout: 256 seconds]
<infinisil>
energizer: I'd just use `(import <nixpkgs/nixos> { configuration = ...; }).config.system.build.digitalOceanImage`
<infinisil>
Probably no docs for pkgs.nixos
<energizer>
ok
<energizer>
infinisil: on my physical machines i do ` boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true;` do i want that here too?
<{^_^}>
[nixpkgs] @Thra11 opened pull request #89831 → Julius augustus → https://git.io/JfD7r
<infinisil>
Izorkin: So you're often asking "how to need to merge this PR", which isn't correct grammatically. Better would be "How can I get this PR merged?" or "Can you take a look at this PR?"
<energizer>
ah i put the import in the wrong place
Thra11 has joined #nixos
pamplemousse has quit [Ping timeout: 265 seconds]
fragamus_ has quit [Ping timeout: 246 seconds]
<infinisil>
Izorkin: Or "What is needed to get this PR merged?". I hope that helps :)
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shibboleth has joined #nixos
jakobrs has left #nixos ["WeeChat 2.7.1"]
<Thra11>
For changes which cause mass rebuilds, how well am I supposed to test it? The contributors guide says staging is not for testing, only for well tested changes. Do I have to rebuild and test everything which depends on the changed package?
proofofkeags has quit [Remote host closed the connection]
<Ericson2314>
angerman: thanks, will backport
proofofkeags has joined #nixos
<srhb>
energizer: If it's something like a ramdisk, it may just be full for the very short while it takes to fail, then clear up all the temporary space.
<infinisil>
energizer: Well you said devices, but `df` lists more than just physical devices
iqubic has joined #nixos
commandocrypto1 has joined #nixos
<Thra11>
energizer: What are the TMP and TMPDIR environment variables set to?
<iqubic>
Well, my computer file system is well and truly corrupt.
<iqubic>
Are at least I think it is.
<infinisil>
(well I guess RAM is still physical, just not a disk)
<energizer>
Thra11: nothing
<iqubic>
I've not managed to do a nixos-enter from an installation media yet
<iqubic>
So, it might be salvageable
<Thra11>
energizer: Is tmp a tmpfs, and if so, how big is it/how much is used?
commandocrypto has quit [Ping timeout: 246 seconds]
dguibert has quit [Ping timeout: 245 seconds]
proofofkeags has quit [Ping timeout: 258 seconds]
<{^_^}>
[nixpkgs] @Ericson2314 pushed 2 commits to release-20.03: https://git.io/JfDdW
<Ericson2314>
angerman: backported
<energizer>
why doesn't nix-collect-garbage need root?
<energizer>
-d especially
<srhb>
energizer: The '-d' part does, in fact, as it can't delete generations you don't own.
<srhb>
So anything referenced by another user is safe.
<{^_^}>
[nixpkgs] @jonringer pushed 24 commits to python-unstable: https://git.io/JfDF3
admicos has joined #nixos
<admicos>
o/ all! quick question: is there any way to get fusermount or sudo working in a FHS nix-shell? I am currently stuck with this issue: https://github.com/NixOS/nixpkgs/issues/69338
<{^_^}>
#69338 (by JohnAZoidberg, 36 weeks ago, open): SUID wrappers do not work in buildFHSUserenv.env
<ldlework>
I find the docs are very hard to use to discover functions and I'd like a more compact representation.
<infinisil>
fragamus_: But never mind that, how about just not using stack? It obviously was never supported very well
<iqubic>
When I boot into my system, a ton of kernel modules fail to load. Instead of LightDM starting up, I'm given a tty with a prompt to enter my username and password. Upon doing so, I don't log in, but am instead thrown back to the enter username prompt.
<iqubic>
All generations are borked in this way.
<iqubic>
And last night, when I was able to use my computer, I was getting read and write errors out the wazoo.
<iqubic>
That was before I rebooted.
lsix has quit [Ping timeout: 256 seconds]
<iqubic>
So, I think my filesystem is a bit corrupt.
<risson>
justanotheruser: systemctl cat unbound
<iqubic>
And no, I don't have any backups, today was the day I was going to create a backup system.
<infinisil>
justanotheruser: Well it's just a constant which shouldn't ever change, so you could just use the value itself
<justanotheruser>
and what if I want to evaluate an expression alone? For example given no context I want to know what the value of $stateDir is within a package
<iqubic>
So, yeah. I think I'll need to fix up my filesystem.
<iqubic>
But I have no idea how to do so.
<iqubic>
I want to retrieve as many files as possible, before doing a fresh install of NixOS.
<{^_^}>
[nixpkgs] @berbiche opened pull request #89840 → nixos/manual: s/environent/environment/g in configuration.xml → https://git.io/JfDbN
<iqubic>
Even if the number of files I can retrieve turns out to be 0, I want to be sure about that.
<infinisil>
justanotheruser: You can't, unless the module exposes it (which this one doesn't)
<iqubic>
So, can I just try nixos-enter?
<risson>
infinisil: yet
<iqubic>
BRB. Have to reboot.
iqubic has quit [Remote host closed the connection]
<Ericson2314>
how does one one find the gc roots pointing to a thing?
<Ericson2314>
so it can be deleted?
<symphorien>
nix-store --query --roots
emacsomancer has joined #nixos
<Ericson2314>
thanks symphorien !
codygman has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @karolchmist opened pull request #89843 → devilutionx: fix build dependency on SDL2 → https://git.io/JfDNc
iqubic has joined #nixos
codygman has joined #nixos
<iqubic>
So, how shall I try and recover my data?
thc202 has quit [Ping timeout: 256 seconds]
<iqubic>
Perhaps `nixos-enter` can help me.
<cole-h>
Don't forget to mount the disk read-only so you don't cause more damage
<iqubic>
How do I mount the disk read only?
<symphorien>
-o ro
zrsk[m] has joined #nixos
<iqubic>
My corrupted filesystem was running zfs. That might make this hard to do.
<iqubic>
Alright... /dev/sda2 is my zpool.
o1lo01ol_ has quit []
proofofkeags has quit [Remote host closed the connection]
<iqubic>
I know /dev/sda1 is the boot partition, and /dev/sda3 is a swap partition.
<iqubic>
How shall I do this?
<cole-h>
I think you should do your own research, so we're not the only ones feeding you information. I don't want to be held responsible if you break your system even more.
<iqubic>
Look, at this point I'm 90% sure I'll be doing a completely fresh install of NixOS.
<iqubic>
Oh Christ almighty: `mount -t zfs -o ro /dev/sda2 /mnt/zpool` is the command I ran. `filesystem 'latitude-tank' cannot be mounted, unable to open the dataset` is the result I got.
<iqubic>
I think my system if completely screwed up.
<imalsogreg>
o/ I'm playing with flakes on a personal hydra instance with a private github repo. Evaluating a jobset fails with `'nix flake info' returned exit code 1: error: unable to download 'https://api.github.com/repos/<secret_org>/<secret_repo>/commits/master': HTTP error 404`. I see from the source code of nix that we can set a `github-access-token` option in nix.conf, and I've done that for both root user and hydra user, and I've restar
<imalsogreg>
the systemd services for hydra-* and nix-daemon. I can manually `curl https://api.github.com/.../<secret_repo>?access_token=<mytoken>` and see the json commits list. `nix show-config` for both root and hydra show me my github-access-token. But hydra-evaluator continues to get the 404 error. Anyone see where I am going wrong?
lsix has joined #nixos
aleph9[m] has joined #nixos
sheepfleece has quit [Ping timeout: 240 seconds]
<cransom>
you probably need something similar in hydra.conf/the hydra configuration. i haven't done anythying with flakes in hydra as of yet.
stevenxl has quit [Quit: Connection closed for inactivity]
<cole-h>
Shouldn't you be getting a 403? Or does GH return 404s for private repos?
<imalsogreg>
cole-h: 404's for security
<cole-h>
Makes sense.
lsix has quit [Client Quit]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<imalsogreg>
cransom: Thanks, I'll take a look at that too. Also looking more carefully at libfetchers/github.cc in nix, I see that access_token gets appended when downloading a tarball, but maybe not when doing this call to the API for commits.
Chiliparrot has joined #nixos
iqubic has quit [Remote host closed the connection]
<benschza>
I'm building a Rust package using buildRustPackage, it has an option cargoPatches, which I can't find good docs for. The Rust git repo doesn't have a lock file. My understanding is I should be able to use cargoPatches to create or patch a Cargo.lock file. I get the error "patch: **** Only garbage was found in the patch input." during the build. I might just be misunderstanding diff? Using `diff -N /dev/null Cargo.lock > Cargo.lock.patch`. Any
<benschza>
guidance appreciated :)
m0rphism has joined #nixos
Chiliparrot has quit [Ping timeout: 260 seconds]
selfsymmetric-mu has joined #nixos
<selfsymmetric-mu>
Hi! I have an expensive nix shell. To get it warm, I dump it in an Emacs compilation buffer with `nix-shell --run "echo test"`. This kills my machine. I tried `nice -n 10 nix-shell --run "echo test"`, but the nix-shell still uses a niceness of 0 for its tasks. How can I be better?
<{^_^}>
[nixpkgs] @lelongg opened pull request #89846 → qt5.qtserialbus: init at 5.12 → https://git.io/JfDAb
commandocrypto2 has joined #nixos
commandocrypto1 has quit [Ping timeout: 265 seconds]
<symphorien>
selfsymmetric-mu: nice the daemon
<cransom>
there used to be an infrequent (but it would happen) issue where the archive zip from github would randomly change sha because their bundling wasn't deterministic. does that still happen?
<selfsymmetric-mu>
symphorien: Thank you! Is there a correct way to do that on NixOS?