ajs124 has left #nixos ["Stream closed by us: Replaced by new connection (conflict)"]
ajs124 has joined #nixos
fresheyeball has joined #nixos
<fresheyeball>
hi
`_ has joined #nixos
<angerman>
does anyone happen to have some document lying around detailing how to setup a nixos build slave on aws ec2 with nixops?
<fresheyeball>
Is there a way I can have nix-build emit a file regardless of if it build fails?
<fresheyeball>
I would like to output xml of the unit tests, which need to happen if even the test fails
jackdk has quit [Remote host closed the connection]
<Lisanna>
fresheyeball the best way to do that is to have the build succeed all the time, and have the test result be the "output". e.g., $out/exitcode
jackdk has joined #nixos
<fresheyeball>
Lisanna: really?
<Lisanna>
fresheyeball yeah, that's what I do
<fresheyeball>
That seems really weird to call a test failing build a success
cryptomonoid has quit [Ping timeout: 255 seconds]
<Lisanna>
fresheyeball the nix build isn't the test itself, the nix build is to run the test. a failing test doesn't have to be a failed build, it's just a result, like any other result.
<fresheyeball>
We consider it not a successful build, but a build with a result
<Lisanna>
fresheyeball yeah
<`_>
I still think we should just have CI run the tests
<`_>
fresheyeball ^
<fresheyeball>
`_: yeah, we could break it up that way
<Lisanna>
fresheyeball in hydra there is an intermediate option: if your output directory contains a file called $out/nix-support/failed, hydra will consider it a "failed build", even though the underlying nix build itself succeeded.
<fresheyeball>
we stat it, and it sets us up to go the hydra way once hyrda is not totally immature
<fresheyeball>
I guess we don't need the TEST_OUT var anymore
<fresheyeball>
we can just use $out
<`_>
Cool
<fresheyeball>
Lisanna: so I am using callCabal2nix
<fresheyeball>
Is there a way I can make the tests run, but have nix not fail the build?
<Lisanna>
fresheyeball a nix build fails if these conditions occur: the output directory/file does not get created, OR the build returns a non-zero exit code
<fresheyeball>
Lisanna: Right, but what to override to change the behavior of the check phase?
<Lisanna>
fresheyeball so, callCabal2nix produces a derivation that, when built, has some kind of check phase that normally fails?
<Lisanna>
I'm not familiar with the cabal / haskell support in nixpkgs, but maybe you can override the check phase of the derivation, assuming it works more or less like a regular stdenv derivation
pie__ has quit [Read error: Connection reset by peer]
<Lisanna>
(callCabal2nix ....).overrideAttrs
jackdk has quit [Remote host closed the connection]
baconicsynergy has quit [Read error: Connection reset by peer]
ajs124 has left #nixos ["Stream closed by us: Timed out waiting for stream resumption (connection-timeout)"]
wpcarro has quit [Ping timeout: 245 seconds]
sam__ has quit [Quit: sam__]
jackdk has quit [Ping timeout: 255 seconds]
ericsagnes has joined #nixos
blankhart has joined #nixos
andreabedini has joined #nixos
bmikedesk has quit [Quit: bmikedesk]
jperras has joined #nixos
TFTIO has joined #nixos
<TFTIO>
does anybody here have an example of a Plex pass derivation that I could crib from?
<gchristensen>
are you a paying subscriber?
<TFTIO>
yep
<thoughtpolice>
Can anyone explain to me why on earth I'd get permission denied for '/nix/var/nix/db/big-lock', what does that even mean? This is for a Hydra instance, JFYI
<thoughtpolice>
Another bizarre one is that I set nix.package = pkgs.nixUnstable, yet Hydra seems to persist in using 2.0.4. Or maybe the stupid HTML page thing is broken and ancient, I'm not sure.
sbdchd has joined #nixos
markus1199 has joined #nixos
TFTIO has quit [Remote host closed the connection]
wpcarro has joined #nixos
markus1189 has quit [Ping timeout: 265 seconds]
graphene has quit [Remote host closed the connection]
wpcarro has quit [Ping timeout: 244 seconds]
graphene has joined #nixos
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
<mightybyte>
srk: Now I'm seeing something weird. That error I was getting before (error: opening file '[': No such file or directory) on nixos-rebuild switch...I'm not getting it on other commands like a simple nix-env -i
silver has quit [Read error: Connection reset by peer]
<mightybyte>
er, s/not/now/
freeman42x]NixOS has quit [Ping timeout: 276 seconds]
rcshm has joined #nixos
kerrhau has quit [Ping timeout: 240 seconds]
<fresheyeball>
mightybyte: sup dude
<mightybyte>
I'm getting a bizarre problem
<thoughtpolice>
Alternatively, does anyone know *any* way to debug Hydra, at all?
<mightybyte>
After I add sshServe to my configuration.nix and do a "nixos-rebuild switch", I start getting this error:
<mightybyte>
error: opening file '[': No such file or directory
<thoughtpolice>
I cannot fathom why the queue runner can't have access to the global lock, except maybe if it wasn't part of trusted-users, but it is
<mightybyte>
I get this when trying to do nixos-rebuild again
<mightybyte>
I also get it when using nix-env
jmeredith has joined #nixos
trylist has joined #nixos
Supersonic has quit [Ping timeout: 265 seconds]
jackdk has joined #nixos
Supersonic has joined #nixos
BlessJah has quit [Ping timeout: 256 seconds]
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
wpcarro has joined #nixos
wpcarro has quit [Ping timeout: 276 seconds]
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jackdk has quit [Ping timeout: 245 seconds]
fresheyeball has quit [Quit: WeeChat 2.0]
tertle||eltret has quit [Quit: Connection closed for inactivity]
wpcarro has joined #nixos
graphene has quit [Remote host closed the connection]
worldofpeace_ has quit [Ping timeout: 244 seconds]
pie_ has quit [Read error: Connection reset by peer]
pie_ has joined #nixos
doyougnu1 has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
wpcarro has joined #nixos
orivej has joined #nixos
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wpcarro has quit [Ping timeout: 245 seconds]
sbdchd has quit [Remote host closed the connection]
jperras has joined #nixos
benley has joined #nixos
orivej_ has joined #nixos
<petersjt014[m]>
hi:
<petersjt014[m]>
I'm trying to build an image for the rpi zw. I've finished up to the last make statement [here](https://nixos.wiki/wiki/NixOS_on_ARM), but I have no idea which file is correct--anyone know?
orivej has quit [Ping timeout: 260 seconds]
wpcarro has joined #nixos
jperras has quit [Ping timeout: 260 seconds]
<Dezgeg>
sd-image-armv6l-linux.img
<petersjt014[m]>
there are ones named `u-boot.bin` and `u-boot-nodtb.bin` in the project root, but there's a lot of subfolders too
<Dezgeg>
no other files needed for raspberries
<petersjt014[m]>
hmm
<petersjt014[m]>
cant remember if I've tried that one or not
<petersjt014[m]>
but yeah I'll try that one.
<petersjt014[m]>
any potential problems w/ burning on windows?
<Dezgeg>
I don't see why there would be
andreabedini has joined #nixos
wpcarro has quit [Ping timeout: 244 seconds]
andreabedini has quit [Client Quit]
blankhart has quit [Ping timeout: 255 seconds]
pie__ has joined #nixos
<petersjt014[m]>
time for an adventure in disk burning then
pie_ has quit [Read error: Connection reset by peer]
blankhart has joined #nixos
tzemanovic has quit []
orivej_ has quit [Ping timeout: 255 seconds]
<PyroLagus>
is there a way to easily find out what dependencies in a nix expression are unnecessary?
<samueldr>
petersjt014[m]: you probably can use etcher https://etcher.io/
iqubic has joined #nixos
<samueldr>
(like often recommended for other raspberry pi distros)
<iqubic>
What's going on here.
<iqubic>
?
Ross has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @dtzWill merged pull request #43759 → gpm: patch to fix w/musl, good for general use → https://git.io/fNZoI
<andi->
kalbasit: you can use a different "super" nixpkgs for your overlay. Usuaslly that means IFD.
Orbstheorem has quit [Quit: WeeChat 1.8]
<andi->
,IFD
<{^_^}>
import-from-derivation (IFD) is when you evaluate nix from a derivation result, for example `import (pkgs.writeText "n" "1 + 1")` will evaluate to 2
<kalbasit>
andi-: I see
Orbstheorem has joined #nixos
igo95862 has quit [Quit: igo95862]
crmlt has joined #nixos
selaux has quit [Quit: Leaving]
johanot has joined #nixos
cryptomonoid has joined #nixos
Tiez has quit [Quit: WeeChat 2.1]
fresheyeball has joined #nixos
<fresheyeball>
Is there a way to override cabal test to always pass?
<cocreature>
fresheyeball: just disabling tests doesn’t do the job?
<fresheyeball>
cocreature: I want tests to run
<fresheyeball>
and to put an xml output in $out
<cocreature>
maybe just run something like "cabal test || true"?
<fresheyeball>
cocreature: thank you for educating me!
<cocreature>
although I guess they are not equivalent? it looks like succeedOnFailure will also succeed if the build fails whereas overriding checkPhase will only succeed if the tests fail
<fresheyeball>
succeedOnFailure seems more consistent to me
henrycrutcher has joined #nixos
lo_mlatu has quit [Quit: Page closed]
<henrycrutcher>
is there a way to do pythonWithPackages but use a debug version of python, rather than the optimized one? I'm trying to get cygdb to work, so I can debug a cython program
<fresheyeball>
cocreature: how would I override checkPhase?
<fresheyeball>
turns out I need to anyway to turn on code coverage
<clever>
kalbasit: you have an override in your ~/.config directory that isnt compatible with the pinned version
<cocreature>
fresheyeball: also using overrideAttrs
<clever>
kalbasit: line 8, your not even importing the pinnedPkgs, your trying to treat the path as a set
<clever>
kalbasit: and once you do import it, pass config = {}; to make it ignore the overrides on the host
<clever>
kalbasit: maybe also pass config={}; to line 4 as well
<kalbasit>
clever: this override is the only override that uses haskell AFAIK. I'm wondering if I can scope `pinnedPkgs` for only one override possible?
<clever>
kalbasit: by setting config = {}; you can stop all the overrides from leaking in
<clever>
kalbasit: also, super and self are likely copies of nixpkgs, so you can skip line 4 entirely
Coyin has quit [Remote host closed the connection]
<kalbasit>
right
<kalbasit>
clever: alright, let me struggle a bit with it :) If I get fully stuck, I'll proabably come back for a full example:) but I gotta learn one day lol
<kalbasit>
clever: thank you!
Coyin has joined #nixos
johanot has quit [Ping timeout: 276 seconds]
<clever>
yep
fresheyeball has quit [Quit: WeeChat 2.0]
thc202 has joined #nixos
johnhamelink has joined #nixos
crmlt has quit [Quit: Lost terminal]
Izorkin has quit [Ping timeout: 265 seconds]
Izorkin has joined #nixos
<kalbasit>
clever: I need some help debugging, how can I put myself in a shell with nixpkgs at some commit without any overlays loaded from any config (so purely at that particular commit) ?
<kalbasit>
I need to check if it does compile on that version in the first place
`_ has quit [Ping timeout: 276 seconds]
<kalbasit>
I think it's something like `nix-build $NIXPKGS -A haskellPackaegs.greenclip` given NIXPKGS a path, I'll try that
<{^_^}>
#43800 (by srhb, open): 18.03 NFS test fails on Hydra
ThatDocsLady_ has joined #nixos
<angerman>
The remote builder only copies back the final closure right?
<angerman>
can I get it to copy back the intermediate ones as well? Such that it could reuse them? Or should I better set up some cache somewhere?
<angerman>
I'm afraid they are all going to be gone once I destroy my spot instance, and I would have to rebuild them all over again (which seems silly).
<{^_^}>
nix#2236 (by lheckemann, open): Treat remote builders as substituters?
<__monty__>
Is there a way to inherit from one myEnvFun inside another? Or a way to get at the buildInputs of a myEnvFun?
<sphalerite>
what are you using myEnvFun for? I think it's just a historical thing that shouldn't be used anymore
<sphalerite>
gchristensen++
<{^_^}>
gchristensen's karma got increased to 16
<sphalerite>
Love how you documented exactly where linuxkit-builder writes to
<__monty__>
sphalerite: That's what everyone seems to think but #18315 shows nix-shell has shortcomings that don't allow it to replace myEnvFun (at least not yet).
<hyper_ch2>
srk: there is no error... just more and more "." being added with a message importing pool or so
Izorkin has joined #nixos
<srk>
hyper_ch2: try enabling boot.shell_on_fail so you get shell when it fails
<hyper_ch2>
srk: no access to it righ tnow
<srk>
should spit the error message anyway when it times-out
<hyper_ch2>
will test it tonight
endformationage has quit [Quit: WeeChat 1.9.1]
cryptomonoid has quit [Ping timeout: 255 seconds]
nschoe has joined #nixos
winem_ has joined #nixos
humanoyd has joined #nixos
johanot has quit [Ping timeout: 248 seconds]
<moredhel_[m]>
Hi, I'm trying to compile the latest version of Telepresence but can't seem to get around the already known ZIP issue regarding setting the SOURCE_DATE_EPOCH.
<moredhel_[m]>
I have tried unsetting it, setting it to the recommended value and in several different places. Nothing seems to work.
crmlt has joined #nixos
<moredhel_[m]>
Has anyone else had issues re. python ignoring the setting of this environment variable?
<Taneb>
ocharles_: I'm looking into trying micro-ci
chrrles has joined #nixos
__Sander__ has joined #nixos
<chrrles>
Hello - I am following the instructions in the NixOps manual for setting up libvirtd
<chrrles>
I have installed the libvirt package, and enabled libvirtd virtualization in nixos config -- after rebuild, however, I seem to be missing the `libvirtd` group
<chrrles>
i wonder if there is something missing in the documentation
winem_ has quit [Ping timeout: 260 seconds]
<srhb>
chrrles: I think you'll just want to add your user to the libvirtd group and everything is fine.
winem_ has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
civodul has joined #nixos
<srhb>
chrrles: I don't think you'll want to manually install the libvirt package though? NOt sure.
<srhb>
chrrles: I just set virtualisation.libvirtd.enable = true and added the group to my user
kerrhau has quit [Ping timeout: 240 seconds]
<chrrles>
yes - i have that as well -- and the group does not exist still... let me double-check everything again
Guest80558 has quit [Ping timeout: 256 seconds]
<srhb>
chrrles: How are you determining that it doesnt exist? grep libvirtd /etc/group ?
<chrrles>
yes, and initially by `chgrp libvirtd ...`
<srhb>
And when you say rebuild, you mean rebuild switch?
<chrrles>
srhb - yes
<srhb>
That sounds weird.
johanot has joined #nixos
Coyin has quit [Ping timeout: 256 seconds]
Coyin has joined #nixos
sigmundv has joined #nixos
<hyper_ch2>
chrrles: I have in the hardware configuration.nix also boot.kernelModules = [ "kvm-intel" ];
<chrrles>
yes, i have `kvm-amd` in mine
<chrrles>
hmm
<hyper_ch2>
for my user I did set extraGroups = [ "networkmanager" "vboxusers" "wheel" "audio" "cdrom" "kvm" "libvirtd" ]; # wheel is for the sudo group
<srhb>
virtualisation.libvirtd.enable is what triggers the group creation iirc.
<srhb>
It should be sufficient.
`_ has joined #nixos
<srhb>
(It also adds libvirt to systemPackages)
<hyper_ch2>
in my config it runs fine
<chrrles>
argghghhghhh... "virtualiZation" vs "virtualiSation" :)
<hyper_ch2>
only thing I still have to figure out is how to make spice available through the web so that I don't need to run virtmanager but can also remotely access the vms
<goibhniu>
hyper_ch2 it doesn't look too tricky, I'd say you could add numpy opencv-python argparse scipy and Pillow to a nix-shell and install it with pip into a virtualenv (if you don't want to bother packaging it)
<chrrles>
it is building now
ajs124 has left #nixos ["Stream closed by us: Timed out waiting for stream resumption (connection-timeout)"]
* goibhniu
is talking about deda
<hyper_ch2>
goibhniu: well, packaging would be better but I suck at that
<hyper_ch2>
I might give it a try some point :)
ajs124 has joined #nixos
<srhb>
chrrles: That should have given you an error though, right?
<hyper_ch2>
I really wanna test if my printers also "leak" information
<srhb>
chrrles: Otherwise we need to fix that :)
<hyper_ch2>
srhb: I also think it should have complained when rebuilding
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @peti opened pull request #43804 → [WIP] find Haskell dependencies during evaluation rather than at run-time → https://git.io/fNnlx
<chrrles>
srhb - no, it never gave an error - even with `nixos-rebuild test`
<hyper_ch2>
there is a "test" option? oO
<hyper_ch2>
never knew
jperras has joined #nixos
bmikedesk has joined #nixos
<{^_^}>
[nixpkgs] @lheckemann opened pull request #43805 → nixos/release: pass individual netboot files through → https://git.io/fNn8t
<srhb>
hyper_ch2: It's a switch without setting a boot entry
<hyper_ch2>
well, never knew
<hyper_ch2>
I just did switch or boot depending on how I was feeling
<hyper_ch2>
and either it built or not
<srhb>
chrrles: That's a bug. And I can reproduce it indeed.
xinming has joined #nixos
<chrrles>
oh nice - i did something productive today
ajs124 has left #nixos ["Stream closed by us: Timed out waiting for stream resumption (connection-timeout)"]
<hyper_ch2>
chrrles: it works now?
<chrrles>
still building -- taking a while because of 3G internet
<xinming>
How do we write default.nix file so it imports git as a build depends requirement?
<hyper_ch2>
you should upgrade to 4G internet
<srhb>
xinming: buildInputs = [ pkgs.git ] ?
<xinming>
Let me try
<srhb>
xinming: Sounds like an XY-question though :)
jperras has quit [Ping timeout: 260 seconds]
<chrrles>
hyper_ch2 - then i would spend my free time watching netflix instead of tinkering in a unix shell ;
<srhb>
If you need git during the build something's probably wrong.
<hyper_ch2>
s/netflix/kdrama/
<hyper_ch2>
fixed that for you :)
<chrrles>
lol
<hyper_ch2>
xinming: what are you trying to build?
<xinming>
srhb: Sorry, really new to nix, just knew it yesterday, I'm using gentoo, and I want to try to build packge easier without touching my main sys.
<xinming>
hyper_ch2: git version of rakudo
<tilpner>
Turns out grep-ing nixpkgs for "packages" doesn't really help
<manveru>
tilpner: afaicr it's made as part of the hydra evaluation for the current stable release
Coyin has quit [Ping timeout: 276 seconds]
Coyin has joined #nixos
<tilpner>
manveru - But surely that expression still lives inside nixpkgs?
<srhb>
xinming: Oh, so you're trying to fetch the source from git? You shouldn't actually be using git directly for that
hsribei has joined #nixos
<manveru>
tilpner: yeah, i used it once... lemme find it again :)
<srhb>
xinming: Usually we ensure the dependencies are purely available already.
<tilpner>
... a Makefile outside of nixpkgs :/
<tilpner>
Thanks a lot, manveru! :)
<srhb>
xinming: Sometimes we have to patch the build scripts to make sure we can use our fetched-by-nix dependencies if they're particularly hostile to a pure environment.
Coyin has quit [Client Quit]
wchresta has quit [Remote host closed the connection]
<xinming>
Ok, got it, So, I'll have to patch the build scripts.
<srhb>
xinming: But a rule of thumb to begin with is: You can only use dependencies that you're using nix to fetch. You can't let the build process use the network. How to deal with that varies from package to package :)
ajs124 has left #nixos ["Stream closed by us: Timed out waiting for stream resumption (connection-timeout)"]
<xinming>
srhb: Ok, THanks, will check deeper
ajs124 has joined #nixos
<srhb>
xinming: Sure thing. If you have some questions on the specifics, feel free to ask the channel
<srhb>
It's always easier to work from an actual example.
<xinming>
I'm checking how the old packages are built
<teto1>
are there nixpkgs functions to smartly unindent multiline strings ? I am writing python scripts and would like the unindent behavior to not count empty lines in the minimum
<vaibhavsagar>
it's failing at a certain stage and I would like to debug it, hence my question :)
<clever>
vaibhavsagar: yeah, that should give a 32bit shell
<xinming>
the --gen-moar arg means that
<clever>
vaibhavsagar: what stage does it fail at?
<clever>
vaibhavsagar: and how does it behave differently in nix-shell?
<vaibhavsagar>
clever: it assumes a 64-bit build, so it fails from the beginning
<vaibhavsagar>
in the nix-shell, that is
<xinming>
Seems, the nix experience is harder than docker :-)
<vaibhavsagar>
with `nix-build`, something in the build fails
<xinming>
Will try to understand the whole procedure
peti has joined #nixos
peti has left #nixos ["WeeChat 2.1"]
<vaibhavsagar>
clever: the error with nix-build is something like `What, run() returned!`
`_ has quit [Ping timeout: 276 seconds]
<vaibhavsagar>
which I have never seen before
nschoe has quit [Quit: Program. Terminated.]
<srhb>
xinming: It also has way more guarantees
<xinming>
i understand that
<srhb>
:)
<xinming>
minimize the side-effects
<xinming>
the packages clone from github may change after the .nix is written
<srhb>
RUN curl http://foo is not as reproducible as people claim :D
<xinming>
Yea
<clever>
vaibhavsagar: i also get that run() error with nix-build
<vaibhavsagar>
hmm, good to know it's not just me then
<clever>
vaibhavsagar: i ran nix-shell then genericBuild, its building again
simukis has joined #nixos
<vaibhavsagar>
is it putting things in x86-64 though?
<xinming>
srhb: Do you have any idea on how I fix this?
<vaibhavsagar>
it does that for me and then segfaults
<xinming>
If I can deal with this, I think It'll greatly improve the my understanding of nix. :-)
<srhb>
xinming: Sure. On a high level: Fetch moar as a separate source and point the configure script at that local source. It will look something like
<clever>
vaibhavsagar: i think i see the problem, nix-shell is giving you a 32bit only gcc, but uname still reports 64bit
<srhb>
xinming: let moar = fetchFromSomewher ...;
<clever>
vaibhavsagar: nix-build with a sandbox enabled will fake the uname output
<srhb>
xinming: And then your build script should point at moar
<vaibhavsagar>
ah, I see, thanks clever
<clever>
vaibhavsagar: so the build system is broken and checking uname to see what arch it should target
<srhb>
xinming: Note, this is not a completely trivial technique, not something that second-day-users tend to try!
<srhb>
xinming: It looks like maybe the -git-reference flag to the configure script might take a local source?
<clever>
vaibhavsagar: re-running nix-build with an strace on the nix-daemon
<srhb>
xinming: A better solution is probably to start by writing an entirely new derivation for moar itself
<srhb>
xinming: And make the build of rakudo use that.
<vaibhavsagar>
clever: you think the build might succeed with a matching uname?
<clever>
vaibhavsagar: nix-build fakes the uname, so it thinks the kernel is 32bit only, when set to 32bit mode
<clever>
so the strace is going to capture the run() issue
Guanin has quit [Remote host closed the connection]
Guanin has joined #nixos
jperras has joined #nixos
graphene has quit [Remote host closed the connection]
<clever>
vaibhavsagar: dang, got distracted
graphene has joined #nixos
<clever>
vaibhavsagar: fprintf(stderr,\"What, run() returned!\\n\"); is a line in some of the src
alex`` has quit [Ping timeout: 256 seconds]
jperras has quit [Ping timeout: 240 seconds]
<clever>
vaibhavsagar: ah, looking at the source, the error implies that run() should never return, but it did
alex`` has joined #nixos
<hodapp>
so... it seems that the only "reliable" way to make Boost build with multiple Python versions is to do the build in two passes (but with the same build directory and slightly different options)
<hodapp>
this might be interesting to do in Nix...
iyzsong has joined #nixos
<hodapp>
anyone know of anything else in Nixpkgs that requires this sort of multi-pass build?
<hyper_ch2>
goibhniu: and swiss german keyboard :)
<hyper_ch2>
wow, that looks nice
<goibhniu>
hyper_ch2 sweet! They do have great configuration options.
<hyper_ch2>
with 32gb ram, newer wifi € 1100
<hyper_ch2>
I already have ssds so no need to take there anything
<hyper_ch2>
and i7 instead of i5
<goibhniu>
hyper_ch2 they use tweaked barebones laptops made by http://www.clevo.com ... Tuxedo can usually get other models too, in case you fancy something else.
<hodapp>
clevo, haven't heard that name in awhile
<hodapp>
I had a Clevo laptop many many years ago
<goibhniu>
system76 use the same ones AFAIK
<{^_^}>
[nixpkgs] @yesbox opened pull request #43810 → bfs: enable the test_fstype test → https://git.io/fNnKZ
<hyper_ch2>
I bookmarked tuxedo now
tertle||eltret has joined #nixos
spear2 has quit [Remote host closed the connection]
<irc12286>
I have a nix-collect-garbage process that's been running for over 10 hours and is obviously holding the GC lock. Is it safe to kill the process and try running it again? Does anyone know what might cause GC to hang?
<tilpner>
irc12286 - Maybe strace it to see if it's still doing something?
<irc12286>
good idea, thanks
nek0 has quit [Ping timeout: 276 seconds]
spear2 has quit [Remote host closed the connection]
<tilpner>
Also, how big is your store, and how fast is the backing drive?
wpcarro has quit [Ping timeout: 244 seconds]
<irc12286>
there's 588 gb used on a 2tb drive, not sure how fast it is, but i'm fairly sure it hasn't taken this long before
freeman42x]NixOS has joined #nixos
<init_6>
Hi all thx for all you work. Nixos is asome and i like it.
<irc12286>
strace reveals lots of fcntl and pread64 calls
<gchristensen>
eh maybe kill it
<clever>
irc12286: yeah, id ctrl+c it, then run `nix-collect-garbage --max-freed 1`
<gchristensen>
I've definitely ctrl-c'd the GC before :)
<gchristensen>
we know it is a problem and are scheduled to fix it. TLS isn't a fundamental part of the security of the nixos cache. the https certificate was issued by a provider which has been detrusted by browsers, but not Nix so won't cause actual problems. still, it looks very bad and we know we need to fix it.
<dramforever>
Oh indeed, the hash is already a security measure
<gchristensen>
and the per-path signatures :)
Tucky has joined #nixos
jperras has quit [Ping timeout: 240 seconds]
<dramforever>
Kinda like how (IIRC) apt distributes packages over http
<gchristensen>
yeah
<dramforever>
One benefit of https over http I can think of, is probably that someone watching my network connection won't know I'm downloading GHC
<clever>
dramforever: i can tell your downloading ghc just from the size of the download :P
<dramforever>
And we could *potentially* use http 2 some day
<clever>
its the only thing that big :P
<gchristensen>
dramforever: I think it already uses http2?
<dramforever>
wow
<infinisil>
clever: I think Go is also in that range
<dramforever>
They do use HTTP/2
<dramforever>
... which requires TLS
<gchristensen>
by "it" I mean "nix"
rprije has quit [Ping timeout: 255 seconds]
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tilpner>
infinisil - ghc seems to be twice as big
<hodapp>
but you can tell whether it's Haskell or Go by whether the download smells like amazingness, or like dusty punch-cards and stale coffee
<dramforever>
by 'it' I mean 'nix' as well :)
<infinisil>
hodapp++
<{^_^}>
hodapp's karma got increased to 4
<hodapp>
\o/
<dramforever>
dramforever--
* hodapp
has a moment of happiness before he goes back to writing Go code :[
<dramforever>
Sorry for derailing the channel with an oddly specific example
<Taneb>
I was seeing this myself, but now I'm not and I'm not exactly sure what I did to chang it
tenten8401 has joined #nixos
hxrts_ has joined #nixos
jensens has quit [Ping timeout: 244 seconds]
epta has quit [Ping timeout: 256 seconds]
<tenten8401>
would anyone here know why I'm unable to use makeLibraryPath? When calling ${makeLibraryPath [ mydependencies ]} inside of a string, it's telling me that I called it without a required argument "makeLibraryPath"
<tenten8401>
despite working with only one argument inside of another file
<infinisil>
tenten8401: Add it to the arg list at the top
<infinisil>
oh
<infinisil>
no, it's in lib
<infinisil>
lib.makeLibraryPath
<infinisil>
Or stdenv.lib.makeLibraryPath
<tenten8401>
I've tried importing makeLibraryPath directly and calling lib.makeLibraryPath
<infinisil>
gchristensen: The only thing I know is that data files are supposed to go somewhere in $out/share/<name>, and I did package some python packages (but none that requires this explicitly)
<gchristensen>
ok, my question: with nixpkgs' python infra, how the heck do I put non-python data files in my python package and refer to them in python? nixops does this weird thing of looking in os.path.realpath(os.path.dirname(__file__) + "/../../../../share/nix/nixops") then os.path.realpath(os.path.dirname(__file__) + "/../../../../../share/nix/nixops") then os.path.dirname(__file__) + "/../nix"
<hodapp>
so I made Boost build both Python 2.x and 3.x bindings, but in order to do so, buildPhase had to have a second phase to call things from configurePhase, from (original) buildPhase, and then from installPhase
<hodapp>
this is a really ugly way to handle things
<hodapp>
but I require the 2nd configurePhase after the build to point it to the other Python, the 2nd build to make it build for that, and the 2nd installPhase before all of this so that the results of the first build aren't lost :-/
hyper_ch2 has quit [Quit: Page closed]
<infinisil>
gchristensen: That doesn't sound too bad, maybe a bit nicer would be to set a variable ROOT=realpath(__file__ + ../....) (which would then be $out) in the topmost python script, then refer to ROOT later
<gchristensen>
well it has to check all three paths
<tenten8401>
is there a way to coerce multiple lists together?
<LnL>
gchristensen: I'm using MANIFEST.in + os.path.join(__file__, '../../..')
<gchristensen>
LnL: ooh! do you have any links to read about that?
<infinisil>
Well you need 2 files if you don't want to override the generated one
<grp>
I've managed to define a package, then put it in an system-wide (/etc/nixos/overlays/) overlay and I'm happy that nix-env and other commands see it just fine, but I can't seem to use anything from the overlays inside configuration.nix. I've already followed https://nixos.wiki/wiki/Overlays#On_the_system_level and https://nixos.org/nixpkgs/manual/#chap-overlays, but seems I'm missing something. I've thought of
<grp>
manually adding each overlay definition in configuration.nix's imports, but that seems to defeat the purpose of overlays auto-sourcing
<infinisil>
i-am-the-slime: Since you probably want to regenerate that at some point
<grp>
anyone does system-wide overlays? I'd like to see a minimal example if possible
<infinisil>
i-am-the-slime: put the generated one in gen.nix or so, then in default.nix do `(import ./gen.nix).overrideAttrs {...`
<i-am-the-slime>
let me try taht
<infinisil>
grp: Use the nixpkgs.overlays option
epta has joined #nixos
<grp>
infinisil: so I need to manually declare them?
<grp>
infinisil: so, nix tools auto-source them, but I need to declare them for nixos-rebuild?
{^_^} has quit [Remote host closed the connection]
<infinisil>
Anyways, the "Using nixpkgs.overlays as <nixpkgs-overlays>" is a hack by samueldr which allows you to declare overlays at one point and have both configuration.nix and the nix commands use them
graphene has quit [Remote host closed the connection]
<tokudan[m]>
i see that nixos comes prepared for storing the LUKS password in a yubikey (boot.initrd.luks.devices.<name?>.yubikey) and the documentation of the options points to the nixos wiki, but i cannot find anything there. can someone point me to any documentation?
crmlt has quit [Ping timeout: 240 seconds]
<BlessJah>
/bin/sh: relocation error: /nix/store/83lrbvbmxrgv7iz49mgd42yvhi473xp6-glibc-2.27/lib/libpthread.so.0: symbol __sigtimedwait, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
johanot has quit [Quit: Leaving.]
<i-am-the-slime>
infinisil: Can you think of anything else I can try?
<infinisil>
i-am-the-slime: Oh, well that means a dependency fails to even compile
<BlessJah>
I'm not that good with glibc errors, could someone tell me what's going on?
periklis has quit [Remote host closed the connection]
<BlessJah>
it's from python application
<infinisil>
i-am-the-slime: The full error should tell you which one
cryptomonoid has joined #nixos
erickomoto has joined #nixos
<infinisil>
i-am-the-slime: You'll have to fix that dependency by overriding it with a fix for it (which might be something you just did here with adding git to buildInputs)
<grp>
infinisil: the problem I'm having is: nixos-rebuild is not aware of the packages defined by overlays. I've defined nix.nixPath, put the overlays-compat stuff verbatim. At first I had my overlays in /etc/nixos/overlays, then moved them to ~root/.config/nixpkgs/overlays but the result is the same: nix tools load them just fine but nixos-rebuild throws the "undefined variable" error everytime I use a package
<grp>
defined in an overlay. I'll try a few things more... if it doesn't work, I'll properly pastebin everything.
<infinisil>
grp: And `echo $NIX_PATH` does contain the overlays-compat path?
<infinisil>
grp: When you do `nix-build '<nixpkgs>' -A <some-package>`, do you have the overlays packages available?
migy has quit [Quit: migy]
reinzelmann has quit [Quit: Leaving]
<i-am-the-slime>
infinisil: I don't get it.
migy has joined #nixos
__Sander__ has quit [Quit: Konversation terminated!]
<infinisil>
i-am-the-slime: nix-shell enters a shell with the dependencies to build your package, it does nothing to build your package, it just gets all the dependencies. Since you can't even enter the shell, the error is in one of the dependencies
<i-am-the-slime>
and how could I modify this dependency?
justanotheruser has quit [Ping timeout: 260 seconds]
<srhb>
manveru: infinisil: As Tekmo, occasionally.
jmeredith has quit [Quit: Connection closed for inactivity]
<manveru>
thanks
<elvishjerricco>
I really wish his haskell-nix repo use callCabal2nix. It's been a much better practice in my experience
<dhess>
elvishjerricco: I recently saw something about that. Do you have any example repos where you use it?
<infinisil>
srhb: In irc?
<srhb>
infinisil: Yes, but very rarely.
<elvishjerricco>
dhess: hm... not sure
<infinisil>
srhb: Ah I see, my logs don't reach that far back to have seen that nick even once :)
<elvishjerricco>
dhess: I know we use it a ton in reflex-platform
<elvishjerricco>
But that isn't exactly the pinnacle of approachable Nix code...
<dhess>
elvishjerricco: so currently on a few projects, I have serialized the output of `cabal2nix` out to a .nix file and I check that into my repo. Does callCabal2nix basically obviate the need to do the serialization bit?
<elvishjerricco>
dhess: yup
<dhess>
ok cool, that should be easy enough then
<manveru>
i really wanted to use dhall-to-nix, but since it's been broken forever i either use an ancient version or just use nix instead :|
<dhess>
one drawback, I assume, is that means every nix-build you do has to hit hackage?
<dhess>
or I guess if the inputs don't change it should be cached
<dhess>
manveru: I've never seen anyone actually use dhall-to-nix in a real project, have you?
<elvishjerricco>
dhess: callCabal2nix takes a source dir as an argument. It runs cabal2nix on that, it doesn't do a remote Hackage thing
<manveru>
not yet
<manveru>
but i'd like to fix that :)
<dhess>
elvishjerricco: ohhhh, ok that won't really help me then.
<srhb>
manveru: I thought I fixed that...
<dhess>
manveru: yeah me too :)
<elvishjerricco>
dhess: There's callHackage for Hackage things
<manveru>
srhb: on unstable?
<dhess>
elvishjerricco: yeah but in my case it's usually not Hackage that I need to hit, it's a github repo
<elvishjerricco>
Which ultimately does the same thing as callCabal2nix, but with all-cabal-hashes and the Hackage sources
<srhb>
manveru: I thought so. But I just checked, and it's either borken again or I just didn't :P
<{^_^}>
anonymous function at /var/lib/nixbot/state/nixpkgs/pkgs/development/haskell-modules/default.nix:1:1 called with unexpected argument 'mkDerivation', at /var/lib/nixbot/state/nixpkgs/lib/customisation....
<infinisil>
Um, well whatever I tested it locally, it works
<srhb>
You need to rescue the old passthru too though
<infinisil>
Well not if you don't end up needing it (as in this function)
erickomoto has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
anonymous function at /var/lib/nixbot/state/nixpkgs/pkgs/development/compilers/ghc/8.4.3.nix:1:1 called with unexpected argument 'mkDerivation', at /var/lib/nixbot/state/nixpkgs/lib/customisation.nix:...
<clever>
nh2: it has to know the length of the list first
<clever>
nh2: the length of a list is not lazy
erickomoto has joined #nixos
<sphalerite>
clever: why does it need to know the lenght?
<nh2>
ah I didn't know that!
<clever>
so it has to at least partially evaluate every single value, to fill the list with thunks
<sphalerite>
oooh right
erickomoto has quit [Client Quit]
<clever>
before it can give you the first item
i-am-the-slime has quit [Ping timeout: 240 seconds]
<infinisil>
> lib.length (lib.filter (x: let res = builtins.tryEval (isExecutable x); in lib.isDerivation x && res.success && res.value) (builtins.attrValues haskellPackages))
<infinisil>
(tryEval to the rescue lol)
<sphalerite>
because it needs to know whether to use one of the optimised one or two-item list things?
erickomoto has joined #nixos
<{^_^}>
anonymous function at /var/lib/nixbot/state/nixpkgs/pkgs/development/compilers/ghc/8.4.3.nix:1:1 called with unexpected argument 'mkDerivation', at /var/lib/nixbot/state/nixpkgs/lib/customisation.nix:...
erickomoto has quit [Client Quit]
<infinisil>
Damnit
<sphalerite>
> lib.length (lib.filter (x: let res = builtins.tryEval (isExecutable x); in lib.isDerivation x && res.success && res.value) (builtins.attrValues pkgs.haskellPackages)
<{^_^}>
error: syntax error, unexpected $end, expecting ')', at (string):162:1
<sphalerite>
?
<sphalerite>
> lib.length (lib.filter (x: let res = builtins.tryEval (isExecutable x); in lib.isDerivation x && res.success && res.value) (builtins.attrValues pkgs.haskellPackages))
<sphalerite>
> haskellPackages
<nh2>
and is there a trick I can get around this conveniently without having to enable unfree?
<nh2>
error: Package ‘cudatoolkit-9.1.85.1’ in /home/niklas/src/nixpkgs/pkgs/development/compilers/cudatoolkit/default.nix:145 has an unfree license (‘unfree’), refusing to evaluate.
<sphalerite>
infinisil: does {^_^} really not like evaluating stuff I write? xD
<{^_^}>
anonymous function at /var/lib/nixbot/state/nixpkgs/pkgs/development/compilers/ghc/8.4.3.nix:1:1 called with unexpected argument 'mkDerivation', at /var/lib/nixbot/state/nixpkgs/lib/customisation.nix:...
<{^_^}>
[nixpkgs] @dtzWill opened pull request #43822 → vim-plugins: updates, add few plugins I use, colorschemes → https://git.io/fNcIn
<srhb>
nh2: Would importing a nixpkgs which has it specifically enabled be acceptable?
<nh2>
srhb: probably yes as it's just a filter, but it might be convenient to just say "filter away all packages that are unfree so that we don't even get this error", if that is possible?
<gchristensen>
you can explicitly enable that one package
<nh2>
gchristensen: I'm working on https://github.com/NixOS/nixpkgs/issues/43795 and want to make an expression that contains all haskell executables, so I can see how many of them manage to be built with musl
<nh2>
with unfree enabled, I still get the following:
<nh2>
nix-repl> lib.length (lib.filter (x: let res = builtins.tryEval (isExecutable x); in lib.isDerivation x && res.success && res.value) (builtins.attrValues pkgs.haskellPackages))
<nh2>
error: anonymous function at /home/niklas/src/nixpkgs/pkgs/development/compilers/ghc/8.4.3.nix:1:1 called with unexpected argument ‘mkDerivation’, at /home/niklas/src/nixpkgs/lib/customisation.nix:74:12
<infinisil>
nh2: Put a `lib.trace` into the function
<nh2>
infinisil: this prints some packages and then fails at
<nh2>
error: Package ‘NewBinary-0.2.1’ in /home/niklas/src/nixpkgs/pkgs/development/haskell-modules/hackage-packages.nix:12938 is marked as broken, refusing to evaluate.
<clever>
nh2: your testing too far out, on the same value that already freezes
<infinisil>
Oh, but allowBroken would be something too
<clever>
try putting the trace deeper into things
<nh2>
clever: the `builtins.trace "${x}"` seems to do the job though and gets us a step further
<infinisil>
It forces evaluation of x though, which might be a problem
eeva has joined #nixos
simukis has joined #nixos
tff^ has joined #nixos
iqubic` has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
<grp>
infinisil: (folding each section is the way to go)
selaux has quit [Remote host closed the connection]
<booglewoogle>
hey, i could really use some help understanding nix-shell. i'm trying to run a shell script from it to install a package, so i'm trying to get into a shell that satisfies the dependencies of the package. what i've gathered from the nix-pills is that nix-shell needs a derivation to work at all, so i've done an empty proxy shell.nix and i'll do "nix-shell -p cmake gnumake xorg.libXrandr libevdev [lots of other packages]"
winem__ has quit [Ping timeout: 264 seconds]
wpcarro has joined #nixos
<gchristensen>
manveru: could probably push it over 30k if I tried ...
<fresheyeball>
can I remove with nix-env via attribute?
<sphalerite>
booglewoogle: you don't need shell.nix if you're using nix-shell with -p
lostman has joined #nixos
<sphalerite>
booglewoogle: if you pass -p it will construct a "dummy" derivation for you having all the things passed on the command line as build inputs
<sphalerite>
booglewoogle: FWIW running a shell script to install a package is likely not to work for other reasons
<booglewoogle>
oh, okay, i tried some things and i thought i got an error before with -p not having a shell.nix. but the important thing is another (sorry for splitting up): https://pastebin.com/0jhn7t7h
<manveru>
fresheyeball: not that i know of, the name of the attribute is lost because there's no reference to the parent derivation, if i got that right
<booglewoogle>
this is what cmake exits with, telling me it's missing some packages that 100% are in the list i supplied to nix-shell
<booglewoogle>
that's where i'm baffle
<fresheyeball>
manveru: I figured it out
<booglewoogle>
d
<fresheyeball>
if I install a second time, it will give me the name
<fresheyeball>
and I can use that
<manveru>
nix-env -q
<sphalerite>
booglewoogle: try adding pkgconfig. By the looks of it it tries to use pkgconfig to find evdev
<fresheyeball>
so adding to buildInputs doesn't add thinks to the nix shell for that drv.env
<fresheyeball>
what was the other one? nativeBuildInputs?
<infinisil>
fresheyeball: Huh, how are you doing it?
<sphalerite>
booglewoogle: this looks like a patched version of dolphin?
<sphalerite>
booglewoogle: you may get away with just replacing the source for the existing dolphin nix package.
<xinming>
What might this error be called please?
<xinming>
Failed to create directory '/homeless-shelter/.zef/store' with mode '0o777': Failed to mkdir: 2
<xinming>
caused
<infinisil>
fresheyeball: Well you'd want to use overrideAttrs on the drv.env
<sphalerite>
xinming: something in a derivation trying to use $HOME
<xinming>
What might this error be *caused* please?
<infinisil>
fresheyeball: Not the drv itself
igo95862 has quit [Quit: igo95862]
<xinming>
sphalerite: How do we fix this then?
<sphalerite>
xinming: the home dir for build users is set to /homeless-shelter, an intentionally nonexistent directory, in order to avoid impurities based on the build process using the home directory
<xinming>
bind mount home?
<xinming>
yea, I know, the build tries to install something to .zef dir
<grp>
samueldr: ping
<xinming>
for this, How do we solve it?
<samueldr>
hi?
<sphalerite>
xinming: get the build not to use the home directory, or if that doesn't work, do something like `export HOME=$PWD` in the derivation
<sphalerite>
that might help
<samueldr>
grp: overlays thing?
<grp>
I am struggling with some nix expressions that you wrote, and wanted to ask a few things
<grp>
yep
<samueldr>
please ask :)
<grp>
I even read your confs repo
<grp>
thoroughly
erickomoto has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<grp>
and even if I see overlays-compat being included in nixPath, I see the overlays being explicitly imported
<booglewoogle>
yes indeed it is! it's https://github.com/FasterMelee/Ishiiruka to be precise. i can't just replace the source with it though. tried that and adding the dependencies that are listed in the well working arch package -- it'll spit out the wrong version, which completely puzzles me as from my understanding nix-build just straight up builds what it's given as require
<grp>
is the overlays-compat hack still working? or something changed since then that broke it?
<samueldr>
on 18.03, it still works for me I think
<samueldr>
I'm not running unstable, so I couldn't confirm for 18.09+ if something broke :/
<Profpatsch>
Argh, can somebody help me with fetchTarball?
<Profpatsch>
t = fetchTarball "link/to/nixpkgs"
<Profpatsch>
import "${t}/nixos"
<grp>
samueldr: so, even if you don't explicitly add them to imports, they work for nixos-rebuild? Should overlays be put in /etc/nixos/overlays or overlays-compat?
<Profpatsch>
nix-repl> import "${t}/nixos" {}
<Profpatsch>
error: got unknown message type 6f74732f78696e2f from Nix daemon
<Profpatsch>
wat
<manveru>
uhum
<tilpner>
Profpatsch - Try in a fresh repl
<infinisil>
Profpatsch: Does it work outside of nix-repl?
<fresheyeball>
is it possible to serve a nix cache with nginx?
<manveru>
Profpatsch: it works here
<grp>
samueldr: so far I've tried all these cases (and more not worth including): http://ix.io/1hK7
<__monty__>
fresheyeball: I run a reverse proxy that caches the cache.
<fresheyeball>
__monty__: what do you mean by that? You willing to share your snippet?
<Profpatsch>
manveru: It seems to work from a nix file as well.
<Profpatsch>
As long as you don’t try to import it.
<__monty__>
fresheyeball: I cache cache.nixos.org in my lan so I only go across the internet once for all the machines on the lan.
<manveru>
did you try putting it into a variable?
<fresheyeball>
__monty__: that is awesome!
init_6 has quit []
<samueldr>
grp: all the overlays I want applied system-wide and user-wide do nixpkgs.overlays = [ /* overlay function here, either through import or directly */ ]
<manveru>
__monty__: mandatory "can you share your config" comment :)
cryptomonoid has joined #nixos
<samueldr>
grp: the overlays-compat file will: 1. load the system config. 2. read nixpkgs.overlays 3. use them as an overlay
<endformationage>
Any Krita users here? Krita package from nixos-unstable does not save or open any file formats, including krita files. :( If anyone can confirm.
<__monty__>
fresheyeball, manveru: I think this is all of it: http://ix.io/1hKt
<grp>
samueldr: I see, seems I got it backwards. So overlays-compat hack was to simulate nixpkgs-overlays using nixpkgs.overlays
<manveru>
that's definitely enough for me, thanks man!
<__monty__>
fresheyeball, manveru: I'd maybe check the wiki I think I got most of this from a nixos module so it may be a lot easier on nixos.
<samueldr>
yeah, overlays-compat is so nixpkgs-overlays use what you defined in your nixos configuration
<infinisil>
manveru: See that PR ^^
<grp>
samueldr: hence, I need to build everything with nixpkgs.overlays, and overlays-compat will make it available to nix tools, right
<grp>
?
<infinisil>
grp: I think it's the other way around
<samueldr>
uh, not sure what you mean "build everything with nixpkgs.overlays", but if all your overlays are present there, they'll be available to all nix tools
<grp>
infinisil: that's what I thought too, and the root of all my frustration
i-am-the-slime has joined #nixos
<grp>
samueldr: by "build everything with nixpkgs.overlays" I meant defining nixpkgs.overlays = [ (import ..) ]; through various imports
<samueldr>
I added a disambiguation paragraph and updated the title to be more verbose, does it make more sense? https://nixos.wiki/wiki/Overlays#Using_nixpkgs.overlays_from_configuration.nix_as_.3Cnixpkgs-overlays.3E_in_your_NIX_PATH
<sphalerite>
booglewoogle: how did you determine it to be the wrong version?
<samueldr>
so yeah, this overlays-compat thing doesn't make all overlays load implcitly, you still have to explicitly add them to nixpkgs.overlays
<grp>
samueldr: yes, that makes it perfectly clear
<samueldr>
I did try having an implicit "load everything in folder"
<samueldr>
it uh... caused weird stuff to happen IIRC
<manveru>
infinisil: thanks, building atm :)
<sphalerite>
booglewoogle: thing is, upstream "recommended install scripts" tend not to work on nixos :p
orivej has joined #nixos
<sphalerite>
booglewoogle: it may be that the only thing wrong with the version you built by replacing the sources was the derivation name
<sphalerite>
did you try running the result?
_d0t has joined #nixos
<_d0t>
hi! What's the easiest way to install VirtualBox?
<ixxie>
Can kubernetes orchastrate NixOS containers?
<gchristensen>
well, and a nixos-rebuild switch ...
<_d0t>
neat
<booglewoogle>
the version is shown when you run the program. i'm sorry, i told that wrong: the version of the source it built from may be correct, but the versions showing in the running program is wrong (5.0, which isn't even on the github anymore). this wouldn't be a problem if this seems to prevent me from connecting to other people online with the client (which is what this dolphin patch enables you to do)
<samueldr>
_d0t: if you need the extensions pack (usb 2.0/3.0 support) there is another thing to do
<samueldr>
but yeah, otherwise, the all open-source virtualbox, that's the only thing you have to do
doyougnu has joined #nixos
<grp>
samueldr: oh! using a derivation to load overlays... intriguing!
<booglewoogle>
"if this didn't* prevent me from connecting", sorry
<xinming>
How do I inject the env with .nix file please?
<_d0t>
samueldr, i think that's all i need
<xinming>
Or, I have to write builder wrapper myself?
<sphalerite>
booglewoogle: that's very odd! Can you share the expression you wrote for it?
<_d0t>
thank you guys
<booglewoogle>
the quintessence is: in some way it's not building correctly
<booglewoogle>
of course! sec
* grp
got to go real quick, will be back in a while
grp has quit [Quit: box shutting down...]
<sphalerite>
xinming: you can put the export command in preConfigure to have it run before configure scripts
<xinming>
I'm still testing, still need to think how nix handles the packages which always need to write to $HOME/ dir
<booglewoogle>
i built this successfully with "nix-build -E '(import <nixpkgs> {}).callPackage ./fastermelee.nix {}'", it's just not giving me 5.9b but 5.0 instead
<srhb>
xinming: It's simply disallowed. Nix can (must/will) only write to /nix/store
<booglewoogle>
as shown in the running program
_d0t has left #nixos ["Leaving"]
<xinming>
I just meet nix 2 days, and now I decide to make it my primary package manager.
<xinming>
srhb: What if the package is deployed?
<xinming>
hmm, well, I'll try.
<xinming>
Now, still compiling
<srhb>
xinming: On NixOS? We do manage some things, though not $HOME. INstead you can have symlinks into the store from $HOME.
<xinming>
Not nix os, Only nix app
<srhb>
The package manager itself still cannot touch home then
<booglewoogle>
the devs do say the version checking is weird in some way, but i'm wondering where the difference to building this on arch linux in the classical way (where it works) lies
<srhb>
Your package can, possibly, at runtime, if you have no other option
<xinming>
The system is running in gentoo.
<xinming>
srhb: Ok, I think I understand.
<xinming>
But needs some test
<sphalerite>
booglewoogle: yeah that is weird, let me see if I can repro
ersran9 has quit [Ping timeout: 260 seconds]
<manveru>
infinisil: seems fine
sir_guy_carleton has joined #nixos
<xinming>
before, I wished to learn to make deb/rpm/ebuild. with nix, I need to learn one. :-)
<xinming>
All I need to learn is nix.
imalison has joined #nixos
<sphalerite>
booglewoogle: where's cubeb.patch?
graphene has quit [Read error: Connection reset by peer]
<sphalerite>
booglewoogle: aaaaargh pastebin.com puts CRLF line endings D:
<booglewoogle>
that was the first problem i encountered in building this when i started engaging the fastermelee-nixos-build-project about 2 weeks ago. a great person in the nixos reddit helped me figuring that one out. i'm still amazed by that
<booglewoogle>
oh :(
<sphalerite>
got to love the nixos community :D
<booglewoogle>
yeah, definitely!
<joepie91>
[19:57] <sphalerite> *elevator music as it builds*
<joepie91>
we need a patch for this
<joepie91>
:P
vandenoever has quit [Read error: Connection reset by peer]
<sphalerite>
joepie91: on it!
<joepie91>
aplay elevatormusic.wav while a derivation is building
jperras has joined #nixos
qwerty_asdf has joined #nixos
jperras has quit [Read error: Connection reset by peer]
jperras_ has joined #nixos
srl295 has quit [Quit: Connection closed for inactivity]
lonokhov has joined #nixos
<qwerty_asdf>
hi all, just wondering .. how do you install packages? are you declaratively installing (as root) or using a user profile and keeping most packages local?
asymmetric has quit [Remote host closed the connection]
<tilpner>
qwerty_asdf - Declarative with users.users.till.packages
asymmetric has joined #nixos
Guest50547 has joined #nixos
<tilpner>
Some people also define environments and install them with nix-env
drbrule has quit [Quit: Lost terminal]
vandenoever has joined #nixos
vandenoever has quit [Changing host]
vandenoever has joined #nixos
<tilpner>
Still declarative while not requiring roo
<tilpner>
*root
<samueldr>
declarative, systemPackages, for one-off tests nix-shell -p thatPackage
<andi->
^ same
<booglewoogle>
yep, same here
<clever>
samueldr: or nix run nixpkgs.foo
<endformationage>
Hmm, recent Krita package works if I run it with sudo, but fails saving / openning anything when run normally.
<samueldr>
you and your fancy nix 2.0
<qwerty_asdf>
but doesn't it get tedious modifying the config via root all the time?
<andi->
endformationage: what does fail mean? Any error log on stderr?
<samueldr>
qwerty_asdf: it's not as if I was modifying my configuration endlessly
<samueldr>
while setting it up, the vim buffer was opened, so only one sudo, and a rebuild using another sudo
<samueldr>
not really tedious
<andi->
For many weeks I do not even touch my system config besides running updates..
<Guest50547>
hey everyone, I'm trying to do some haskell development but all the packages appear to be outdated when installing them through nix-shell (ghcWithPackages). Even though all of them are listed as having much newer versions available on NixOS on hackage. What am I missing?
<samueldr>
and yeah, for updates, I generally don't touch the config
<endformationage>
As in it fails to actually save/open when the actions are performed by the UI. The dialogs come up, but nothing hapens.
<qwerty_asdf>
samueldr: thats true I guess, now that I think about it
<andi->
I probably wouldn't need root permissions for months if I did automatic updates..
<clever>
Guest50547: when is the last time you did a `nix-channel --update`
<qwerty_asdf>
yes, makes sense
<samueldr>
qwerty_asdf: you could also have your nixos-config folder chowned to your user
<Guest50547>
clever: Today
<samueldr>
it would lessen a tiny bit your security though, but still require sudo for rebuild switch/boot
alex`` has joined #nixos
<samueldr>
(someone/some software could realistically modify your files while they can't if they're not owned by you)
<samueldr>
(but by then, you have other problems IMHO)
<Guest50547>
clever: but thats only the user channels (sudo nix-channel was a longer time ago)
<{^_^}>
[nixpkgs] @andir merged pull request #43642 → release-18.03: Update VLC to version 3.0.3 → https://git.io/fN3vd
<{^_^}>
[nixpkgs] @andir pushed 3 commits to release-18.03: https://git.io/fNcGB
<qwerty_asdf>
yeah, I don't think I'll do that, but it's good to know.
<clever>
Guest50547: try with sudo as well, then restart the nix-shell
<sphalerite>
booglewoogle: ok I have a suspicion now
<qwerty_asdf>
I'll migrate my local user packages to sys-wide and take advantage of nix-shell from now on samueldr
<booglewoogle>
:o you do?
<endformationage>
andi-: may not be related, but running from a term there's a msg: 'krita.ui: Could not find sync functions, disabling sync notification.'
<sphalerite>
booglewoogle: I'm guessing it tries to get the version information from git. But fetchFromGitHub doesn't leave any of the git version info around.
<andi->
endformationage: are you on 18.03 or unstable?
<booglewoogle>
ohh okay
<endformationage>
The package is installed form unstable.
<endformationage>
4.1
asymmetric has quit [Quit: Leaving]
cryptomonoid has joined #nixos
<endformationage>
andi-: I couldn't get 3.3.3 from 18.03 to run on my hardware.
<booglewoogle>
i wouldn't know how to take this on. sounds like it's nothing i can do on my end if I don't want to dive into the source code?
<{^_^}>
[nixpkgs] @domenkozar pushed commit from @Infinisil to master « haskellPackages.hnix: Fix build (#43824) »: https://git.io/fNcG5
<andi->
how did oyu install that?
Henson has joined #nixos
<andi->
systempackages?
<sphalerite>
booglewoogle: you might need to do some more poking around in the CMakeLists.txt to work out if you need to set any more variables
<sphalerite>
booglewoogle: but that should basically make it work
<Guest50547>
clever: Unfortunately updating the channels does nothing. The versions of the packages I'm getting are exactly the ones that are listed in nixos.org/nixos/packages. But Hackage has links to much newer versions on the hydra servers.
<clever>
Guest50547: what does `nix-channel --list` report for each user?
<infinisil>
Huh, when I set `installPhase`, do I need to explicitly run the `postInstall` hook? I thought it would get run automatically
<sphalerite>
infinisil: yes
<clever>
infinisil: correct, the installPhase is responsible for the pre/post hooks
<infinisil>
Hmm alright..
<Guest50547>
clever: user account is on nixos-unstable, root is on 18.03
<infinisil>
So I do `eval "$postInstall"`
<booglewoogle>
sphalerite: alright, i see. that's a really great lead already! i'm still green at this, and this gives me an idea of what i can do with cmakeflags. thanks a bunch!
<sphalerite>
infinisil: no, `runHook postInstall`
<Henson>
Is using a nix-shell to build software in a reproducible environment a good use case? I'm trying to build some Python code to an executable using Nuitka, and it works, but the Nuitka binary depends on shared libraries in /nix/store, so it's not suitable for deploying on a system that does not have nix installed.
<booglewoogle>
it's building now, so much suspense
<infinisil>
sphalerite: clever: And this applies to all phases? when I set buildPhase I need to eval postBuild in it too?
<endformationage>
andi-: My system is running on a build from an unstable checkout, and krita is installed with nix-env where -f is the path of the unstable branch (though it may not be the same commit, going to check)
<sphalerite>
infinisil: yep
<infinisil>
sphalerite: Alright thanks :D
<clever>
Guest50547: its probably defaulting to roots channel, which is pinned to the stable 18.03 channel
<clever>
Guest50547: what nix expression are you currently using?
<sphalerite>
Henson: ideally, you'd build it within nix and deploy it using nix as well
<infinisil>
sphalerite: I searched for $postInstall in nixpkgs and there are some instances of people using `eval "$postInstall"` :O
<infinisil>
(but many more using runHook)
<sphalerite>
Henson: failing that, you could build it with nix and tar up the closure of the resulting path, then deploy that. If you can't create /nix on the target machine, you may want to look into something like nix-bundle
iqubic has joined #nixos
<Guest50547>
clever: the nix expression is a modified version of the one listed in section 9.5.2.5 of the nixpkgs manual, the only modifications are changing the compiler version to ghc822 and changing the dependencies from 'monad-par mtl' to my own dependencies
<clever>
Guest50547: try changing the `import <nixpkgs>` to `import <nixos-unstable>` and see if that makes any difference
<Henson>
sphalerite: ok, thank you for the information
<clever>
Guest50547: you may need to add nixos-unstable to roots `nix-channel` as well
<Henson>
sphalerite: how would I "tar up the closure of the resulting path?"
<clever>
Henson: run `nix-store -qR` on the path and tar up everything in that list, there is also a nix expression to do it
<andi->
endformationage: krita from current unstable channel works fine (even thought the rest of the system is mostly on 18.03). Not sure where to start with that debugging then
<sphalerite>
Henson: nix build && tar c $(nix-store -qR result) | ssh root@target 'cd /; tar x'
udkyo has joined #nixos
<sphalerite>
Henson: or rsync it over, or whatever :)
<endformationage>
andi-: Just reinstalled krita from same checkout my system is built from (unstable), and problem remains.
<sphalerite>
tar is convenient because it's a single stream you can pass around through all kinds of different channels, but rsync could be more efficient, or whatever other way you might want to copy the files
leotaku has quit [Read error: Connection reset by peer]
<endformationage>
andi-: Did you try saving / opening a file?
<sphalerite>
Henson: in any case, nix-store -qR will list all the other store paths that a given store path depends on
<clever>
Henson: this nix expression will generate a tar containing hello
<endformationage>
andi-: Thanks for taking a look!
cryptomonoid has quit [Ping timeout: 276 seconds]
<andi->
endformationage: I opened, edited and saved a PNG
<Henson>
clever, sphalerite: awesome, thank you
<Guest50547>
clever: 'import <nixos-unstable>' leads to an error (nixos-unstable was not found in the Nix search path)
<clever>
Guest50547: add nixos-unstable to roots channel list and then run update again for root
humanoyd has quit [Quit: WeeChat 2.2]
pie__ has joined #nixos
<hyper_ch>
clever: still awake?
<clever>
hyper_ch: i spoke just 40 seconds ago :P
<hyper_ch>
could have been your kitty walking over the keyboard
<Guest50547>
clever: Isn't that kind of strange though? That would effectively force all developers to use the unstable channel if that would fix it (I'll check it anyway but it doesn't make much sense to me)
udkyo has quit [Ping timeout: 264 seconds]
<hyper_ch>
clever: well, I tested it now and it did boot nixos on 4.17... however there way a pool import time of 2:25 minutes...... also when kde then was started it took quite a long time
<clever>
Guest50547: you can also change your nix expressions to always load the unstable directly, and ignore what channel the user has
<clever>
hyper_ch: check the journal and dmesg, and top
<Lisanna>
strange... hydra shows the priority of these several jobs as being 200 (normal priority is 100 I think), but they don't get built in a timely manner. Bumping them works though...
<infinisil>
manveru: Does this also fix the build of dhall-to-nix?
<Guest50547>
clever: Your recommendation to change the root channel to nixos-unstable has yielded the desired result
<clever>
Guest50547: the above change should also work, and entirely ignore channels
<Guest50547>
clever: How bad is it to run the entire system on unstable? Is it comparable to Arch?
<clever>
Guest50547: if you check `nix-channel --list`, youll see you have 2 channels on root, `nixos-rebuild` only uses the channed named nixos
<clever>
Guest50547: i also run nearly all of my machines from nixos-unstable, and they are perfectly stable
<Guest50547>
clever: no I changed the nixos one, changing the nixpkgs one did not do anything
graphene has quit [Remote host closed the connection]
<Guest50547>
clever: okay I guess I'll take my chances with unstable
<booglewoogle>
sphalerite: that cmakeflag didn't fix it unfortunately, but i'll look if i can find some more. there's also 6.0 coming soon which was at least promised to have some versioning problems fixed, so that's some hope. thanks again for your input!
<clever>
Guest50547: you can always rollback from grub if it ever breaks massively, and always change the channel back whenever it does break
<Guest50547>
clever: Thank you for your help
<Guest50547>
clever: Yes I am aware
graphene has joined #nixos
drakonis has joined #nixos
muzzy__ has joined #nixos
<ghostyy>
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
<ghostyy>
how do i compile with clang on nixos?
<clever>
ghostyy: you need to use clangStdenv.mkDerivation
<hyper_ch>
(and then then 15 secs to enter password)
<sphalerite>
booglewoogle: no problem! You could also just patch the version-guessing logic out of CMakeLists.txt entirely
<clever>
hyper_ch: yeah, but there isnt much information there, you want to get a shell before it imports the pools and try to inspect what is going wrong
<muzzy__>
the package isnt available in the nix repo. I have to install by other means. I heard something about using nix-shell but if thats only for development...
<clever>
hyper_ch: run `less /init` and find the command nixos uses to import the pool
<clever>
hyper_ch: then try running that one and see if it differs
<booglewoogle>
i'm curious about something else: how would I have to change the 'expression' i linked (https://pastebin.com/rH4exQgx), which I suspect actually isn't one, so i can simply call nix-shell or nix-build on it with the same result? i ask this to further my understanding of nix itself
<ghostyy>
now i get /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/ld: cannot find -lc++abi
<booglewoogle>
i've tried some things based on how much i've gathered from the manual and the nix pills, but none of that worked
crmlt has joined #nixos
<ghostyy>
ah wait
<ghostyy>
i need libcxx and libcxxabi
<infinisil>
,callPackage booglewoogle
<{^_^}>
booglewoogle: If a Nix file ./foo.nix starts with something like `{ bar, baz }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
drakonis has joined #nixos
<booglewoogle>
yeah, i'm doing that
<infinisil>
Ohh i see
<booglewoogle>
but i want to change the file so i can just use nix-build
<infinisil>
You can put this callPackage business into a new file
<booglewoogle>
or nix-shell for that matter
wpcarro has quit [Remote host closed the connection]
<infinisil>
And if you don't care about keeping it with the args at the top, you can replace them with `with import <nixpkgs> {};`
wpcarro has joined #nixos
<infinisil>
(This will then only need a single file)
muzzy__ has quit [Ping timeout: 244 seconds]
<booglewoogle>
okay
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #43825 → haskell: remove unused LDFLAGS in generic-builder → https://git.io/fNcCx
<clever>
hyper_ch: also note that there may be a seperate issue, where it doesnt work until the uptime is 2 minutes, and your too slow to catch it
<clever>
hyper_ch: now that you know the right command, reboot and type it in as fast as possible
<hyper_ch>
clever: the only difference to the one I use originally was that it also adds -d /dev/disk/by-id -N -f
<{^_^}>
[nixpkgs] @pSub pushed commit from @kamilchm to release-18.03 « oraclejdk: 8u171 -> 8u181 »: https://git.io/fNcWz
<mog>
how can i do a nixos-rebuild switch --upgrade, but just have it download everything
<hyper_ch>
but I'll test it of course :)
<mog>
i am going to be traveling and wont have internet
<mog>
but want to pull everything down now
jperras_ is now known as jperras
wpcarro has quit [Ping timeout: 248 seconds]
graphene has quit [Remote host closed the connection]
<booglewoogle>
infinisil: this is also just for learning purpose: how come now with just 'with import <nixpkgs> {};' i'll have to use the full attribute names for the buildinputs, e.g. 'xorg.libpthreadstubs' instead of 'lipthreadstubs'?
<infinisil>
mog: good question.. building all fixed output derivations might work for that
<booglewoogle>
equivalently: why did it work before without prepending the xorg like that
<infinisil>
booglewoogle: ah, i think that might be because callPackage automatically adds the xorg attrs to the scope
<booglewoogle>
i see
<booglewoogle>
that cleared up some confusion
<booglewoogle>
thanks a bunch
<infinisil>
:)
<booglewoogle>
okay, learned some stuff again! thanks everyone! heading out now, got some more math to do (:
<hyper_ch>
clever: so, tried againa and entered immediately... pool took about 2-3 secs to import.... after booting up, I did a normal reboot and again the 2m23s timeout
booglewoogle has quit [Quit: Leaving]
<clever>
hyper_ch: out of ideas then
udkyo has joined #nixos
wpcarro has joined #nixos
<infinisil>
mog: I can try to help with that in like an hour
udkyo has quit [Client Quit]
<hyper_ch>
clever: add boot.debug1devices as kernel parameter for the time being?
<clever>
hyper_ch: if your fine with manually importing the pool every time
<hyper_ch>
clever: you think waiting 2 1/2 min is better?
wpcarro has quit [Remote host closed the connection]
<clever>
hyper_ch: i just never shutdown :P
<clever>
hyper_ch: you could also rollback
wpcarro has joined #nixos
<manveru>
infinisil: sure does
<hyper_ch>
but I want latest and bestest kernel (and finally purge all old generations)
wpcarro has quit [Remote host closed the connection]
<boomshroom>
I'm trying to use a Zelda OOT randomiser that's writen in python and it's complaining about `ImportError: No module named tkinter` I tried with `nix-shell -p "python.withPackages (ps: [ps.tkinter])" --run "python Gui.py"` and `nix run "(import <nixpkgs> {}).python.withPackages (ps: [ps.tkinter])" -c python Gui.py` and neither work.
wpcarro has joined #nixos
kerrhau has joined #nixos
kerrhau has quit [Changing host]
kerrhau has joined #nixos
onon has joined #nixos
<FRidh>
boomshroom: that's surprising
<FRidh>
how about `import Tkinter` with uppercase T
<FRidh>
its uppercase in 2.x and lowercase in 3.x
<FRidh>
so I think you need to use python3
<boomshroom>
FRidh: That worked.
<hyper_ch>
clever: well, there's a was a "." too much :)
<clever>
hyper_ch: ah, oops
<clever>
hyper_ch: you can also use math for the max arc size
<hyper_ch>
fixed it :)
<hyper_ch>
use math?
<xinming>
what package contains libssl.so please?
<etu>
Hmm, I have an issue regarding extraComponents in home-assistant. Can someone explain why the second block works but the first doesn't: https://ptpb.pw/31Lu/nix
<xinming>
hmm, let me rephrase. After I install a package named rakudo, the rakudo itself contains a module installer, When I try to use the module installer to install modules, I get that error.
<clever>
boomshroom: the above may help
<xinming>
How can I fix this?
<hyper_ch>
I'm off to bed - cya
<xinming>
The error is "Cannot locate native library 'libssl.so': ..." But I do include openssl in buildInputs
<srk>
xinming: propagatedBuildInputs possibly, not sure tho
<{^_^}>
[nixpkgs] @pSub pushed to master « ical2org: adhere to version number convention »: https://git.io/fNcBx
<xinming>
srk: THanks, Let me try again.
<boomshroom>
In other news, which cores are available in retroarch by default?
<xinming>
srk: That should be what I want. Now, I have some ideas of how some things work in nix. :-)
<srk>
cool :)
udkyo has joined #nixos
Lisanna has joined #nixos
Lisanna has quit [Client Quit]
tff^ has quit []
wpcarro has joined #nixos
<xinming>
If the propagateBuildInputs is a large list, Will that make the package bloat?
<xinming>
Since it needs really many libs for my dev env
<clever>
xinming: propagateBuildInputs are not available at runtime
wpcarro has quit [Ping timeout: 264 seconds]
<xinming>
clever: Then, what should I use for my purpose?
<clever>
xinming: is the error happening at runtime or compiletime?, and what compiler is being used?
<xinming>
yea, It seems, still the failure
<xinming>
It's compile time
shabius has joined #nixos
<xinming>
the package itself contains a module installer, which needs runtime dev libs to be used
<xinming>
let's say, cpan for example.
pie__ has quit [Read error: Connection reset by peer]
<clever>
xinming: is it using dlopen()?, how does it search for libs?
<clever>
xinming: throw strace at it?
pie__ has joined #nixos
<xinming>
clever: hmm, It doesn't use dlopen IMO, the module installer needs required header and .so files to successfully compile that module.
<clever>
xinming: how does it search for libraries? does it just assume its in /usr/lib/ ?
<xinming>
I don't know.
<clever>
xinming: run it under strace and read the log
<clever>
xinming: you need to fix perl to not be stupid
<clever>
xinming: also, why is that working?, are you not on nixos?
FRidh has quit [Quit: Konversation terminated!]
abcrawf has quit [Remote host closed the connection]
<clever>
./logfiles.5427:openat(AT_FDCWD, "/nix/store/l0adcz8y05vajfi483a7qv31i03rspqq-glibc-2.27/lib/libssl.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
<clever>
and why is it also looking in glibc??
<clever>
xinming: what happens if you set LD_LIBRARY_PATH=${openssl.out}/lib/ ?
<infinisil>
nh2: Needs a bit more to make it work though, am currently trying some more
abcrawf has joined #nixos
abcrawf has quit [Remote host closed the connection]
<nh2>
infinisil: a big thing necessary would be to filter out packages of which *any* dependency is marked as broken
logzet has joined #nixos
<infinisil>
nh2: Indeed, I almost got that working
<xinming>
clever: How do I set it?
<clever>
xinming: can you gist the current nix expression?
<xinming>
do you mean nopaste?
<clever>
xinming: that also works
<xinming>
hmm, I'll nopaste the modified .nix file
<xinming>
this is the default.nix file I use to compile the package.
<clever>
xinming: try adding preConfigure = "export LD_LIBRARY_PATH=${openssl.out}/lib"; and see if that makes a difference
<xinming>
clever: Do I need to remove the openssl lib
<xinming>
Ok, will try first
Fare has quit [Ping timeout: 245 seconds]
<infinisil>
nh2: Although, sorting out broken ones might not be so important
<infinisil>
nh2: Because there will be lots of unannotated broken ones anyways
<infinisil>
nh2: So what you may have to do is build all of them (allowBroken = true) before doing the change in your PR, and once after, and comparing which ones now don't build
grp has quit [Quit: box shutting down...]
<clever>
xinming: heading off to bed now, goodnight
srl295 has joined #nixos
<boomshroom>
I've given up on retroarch and Steam controller and am now trying mupen. mupen64 doesn't have JoyCon configs, so I trying to added them, but they need to be added to InputAutoCfg.ini which is set to read only after installation. How can I override the derivation to add the configuration?
wpcarro has quit [Remote host closed the connection]
rcshm has joined #nixos
<xinming>
clever: Thanks for your time. Good night, I'll trouble someone else here. :-)
<xinming>
It's still compiling
<clever>
boomshroom: what happens if you run evtest (from the evtest package) as root?
chreekat has quit [Quit: quitting]
<boomshroom>
I have the joycons connected and working through a third party driver and tested with http://html5gamepad.com. Mupen can see the joy-cons, but doesn't know how to map the buttons. I've made a button mapping and now am trying to give it to mupen.
Fare has joined #nixos
<clever>
boomshroom: oh wow, nice find with that site
<clever>
and i need to get off to bed, goodnight
<boomshroom>
My current problem is just appending a few lines to an output file. putting a cat <<EOF >> $out/share/mupen64plus/InputAutoCfg.ini inside postInstall didn't seem to work.
<boomshroom>
And I should get some lunch before work, but instead I'm trying to debug and emulator.
simukis has quit [Quit: simukis]
erickomoto has quit [Ping timeout: 276 seconds]
xy2_ has joined #nixos
logzet has quit [Remote host closed the connection]
wpcarro has joined #nixos
Fare has quit [Ping timeout: 276 seconds]
Fare has joined #nixos
wpcarro has quit [Ping timeout: 244 seconds]
i-am-the-slime has quit [Quit: Konversation terminated!]
udkyo has joined #nixos
rihards has quit [Quit: rihards]
<RetardedOnion>
hi there. i looked into nixos mainly because of the snapshot system. i looked a bit more into functional packagemanagement and was blown away. i am using arch and started my gnu journey with arch, i am a bit familiar with debian. and i got some questions. what would i miss/get accustomed to when switching to nix? is there a good article about the pros/cons about nix? the big *con* i found was that is was unfamiliar because nothing is where one
<RetardedOnion>
weired guy at at&t decided it should be. i also noticed that the wiki page for channels states nixos-18.03. so i assume this system isnt rolling. what are the version upgrades like? do they "work"? or do the version numbers just refer to the installer? i hope this was the right place to ask. if not: please ban me for not finding rules.
<boomshroom>
Rebuilding an emulator multiple times because I want to change a config setting.
<samueldr>
RetardedOnion: there are "snapshots"
<samueldr>
and "unstable" is more rolling
<samueldr>
if it makes sense
<RetardedOnion>
is it like debians unstable or more like a "testing" repo?
<samueldr>
so if you follow the 18.03 channel, you will get security updates for software as of march 2018
<samueldr>
and yeah
<samueldr>
though, NixOS channels have a much shorter lifetime, it goes up to about a month or two after the release of the next stable channel
<RetardedOnion>
samueldr: do you upgrade or do you reinstall?
<RetardedOnion>
boomshroom: what emulator?
ThatDocsLady_ has quit [Remote host closed the connection]
<samueldr>
upgrade!
<samueldr>
RetardedOnion: most upgrades are entirely painfree
<samueldr>
not painless, painFREE!
ThatDocsLady_ has joined #nixos
<samueldr>
you sometime have to update a configuration option, then rebuild just like a day-to-day update
<RetardedOnion>
just like functional package management. it doesnt mean it works. it just functions.
<samueldr>
if something went wrong, the same mechanisms allowing you to boot into a previous generation work
<boomshroom>
RetardedOnion: Mupen64Plus. I need to add a controller specification to InputAutoCfg.ini, but for some reason, adding it to postInstall isn't writing anything.
<boomshroom>
Really, it's Mupen's fault for not letting this get specified in a user configuration. I don't want to do a fresh build from source because I'm trying different indentations.
<RetardedOnion>
samueldr: ok... is there an rss feed for manual interventions required? or something similiar?
<xinming>
clever: after adding that, still the error
mizu_no__ has joined #nixos
<xinming>
clever: But good night anyway.
<samueldr>
RetardedOnion: the manual, but most interventions are hard failure, or optional
pie__ has quit [Read error: Connection reset by peer]
<RetardedOnion>
samueldr: thanks for the heads up. i noticed that not all packages are up to date. libvirt for example is nearly 7 months old. is this default or an exeption?
<samueldr>
RetardedOnion: the packages listing on the website is for 18.03
<samueldr>
(though I haven't checked the libvirt version in unstable yet)
<RetardedOnion>
samueldr: so you are really telling me to go unstable soon after install. thanks:D
<samueldr>
many of the nixpkgs developers are living day-to-day on unstable, and many users are, too
* samueldr
would be interested in surveying actual use :)
aanderse-laptop has joined #nixos
<xinming>
Anyone here knows how to deal with "Cannot locate native library 'libssl.so': libssl.so: cannot open shared object file: No such file or directory " kind of error?
<infinisil>
samueldr: Unfortunately it would be a heavily biased survey I'd think
<samueldr>
RetardedOnion: when something is at an older version, it can be for different reasons, but the most common is "nobody got around to it yet"
<samueldr>
infinisil: still useful to have the pulse *of this channel*
silver has joined #nixos
<infinisil>
True
<samueldr>
I actually want it biased *per discussion area*
imalison has quit [Remote host closed the connection]
<xinming>
the packge itself has a module installer builtin, when I try to use the built-in module installer, I got this error.
<xinming>
any ideas?
Wharncliffe has joined #nixos
<boomshroom>
FINALLY!
<RetardedOnion>
irc is something to get into. not everyone is doing it. especially because its more complicated than telegram/gnu ring.
<RetardedOnion>
boomshroom: have fun!
<samueldr>
yeah, actually knowing the proportion *per medium used* of unstable/stable users is still awfully useful
<samueldr>
RetardedOnion: not sure what to understand of this issue, but if I did understand right, each generation has its stage-1
<RetardedOnion>
now someone needs to create a truely rolling nix distro. so we have more distros that do absolutely nothing.
<samueldr>
so if there is breakage in stage-1, it should be fine with an older generation
<samueldr>
well, nixos could be described as hybrid rolling, unless I missed something about rolling
<boomshroom>
Randomizer: not even 5 minutes in and my wallet is maxed.
<RetardedOnion>
its nothing complicated. you can get around it with skipping fscks. systemd blames it on lvm and vice versa.
<samueldr>
there is no freeze period; unstable continues being unstable, they fork for a release
<RetardedOnion>
version numbers scare me because ubuntu/debian breaks everytime i upgrade to a new version.
<RetardedOnion>
oh and windows too
<samueldr>
I was an archlinux user for a good while before nixos, and before that, used ubuntu a smaller while
<samueldr>
I can tell you that nixos stable is nothing to be scared of :)
<samueldr>
because of this one weird trick (distro maintainers hate him)
<infinisil>
Lol
<samueldr>
if you need something from unstable, you can use it on stable
<samueldr>
(and conversely)
<RetardedOnion>
i got the ubuntu dosis after i got clear with arch. so the experience sucked.
<RetardedOnion>
samueldr: why would they hate you? you break your system.
<samueldr>
hah, I was memeing on clickbait titles
<samueldr>
I didn't really know which profession to use :)
aminechikhaoui has quit [Quit: leaving]
knupfer has quit [Ping timeout: 265 seconds]
<samueldr>
it's actually well supported for most *packages* to pick one or a couple from another channel
aminechikhaoui has joined #nixos
<RetardedOnion>
i know. i just hoped i could get my mentality over. will install nix on my secondary ssd on my notebook before going to sleep. thank you for your support. i will be coming back tomorrow when i have no idea what i have done
<samueldr>
(system options, less so, but it's possible)
<samueldr>
RetardedOnion: definitely a good idea to play around with nixos :)
<samueldr>
don't hesitate to ask for any issues during install / after install
<RetardedOnion>
oh the functional packagemanagement got me already. ungoogled-chromium needs to be ported, kdocker and probably more stuff i am not thinking about
fiddlerwoaroof has joined #nixos
<RetardedOnion>
if this system even remotely works out for me (that means i get an acs-patch on there and ungoogled-chromium) i will probably be switching full time
wpcarro has joined #nixos
Fare has quit [Ping timeout: 244 seconds]
<RetardedOnion>
how is the graphical installer? or should i just RTFM?
<samueldr>
acs-patch is for pci passthrough?
<samueldr>
graphical installer is a misnomer, it's a graphical session, but still use the same steps using the terminal
<RetardedOnion>
yes. x370 sucks. well my cpu is fine, but all pcie slots to the chipset is in one iommu group.
<samueldr>
RetardedOnion: one of the most awesomest thing with nixos is how painless it is to do shenanigans with the kernel
<samueldr>
(though you *have* to do the full compile, which eats a bit of time)
<nh2>
infinisil: check out this hackery:
<nh2>
while true; do NIX_PATH=nixpkgs=$HOME/src/nixpkgs nix-build --no-link survey/default.nix -A executables --show-trace 2>&1 | tee out.log; grep 'error' out.log | grep 'of the derivation' | cut '-d ' -f10 | cut "-d'" -f2 | sed -E 's/(.*)-.*/\1/g' >> blacklist; sleep 0.1; done
<infinisil>
nh2: Whew, I actually just got the nix version done
<samueldr>
we don't have a specific preferred one
<nh2>
is it normal that `nix build` shows me that it's querying only ~10 paths per seconds on cache.nixos.org? That seems very slow; is it querying one path at a time?
<samueldr>
RetardedOnion: use any one that is sensible :)
doyougnu1 has joined #nixos
<samueldr>
(you can use gist, some use ix.io)
<nh2>
cannot it query the paths in batch from cache.nixos.org?
<RetardedOnion>
samueldr: shucks. whatever. i have a quadcore in my notebook, and an 8core in my desktop. i can compile a kernel in about 15-20 minutes while browsing. so no pressure there.
<samueldr>
that's good then :)
<nh2>
infinisil: I'm now at a stage where it evaluates but querying the cache takes forever
<RetardedOnion>
“<command> 2>&1 | curl -F c=@- https://ptpb.pw” OR “curl -F c=@path/to/a/file https://ptpb.pw” is a bit more simple
<infinisil>
nh2: So you're actually at the building stage?
<infinisil>
nh2: Or at the "evaluating what I can build" stage?
<samueldr>
yeah, it's mostly a case of "if you already know how to use a pastebin, the command doesn't apply to you" RetardedOnion :)
graphene has quit [Remote host closed the connection]
silver has joined #nixos
<infinisil>
I hope you specified -k or so
<nh2>
infinisil: v6
<infinisil>
I mean -k
<infinisil>
Not sure if needed in 2.0 anymore though
<nh2>
LnL: v6
graphene has joined #nixos
kiloreux has joined #nixos
<infinisil>
Oh lol
<Dagger>
(wget is probably a better test than curl, since wget prints debug info and it doesn't open multiple connections)
<nh2>
infinisil: yes --keep-going is still needed
<nh2>
LnL: can I convince nix to use v6 instead? Was there some curl env var or something?
<LnL>
well, nix uses libcurl so it's closer to the truth
<kiloreux>
I am trying to install `ruby-audio` gem. It requires libsndfile as a native dependency, however none of the approaches available online (nor bundix) help. Does anyone here have a better idea ?
<manveru>
kiloreux: what did you try with bundix?
<LnL>
nh2: not sure, but you could build nix with a libcurl that prefers ipv4 :p
<kiloreux>
To package all my gemfile dependencies. It generated the gemset.nix but obviously it didn't contain the native dependency that I need.
<Dagger>
and there's nothing wrong with curl using v6 :/
<manveru>
kiloreux: did you set the gemConfig?
<Dagger>
(unless your v6 is broken, in which case... fix it)
<nh2>
Dagger: the suspicion is that CloudFront or something else is being slow on v6; in general my IPv6 works pretty well I think
<kiloreux>
manveru, not quite sure what you mean here? I probably didn't.
<manveru>
kiloreux: can you share your derivation?
<infinisil>
nh2: Just try to build it without a cache, then you'll only get ones that succeeded
<infinisil>
only with cache i mean
<infinisil>
This doesn't have anything to do with stackage or not
<infinisil>
Directly at least
<domenkozar>
this file specifies versions
<domenkozar>
and what builds
<domenkozar>
etc
<infinisil>
Oh, so a whitelist
<nh2>
infinisil: well picking only the exes from stackage at least makes the probability extremly high that those are supposed to build
<domenkozar>
nh2: you can get lts plan and map over it?
<nh2>
domenkozar: That looks like what we need, is it available in some nice nix form somehow?
<domenkozar>
afaik it's directly translated to hackage-packages.nix
<infinisil>
nh2: But also you'll only get less than a fourth of all packages
<domenkozar>
but nix can parse YAML :P
<aminb>
noob question: after doing nix-channel --update nixpkgs, how can i see a list and/or diff of new package versions before actually updating them?
lonokhov has quit [Ping timeout: 256 seconds]
<nh2>
infinisil: yeah but a couple hundred executables would be enough of a sample test to weed out most issues with the static building approach, don't need to build all of Hackage
<infinisil>
domenkozar: Ohh, and part of the yaml file is auto-generated (the which ones work part, via hydra), and the other part is manual (e.g. specific extra versions), right?
<aminb>
basically, how can i have some idea of what will be upgraded?
<aminb>
ah, just found nix-env -u --dry-run
erasmas has quit [Quit: leaving]
cryptomonoid has quit [Ping timeout: 244 seconds]
rcshm has quit [Ping timeout: 248 seconds]
<dhess>
Stupid question time: say in `nix repl` I have a list of attrsets, e.g., [ { x = { a = 1; } } ]
<dhess>
how do I get the repl to show the contents of the list, rather than the ellipsis ?
ajs124 has left #nixos ["Stream closed by us: Replaced by new connection (conflict)"]
ajs124 has joined #nixos
<LnL>
:p
<dhess>
are you making a face, or is that the command? :)
<gchristensen>
"not stupid questions for $500"
Fare has joined #nixos
<dhess>
I guess both :p
<LnL>
the command :)
<LnL>
> :p [[ "foo" ]]
<{^_^}>
Unknown command: p
<dhess>
thanks!
<LnL>
meh, works in the repl
<infinisil>
But > is a repl!
<infinisil>
> p [[ "foo" ]]
<{^_^}>
"[ [ \"foo\" ] ]"
alex`` has quit [Ping timeout: 240 seconds]
<LnL>
that's cheating
<infinisil>
dhess: (This is a different repl, don't be confused)
<gchristensen>
>:p of course is the angry tongue person
doyougnu2 has joined #nixos
<LnL>
I recently also started using :u quite frequently
<LnL>
it's great!
alex`` has joined #nixos
<infinisil>
Build and nix-shell? As in, build the deps and enter nix shell of it?
<gchristensen>
:O
doyougnu1 has quit [Ping timeout: 244 seconds]
<LnL>
instead of nix-shell -E with multiple failed attempts at writing something too complicated for a single line you can mess around in the repl and start a shell once you have something that works
<dhess>
I don't know nixpkgs.lib very well. Whenever I have to write a complicated expression, especially mapping over attrs or lists or lists of attrs, I feel like I must be re-inventing the wheel.
Mic92 has left #nixos ["WeeChat 2.1"]
hakujin has joined #nixos
<infinisil>
dhess: Will help refactor if you post expressions :D
<gchristensen>
dhess: it won't take too long to read the nixpkgs lib :)
roberth has joined #nixos
<gchristensen>
dhess: though skip systems/ and modules.nix :P
<dhess>
gchristensen: oh I do, like, over and over. It never seems to stick.
<infinisil>
I want nixlint
<infinisil>
Which suggests refactorings like hlint does
<gchristensen>
nice
<infinisil>
I think johnw has started on a linter in hnix
booglewoogle has quit [Remote host closed the connection]
<infinisil>
Whoa, I think that does type checks! (as far as possible at least)
<kalbasit>
in my neovim overlay, I have this line `customRC = builtins.readFile ./init.vim;`. I know need to replace a string in that init.vim pointing to a binary and I was thinking of using `substitute`. How to do that?
hakujin has quit [Ping timeout: 276 seconds]
__monty__ has quit [Quit: leaving]
<kalbasit>
since this is not one of the phases, is substitute available?
alex`` has quit [Ping timeout: 240 seconds]
doyougnu2 has quit [Ping timeout: 255 seconds]
<kalbasit>
`builtins.replaceStrings` would work? I'll try that
<infinisil>
kalbasit: I think `pkgs.substituteAll { src = ./init.vim; myVariable = "foo"; }` should work
<gchristensen>
I love stubstituteAll. I have a custom version which runs shellcheck after.
<kalbasit>
oh that's awesome,
<infinisil>
kalbasit: Which would replace the string "@myVariable@" with foo in your .vim
<kalbasit>
let me try that
<infinisil>
gchristensen: Neat! source?
<gchristensen>
uhh
<gchristensen>
let's see if I was able to sneak it in to some open source
<nh2>
so can nix actually parse YAML like domenkozar said, or was that a joke? I am not sure
<gchristensen>
nh2: nix can parse a very specific subset of YAML
<nh2>
gchristensen: which function does it?
<gchristensen>
nh2: builtins.parseJSON
<nh2>
wait what
<gchristensen>
The primary objective of this revision is to bring YAML into compliance with JSON as an official subset. -- http://yaml.org/spec/1.2/spec.html
<infinisil>
Not sure if it covers all of TOML though
<nh2>
I'm good with the yaml-to-json approach, any tool to recommend?
<infinisil>
And YAML is like so much more complicated than TOML
<infinisil>
,locate bin yaml2json
<{^_^}>
Found in packages: remarshal, yaml2json.bin
<infinisil>
nh2: Probably those should work ^^
work_ has quit [Quit: Connection closed for inactivity]
tertle||eltret has joined #nixos
Fare has quit [Ping timeout: 276 seconds]
Fare has joined #nixos
jackdk has joined #nixos
rprije has joined #nixos
<nh2>
infinisil: these all build me a tons of stuff, yq too, I'll just use python
<gchristensen>
probably fine
<infinisil>
nh2: Use a cached nixpkgs version?
<nh2>
infinisil: somehow on my commit many packages don't seem to be built yet, not sure why
<nh2>
but python is so that should be ok
zgrep has joined #nixos
<gchristensen>
is github half down?
<dhess>
The Internet has not been having a good week
<infinisil>
gchristensen: Can't confirm, which half doesn't work for you?
<gchristensen>
left :/
<nh2>
infinisil: there we go
<nh2>
python -c 'import yaml, json; x = yaml.load(open("/home/niklas/src/nixpkgs/pkgs/development/haskell-modules/configuration-hackage2nix.yaml")); print(json.dumps(x["dont-distribute-packages"].keys()))'
<gchristensen>
it times out about 50% of the time
<gchristensen>
nice, nh2
<infinisil>
Yeah can't confirm, works all the time for me
<infinisil>
Maybe it's regional
<infinisil>
Goddamnit, I'm trying so so hard to like the Nix 2.0 commands
<infinisil>
But the bugs and weird stuff is just too much
<infinisil>
E.g. I just tried the nix-shell -p hello replacement "nix run nixpkgs.hello"
<infinisil>
Which results in a misescaped terminal: \[\][infinisil@paul:~/src/nixpkgs]$\[\]
<gchristensen>
are you in a nix shell when you run nix run??
<infinisil>
Oh lol
<infinisil>
I am
<infinisil>
I didn't realize
<infinisil>
False alarm!
<zgrep>
Quick question, does fetchurl have a way of specifying the name of the resulting file? Or a way for fetchurl to look at the resulting header for the filename, instead of the URL itself?
<infinisil>
(But there are a lot of weird things with 2.0 still)
<gchristensen>
,next
<{^_^}>
gchristensen: Did you mean context?
<{^_^}>
Nix strings can have a context representing a set of derivations this string depends on. E.g. "foobar ${pkgs.hello}" has the hello derivation in its context, "foobar" doesn't have any context.
<gchristensen>
(you're right)
<infinisil>
zgrep: It's whatever name you give the derivation?
lostman has quit [Quit: Connection closed for inactivity]
<infinisil>
Not sure what you're trying to do with that
ajs124 has left #nixos ["Stream closed by us: Timed out waiting for stream resumption (connection-timeout)"]
<zgrep>
infinisil: Err, I mean... I'm trying to build a derivation, but the URL it downloads from ends in /64bit (it's a .tar.gz), which isn't what I want it to be saved as in the nix store, or when I unpack and patchelf the binaries inside of it, etc. (Sorry, I pretty much have no idea what I'm doing, and am trying to make stuff happen.)
ericsagnes has quit [Ping timeout: 245 seconds]
<infinisil>
nix doesn't derive the name from the url? It just uses whatever you pass as the name attribute. And does it end with /64bit or .tar.gz nonw?
* infinisil
is confused
lambdamu has quit [Remote host closed the connection]
<zgrep>
infinisil: Oh, I see. You're completely right, and I'm wrong. Sorry about that. (It ends in /64bit).