gchristensen changed the topic of #nixos to: NixCon 2018 CfP is now open! https://nixcon2018.org/ || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon
<adelbertc> i see in my image tarball the top-level "flattened" stuff has the right permissions
<adelbertc> but the `/nix/store` itself doesn't
igo95862 has joined #nixos
camsbury has quit [Ping timeout: 276 seconds]
igo95862 has quit [Client Quit]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #43785 → appstream-glib: 0.7.9 -> 0.7.10 → https://git.io/fNZjl
<{^_^}> [nixpkgs] @acowley opened pull request #43786 → paraview: 5.4.1 -> 5.5.2 → https://git.io/fNZjr
stepcut has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed to master « lf: 6 -> 7 »: https://git.io/fNZj9
<{^_^}> [nixpkgs] @r-ryantm opened pull request #43787 → avrbinutils: 2.30 -> 2.31 → https://git.io/fNZj7
thc202 has quit [Ping timeout: 240 seconds]
wpcarro has joined #nixos
alexteves has quit [Remote host closed the connection]
pie__ has quit [Remote host closed the connection]
pie__ has joined #nixos
wpcarro has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #43788 → apacheHttpd: 2.4.33 -> 2.4.34 → https://git.io/fNneC
<{^_^}> [nixpkgs] @kiloreux opened pull request #43789 → Added AV1 encoder with libaom → https://git.io/fNneR
fractalcat has joined #nixos
sam__ has joined #nixos
wpcarro has joined #nixos
stepcut has quit []
cryptomonoid has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #43790 → argyllcms: 2.0.0 -> 2.0.1 → https://git.io/fNneH
sbdchd has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @kiloreux opened pull request #43791 → fluentd: 0.14.11 -> 1.2.3 → https://git.io/fNneQ
jackdk has joined #nixos
wpcarro has quit [Ping timeout: 240 seconds]
`_ has joined #nixos
`_ has quit [Client Quit]
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.
<{^_^}> [nixpkgs] @Chiiruno opened pull request #43792 → Update: easyjson, hydron, meguca, nodePackages: meguca; Improve: quicktemplate → https://git.io/fNnvI
<fresheyeball> that makes sense I guess
<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.
<`_> That way we preserve the status of the build
<{^_^}> [nixpkgs] @r-ryantm opened pull request #43793 → bfs: 1.2.2 -> 1.2.3 → https://git.io/fNnvL
<fresheyeball> Lisanna: interesting
<`_> Yeah that is
<fresheyeball> `_: what do you think about that?
<`_> I'm down
<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?
baconicsynergy has joined #nixos
<`_> Lisanna: yes
<{^_^}> [nixops] @grahamc opened pull request #980 → deployment.py: handle checking DiffStateEngineResourceState → https://git.io/fNnvC
pie_ has joined #nixos
<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]
jackdk has joined #nixos
wpcarro has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #43794 → atom: 1.28.1 -> 1.28.2 → https://git.io/fNnvB
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
<TFTIO> I'll try it out, thanks! gchristensen
<gchristensen> :)
<TFTIO> man, I love this channel
<gchristensen> <3 me too!
<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]
graphene has joined #nixos
lassulus_ has joined #nixos
lassulus_ is now known as Random_int
hakujin has joined #nixos
qwerty_asdf has quit [Quit: WeeChat 2.0]
lassulus has quit [Ping timeout: 260 seconds]
Random_int is now known as lassulus
hakujin has quit [Ping timeout: 245 seconds]
ericsagnes has quit [Quit: WeeChat 2.1]
wpcarro has quit [Ping timeout: 255 seconds]
cryptomonoid has joined #nixos
ericsagnes has joined #nixos
lambdamu has quit [Ping timeout: 256 seconds]
lambdamu has joined #nixos
mahalel_ has quit [Ping timeout: 276 seconds]
wpcarro has joined #nixos
kerrhau has joined #nixos
kerrhau has quit [Changing host]
kerrhau has joined #nixos
marusich has joined #nixos
mahalel_ has joined #nixos
marusich has quit [Client Quit]
cryptomonoid has quit [Ping timeout: 245 seconds]
wpcarro has quit [Ping timeout: 244 seconds]
shabius has joined #nixos
orivej has joined #nixos
shabius_ has quit [Ping timeout: 245 seconds]
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
jperras has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @dtzWill merged pull request #43719 → npth: 1.5 -> 1.6 → https://git.io/fNGsT
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to staging: https://git.io/fNnTR
pie_ has quit [Read error: Connection reset by peer]
pie_ has joined #nixos
drakonis has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @dtzWill closed pull request #43745 → npth: 1.5 -> 1.6 → https://git.io/fNZZB
wigust has joined #nixos
wigust- has quit [Ping timeout: 256 seconds]
andreabedini has joined #nixos
<{^_^}> [nixpkgs] @dtzWill merged pull request #43760 → mesa: more include fixes → https://git.io/fNZKG
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to staging: https://git.io/fNnTX
worldofpeace___ has joined #nixos
worldofpeace__ has joined #nixos
worldofpeace has quit [Ping timeout: 240 seconds]
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
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fNnkK
Ross has joined #nixos
pie__ has quit [Read error: Connection reset by peer]
pie__ has joined #nixos
doyougnu1 has quit [Ping timeout: 245 seconds]
<angerman> Can I specify which remote builder I want something to be built on?
wpcarro has joined #nixos
<clever> angerman: i usually just let /etc/nix/machines auto-select one at random
<angerman> clever: hmm ... that will usually pick the docker one, which is slow. I guess I could just crank up the speed value
wpcarro has quit [Ping timeout: 244 seconds]
Acou_Bass has quit [Ping timeout: 256 seconds]
Acou_Bass has joined #nixos
Ridout has quit [Quit: Lost terminal]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #43692 → Avoid using aliases, disallow aliases in release → https://git.io/fNs7p
<{^_^}> [nixpkgs] @matthewbauer pushed 5 commits to master: https://git.io/fNnII
worldofpeace___ has quit [Read error: Connection reset by peer]
worldofpeace__ has quit [Read error: Connection reset by peer]
worldofpeace has joined #nixos
worldofpeace_ has joined #nixos
andreabedini has joined #nixos
pie__ has quit [Read error: Connection reset by peer]
pie___ has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer merged pull request #43558 → nethack: add qt support on linux → https://git.io/fNYJO
<{^_^}> [nixpkgs] @matthewbauer pushed 3 commits to master: https://git.io/fNnI3
<{^_^}> [nixpkgs] @matthewbauer merged pull request #43538 → fetchpatch: quote excludes → https://git.io/fNmQ7
<{^_^}> [nixpkgs] @matthewbauer pushed 5 commits to master: https://git.io/fNnIs
camsbury has joined #nixos
lambdamu has quit [Ping timeout: 244 seconds]
doyougnu has joined #nixos
BlessJah has joined #nixos
<petersjt014[m]> can anyone recommend any sdcard diagnostic tools?
jackdk has joined #nixos
vmandela has joined #nixos
pie__ has joined #nixos
pie___ has quit [Read error: Connection reset by peer]
camsbury has quit [Remote host closed the connection]
jackdk has quit [Ping timeout: 260 seconds]
rcshm has quit [Ping timeout: 260 seconds]
mahalel_ has quit [Ping timeout: 255 seconds]
worldofpeace_ has quit [Remote host closed the connection]
worldofpeace has quit [Quit: worldofpeace]
Guanin has quit [Ping timeout: 255 seconds]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamishmack has joined #nixos
<ghostyy> how do i downgrade a program
<ghostyy> i installed a program but its of a later version than i like
<ghostyy> the new version is terrible os i want to use the old one
pie__ has quit [Ping timeout: 245 seconds]
Tiez has joined #nixos
Guanin has joined #nixos
worldofpeace has joined #nixos
hamishmack has quit [Ping timeout: 255 seconds]
mahalel_ has joined #nixos
FRidh has joined #nixos
jperras has joined #nixos
spear2 has quit [Remote host closed the connection]
spear2 has joined #nixos
jperras has quit [Ping timeout: 255 seconds]
iqubic` has joined #nixos
camsbury has joined #nixos
iqubic has quit [Ping timeout: 276 seconds]
sir_guy_carleton has quit [Quit: WeeChat 2.0]
cryptomonoid has joined #nixos
doyougnu has quit [Ping timeout: 240 seconds]
Smithx10_ has joined #nixos
sorear_ has joined #nixos
mbrgm_ has joined #nixos
kitemikaze__ has joined #nixos
nikki93_ has joined #nixos
sjourdois has quit [Ping timeout: 276 seconds]
mbrgm has quit [Ping timeout: 276 seconds]
Smithx10 has quit [Ping timeout: 276 seconds]
Tritlo has quit [Ping timeout: 276 seconds]
xplat|work__ has quit [Ping timeout: 276 seconds]
mbrgm_ is now known as mbrgm
philipcristiano_ has joined #nixos
gleber__ has joined #nixos
r0bby_ has joined #nixos
zielmicha__ has joined #nixos
newhoggy_ has joined #nixos
heatm1s3r_ has joined #nixos
xplat|work__ has joined #nixos
aanderse_ has joined #nixos
heatm1s3r has quit [Ping timeout: 276 seconds]
r0bby has quit [Ping timeout: 276 seconds]
bitonic has quit [Ping timeout: 276 seconds]
angerman has quit [Ping timeout: 276 seconds]
philipcristiano has quit [Ping timeout: 276 seconds]
sorear has quit [Ping timeout: 276 seconds]
benkolera has quit [Ping timeout: 276 seconds]
georgew has quit [Ping timeout: 276 seconds]
nikki93 has quit [Ping timeout: 276 seconds]
sorear_ is now known as sorear
philipcristiano_ is now known as philipcristiano
r0bby_ is now known as r0bby
heatm1s3r_ is now known as heatm1s3r
nikki93_ is now known as nikki93
bitonic_ has joined #nixos
rodarmor_ has joined #nixos
oharvey_ has joined #nixos
teozkr_ has joined #nixos
Tritlo has joined #nixos
angerman has joined #nixos
Forkk has quit [Ping timeout: 276 seconds]
aanderse has quit [Ping timeout: 276 seconds]
Orbstheorem has quit [Ping timeout: 276 seconds]
jasom has quit [Ping timeout: 276 seconds]
jophish has quit [Ping timeout: 276 seconds]
gleber_ has quit [Ping timeout: 276 seconds]
johnhamelink has quit [Ping timeout: 276 seconds]
zielmicha_ has quit [Ping timeout: 276 seconds]
teozkr has quit [Ping timeout: 276 seconds]
kitemikaze_ has quit [Ping timeout: 276 seconds]
Kim has quit [Ping timeout: 276 seconds]
georgew has joined #nixos
zielmicha__ is now known as zielmicha_
teozkr_ is now known as teozkr
kitemikaze__ is now known as kitemikaze_
gleber__ is now known as gleber_
rembo10 has quit [Ping timeout: 276 seconds]
{^_^} has quit [Ping timeout: 276 seconds]
Cale has quit [Ping timeout: 276 seconds]
ihar has quit [Ping timeout: 276 seconds]
newhoggy has quit [Ping timeout: 276 seconds]
rodarmor has quit [Ping timeout: 276 seconds]
oharvey has quit [Ping timeout: 276 seconds]
flokli has quit [Ping timeout: 276 seconds]
PyroLagus has quit [Ping timeout: 276 seconds]
newhoggy_ is now known as newhoggy
oharvey_ is now known as oharvey
ihar has joined #nixos
regulus_ has quit [Ping timeout: 240 seconds]
Orbstheorem has joined #nixos
markus1199 has quit [Ping timeout: 240 seconds]
markus1189 has joined #nixos
Xal has quit [Ping timeout: 240 seconds]
jophish has joined #nixos
evhan has quit [Ping timeout: 260 seconds]
jophish is now known as Guest827
sjourdois has joined #nixos
regulus_ has joined #nixos
camsbury has quit [Ping timeout: 268 seconds]
rembo10 has joined #nixos
Forkk has joined #nixos
PyroLagus has joined #nixos
evhan has joined #nixos
Xal has joined #nixos
cryptomonoid has quit [Ping timeout: 276 seconds]
selaux has joined #nixos
Kim has joined #nixos
jasom has joined #nixos
flokli has joined #nixos
benkolera has joined #nixos
Cale has joined #nixos
qwerty_asdf has joined #nixos
FRidh has quit [Quit: Konversation terminated!]
trylist has quit [Quit: WeeChat 2.1]
Orbstheorem has quit [Quit: WeeChat 1.8]
Orbstheorem has joined #nixos
qwerty_asdf has quit [Quit: WeeChat 2.0]
igo95862 has joined #nixos
hyper_ch2 has joined #nixos
lo_mlatu has joined #nixos
{^_^} has joined #nixos
{^_^} has quit [Changing host]
{^_^} has joined #nixos
<{^_^}> [nixpkgs] @dotlambda merged pull request #43693 → Remove `pythonPackages.flask_cache` → https://git.io/fNs5j
<{^_^}> [nixpkgs] @dotlambda pushed 3 commits to master: https://git.io/fNntj
Coyin has joined #nixos
periklis` has joined #nixos
<kalbasit> infinisil: regarding your comment here https://github.com/NixOS/nixpkgs/issues/43684#issuecomment-405697064 can the nixpkgs version be overriden in an overlay?
<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"?
<{^_^}> [nixpkgs] @jglukasik opened pull request #43799 → urbit: 0.4.5 -> 0.6.0 → https://git.io/fNnmq
<fresheyeball> cocreature: I am using callCabal2nix
<fresheyeball> so I need to know how to override, so I can do something like that
<fresheyeball> but its very hard to learn what the set options are there
<clever> fresheyeball: if you set succeedOnFailure on a derivation, then it will still pass, even when failing
<clever> it will create a $out/nix-support/failed to indicate failure
<fresheyeball> clever: how can I set that?
<clever> .overrideAttrs
cryptomonoid has quit [Ping timeout: 240 seconds]
<cocreature> fresheyeball: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/haskell-modules/generic-builder.nix#L364 is the part that you would need to override but succeedOnFailure might be a better option
<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
logzet has joined #nixos
nschoe has joined #nixos
<kalbasit> andi-: I think I got it to use the older version, but it seems to break, do you know how to fix it this? https://gist.github.com/kalbasit/ec50eb208b115af0894e2bbbf95b05b5 (see comment on Gist)
<kalbasit> clever: same question ^^ :) this is regarding https://github.com/NixOS/nixpkgs/issues/43684#issuecomment-405697064
<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
nschoe has quit [Ping timeout: 255 seconds]
<{^_^}> [nixpkgs] @nlewo merged pull request #43606 → xlog: init at 2.0.15 → https://git.io/fNYNf
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/fNnOk
reinzelmann has joined #nixos
__monty__ has joined #nixos
jperras has joined #nixos
Izorkin has quit [Ping timeout: 248 seconds]
goibhniu has joined #nixos
johanot has joined #nixos
jperras has quit [Ping timeout: 256 seconds]
philippD has joined #nixos
johanot has quit [Remote host closed the connection]
hiroshi has quit [Quit: ZNC 1.7.0 - https://znc.in]
Tucky has joined #nixos
hiroshi has joined #nixos
<{^_^}> [nixpkgs] @srhb merged pull request #43729 → nix-index: 0.1.0 -> 0.1.1 → https://git.io/fNGPu
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fNn38
`_ has joined #nixos
wpcarro has joined #nixos
Izorkin has joined #nixos
wpcarro has quit [Ping timeout: 264 seconds]
palo has quit [Ping timeout: 276 seconds]
palo has joined #nixos
palo has quit [Changing host]
palo has joined #nixos
<{^_^}> [nixpkgs] @Profpatsch merged pull request #43632 → mpv: use wrapper for scripts and add mpris script → https://git.io/fNO50
<{^_^}> [nixpkgs] @Profpatsch pushed commit from @jfrankenau to master « mpv: use wrapper for scripts and add mpris script »: https://git.io/fNns0
periklis` has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @Profpatsch merged pull request #43530 → bazel: Set a sensible strict action environment. → https://git.io/fNmiA
<{^_^}> [nixpkgs] @Profpatsch pushed 2 commits to master: https://git.io/fNnsz
periklis` has joined #nixos
<srhb> Has anyone looked into this? https://github.com/NixOS/nixpkgs/issues/43800
<{^_^}> #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).
<sphalerite> angerman: no, it does copy them all
<sphalerite> https://github.com/NixOS/nix/issues/2236 here's an issue I opened to allow it *not* to. Maybe comment with your use case
<{^_^}> 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).
<{^_^}> https://github.com/NixOS/nixpkgs/issues/18315 (by domenkozar, open): Remove myEnvFun
wpcarro has joined #nixos
<hyper_ch2> clever: hmmmm, zfs issues with 4.17 :(
<sphalerite> __monty__: good to know
<{^_^}> [nixpkgs] @carlosdagos opened pull request #43802 → kube-shell: init at 0.0.21 → https://git.io/fNnGA
Izorkin has quit [Ping timeout: 240 seconds]
wpcarro has quit [Ping timeout: 276 seconds]
<srk> hyper_ch2: what issues?
johanot has joined #nixos
<hyper_ch2> srk: initrd fails at importing root pool
<clever> hyper_ch2: allow a shell by editing the kernel params in grub, then try to import it manually, what happens?
<srk> we're running zfs on 4.17 fine so far
<hyper_ch2> clever: not at the computer and not sure what to edit
<sphalerite> hyper_ch2: put boot.shell_on_fail on the command line
<{^_^}> #43797 (by sjau, open): Initrd not importing ZFS Pool
<hyper_ch2> sphalerite: put that where?
<sphalerite> hyper_ch2: kernel command line
<cocreature> srhb: that looks like a duplicate of https://github.com/NixOS/nixpkgs/issues/43473
<{^_^}> #43473 (by vcunat, open): NFS tests are broken
<hyper_ch2> well, can't test it now
<srhb> cocreature: Oh, could be. Thanks.
<hyper_ch2> srk: you run / on zfs?
wpcarro has joined #nixos
<srk> hyper_ch2: on one machine
<sphalerite> Is there a way to get specific substituters trusted without sigs while still requiring them for others?
<srk> which I've had to repair recently due to grub unable to load files from /nix/store
<hyper_ch2> and using 4.17 kernel there?
<srk> not sure, that was another issue probably
<srk> we're running zfs & 4.17 with vpsadminos which imports pool in initrd as well tho
ajs124 has joined #nixos
<srk> boot.loader.grub.copyKernels = true;
<srk> was the fix
<hyper_ch2> vpsadminios? is tha tnixos?
<srk> in that issue it's enabled looks like
<hyper_ch2> and what does that copyKernels do?¨
<srk> hyper_ch2: derived from not-os and thus nixos
<clever> hyper_ch2: copy kernels to /boot/
<srk> and prevents grub failing horribly when there's too much files to process in /nix/store :D
<clever> hyper_ch2: if /boot and /nix/store are on the same FS, then the default grub.conf file will just direct grub to read /nix/store/ directly
<srk> the machine was a hydra instance so there's probably a bit higher chance of that happenning
<hyper_ch2> the latest 4.16 zfs patches were concerened about hardening
<clever> hyper_ch2: /nix/store/ is too big for poor old grub to read :P
<hyper_ch2> in nixos
<hyper_ch2> so not sure if copyKernels is of any help
<srk> clever: a warning would be good in this case I think
<hyper_ch2> well, still ahven't figured out how to have /boot on zfs :
<clever> srk: i always use an ext4 /boot
wpcarro has quit [Ping timeout: 244 seconds]
<hyper_ch2> so /boot is ext4 here
adamt has joined #nixos
adamt is now known as Guest24751
freeman42x]NixOS has joined #nixos
<srk> first one contains updated patch to be able to build more recent version which has spl merged
orivej has joined #nixos
<srk> second one takes it from our fork which only contains one patch on top of master to add uid/gid shifting
<srk> you can also use the same patch from https://github.com/Mic92/zfs/tree/nixos-zfs-2018-06-26 .. less changes
<jbetz> is there any way to install package by simply giving nix its hash, name, and version number?
Guest80558 has joined #nixos
cryptomonoid has joined #nixos
<hyper_ch2> srk: not sure what you want to tell me
<srk> that more recent version might be ok
<srk> as we don't hit these issues
<srk> do you have the error message from zpool import?
<hyper_ch2> srk: so you're not using official nixos/nixpkgs then?
<{^_^}> [nix] @lheckemann opened pull request #2297 → nix run: put installables in env var → https://git.io/fNnnt
<srk> we do, but due to the nature of the project we need to override few criticial parts https://github.com/vpsfreecz/vpsadminos/tree/master/os/overlays
<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?
<{^_^}> [nixpkgs] @peti merged pull request #43788 → apacheHttpd: 2.4.33 -> 2.4.34 → https://git.io/fNneC
<{^_^}> [nixpkgs] @peti pushed 2 commits to master: https://git.io/fNnCa
<moredhel_[m]> `unset SOURCE_DATE_EPOCH`
<{^_^}> [nixpkgs] @7c6f434c merged pull request #43775 → foo2zjs: 20171202 -> 20180519 → https://git.io/fNZbC
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/fNnCM
Izorkin_ has joined #nixos
wchresta has joined #nixos
ersran9 has joined #nixos
ersran9 has quit [Changing host]
ersran9 has joined #nixos
alex`` has joined #nixos
<hyper_ch2> hmmm, too bad nobody has packaged this yet https://github.com/dfd-tud/deda
`_ has quit [Ping timeout: 255 seconds]
Izorkin has quit [Ping timeout: 240 seconds]
<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
<hyper_ch2> and here's the rest of my libvirtd config https://github.com/sjau/nixos/blob/master/configuration.nix#L446
<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?
<hyper_ch2> I should never have watched Goblin :(
<tilpner> Does anyone happen to know where/how https://nixos.org/nixpkgs/packages.json is generated?
ajs124 has joined #nixos
<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: Is it a public repository?
<{^_^}> [nixos-channel-scripts] @lheckemann opened pull request #21 → Add netboot files → https://git.io/fNn4t
<xinming> srhb: Nope, I try to use the specified version of rakudo which is 2018.06
<hyper_ch2> there's a fetchfromgithub option
<srhb> xinming: Try this command: nix edit nixpkgs.rakudo
<hyper_ch2> you basucally provide gihub user, repo and revision you want to fetch and sha256
<srhb> xinming: You will see there's a src attribute which uses fetchurl, but could just as well use fetchFromGitHub
<xinming> and when I try to build rakudo, the configure scripts needs git to clone some repos as dep
<srhb> xinming: That won't work
<srhb> xinming: You can't use the internet during the build.
<srhb> xinming: That's one of the purity things in Nix.
<xinming> Then, How do we deal with this case then?
<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.
johanot has quit [Quit: Leaving.]
<xinming> srhb: rakudo is ready an example. :-)
<srhb> xinming: This? https://github.com/rakudo/rakudo
<xinming> yes
<xinming> with the 2018.06 release
<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
<xinming> since I'm sure that even for old packages, the --gen-moar configure params will surely require github.
<srhb> xinming: Looks like --gen-moar is used
<xinming> I mean, the --gen-moar will tries to pull the newest moar repo from github.
<srhb> xinming: Doesn't look like it.
<srhb> xinming: Try nix log nixpkgs.rakudo
<srhb> You'll see the build log from our CI server.
<xinming> Ok
<vaibhavsagar> hi, how do I get a 32-bit nix-shell?
<srhb> vaibhavsagar: Literally the nix-shell program in 32 bit?
<vaibhavsagar> no, a nix-shell for building a 32-bit package
<vaibhavsagar> I'm using pkgsi686Linux
<srhb> vaibhavsagar: That should be it, I think?
<srhb> The stdenv from there should be suitable.
<vaibhavsagar> but when I enter it and try to run the same commands it's running as a 64-bit build
<srhb> What commands?
<xinming> srhb: Seems they have the moar package pre-built.
<xinming> srhb: But I couldn't find in nixpkgs
<clever> vaibhavsagar: use pkgsi686Linux.stdenv.mkDerivation, not -p
<srhb> xinming: It's not a dependency of rakudo, so it must be bundled somehow?
<vaibhavsagar> clever: I'm running nix-shell on a default.nix that seems to work correctly
<clever> vaibhavsagar: what is the content of default.nix?
<xinming> srhb: Yes, It's a must
<xinming> rakudo run top of moar
<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
<{^_^}> NUR#44 (by tilpner, open): Default attr.type to null
<vaibhavsagar> I see! I'm trying to follow https://elephly.net/posts/2017-01-09-bootstrapping-haskell-part-1.html#org9ee479e, which seems to indicate that this should work
<xinming> srhb: Thanks, I think I had enough linux knowledges to learn how to write .nix or understand the idea behind it.
<srhb> xinming: Sure! Just wanted to make sure you know you're starting in the deep end. :D
<xinming> I'll google somewhere, but now, supper time.
<xinming> :-)
<srhb> xinming: Bon appetit
johanot has joined #nixos
<hyper_ch2> srhb: not everone understands french
<srhb> hyper_ch2: News to me!
<hyper_ch2> now you know :)
<ghasshee> WOW, successed hibernation ! Thank you NixOS!!
<hyper_ch2> are there non-french speaking countries that also use bon appetit?
<srhb> hyper_ch2: Yes, it's common in English, hence the usage.
<hyper_ch2> :)
<manveru> there's #nixos-fr btw :)
<hyper_ch2> LIES!!!
<Mic92> tilpner: - https://github.com/nix-community/NUR/pull/44 /nix-community/NUR/pull/44
<{^_^}> NUR#44 (by tilpner, merged): Default attr.type to null
<tilpner> Mic92 - Any opinions on getting rid of the if-else-chain?
ericsagnes has quit [Ping timeout: 245 seconds]
winem__ has joined #nixos
winem_ has quit [Ping timeout: 276 seconds]
<hyper_ch2> Mic92: did you see my issue with 4.17 kernel and zfs?
<hyper_ch2> **still looking for a recommendation for a notebook with long battery life in nixos**
* goibhniu assumes everyone speaks german
<manveru> i got an an older tuxedo and it's great :)
Wharncliffe has joined #nixos
<goibhniu> unfortunately, I had loads of trouble with mine and the customer service was horrific
<__monty__> Dat bezel tho.
<hyper_ch2> goibhniu: of course everyone speaks german
<hyper_ch2> but I want a swiss german keyboard layout labeling on the keys
<hyper_ch2> goibhniu: with 16gb ram for under € 1k? wow
bmikedesk has quit [Remote host closed the connection]
<goibhniu> ah, I'd love if you could get a blank keyboard
<hyper_ch2> horrific or terrific?
<goibhniu> brutal
<hyper_ch2> brutal good or brutal bad? :)
<goibhniu> e.g. they returned it with parts missing
<hyper_ch2> oh
<goibhniu> and then replaced the parts with the wrong parts
<goibhniu> I had to return it three times
<manveru> oO
<manveru> i have mine for 3 years and haven't had to deal with their support...
<manveru> so i guess that's less ideal
<goibhniu> a colleague had a similar experience
<goibhniu> it's a shame, because it's great to have a linux laptop company
<manveru> indeed
<manveru> i'd still rather buy from them than from intel
<Guest24751> goibhniu: You *can* get a keyboard with blank keys.
<goibhniu> hopefully they'll sort it out, they're nice machines and I love how they test the battery life etc. on linux
bmikedesk has joined #nixos
<goibhniu> Guest24751: on a laptop?
knupfer has joined #nixos
Guest24751 has quit [Changing host]
Guest24751 has joined #nixos
Guest24751 is now known as adamt
<goibhniu> adamt: on a laptop?
<adamt> goibhniu: Nobody said anything about a laptop. :P
<goibhniu> that's what we were talking about
<adamt> goibhniu: Just buy a really good eraser, and make it blank yourself.
epta has quit [Ping timeout: 240 seconds]
<hyper_ch2> but only 1 m2 slot?
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/d7d31fea7e7 (from 10 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
* goibhniu dreams ..oO(a mechanical blank keyboard on a laptop)
<manveru> hyper_ch2: i've never even seen an m2 card...
<joepie91> goibhniu: that's been done on some ~gamer~ laptops I think?
cryptomonoid has joined #nixos
<joepie91> then again, you'd likely be stuck with awful build quality, too many LEDs, a high price tag, and bad cooling :)
<hyper_ch2> manveru: I have 2 m2 ssds in my notebook to run zfs in mirror mode
<goibhniu> hehe, all it's missing is a flux capacitor for power
<manveru> at this point you can just as well get a desktop :P
<joepie91> manveru: .... why did they put the trackpad on the right
<goibhniu> I suppose a tablet + keyboard is the way to go
<joepie91> that's, like, giving up one of the key features of a trackpad
<joepie91> (ergonomically)
hakujin has joined #nixos
<manveru> because if you're into mechanical keyboards, you never use a cursor anyway :D
<joepie91> I beg to differ :P
<manveru> and nobody plays games with a trackpad
<joepie91> also not true
cryptomonoid has quit [Ping timeout: 240 seconds]
hakujin has quit [Ping timeout: 276 seconds]
<Taneb> I remember when I first played Minecraft...
<Taneb> I played with a trackpad and a microphone I had to hold in one hand
periklis` has quit [Ping timeout: 276 seconds]
epta has joined #nixos
yorick has joined #nixos
cryptomonoid has joined #nixos
freeman42x]NixOS has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @borisbabic opened pull request #43807 → postman: fix icon not found → https://git.io/fNn2C
Izorkin_ has quit [Ping timeout: 260 seconds]
Izorkin has joined #nixos
Coyin has joined #nixos
alex`` has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @primeos pushed to master « signal-desktop: 1.14.1 -> 1.14.2 »: https://git.io/fNnaz
knupfer has quit [Ping timeout: 245 seconds]
alex`` has joined #nixos
orivej has joined #nixos
ericsagnes has joined #nixos
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
philippD has joined #nixos
cryptomonoid has quit [Ping timeout: 276 seconds]
wpcarro has joined #nixos
wpcarro has quit [Ping timeout: 256 seconds]
drbrule has quit [Ping timeout: 268 seconds]
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?
Guanin has quit [Ping timeout: 248 seconds]
cryptomonoid has joined #nixos
alex`` has quit [Ping timeout: 260 seconds]
Guanin has joined #nixos
<{^_^}> [nixpkgs] @Ma27 opened pull request #43809 → Fix python xgboost → https://git.io/fNnrA
<hodapp> I guess I could make buildPhase manually re-run configurePhase somehow, but with modifications...
<clever> hodapp: cant you just split the python bindings into a seperate derivation?
<hodapp> clever: afaik it has to be done from the same source and build directory and such
<hodapp> and also I don't know that the build has any way to do just the Python bindings
alex`` has joined #nixos
andreabedini has joined #nixos
Wharncliffe has quit [Quit: Lost terminal]
andreabedini has quit [Client Quit]
cxkzm has joined #nixos
<hodapp> well, I shoehorned configurePhase back into buildPhase for a... second build phase
<hodapp> guess I'll find out in 4 1/2 hours if it worked
* hodapp stabs Boost in the face and walks away
andreabedini has joined #nixos
<hyper_ch2> goibhniu: btw https://www.tuxedocomputers.com/de/Linux-Hardware/Linux-Notebooks/10-14-Zoll.tuxedo not quite as long battery life as the other but ssd and m2 ssd possible and 32gb ram
<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]
spear2 has joined #nixos
iyzsong-x has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
iyzsong has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @peti merged pull request #43730 → haskellPackages.spatial-rotations: dontCheck for cyclic dependency → https://git.io/fNG1R
<{^_^}> [nixpkgs] @peti pushed 2 commits to master: https://git.io/fNn6m
selaux has joined #nixos
<{^_^}> [nixpkgs] @taku0 opened pull request #43811 → oraclejdk: 8u171, 8u172 -> 8u181, 10.0.1 -> 10.0.2 [Critical security fixes] → https://git.io/fNn6g
<{^_^}> [nixpkgs] @binarin opened pull request #43812 → epmd: Introduce erlang port mapper daemon service → https://git.io/fNn6d
rui has joined #nixos
dramforever has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus merged pull request #43794 → atom: 1.28.1 -> 1.28.2 → https://git.io/fNnvB
<{^_^}> [nixpkgs] @NeQuissimus pushed commit from R. RyanTM to master « atom: 1.28.1 -> 1.28.2 »: https://git.io/fNnPm
wucke13 has joined #nixos
<dramforever> Where's the documentation for nixpkgs functions?
<dramforever> For example, where is fetchFromGitHub documented?
<tilpner> all-packages.nix :/
cryptomonoid has quit [Ping timeout: 240 seconds]
<yorick> dramforever: the source code, mostly :/
<dramforever> tilpner: That's literally the best documentation about fetchFromGitHub I could find
<dramforever> I guess... reading other packages is the way to go then?
<gchristensen> don't read other packages' use, read the source
init_6 has joined #nixos
wucke13 has quit [Remote host closed the connection]
wucke13 has joined #nixos
<dramforever> okay
<gchristensen> most functions are documented above their definition, the docs are just not exported to HTML etc.
crmlt has quit [Remote host closed the connection]
<dramforever> Thanks for the advice
crmlt has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « docker: 18.03 -> 18.06 »: https://git.io/fNnPx
cryptomonoid has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.03 « docker: 18.03 -> 18.06 »: https://git.io/fNnXO
<Enzime> did anyone see this?
johanot has quit [Ping timeout: 255 seconds]
wpcarro has joined #nixos
wpcarro has quit [Ping timeout: 244 seconds]
cryptomonoid has quit [Ping timeout: 255 seconds]
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 240 seconds]
Mateon3 is now known as Mateon1
johanot has joined #nixos
wpcarro has joined #nixos
irc12286 has joined #nixos
<__monty__> Are ruby gems packaged? Somewhat optimistic but I'd like to install this with nix: https://github.com/wisq/mdns-proxy
<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 :)
<irc12286> okay, thanks =)
d1rewolf has quit [Ping timeout: 240 seconds]
cryptomonoid has joined #nixos
qwerty_asdf has joined #nixos
Tucky has quit [Quit: WeeChat 2.2]
<dramforever> Has anyone noticed that https://cache.nixos.org gives a certificate error?
<gchristensen> yes
jperras has joined #nixos
<dramforever> Okay
<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
init_6 has quit [Ping timeout: 276 seconds]
init_6 has joined #nixos
<clever> hodapp: they had to bootstrap this computer from punchcards, lol
shabius has quit [Ping timeout: 255 seconds]
<hodapp> wooow
wpcarro has joined #nixos
cryptomonoid has quit [Ping timeout: 245 seconds]
cryptomonoid has joined #nixos
jperras has joined #nixos
qwerty_asdf has quit [Quit: WeeChat 2.0]
<__monty__> Is there an easy way to proxy multicast udp with unicast udp?
wpcarro has quit [Ping timeout: 276 seconds]
i-am-the-slime has joined #nixos
<i-am-the-slime> Help!
<i-am-the-slime> https://github.com/NixOS/nixpkgs/issues/41340 <- I need the special stack build mentioned in this thread. Can anybody help me get this?
<{^_^}> #41340 (by nh2, open): GCC fails because argument list created by nix is too long
rui has quit [Quit: WeeChat 2.1]
<{^_^}> [nixpkgs] @matthewbauer pushed to master « Revert "release: disallow aliases" »: https://git.io/fNnHG
Sonarpulse has joined #nixos
wpcarro has joined #nixos
vmandela has quit [Quit: Leaving]
alexteves has joined #nixos
lambdamu has joined #nixos
shabius has joined #nixos
<jbetz> using nix on ubuntu 18.04, I'm getting locale errors inside a nix-shell
<jbetz> with some message about making sure they're installed on my system
<jbetz> they *are* installed on my OS, but how do I make sure that nix has them as well?
<{^_^}> [nixpkgs] @matthewbauer pushed to master « gtkd: fixup from treewide commit »: https://git.io/fNnQ9
wpcarro has quit [Ping timeout: 276 seconds]
init_6 has quit [Ping timeout: 276 seconds]
<Taneb> jbetz: how did you install nix?
i-am-the-slime has quit [Remote host closed the connection]
<{^_^}> [nixos-channel-scripts] @edolstra pushed to master « d3g5gsiof5omrk.cloudfront.net -> releases.nixos.org »: https://git.io/fNn7t
wpcarro has joined #nixos
<{^_^}> [nixos-org-configurations] @rbvermaa pushed to master « Remove rackspace references »: https://git.io/fNn7Q
dramforever has quit [Quit: Page closed]
<jbetz> Taneb: curl https://nixos.org/nix/install | sh
<jbetz> From Finland
camsbury has joined #nixos
Guest80558 has joined #nixos
<Taneb> Is it single user or multi user?
hakujin has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer pushed to master « libuv: fix apple patch url »: https://git.io/fNn5o
wpcarro has quit [Ping timeout: 276 seconds]
cxkzm has quit [Quit: WeeChat 2.0]
endformationage has joined #nixos
cryptomonoid has quit [Ping timeout: 268 seconds]
wpcarro has joined #nixos
aarvar has quit [Ping timeout: 276 seconds]
hakujin has quit [Ping timeout: 276 seconds]
TheBrayn has joined #nixos
adamt has quit [Ping timeout: 268 seconds]
<{^_^}> [nixos-org-configurations] @edolstra pushed 11 commits to master: https://git.io/fNnbN
<{^_^}> [nixos-org-configurations] @edolstra merged pull request #48 → terraform: describe nixpkgs-tarballs cloudfront → https://git.io/fNkAH
<gchristensen> oh cool, zimbatm, niksnut :D
<jbetz> Taneb: single user
wpcarro has quit [Ping timeout: 276 seconds]
<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> > lib.makeLibraryPath
<{^_^}> <LAMBDA>
<tenten8401> am I doing this wrong or something?
<infinisil> *Remove* the argument makeLibraryPath at the top heh
<infinisil> That before was just the opposite diagnosis by me sry
<tenten8401> now it's telling me I apparently can't coerce a list to a string, can I not use an array of dependencies inside of makeLibraryPath
chreekat has joined #nixos
<infinisil> > lib.makeLibraryPath [ hello rust ]
<{^_^}> cannot coerce a set to a string, at /var/lib/nixbot/state/nixpkgs/lib/strings.nix:85:38
<infinisil> Naniiii?
<infinisil> > lib.makeLibraryPath [ pkgs.hello pkgs.rust ]
<{^_^}> cannot coerce a set to a string, at /var/lib/nixbot/state/nixpkgs/lib/strings.nix:85:38
orivej has joined #nixos
<infinisil> > lib.makeLibraryPath [ pkgs.hello ]
<{^_^}> "/nix/store/aq3byv8z9ax5zqbqi5b73q06yq8gfl99-hello-2.10/lib"
<infinisil> > lib.makeLibraryPath [ pkgs.hello stdenv.cc.cc ]
<{^_^}> "/nix/store/aq3byv8z9ax5zqbqi5b73q06yq8gfl99-hello-2.10/lib:/nix/store/i5znwsdi9yybfydd1kbdrsq5s4phjm93-gcc-7.3.0-lib/lib"
<infinisil> Okay it was rust :/, so yeah that should work
wpcarro has joined #nixos
<infinisil> tenten8401: But you're passing a nested list
<tenten8401> so I have to redefine all my dependencies?
<infinisil> xorgDeps = [ ... ]
<infinisil> makeLibraryPath [ xorgDeps ]
<tenten8401> yeah, that's what I was hoping to accomplish
<infinisil> You want `makeLibraryPath xorgDeps`
<tenten8401> ahh
<tenten8401> I guess that makes sense
<gchristensen> anyone experienced with nixpkgs' python build infrastructure who has also used data files in their python code?
tmplt has quit [Ping timeout: 248 seconds]
<infinisil> ,ask gchristensen
<{^_^}> gchristensen: Just ask your question. It's the best way to know if anybody can help.
<infinisil> :P
<gchristensen> ,unset ask
<{^_^}> gchristensen: Did you mean unfree?
<{^_^}> ask: You cannot install your unfree software? See https://nixos.wiki/wiki/FAQ/unfree
Tobba has quit [Ping timeout: 240 seconds]
periklis has joined #nixos
<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> > lib.concatLists [ [ 10 20 ] [ 30 ] ] # tenten8401
<{^_^}> [ 10 20 30 ]
<LnL> gchristensen: there's also setup(data_files=[])
<tenten8401> thanks, that's what I'm looking for I'm pretty sure
<gchristensen> LnL: that one fails for me :|
grp has joined #nixos
<LnL> as for __file__, I don't think there's anything better, stuff like sys.prefix points to the executable not the current package
init_6 has joined #nixos
<infinisil> gchristensen: You could substitute @out@ with $out in the nix build
i-am-the-slime has joined #nixos
<gchristensen> I think I sorted it by doing a hack cp, like nixops does :P
<i-am-the-slime> I use cabal2nix and I need git as a dependency in this thing. I have no clue where to add it.
<{^_^}> [nixpkgs] @bricewge opened pull request #43814 → alacritty: add terminfo and man → https://git.io/fNnpj
<LnL> gchristensen: -_-
<gchristensen> LnL: sorry :P happy to fix it soon
<ocharles_> Taneb: awesome, did you have any luck with micro-ci?
<infinisil> i-am-the-slime: runtime? build time?
<i-am-the-slime> build time
<infinisil> i-am-the-slime: Then just do something like `overrideAttrs (old: { buildInputs = old.buildInputs ++ [ pkgs.git ]; })`
<infinisil> Assuming you don't want to modify the cabal2nix generated expression
<i-am-the-slime> infinisil: When I call it?
<infinisil> Nah, in a different file
<i-am-the-slime> So I run it like this now:
<i-am-the-slime> nix-env -i -f shell.nix
<i-am-the-slime> Oh another one?
<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?
hakujin has joined #nixos
<{^_^}> [nixpkgs] @kamilchm opened pull request #43815 → deoplete-nvim: 2018-06-17 -> 2018-07-16 → https://git.io/fNnhy
<infinisil> Oh wait that's the page you linked
<grp> yep
{^_^} 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]
{^_^} has joined #nixos
{^_^} has quit [Changing host]
{^_^} has joined #nixos
<{^_^}> [nixpkgs] @kamilchm opened pull request #43816 → oraclejdk: 8u171 -> 8u181 → https://git.io/fNnhx
<infinisil> Is that what you're looking for?
<grp> yes
graphene has joined #nixos
<grp> I've been struggling with that article for a while now
<grp> guess I'll keep at it some more
<infinisil> i-am-the-slime: Whoops, it's (import ./gen.nix {})
<infinisil> grp: What's the problem with it?
<grp> let me retrace some steps
<i-am-the-slime> infinisil: that now fails in the same way as the previous version
<i-am-the-slime> can you have a look at the gist again?
<grp> I've made so many changes trying to get it right that I no longer know what was wrong with it at what point
<i-am-the-slime> I put the error there.
<infinisil> i-am-the-slime: Which files contain what now and how are you running the build?
nek0 has joined #nixos
aarvar has joined #nixos
<{^_^}> [nixpkgs] @binarin opened pull request #43817 → procps: enable systemd support when available → https://git.io/fNnjh
<i-am-the-slime> infinisil: I updated the gist again.
binarin has joined #nixos
<infinisil> i-am-the-slime: When you run `nix-shell shell2.nix --pure`, is git available in that shell?
Tobba has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer opened pull request #43818 → [wip] {cc,bintools}-wrapper: handle $out/nix-support/skip-flags → https://git.io/fNceY
<i-am-the-slime> I am trying to and it fails with the same error.
<i-am-the-slime> so the shell does not even open
<{^_^}> [nixpkgs] @wizeman opened pull request #43819 → why3: 0.88.3 -> 1.0.0 → https://git.io/fNce2
Tobba has quit [Client Quit]
erasmas has joined #nixos
Tobba has joined #nixos
<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?
<grp> indeed
<grp> nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels:nixpkgs-overlays=/etc/nixos/overlays-compat
periklis has joined #nixos
<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?
goibhniu has quit [Ping timeout: 244 seconds]
<infinisil> i-am-the-slime: Maybe check out https://github.com/Gabriel439/haskell-nix, Project 1 specifically has an example of overriding a dependency
<i-am-the-slime> thanks
irc12286 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
cryptomonoid has quit [Ping timeout: 260 seconds]
<manveru> is gabriel ever on irc?
<{^_^}> [nixpkgs] @Twey opened pull request #43820 → pssh: ensure runtime dependencies are propagated → https://git.io/fNcvx
<infinisil> manveru: gonz_ ?
<gonz_> I'm not him, no.
<manveru> that would've been too easy :D
iyzsong-x has quit [Quit: ZNC 1.7.0 - https://znc.in]
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
<{^_^}> #43491 (by manveru, open): dhall-to-nix is broken
<dhess> with a fork of a package or maybe one that isn't on Hackage yet
<manveru> i don't know enough about haskell to even attempt to fix this
<elvishjerricco> dhess: Yea so you can do `callCabal2nix "foo" (fetchFromGitHub { ... }) {}`
<dhess> elvishjerricco: ahhhh of course, good idea
<manveru> `error: Package ‘hnix-0.5.1’ in .... is marked as broken, refusing to evaluate.`
<elvishjerricco> dhess: `foo` needs to be the name of the cabal file sans extension, IIRC
<dhess> This composability aspect of Nix is where it really kicks every other packaging system's ass.
alpha_sh has quit [Ping timeout: 248 seconds]
cruxeter has quit [Ping timeout: 248 seconds]
Leo` has quit [Ping timeout: 248 seconds]
eeva has quit [Ping timeout: 248 seconds]
alpha_sh has joined #nixos
cruxeternus has joined #nixos
<infinisil> manveru: Just wanted you to link to an open issue regarding that, but then i realized you were the one who opened that issue :)
<infinisil> manveru: First step is to build it anyways and to see what the error is
<manveru> i tried that
<manveru> some dependencies of hnix aren't satisfied
<infinisil> If it's upper bounds errors this should be solvable via doJailbreak
periklis has quit [Ping timeout: 256 seconds]
<infinisil> Oh and there's even a note on why it's marked as broken
<{^_^}> [nixpkgs] @dotlambda merged pull request #43782 → python3Packages.simpleldap: remove → https://git.io/fNZpY
<{^_^}> [nixpkgs] @dotlambda pushed 3 commits to master: https://git.io/fNcJQ
Coyin has quit [Quit: Leaving]
<srhb> manveru: It's dhall-nix right?
<srhb> Built for me in unstable. Do I have weird overrides....
<manveru> hmm
<manveru> i tried with `nix build -f channel:nixpkgs-unstable dhall-nix`
<manveru> i'm not gonna try building it on master, it wants to download like 3GB
<manveru> oh fuck, also on unstable
<manveru> if i allow broken
FRidh has joined #nixos
<srhb> manveru: That works for me too
Tobba has quit [Ping timeout: 256 seconds]
<manveru> i don't really feel like waiting the rest of the day for it to download/build :|
<srhb> Wait, no, nixos-unstable works, nixpkgs-unstable does not
<srhb> Guess a recent update broke it
<infinisil> It's compiling nix for me on master
sigmundv has quit [Ping timeout: 245 seconds]
<rizary> `nix-build -A a.b a.c a.d` I dont know how to build multiple packages, and try with that but it still fails.
<rizary> is there any nicer syntax to do that?
<{^_^}> hnix#98 (by mdorman, closed): deriving-compat dependency can be bumped
<infinisil> I'm compiling hnix with a jailbreak now and I haven't gotten an error just yet
<infinisil> So this might just work
Leo` has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
binarin has quit [Ping timeout: 276 seconds]
igo95862 has joined #nixos
bmikedesk has quit [Read error: Connection reset by peer]
alex`` has quit [Ping timeout: 240 seconds]
<nh2> anybody know how I can write a nix expression that gives me all Haskell *executables* in haskellPackages?
<tilpner> nh2 - Use buildEnv with a list of all packages in haskellPackages
Guest827 is now known as jophish___
<tilpner> Now... how to find that one...
<infinisil> builtins.attrValues haskellPackages
<srhb> nh2: I don't think we can make that distinction.
knupfer has joined #nixos
<infinisil> nh2: But like, that's thousands of packages, I doubt you want all of them..
<infinisil> Oh, you just want to know which executables there are?
<nh2> srhb: `hackage-packages.nix` has `isExecutable = true;` for each executable
<srhb> nh2: Oh! My bad.
<nh2> infinisil: I want to build all of them with my static musl toolchain
wpcarro has quit [Remote host closed the connection]
<tilpner> > builtins.filter (p: p.isHaskellLibrary or false) (builtins.attrValues haskellPackages)
<tilpner> > builtins.filter (p: !p.isHaskellLibrary or false) (builtins.attrValues haskellPackages)
<srhb> tilpner: No, that's not quite what isHaskellLibrary is
wpcarro has joined #nixos
<{^_^}> package depends on meta package 'unbuildable'
<tilpner> Yeah, I'm just guessing
<{^_^}> package depends on meta package 'unbuildable'
qwerty_asdf has joined #nixos
wpcarro has quit [Remote host closed the connection]
wpcarro has joined #nixos
<infinisil> > isExecutable = pkg: (haskell.lib.overrideCabal pkg (drv: { passthru.isExecutable = drv.isExecutable or false; })).isExecutable
<{^_^}> error: undefined variable 'haskell' at (string):72:23
<infinisil> > isExecutable = pkg: (pkgs.haskell.lib.overrideCabal pkg (drv: { passthru.isExecutable = drv.isExecutable or false; })).isExecutable
<{^_^}> isExecutable defined
<nh2> tilpner: infinisil srhb : would the right solution be to pass isExecutable in passthrough https://github.com/NixOS/nixpkgs/blob/e7e5aaa0b9/pkgs/development/haskell-modules/generic-builder.nix#L428
<nh2> ah that's exactly what infinisil just wrote
<infinisil> > isExecutable pkgs.haskellPackages.3dmodels
<srhb> Yes :D
<{^_^}> 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)
<srhb> True true.
Czen has quit [Remote host closed the connection]
ixxie has joined #nixos
Czen has joined #nixos
<infinisil> > isExecutable pkgs.haskellPackages.zuramaru
<{^_^}> true
<infinisil> > isExecutable pkgs.haskellPackages.ztar
<{^_^}> false
<infinisil> > isExecutable pkgs.haskellPackages."3dmodels"
<{^_^}> false
<infinisil> There we go, quoting :)
Czen has quit [Remote host closed the connection]
<clever> infinisil: another fun thing i discovered, the haskell package array you pass to most haskell tooling, filters on isHaskellLibrary
<{^_^}> [nixpkgs] @FRidh pushed 155 commits to staging-next: https://git.io/fNckw
<clever> infinisil: so if you pass it [ haskell.lib.dontCheck hsPkgs.foo ];
<clever> it will silently filter the function out
doyougnu has joined #nixos
<infinisil> Huh
<clever> > "${haskellPackages.ghcWithPackages (ps: [ haskell.lib.dontCheck ps.lens ])} ${haskellPackages.ghcWithPackages (ps: [ ps.lens ])}"
<{^_^}> "/nix/store/aak9ml7b4ss56q44y7lfidgw5v8nhr39-ghc-8.4.3-with-packages /nix/store/aak9ml7b4ss56q44y7lfidgw5v8nhr39-ghc-8.4.3-with-packages"
<clever> infinisil: the dontCheck is entirely ignored, and has no impact on the storepath
<clever> and it doesnt fail
<infinisil> Oh I see, was confused because of the missing () but I guess that was intentional
qwerty_asdf has quit [Quit: WeeChat 2.0]
<infinisil> Neat
<clever> yeah, if you miss the () by accident, the function gets filtered out
<clever> and then you spend an hour trying to figure out why it doesnt work
<infinisil> Yeah, or not neat in some situations xD
<clever> because it didnt fail like most other lists would have in nix
Ralith_ has quit [Ping timeout: 240 seconds]
Tobba has joined #nixos
asymmetric has joined #nixos
Guest80558 has quit [Ping timeout: 255 seconds]
<nh2> infinisil: I'm still confused:
<nh2> isExecutable (builtins.elemAt (builtins.attrValues haskellPackages) 0)
<nh2> works but
<nh2> true
<nh2> builtins.filter (x: isExecutable x) (builtins.attrValues haskellPackages)
<nh2> error: value is null while a set was expected, at /home/niklas/src/nixpkgs/pkgs/development/haskell-modules/lib.nix:37:28
<infinisil> You need to filter the package list first
<infinisil> Remove null, non-packages and co
<{^_^}> [nixpkgs] @jwiegley pushed to master « perlPackages.TextBibTeX: Update perl version in an output path »: https://git.io/fNckh
ihar has quit [Quit: WeeChat 2.0]
<sphalerite> builtins.filter (x: isDerivation x && isExecutable x) maybe
<nh2> but due to laziness, shouldn't nix repl at least print the first element in the list, given that elemAt 0 worked?
<infinisil> > lib.length (lib.filter (x: lib.isDerivation x && isExecutable x) (builtins.attrValues haskellPackages))
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> nix-repl> pkgs.lib.length (builtins.filter (x: pkgs.lib.isDerivation x && isExecutable x) (builtins.attrValues haskellPackages))
<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
<{^_^}> { "3d-graphics-examples" = <CODE>; "3dmodels" = <CODE>; "4Blocks" = <CODE>; AAI = <CODE>; ABList = <CODE>; AC-Angle = <CODE>; AC-Boolean = <CODE>; AC-BuildPlatform = <CODE>; AC-Colour = <CODE>; AC-Eas...
<infinisil> sphalerite: Takes a while :)
simukis has quit [Quit: simukis]
<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
udkyo has quit [Quit: udkyo]
wpcarro has quit [Remote host closed the connection]
<nh2> gchristensen: but I don't want to enable the package, I want that it is invisible instead of erroring
<{^_^}> [nixpkgs] @domenkozar opened pull request #43823 → pipenv: 2018.5.18 -> 2018.7.1 → https://git.io/fNcIR
Czen has joined #nixos
udkyo has joined #nixos
<clever> i think the problem, is that you cant eval any part of an unfree package, so you cant test if its unfree and filter it out
<clever> tryEval may help though
<gchristensen> nh2: wat for?
<clever> > builtins.tryEval pkgs.teamviewer
<{^_^}> { success = true; value = { __ignoreNulls = true; all = <CODE>; args = <CODE>; buildInputs = <CODE>; builder = <CODE>; configureFlags = <CODE>; depsBuildBuild = <CODE>; depsBuildBuildPropagated = <COD...
<clever> > pkgs.teamviewer
<{^_^}> "<derivation /nix/store/7z4cqkjq5ivqcbqam3cv7q803b7y9gyl-teamviewer-13.1.3026>"
<clever> > builtins.tryEval ( (import <nixpkgs> { config.allowUnfree = false; }).teamviewer)
<{^_^}> { success = true; value = { __ignoreNulls = true; all = <CODE>; args = <CODE>; buildInputs = <CODE>; builder = <CODE>; configureFlags = <CODE>; depsBuildBuild = <CODE>; depsBuildBuildPropagated = <COD...
<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
<{^_^}> #43795 (by nh2, open): Fully static Haskell executables - overview issue
<clever> > (import <nixpkgs> { config.allowUnfree = false; }).teamviewer.meta.license
<{^_^}> { free = false; fullName = "Unfree"; shortName = "unfree"; }
* clever scratches head
revtintin has joined #nixos
<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
<infinisil> (x: lib.trace (let res = ...))
erickomoto has joined #nixos
drbrule has joined #nixos
udkyo has quit [Ping timeout: 268 seconds]
wpcarro has joined #nixos
<infinisil> > :v pkgs
<{^_^}> pkgs = import <nixpkgs> { config.allowUnfree = true; }
<infinisil> clever: Already defined as allowing unfree
<clever> infinisil: which is why i re-imported my own copy with it dis-allowed
viric_ is now known as viric
<clever> yet it still works
<nh2> infinisil:
<nh2> lib.length (lib.filter (x: builtins.trace x (lib.isDerivation x) && isExecutable x) (builtins.attrValues pkgs.haskellPackages))
<nh2> hangs forever
<infinisil> clever: Huh why would that be disallowed
<infinisil> Oh
<infinisil> you set it to false
<clever> yep
<infinisil> nh2: Forever is a long time and I only asked for that 1 minute ago, you sure it's forever? :P
<nh2> infinisil: I'd expect it to trace something at some point
<nh2> some reasonable point in the future :D
<infinisil> > builtins.trace hello
<{^_^}> <PRIMOP-APP>
<infinisil> > builtins.trace hello ""
<{^_^}> ""
<infinisil> nh2: Use lib.trace
<nh2> lib.trace
<nh2> error: attribute ‘trace’ missing, at (string):1:1
<nh2> :o
<infinisil> lib.traceVal, whoops
<nh2> builtins.trace "${x}" also seems to help
<infinisil> So lib.traceVal also prints something?
<grp> infinisil: http://ix.io/1hK7 These are (some of) my tests regarding overlays. (Org outline)
<nh2> no, traceVal also hangs
<nh2> > lib.length (lib.filter (x: builtins.trace "${x}" (lib.isDerivation x) && isExecutable x) (builtins.attrValues pkgs.haskellPackages))
<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]
orivej has quit [Ping timeout: 276 seconds]
<infinisil> nh2: Got it
<infinisil> clever: ^
<manveru> is there now a way to get logs for failed derivations with `nix build`?
<infinisil> I just used `x ? env` to make sure it's actually a haskell package
<ben> why does the nix install script refuse to run with root privileges?
<gchristensen> I think `nix log` works manveru ?
dmc has quit [Quit: WeeChat 2.2]
<manveru> gchristensen: only if it succeeded
<gchristensen> oh
<manveru> in which case i don't usually care about it :P
<infinisil> Whaaaat
<gchristensen> what about ni log on the drv?
<manveru> nope
<infinisil> manveru: This makes nix log almost useless
<gchristensen> blah
<samueldr> on *the one that failed* it should work
<manveru> hmm
<manveru> gchristensen: correction, that works
<samueldr> I used it extensively for mobile-nixos
<gchristensen> yay
<infinisil> Whew
<manveru> thanks :)
fresheyeball has joined #nixos
<fresheyeball> is there a way I can add packages to an env?
dmc has joined #nixos
<fresheyeball> as in drv.env.overridePackages ?
<fresheyeball> something like that?
<manveru> just if you do `nix build -f foo.nix`, then `nix log -f foo.nix` won't work
|Leary has quit [Remote host closed the connection]
<manveru> but `nix log $(nix-instantiate foo.nix)` does
booglewoogle has joined #nixos
<infinisil> fresheyeball: `overrideAttrs (drv: { buildInputs = drv.buildInputs ++ [ pkgs.hello ]; })`
|Leary has joined #nixos
<infinisil> Or nativeBuildInputs would make more sense
leotaku has quit [Ping timeout: 244 seconds]
logzet has quit [Ping timeout: 240 seconds]
henrycrutcher has quit [Quit: Page closed]
tertle||eltret has quit [Quit: Connection closed for inactivity]
dmc has quit [Quit: WeeChat 2.2]
leotaku has joined #nixos
<sphalerite> manveru: but `nix log -f foo.nix ''` should work
<manveru> huh
<manveru> it does
<manveru> what kind of UX is that :P
<sphalerite> buggy UX
<sphalerite> nix#20663
<sphalerite> nix#2066
<{^_^}> https://github.com/NixOS/nix/issues/2066 (by lheckemann, open): nix log requires an attr path
<Profpatsch> fetchTarball, how does it work.
<{^_^}> [nixops] @grahamc opened pull request #981 → Delete all the providers (and use plugins instead) → https://git.io/fNcqQ
<manveru> lol
<manveru> you actually did it gchristensen :D
* gchristensen looks up
<gchristensen> :D
wpcarro has quit [Remote host closed the connection]
<gchristensen> not bad
revtintin has quit [Quit: WeeChat 2.1]
<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?
<infinisil> buildInputs should definitely work
Judson has joined #nixos
<fresheyeball> except I had buildInputs before
Judson is now known as Guest89199
<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
<booglewoogle> so i'm using https://github.com/FasterMelee/FasterMelee-installer , which is the recommended way of installing this
* samueldr verifies to be entirely sure
<samueldr> yep
<xinming> sphalerite: THanks
<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!
<{^_^}> [nixpkgs] @Infinisil opened pull request #43824 → haskellPackages.hnix: Fix build → https://git.io/fNcYy
<__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> nixos?
<_d0t> yup, on nixos
doyougnu has quit [Quit: WeeChat 2.0]
<clever> _d0t: virtualisation.virtualbox.host.enable = true;
<gchristensen> virtualisation.virtualbox.host.enable = true
<gchristensen> :D
<_d0t> and that's all?
<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
cryptomonoid has quit [Ping timeout: 240 seconds]
<xinming> Ok, THanks
<booglewoogle> https://pastebin.com/rH4exQgx this is what i modified the dolphinEmu expression from the nixpkgs to
<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]
wucke13 has quit [Quit: WeeChat 2.0]
<booglewoogle> ohhh, yeah, sorry. https://pastebin.com/iGaaeEN2
graphene has joined #nixos
jperras has quit [Ping timeout: 255 seconds]
<sphalerite> *elevator music as it builds*
<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?
<sphalerite> booglewoogle: try adding cmakeFlags = ["-DDOLPHIN_VERSION_MINOR=9"];
<booglewoogle> woah
<andi-> endformationage: for what reasons? What was the error there?
<booglewoogle> sphalerite: will do!
<endformationage> OpenGL driver error of some sort.. 4.1 from unstable does run however.
<{^_^}> [nixpkgs] @domenkozar merged pull request #43824 → haskellPackages.hnix: Fix build → https://git.io/fNcYy
<{^_^}> [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
<andi-> endformationage: yes
<clever> Henson: nix-repl> :b pkgs.callPackage (pkgs.path + "/nixos/lib/make-system-tarball.nix") { fileName = "tarball"; contents = []; storeContents = [ { object = pkgs.hello; symlink = "hello"; } ]; }
<endformationage> Dang .
<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: how would I do that?
<{^_^}> [nixpkgs] @matthewbauer closed pull request #43818 → [wip] {cc,bintools}-wrapper: handle $out/nix-support/skip-flags → https://git.io/fNceY
<clever> Guest50547: simplest thing is to just change the import <nixpkgs> to: import (builtins.fetchTarball "https://github.com/nixos/nixpkgs/dae9cf6106da19f79a39714f183ed253c62b32c5.tar.gz") {}
<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
<{^_^}> #43797 (by sjau, open): ZFS root pool import in initrd slow - 2 min 25 secs
<muzzy__> Hey guys, whats the proper way to install python packages in Nixos again?
<hyper_ch> put them into the configuration.nix?
<infinisil> muzzy__: If you're using them for development, it's preferred to not install them at all but use a nix-shell instead
<hyper_ch> clever: I think those are the important dmesg lines https://paste.simplylinux.ch/view/raw/f0f8cef4 3.3 -> 146.3 : 2 min 23 secs
<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...
knupfer has quit [Ping timeout: 240 seconds]
qwerty_asdf has quit [Quit: WeeChat 2.0]
<infinisil> muzzy__: Read the python section here: https://nixos.org/nixpkgs/manual/#user-guide
<ghostyy> hm
<hyper_ch> clever: that seems to be related
<muzzy__> alright, thank you
drakonis has quit [Remote host closed the connection]
<ghostyy> now clang complains about how it cant find #include <cctype>
<clever> hyper_ch: nixos will import all pools in the postDeviceCommands: https://github.com/NixOS/nixpkgs/blob/release-18.03/nixos/modules/tasks/filesystems/zfs.nix#L326-L352
<infinisil> ,locate cctype
<hyper_ch> clever: I only have 1 pool
<{^_^}> Found in packages: sage, libcxx, cmdstan, boost.dev, emscripten, gcc-unwrapped, gcc-arm-embedded, and 2 more
<clever> hyper_ch: if you boot.debug1devices then it will "fail" immediately before importing your pool, and give you a shell
<ghostyy> cctype is part of libc++ but isnt that supposed to come with clang?
<clever> hyper_ch: then you can try to manualy import the pool and see what the problem is
<ghostyy> ah libc++ is a llvm project
fresheyeball has quit [Quit: WeeChat 2.0]
tmaekawa has joined #nixos
teej has joined #nixos
<hyper_ch> add: boot.debug1devices to the kernel line in grub?
<sphalerite> yep
<clever> hyper_ch: yeah
<hyper_ch> will try to
<ghostyy> adding libc++ doesnt make it compile though...
vandenoever has quit [Quit: ䷴៚]
erickomoto has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
vandenoever has joined #nixos
tmaekawa has quit [Client Quit]
muzzy__ has quit [Remote host closed the connection]
muzzy__ has joined #nixos
graphene has quit [Remote host closed the connection]
teej has quit []
<booglewoogle> sphalerite: okay, i'll see if i can have some success with that. :D
graphene has joined #nixos
<hyper_ch> clever: boot.debug1devices is way faster than "normal" boot....
<hyper_ch> took about 1 sec to import the pool
<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
<{^_^}> [nixpkgs] @pSub merged pull request #43816 → oraclejdk: 8u171 -> 8u181 → https://git.io/fNnhx
<{^_^}> [nixpkgs] @pSub pushed 2 commits to master: https://git.io/fNcWJ
wpcarro has quit [Ping timeout: 248 seconds]
rihards has joined #nixos
<hyper_ch> clever: https://images.sjau.ch/img/eec5d260.jpg -- doesn't do anything exciting and when I issued same commands it worked also without issue
wpcarro has joined #nixos
<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
<{^_^}> [nixpkgs] @ryantm opened pull request #43826 → mattermost: 5.0.0 -> 5.1.0 → https://git.io/fNcW7
graphene has joined #nixos
<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)
<hyper_ch> boot.kernelParams = [ "zfs.zfs_arc_max=6442450944" "boot.debug1.devices" ];
<hyper_ch> that should do the trick I suppose
boomshroom has joined #nixos
<boomshroom> Hello!
onon has quit [Quit: ☭]
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
<clever> hyper_ch: "zfs.zfs_arc_max=${toString (6 * 1024 * 1024 * 1024)}"
<xinming> I tried to add openssl, It doesn't seem to be right
<clever> hyper_ch: much more readable
<etu> With the first block I get messages in the log like "python module missing"
<hyper_ch> clever: pondering to get that tuxedo 32gb notebook then I won't need to set that
<etu> But reading the code it should result in the same thing
<hyper_ch> I only seat max arc because of qemu vms
<hyper_ch> for some reason qemu doens't free memory
<clever> hyper_ch: it defaults to 50% of the ram, and it will release some under memory pressure
<hyper_ch> and then just fails if too little is available
wpcarro has quit [Ping timeout: 244 seconds]
<hyper_ch> qemu doesn't pressure it enough
<srk> ,locate libssl.so
<clever> hyper_ch: but qemu tries to allocate it all at once and can fail before zfs has a chance to move out of the way
<{^_^}> Found in packages: netcat, openssl, robomongo, scilab-bin, openssl-chacha
<clever> hyper_ch: swap helps there
<hyper_ch> no space for swap
<hyper_ch> 2x1 tb ssds just aren't big enough
<srk> xinming: use can use locate ^^
<srk> *you
<xinming> Thanks. I'm still a bit confused though. :-)
<srk> you probably want to use openssl, try adding it to buildInputs
<xinming> srk: THanks, I added to "args" of the .nix part
<xinming> which doesn't work, I'll try to recompileit
<xinming> recompile it
<hyper_ch> srk: am I right to assume that you don't use native zfs encryption on your pools?
<srk> hyper_ch: yup, we would like to start using that at some point
<srk> possibly
<hyper_ch> srk: if you've followed above, it boots but for some reason pool import takes like 2m20s for me
<hyper_ch> (I've given up before that and declared it as non-bootable)
<FRidh> etu: heh the module overrides extraComponents, you need to set autoExtraComponents to false
<srk> hyper_ch: yup, you can also try zfs master with my patch
<hyper_ch> well, I added now fail2shell in initrd... fi I import manually there's no timeout for some reason
<FRidh> I suggest opening an issue because this is just mean :) At the very least it would have to be added to the module description
<{^_^}> [nixpkgs] @pSub pushed to master « yafaray-core: adhere to version convention »: https://git.io/fNc4n
<srk> hyper_ch: sounds like something race-y
<{^_^}> #43797 (by sjau, open): ZFS root pool import in initrd slow - 2 min 25 secs
<etu> FRidh: Huh? autoExtraComponents? I don't find any option like this
<etu> FRidh: ah, in the module
<FRidh> etu it's a module option
<etu> thanks
pie__ has quit [Read error: Connection reset by peer]
pie__ has joined #nixos
ckauhaus has joined #nixos
<etu> FRidh: Well, that's an annoying module behaviour I'd say :D
Lisanna has quit [Quit: Lisanna]
<hyper_ch> note: currently hard linking saves -4.55 MiB
<hyper_ch> 6610 store paths deleted, 10694.15 MiB freed
<hyper_ch> :)
<clever> hyper_ch: nix-store --optimize
<{^_^}> [nixpkgs] @pSub pushed to master « weechat: set name to include version »: https://git.io/fNc4S
<hyper_ch> clever: running my cleanup script
<hyper_ch> but I use --optimise
<clever> ah, then your just not saving much with it
ckauhaus has quit [Client Quit]
<hyper_ch> really? :/
<clever> the hardlinks are costing you 4mb
<hyper_ch> even wrose, 4 1/2mb
<hyper_ch> but is it nix-store --optimize or nix-store --optimise
<clever> to the man page!
<clever> nix-store --optimise
<clever> optimize also works....
<hyper_ch> how did you find this so quickly in the man page?
<clever> to the source!
<clever> / lets you search in a man page
<srk> hyper_ch: I might try to reproduce that over the weekend and test with my overlay
<hyper_ch> so you were cheating
<clever> / also lets you search in less, and chrome
<hyper_ch> :)
<clever> else if (*arg == "--optimise" || *arg == "--optimize")
<clever> op = opOptimise;
<infinisil> Man pages are innavigatable without /!
<hyper_ch> srk: cool
<srk> alias gg='git grep -i' ^^
<clever> hyper_ch: the manpage says s, the source says either!
<andi-> thats always irritating me..
<hyper_ch> mapages > source ?
<clever> hyper_ch: docs can lie :P
<clever> they omited the fact that --optimize is valid
<hyper_ch> source can do that too
<clever> read the code, not the comments
<clever> code cant lie
<infinisil> If you know how/where to find stuff in the source it can be really useful
<hyper_ch> well, I'd still opt for the british --optimize over the US --optimise
ckauhaus has joined #nixos
<hyper_ch> code can't lie? that's what they want to make you believe
<{^_^}> [nixpkgs] @pSub pushed to master « taffybar: include version in name »: https://git.io/fNcBm
<boomshroom> Does anyone remember how to enable the Steam Controller? Steam doesn't seem to be detecting it.
<hyper_ch> srk: my current setup https://github.com/sjau/nixos -- and I use an encrypted dataset using aes-256-gcm
<clever> boomshroom: you need to chown the device nodes in /dev/bus/usb/
<clever> boomshroom: a udev rule can automate that
<hyper_ch> srk: tank/encZFS/Nixos
<{^_^}> [nixpkgs] @pSub pushed to master « xmonad: include version in name »: https://git.io/fNcBE
<infinisil> clever: hyper_ch: But how do you spell colorize? colourise? colorise? colourize?
shabius has quit [Quit: Leaving]
<hyper_ch> färben
<hyper_ch> :)
<hyper_ch> colourize
<hyper_ch> I don't use such complicated words
<infinisil> (I just read this in a readme :))
<hyper_ch> it should be colorize
<hyper_ch> but then I do you colour
<boomshroom> clever: I have a few udev rules set in configuration.nix. Which one is for the steam controller?
<xinming> Cannot locate native library 'libssl.so': libssl.so: cannot open shared object file: No such file or directory
<clever> boomshroom: check lsusb to find its vid:pid
<xinming> This is error when I try to use package built with nix
<boomshroom> clever: Looks like it is enabled.
<{^_^}> [nixpkgs] @pSub pushed to master « leksah: include version in name »: https://git.io/fNcB7
<boomshroom> Seems to be read write for all users, owned by root.
winem_ has joined #nixos
<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
<{^_^}> [nixpkgs] @primeos pushed to master « signal-desktop: 1.14.2 -> 1.14.3 »: https://git.io/fNc04
<xinming> ok, bbl
work_ has joined #nixos
<LnL> hmm, my journald doesn't seem to have logs since a few days
pie__ has quit [Read error: Connection reset by peer]
pie__ has joined #nixos
ckauhaus has quit [Quit: WeeChat 2.0]
<infinisil> ,tell MichaelRaskin Heh, just found out you were the one who added lib.closePropagation (which I need right now) in 2007: https://github.com/nixos/nixpkgs/commit/1bbc6fe55a2832fc1c67bb65baf365858c85f954#diff-298f9e213b5a5aa29a1c608fc5341be6R254 By now it landed in nixpkgs/lib/deprecated.nix for some reason which is why I looked it up
<{^_^}> infinisil: I'll pass that on to MichaelRaskin
cryptomonoid has joined #nixos
Fare has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
<xinming> clever: It seems, there is no "dlopen" for that file
<xinming> It just tries to stat the file
orivej has quit [Ping timeout: 245 seconds]
<clever> xinming: what does it do shortly before it fails?
phry has quit [Quit: WeeChat 2.1]
<xinming> just bunch of futex, read&&write
<clever> xinming: what is it reading and writing?
<xinming> Is it possible to "import" the libs to the package env?
<clever> nix-shell/nix-build should already put them into scope for all of the standard tools
<clever> but youve got a non-standard tool
phry has joined #nixos
<xinming> yes, It's a perl6 module installe
<xinming> installer*
grp has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed 2 commits to master: https://git.io/fNcEA
<clever> can you pastebin all of the strace output?
<xinming> hold on, I'm dumping the error logs
<xinming> It's a large one. a second
crmlt has quit [Ping timeout: 240 seconds]
jtojnar has quit [Remote host closed the connection]
cryptomonoid has quit [Ping timeout: 260 seconds]
ixxie has quit [Ping timeout: 264 seconds]
udkyo has quit [Quit: udkyo]
<imalison> how do people set system wide overlays so that they are picked up by configuration.nix?
<imalison> it seems like there are a few different ways to make overlays get picked up
<clever> imalison: nixpkgs.overlays in configuration.nix
<clever> nixos only uses those, and nothing else
<imalison> but the manual doesn't recommend anyting in particular
<imalison> are you saying that you HAVE to be explicit about it?
<clever> yes
<infinisil> How do I get my current system from nixpkgs?
<infinisil> builtins.currentSystem only returns the string
<infinisil> Oh well actually that's fine, never mind
<{^_^}> [nixpkgs] @FRidh opened pull request #43828 → stage: use fix' to allow deep overriding of `pkgs` from within Nixpkgs → https://git.io/fNczU
<imalison> clever: https://nixos.wiki/wiki/Overlays makes it sound like appropriately editing NIX_PATH would also work
<clever> imalison: nixos forces nixpkgs to only use nixpkgs.overlays, and to ignore NIX_PATH
<imalison> I see
<clever> imalison: line 68 imports nixpkgs, and 70 passes it nixpkgs.config and nixpkgs.overlays
<xinming> clever: these are all logs output
<clever> imalison: so the automatic loading from NIX_PATH and $HOME no longer work
<imalison> I see cool, that makes sense
<clever> xinming: thats weird, i see no attempt at opening it, it just assumes its not present
<xinming> clever: I think just tries to "locate" the file and link against it.
<xinming> I think it*
<clever> xinming: i do see it loading a few child processes, can you make another set of logs with `strace -ff -o logfiles -s 500` ?
<xinming> docker does work fine in this case, It has fully minimized system.
<xinming> Ok, bbl
knupfer has joined #nixos
Anton-Latukha has joined #nixos
<{^_^}> [nixpkgs] @eadwu opened pull request #43829 → vscode-extensions.ms-python.python: 2018.6.0 -> 2018.7.0 → https://git.io/fNczh
wpcarro has joined #nixos
<nh2> infinisil: fantastic, thank you. I added another filter for `broken` to it
<clever> ./logfiles.5379:openat(AT_FDCWD, "/usr/lib64/libssl.so.1.0.0", O_RDONLY|O_CLOEXEC) = 3
<clever> xinming: bingo, theres the problem
<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
RetardedOnion has joined #nixos
abcrawf has joined #nixos
<xinming> clever: http://termbin.com/3t3x
<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
<{^_^}> [nixpkgs] @matthewbauer closed pull request #43670 → Add recurseOnHydra function → https://git.io/fNsZ0
<boomshroom> DAMN IT! WHY ISN'T THIS WORKING!?
<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
<samueldr> e.g., RetardedOnion, look into here https://nixos.org/nixos/manual/release-notes.html#sec-release-18.03-incompatibilities
jtojnar has joined #nixos
<{^_^}> [nixpkgs] @dtzWill merged pull request #43822 → vim-plugins: updates, add few plugins I use, colorschemes → https://git.io/fNcIn
<{^_^}> [nixpkgs] @dtzWill pushed 6 commits to master: https://git.io/fNcwo
<kalbasit> samueldr: I figure out the nodePackages, I added packages through an overlay that you can see here: https://github.com/kalbasit/dotfiles/tree/master/overlays/nodePackages
<kalbasit> samueldr: also, here's the official docs about it: https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/node.section.md
pie_ has joined #nixos
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]
<RetardedOnion> samueldr: i live in testing on arch. and this: https://bugs.archlinux.org/task/59266 is still not fixed. i am expecting breakage.
<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
<nh2> and
<nh2> blacklist = [...] ++ lib.filter (x: x != "") (lib.splitString "\n" (builtins.readFile ../blacklist));
<{^_^}> [nixpkgs] @eadwu opened pull request #43830 → vscode: 1.25.0 -> 1.25.1 → https://git.io/fNcov
<RetardedOnion> !pastebin
<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?
<samueldr> ,paste RetardedOnion
<{^_^}> RetardedOnion: Use a website such as http://nixpaste.lbr.uno/ or https://gist.github.com/ to share anything that's longer than a couple lines
<samueldr> (had to lookup the commands)
<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 :)
<boomshroom> :q
boomshroom has quit [Quit: WeeChat 2.1]
booglewoogle has joined #nixos
<nh2> LnL: but I thought nix 2.0 uses HTTP2?
<nh2> so is the http connections concept still relevant?
winem_ has quit [Ping timeout: 255 seconds]
<nh2> infinisil: well I'm at the stage where int prints the "querying ..." output asking remote servers, I _think_ that means evaluation is done
<LnL> no, this might even not be used for http2
ThatDocsLady_ has quit [Ping timeout: 255 seconds]
<infinisil> nh2: So it already knows which ones it can build regarding broken/unsupported?
<infinisil> You generated the blacklist already i mean?
<LnL> nh2: depends on what libcurl does
hxrts_ has quit [Ping timeout: 276 seconds]
dbe has quit [Ping timeout: 264 seconds]
<nh2> LnL: not sure I understand what you're saying, do you mean the option shouldn't be relevant if http2 is used?
<nh2> infinisil: yes it seems so, `nix-instantiate` terminates with lots of outputs after 30 seconds evaluation time
<nh2> 3400 lines that is
dbe has joined #nixos
<{^_^}> [nixpkgs] @eliasp opened pull request #43831 → terraform: remove whitespace from name → https://git.io/fNcoi
<bkchr[m]> Anyone tried to use logind via dbus?
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<infinisil> nh2: I see, well I'll link my nix-only solution as well in the PR, no need for generating a blacklist
pie__ has joined #nixos
<nh2> infinisil: which PR are you posting to?
<infinisil> nh2: #43795
<{^_^}> https://github.com/NixOS/nixpkgs/issues/43795 (by nh2, open): Fully static Haskell executables - overview issue
pie_ has quit [Read error: Connection reset by peer]
Anton-Latukha has left #nixos [#nixos]
hakujin has quit [Ping timeout: 245 seconds]
aanderse-laptop has quit [Ping timeout: 276 seconds]
udkyo has quit [Quit: udkyo]
<nh2> infinisil: hmm bumpting that number doesn't seem to help, I've bumped it to 400 but see no visible effect
<nh2> sorry I meant LnL
<nh2> and "bumping"
<LnL> yeah I don't think that's the problem, unless you're using nix1 somehow
<nh2> no definitely nix2, I get colourful output
mizu_no__ has quit [Quit: Computer has gone to sleep.]
<nh2> infinisil: now it has finally finished querying :D that took like 20 minutes
silver has quit [Read error: Connection reset by peer]
<infinisil> I guess this limit prevents a minor DoS attack on the servers :P
<nh2> OK but why request 1 narinfo at a time? Why not request them in 1 batch request?
<LnL> nh2: what about curl -v https://cache.nixos.org, does that go to ipv4 or ipv6?
<nh2> infinisil: 0/14126 built
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?
<manveru> we have a bunch of defaults already at https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/ruby-modules/gem-config/default.nix but you can always add your own via bundlerEnv or by contributing to nixpkgs :)
<{^_^}> [nixpkgs] @matthewbauer opened pull request #43832 → Add recurse overlay → https://git.io/fNcKb
<kiloreux> manveru, I used your hint and looking through this https://nixos.org/nix-dev/2015-January/015780.html. Managed to do it.
<kiloreux> Thank you very much for your time manveru.
<manveru> cool
justanotheruser has joined #nixos
graphene has quit [Remote host closed the connection]
dbe has quit [Ping timeout: 276 seconds]
dbe has joined #nixos
graphene has joined #nixos
hakujin has joined #nixos
<nh2> infinisil: here's something I don't understand: When trying to build the packages, I get e.g.
<nh2> builder for '/nix/store/6dcay461j61g08gqlnd617n4585kvgbs-Adaptive-0.23.drv' failed
<nh2> base <4.8
<nh2> Setup: Encountered missing dependencies:
<nh2> how can that be? If something doesn't build because of that kind of error, it shouldn't be in haskellPackages in the first place, right?
<infinisil> Why wouldn't it?
<infinisil> haskellPackages is auto-generated from all hackage-packages
<nh2> infinisil: doesn't Hydra also build it and complain?
<infinisil> Indeed
<LnL> yes, but that doesn't magically fix the problems :)
<nh2> so there is no hydra-based filtering on what works?
<infinisil> Well, if it downloads it from the cache it works
<nh2> also don't these packages come from Stackage LTS which ensures they build?
<infinisil> nh2: stackage is only for a small subset of the package
<infinisil> s
<nh2> infinisil: I thought that the nixpkgs packages were generated from stackage
<infinisil> I'm not entirely sure how it works, but the packages that are in stackage are certainly used in nixpkgs
hamishmack has joined #nixos
<infinisil> The others may just be the latest versions or so
<nh2> infinisil: for example commit " Update Haskell overrides for lts-12.x. "
<nh2> that suggests Stackage to me
<infinisil> Yeah it is
<infinisil> But not every package is in stackage
<infinisil> so the others are probably updated to the latest version available in hackage
hakujin has quit [Ping timeout: 255 seconds]
<infinisil> In stackage lts 12.1 there's 2349 packages, while hackage has like 13000
<infinisil> nh2: So yeah, I wouldn't be surprised if half of those packages don't build
<nh2> infinisil: I think what we want for our purposes is to only try and build Stackage packages, if we can somehow filter for that
<nh2> domenkozar clever: do you happen to know the above?
cryptomonoid has joined #nixos
<infinisil> nh2: --max-jobs 0 I think
<infinisil> Then it won't be able to build derivations that aren't cached
<domenkozar> nh2: we take stackage + latest hackage
<domenkozar> and disable what fails
graphene has quit [Remote host closed the connection]
<infinisil> domenkozar: Where disable means?
<domenkozar> don't build it
graphene has joined #nixos
<infinisil> Yeah, but where do you specify this? In hydra somewhere?
<nh2> domenkozar: can I determine from where (Stackage or Hackage) the package came from? I would like to build all executables that are on Stackage
<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> Hehe
<infinisil> No
<gchristensen> I should make an alias for that, I seem to mention that a lot.
<gchristensen> nh2: only if you parse it with a yaml parser, and then emit it as json (which the yaml parser will still be able to parse)
<infinisil> nh2: nixpkgs-mozilla has a crazy TOML parser in Nix: https://github.com/mozilla/nixpkgs-mozilla/blob/master/lib/parseTOML.nix
<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?
<zgrep> Err, how so / during what stage(s)?
<zgrep> phases.
Fare has quit [Ping timeout: 276 seconds]
<infinisil> zgrep: pkgs.fetchurl { name = "foo"; url = "https://..."; } ?
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).
{`-`} has quit [Ping timeout: 264 seconds]
{`-`}_ has joined #nixos