<{^_^}>
https://github.com/NixOS/nixpkgs/issues/41905 (by Infinisil, open): I just spent hours bisecting to find a single commit making mpv unable to play anything, only for it to suddenly start working
boomshroom has joined #nixos
<infinisil>
Mic92: ^ Hmm.. I did rebuild my system a couple times throughout this, but no driver update, just some small changes
<boomshroom>
Hello! Mind if I ask what ports are allowed through the firewall by default? I specifically want to try Steam in-home streaming, but I noticed several other ports than Steam uses and I'm not sure which should be opened.
<boomshroom>
`warning: Nix search path entry '$HOME/.nix-defexpr/channels' does not exist, ignoring` How can I silence that for `sudo nixos-rebuild switch`?
<Mic92>
where was the code for the irc bot?
<Mic92>
{^_^}: who is your creator?
<infinisil>
,whomademe Mic92
<{^_^}>
Mic92: The PR linking on #<number>, the "," prefix commands and the "> " nix eval have been implemented by infinisil, my source code can be found at https://github.com/infinisil/nixbot, the other functions of me have been implemented by other people
<infinisil>
I haven't updated it in a while, mainly due to thinking about using hnix for it, which would make it much nicer, but there's some problems with it
<infinisil>
A couple of the option ones are probably unnecessary though
<Mic92>
thnkas
thc202 has quit [Ping timeout: 256 seconds]
<Mic92>
thanks
<boomshroom>
Steam link did work, but was very slow and sound wasn't being forwarded correctly.
shah^ has quit []
jperras has joined #nixos
<Mic92>
infinisil: do you add import nixpkgs in the evaluation?
silver_ has joined #nixos
<infinisil>
Mic92: Not by default, but you can do "> pkgs = import <nixpkgs> {};" and import that scope with "> :l pkgs"
<Mic92>
infinisil: why does it find openssl then, if it is not imported?
<infinisil>
Mic92: The state is a combination of such assignments and scopes, it gets translated into a let .. in for all assignments and a `with scope;` for all scopes after the let in
<Mic92>
> a = 1
<{^_^}>
a defined
<Mic92>
a
<Mic92>
> a
<{^_^}>
1
<Mic92>
I see
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #41900 → libcxxabi: use cmake as native build input → https://git.io/vhoYc
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vhoww
<infinisil>
Mic92: There's #bottest if you wanna spam it
<Mic92>
I rather build my own for xmpp
<gchristensen>
Mic92: ooh whatre you doing?
<infinisil>
I do intend to add more backends for it
<Mic92>
infinisil: otherwise the result looked ugly
<infinisil>
Unevaluated?
<Mic92>
probably
<Mic92>
not like the repl though
<keegans>
how can i create a vhd of NixOS for Azure?
<Mic92>
keegans: I assume this is what the image format of Azure is called?
<infinisil>
Mic92: My bot also doesn't show the result directly actually, but instead it passes it through the _show function, which is what makes a derivation show up nicely (and could be used for more)
<infinisil>
> :v _show
<{^_^}>
_show = x: if lib.isDerivation x then "«derivation ${x.drvPath}»" else x
<{^_^}>
[nixpkgs] @matthewbauer pushed commit from @uri-canva to master « bazel: add darwin support »: https://git.io/vhoXc
<rotaerk>
I'm not that familiar with this stuff though
steell has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @matthewbauer closed pull request #40990 → bazel: add darwin support → https://git.io/vhU5l
<andreabedini>
I am trying to investigate why the package purescript is not building anymore on hydra, the best I could find is "This job is not a member of the latest evaluation of its jobset. This means it was removed or had an evaluation error."
infinisil has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
<andreabedini>
but I haven't been able to track down the reason why
infinisil has joined #nixos
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
lassulus_ has joined #nixos
lassulus has quit [Ping timeout: 256 seconds]
lassulus_ is now known as lassulus
Lev50 has quit [Ping timeout: 240 seconds]
Lev50 has joined #nixos
matthewbauer has quit [Ping timeout: 240 seconds]
MP2E has joined #nixos
<{^_^}>
[nixpkgs] @aespinosa opened pull request #41909 → nixos/nexus: allow overriding the package → https://git.io/vho1n
dbmikus__ has quit [Quit: WeeChat 2.1]
olto has quit [Read error: Connection reset by peer]
<Myrl-saki>
Oh crap. I have to nix-channel update, right?
deepfire` has joined #nixos
<Myrl-saki>
I always use a local/git checkout so I don't know how outdated this is. <.<
<manveru>
can't really answer that for you :P
<etu>
awh, damnit. The hash for cython is different with the new unstable channel than my local changes in the old unstable channel. My raspberry will have a happyfuntime compiling it :D
<etu>
At least it will work which is better than before:)
tzemanovic has joined #nixos
JasonGrossman has joined #nixos
tzemanovic has quit [Ping timeout: 245 seconds]
<srhb>
Hmm. I upgraded taffybar to 2.x from 18.03 to unstable, but now I have almost(?) no systray icons. Like, vlc has one for instance, but nm-applet is gone even though it's running. I have a feeling this has something to do with a newer standard (SNI?) but how do I get the old ones back?
thc202 has joined #nixos
troydm has joined #nixos
<symphorien>
<Myrl-saki> string 'channel:nixpkgs-unstable' doesn't represent an absolute path, << you should builtins.fetchTarball it iirc
<tilpner>
symphorien - Do you mean it's not pinned and will change over time?
tzemanovic has joined #nixos
<symphorien>
Yes it's a moving target url
troydm has quit [Ping timeout: 240 seconds]
<tilpner>
That's better term than not absolute IMO, but I just realized you didn't even say that, so...
<tilpner>
*+a
<Myrl-saki>
symphorien: Thanks.
<symphorien>
tilpner: you should read the error message as: this is an url not a path on the local fs
winem_ has joined #nixos
tzemanovic has quit [Remote host closed the connection]
troydm has joined #nixos
thetet has joined #nixos
freeman42x]NixOS has quit [Ping timeout: 264 seconds]
tzemanovic has joined #nixos
troydm has quit [Ping timeout: 245 seconds]
chaker has joined #nixos
<chaker>
Hey guys, I'm trying to run kodi on PI3 that runs NixOS. But it's trying to build it from source. From what I understood hydra.nixos.org already build some aarch64 binaries. And I'm wondering why Kodi isn't one of them.
<srhb>
Let us know if you're able to build it succesfully.
<chaker>
Well, we will have to wait for couple of hours to find that. It has been running for 20+ minutes now. And it's just 1%.
<ocharles_>
Anyone here got a good handle on the intensional model? I am failing to see how substitutes can be untrusted. I have a derivation a.drv, which has an output path (or eqClass as the thesis would call it). I query a substitute for something in that eqClass, and I get something back. How do I trust that what I've got back truly is in the equivalance class?
<srhb>
Oh, I was looking at the wrapper. but kodiPlain also has platforms.linux
xy2_ has quit [Ping timeout: 264 seconds]
<chaker>
srhb: platforms.linux, means that it should work on all architectures? And if so, why it's not being built in hydra.nixos.org?
<srhb>
chaker: Yes, I believe so, and I'm wondering that myself. I would expect it to at least show up as an aarch64 build that possibly fails, but it doesn't. I don't remember exactly what happens if a dependency does not evaluate on a certain platform though...
freeman42x]NixOS has joined #nixos
freeman42x]NixOS has quit [Remote host closed the connection]
freeman42x]NixOS has joined #nixos
tzemanovic has joined #nixos
TonyTheLion has joined #nixos
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Alsjman has joined #nixos
knupfer has joined #nixos
<chaker>
Hmm, I had to compile ffmpeg yesterday. Maybe that or another dependency, doesn't have the platforms.linux attribute. Even though I would expect that to be ignored for the deps (i.e the derivation that contain that attribute, have more precedence than the deps).
<Taneb>
I've got an error I don't understand from a nix-build of something at work
<srhb>
Maybe someone else can explain what's required for the attribute to actually show up on Hydra. I don't see what's missing.
<Taneb>
It's saying "make: (path to executable in nix store): Command not found"
<srhb>
chaker: kodiPlugins do show up for aarch64, and it has platforms.all, so maybe I'm wrong about platforms.linux?
<Taneb>
The executable is listed as a build depend and I can ls the directory in the buildPhase and it's there and executable
<srhb>
Taneb: Can you run it from without the build? Maybe it has dynamic dependencies that are not present? What does ldd <executable> say?
<srhb>
Oh, is this the actual make executable? Not sure if I understood correctly.
tzemanovic has quit [Ping timeout: 264 seconds]
<Taneb>
make is saying that this other executable (a compiler) can't be found
knupfer has quit [Ping timeout: 264 seconds]
<srhb>
Taneb: ldd that path please.
<Taneb>
ldd says "not a dynamic executable" if I've understood this correctly
<srhb>
can you execute it?
johanot has joined #nixos
<Taneb>
Ah, "error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory"
<srhb>
There we go.
knupfer has joined #nixos
<LnL>
chaker: job ‘kodi.aarch64-linux’: Package ‘oraclejre-8u171’ has an unfree license (‘unfree’), refusing to evaluate
<Taneb>
Ugh, the nix expression for that is just... downloading it from somewhere
<srhb>
adisbladis[m]: reduce? fold?
<Taneb>
I'm pretty sure this used to work
<LnL>
adisbladis[m]: foldl'?
tzemanovic has joined #nixos
mbrock has joined #nixos
<adisbladis[m]>
I guess that works :)
<srhb>
Taneb: Is the c++ library in the derivation? If so it could have conceivably been patchelfed before but a version change made the names not match up?
<adisbladis[m]>
I just wasn't looking for the name fold -.-
xy2_ has joined #nixos
<srhb>
adisbladis[m]: I guess it's more common than the reduce name in the FP world? Or maybe it's just Haskell influence.
<chaker>
LnL, srhb: bummer :(. The compilation also failed on my PI.
<mbrock>
I don't understand why nix-build is erroneously trying to find a default.nix in the output store path when I build a trivial derivation. Here's an example command:
<adisbladis[m]>
srhb: I think so. My FP experience is mostly lisps and functional js
<Taneb>
srhb: as far as I can tell it isn't. The derivation is just downloading a tar file
<mbrock>
this fails (after building the derivation) with "error: opening file /nix/store/...-foo/default.nix"
<chaker>
LnL: is it possible to build to enable the build in Hydra?
<srhb>
mbrock: /tmp/tmp1 looks like a nix store path
<mbrock>
srhb: hmm? it fails the same way with ./tmp1
<srhb>
That is also a store path
<clever>
mbrock: you are creating a $out/foo but callPackage wants a $out/default.nix
orivej has quit [Ping timeout: 264 seconds]
<LnL>
chaker: it works for x86_64-linux, so yes unless it's not possible to avoid oraclejdk on aarch for some reason
<mbrock>
ohh, I meant to pass a function to callPackage, not a derivation...
<mbrock>
so callPackage does something when given a function, and something very different when given a derivation?
<clever>
mbrock: yeah
<clever>
mbrock: when you give it a deriation, it does the same thing as when you give it a path
<clever>
it tries to import the path
<Taneb>
srhb: my mistake, that library is in the output
tzemanovic has quit [Ping timeout: 268 seconds]
<mbrock>
okay and then it expects the function to be the result of importing the path I guess?
xAFFE has joined #nixos
<mbrock>
thanks, everything is fine :)
aarvar has quit [Ping timeout: 276 seconds]
tzemanovic has joined #nixos
<chaker>
LnL: "jre8 = if stdenv.isArm then oraclejre8 else..."
sigmundv has joined #nixos
<chaker>
I will try to build it using openjdk. Even though that's not the reason the compilation failed for.
<LnL>
yeah, I was expecting something like that
<LnL>
maybe openjdk doesn't work on aarch
* etu
has a libreelec (distro for kodi) running on a RPI3 at home, but I can't seem to access it from here right now to check what java it ships with :/
<etu>
They made it working in some way
<adisbladis[m]>
It may be a bootstrapping issue
<adisbladis[m]>
Yeah it seems like it
<adisbladis[m]>
`pkgs/development/compilers/openjdk/bootstrap.nix` doesn't have any aarch64 entry
johanot has quit [Ping timeout: 265 seconds]
<chaker>
adisbladis[m]: From what I understood, openjdk doesn't support 64b architecture on arm.
knupfer has quit [Ping timeout: 265 seconds]
tzemanovic has quit [Ping timeout: 256 seconds]
<chaker>
etu: Hmm, any idea what's the version nixpkgs?
aramiscd has quit [Ping timeout: 276 seconds]
<etu>
chaker: Huh?
<etu>
chaker: I don't understand your question
Ridout has joined #nixos
<chaker>
Aaa, sorry. I thought you have NixOS on the PI
seafood has quit [Ping timeout: 260 seconds]
u0_a461_ has joined #nixos
u0_a461_ has left #nixos [#nixos]
tzemanovic has joined #nixos
<adisbladis[m]>
There are aarch64 docker images for openjdk
<etu>
chaker: yeah, I have but not for kodi. I've tried it once and ran into the same issues you're on about at the moment. So I'm very interested in your result :D
<adisbladis[m]>
So I'd assume it has upstream support
aramiscd has joined #nixos
<adisbladis[m]>
I'm not sure how those bootstrap tarballs are made
knupfer has joined #nixos
<sphalerite>
telent[m]: I have to say, I just love your blog post titles
<sphalerite>
the content too actually, but yeah
* chaker
found something to do on his vacation :D
tzemanovic has quit [Ping timeout: 256 seconds]
<sphalerite>
chaker: meanwhile I have kodi on a nixos machine but not on a pi ;)
Alsjman has left #nixos [#nixos]
<chaker>
sphalerite: aarch64?? I have kodi on my x86_64 machine also :p and it works perfectly.
<chaker>
The problem is that building anything on the PI takes forever :(
<adisbladis[m]>
You could set up a builder in a qemu vm
thblt has left #nixos ["ERC (IRC client for Emacs 26.1)"]
<sphalerit>
chaker: oh right. Well I do run various stuff on my armv7 Chromebook, and do often wait for builds
<sphalerit>
But it's workable
<sphalerit>
I think it's a bit more powerful than a pi though, quad core
<sphalerit>
Oh and I offload a lot of builds to Scaleway C1 servers. Very convenient
<chaker>
adisbladis[m]: And that will use the same platform type when evaluating, because I tried the cross-compilation stud and I ended up with two different derivations.
<adisbladis[m]>
chaker: Yeah it will.
<adisbladis[m]>
Cross compiling with nix is a bit tricky, it has to skip certain things
<adisbladis[m]>
Like `checkPhase`
<adisbladis[m]>
Which is very likely to happen somewhere in your graph
<{^_^}>
[nixpkgs] @bjornfor pushed commit from @Ekleog to release-18.03 « nixos/gogs: allow git operations over ssh »: https://git.io/vhKkb
<sphalerite>
hyper_ch2: But I'm sure there's a goal you have that led you to ask it (and that goal is not knowing if anybody uses unbound on nixos). Maybe you want to use it yourself and are having difficulties. Or you want to run a DNS server, so you're considering using it and want to know how well it works with nixos before diving into it yourself. Asking questions more closely related to those goals might get you
<sphalerite>
further.
<sphalerite>
hyper_ch2: Anyway, to answer your question: I can answer fairly confidently, "yes".
MercurialAlchemi has quit [Ping timeout: 264 seconds]
Intensity has quit [Ping timeout: 260 seconds]
Guest21370 has joined #nixos
tlotze_ has joined #nixos
Intensity has joined #nixos
alex`` has joined #nixos
astrofog has quit [Read error: Connection reset by peer]
<tlotze_>
Wow, I'm just updating my nix packages (unstable) and switch from libreoffice 5 to 6 while doing so. Differently from before, the package needs to be compiled now; this takes ages and requires several GB of disk. Seriously? Or am I doing something wrong?
<tlotze_>
I guess I'll move away from unstable then, this isn't the only problem I have with some packages
<infinisil>
You can also use specific packages from another channel
<infinisil>
Nix can handle that easily by design
<tlotze_>
I know, but mixing channels means keeping more stuff in mind, and it probably also means more disk space
<tlotze_>
that is, using up more space, not having more ;o)
<infinisil>
True, I'm not really bothered about those though. I have my whole config in a single declarative directory, so I always know what's coming from where
<tlotze_>
this is something I intend to do anyway, but right now I'm still at the stage where I install nix packages on top of another distribution one by one
<JasonGrossman>
tlotze_: That makes sense. Look forward to NixOS one day though!
<tlotze_>
for sure
<__monty__>
tlotze_: Just with nix-env -i or a config.nix? Definitely recommend the latter.
<tlotze_>
I'm just afraid of taking down my main working machine for something that's new to me... probably I'm going to solve it by buying a bigger disk that I need anyway, and keeping the old one around ;o
<tlotze_>
so far, just the former
<tlotze_>
step by step...
mmlb has joined #nixos
<tlotze_>
but yes, I long for be able to keep the state under version control
<tlotze_>
being
<__monty__>
tlotze_: You can do that rn with a config.nix : ) It's not the same as nixos' configuration.nix.
<eeva>
How do you guys deal with locale in a docker-built container from dockerTools.buildImage?
<tlotze_>
I know, it's just that I haven't gotten around to taking the time
<johanot>
Anyone experienced "nix copy" becoming reeeeal slow when reaching a certain amount of tranferred data? My local command is stuck at: [3/2/16 copied (1113.2/1114.8 MiB)] for ages and the local thread is sleeping almost all the time. Remote nix-daemon thread is reading from the nw stream so slowly that I can actually read everything clearly in the strace output.
<gchristensen>
johanot: is your target machine swappin?
<eeva>
I have a custom hakyll site builder that I want to send to my CI, but while testing it I keep on getting "hGetContents: invalid argument (invalid byte sequence)" at Compiling stage. More annoying I've set my LANG env var to en_US.UTF-8 in the config of my docker image
<johanot>
gchristensen: Not anymore. I've experienced this sort of problem before where lack of mem was clearly the cause, but on this host plenty of free mem - swap unused.
<johanot>
to be sure I just turned off swap completely on the remote, interrupted the copy and restarted it. First ~1gig of data is copied in less than 10 seconds (i have plenty of bandwidth), but it's hanging at the last few megs.
<Dezgeg>
slow disk then?
__monty__ has quit [Quit: leaving]
<infinisil>
eeva: If you're using stack: by default it uses a pure nix-shell in which all env vars get cleared, then Data.Text.IO.readFile throws that error. Setting pure: false in the stack.yaml nix section made it work for me
<johanot>
Dezgeg: it's vmware so you never know :) .. but %iowait shows 0.0
<eeva>
thx infinisil, however I built this with Cabal2Nix
tzemanovic has quit [Remote host closed the connection]
<eeva>
then used the generated path in as a contents for dockerTools.buildImage
pie_ has joined #nixos
<eeva>
The generated package is working fine, but running it (with docker run …) has this error, meaning I'm missing some locale thingy in my image
<eeva>
Can't figure out what exacttly though
johanot has quit [Ping timeout: 245 seconds]
johanot has joined #nixos
alexteves has quit [Read error: Connection reset by peer]
<eeva>
How is locale dealt with in Nix/NixOS, any resources?
alexteves has joined #nixos
<manveru>
eeva: you need glibc-locales for that
<eeva>
I have included the glibcLocales pkg in my contents as well
jasongro` has joined #nixos
<samueldr>
eeva: on nix or on nixos?
<samueldr>
using nix only (on linux) you may need to set LOCALE_ARCHIVE
samrose has joined #nixos
pie_ has quit [Read error: Connection reset by peer]
<samueldr>
for a nix-shell, I have this in a shellHook (this may not be the best way to handle that) export LOCALE_ARCHIVE=${locales}/lib/locale/locale-archive
<samrose>
if I build a nixos iso as described in the nixos wiki, why would my resulting nixos iso end up with an empty /etc/nixos/configuration.nix file?
<samueldr>
and locales is `locales = if stdenv.isLinux then glibcLocales else "";`
JasonGrossman has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @woffs opened pull request #41930 → zfs: fix substitution of /bin/rm → https://git.io/vhKrN
<{^_^}>
[nixpkgs] @dezgeg pushed commit from @dtzWill to release-18.03 « qt-5.10: don't use features that require new-ish kernels, stay compat »: https://git.io/vhKoT
asymmetric has quit [Ping timeout: 245 seconds]
trevorriles has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
johnw_ has quit [Remote host closed the connection]
roni has joined #nixos
<roni>
hi all - having trouble building a node project, because something goes wrong with building node-sass, et al., which depend in some way on node-gyp for building native extensions
johnw has joined #nixos
<roni>
any large scale tips? in particular, any tips on what packages i should include in my nix-shell so that this "just works" as it does on other platforms?
<roni>
there must be a simpler way to do this though? i'm interested in not nixifying my project, but rather arranging a nix-shell in which i can do the usual steps of `npm install` followed by something like `npm run build` or `npm start`, etc.
<roni>
is that possible (even if it's not the nix way)?
<clever>
roni: check the shell.nix in that repo then, i'm able to `npm install` with that shell
<joepie91>
roni: what OS are you on?
<roni>
clever: thanks, will do!
<woffs>
How to save the downloaded requisites for a nix-shell from being garbage-collected?
<roni>
joepie91: nixos 18.03
<joepie91>
hm, then it should work out of the box
<joepie91>
I assume you've installed node through Nix?
asuryawanshi has joined #nixos
<joepie91>
roni: actually, can you pastebin the exact error output?
<roni>
joepie91: yep i believe so: /nix/store/jm1lwx4hpvc4825aj6h0nc3qinszn2d8-nodejs-9.11.1/bin/node
<charlesh`>
So I would like to make a derivation for an unfree game (puyovs) so i could install it freely between differents machines. My first solution was to make the derivation unpack the game archive in /nix/store. But in facts the game modify some files in the same directory of the binary. Logically i have no write right over /nix/store and I should not have. What should I do in order to install the game in a place I'll have write
<roni>
joepie91: gotcha, and thanks for the tip!
<joepie91>
charlesh`: would recommend first seeing if you can make the game write stuff elsewhere; somewhat surprisingly, I've found that most games let you either configure all the mutable paths via a commandline flag, or let you specify a config file that can set the mutable paths
<joepie91>
charlesh`: if not; you need a fhs chroot thing I think
<joepie91>
not sure how that works
<charlesh`>
let's check that
<joepie91>
also, games usually *don't* respond to --help
<joepie91>
and the flags are often poorly documented
<joepie91>
so you may need to search for a bit :P
__Sander__ has quit [Quit: Konversation terminated!]
<charlesh`>
ofc the game is closed source, let see if I can get in touch with the dev.
<avn>
charlesh`: best way -- use `exec ld-linux.so` trick for games
<roni>
but i don't know if that's still the current practice
<roni>
i tried it once and it worked for a game i bought from GoG
<joepie91>
roni: how does one get hold of steam-run actually
<charlesh`>
the game works, it's just that the game crash because it does not have some write rights :roni
<roni>
joepie91: nixpkgs.steam-run!
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #41932 → haskell generic-builder: Use separate setup db in more cases → https://git.io/vhKXG
<roni>
charlesh`: right, i think maybe steam-run can provide it with a chroot environment where it can write some files maybe
igo95862 has joined #nixos
<charlesh`>
let's try it out
<joepie91>
roni: I could swear that that didn't work last I tried!
<joepie91>
:|
<charlesh`>
syntaxe is `steam-run binarypath` ?
mounty has quit [Ping timeout: 256 seconds]
mounty has joined #nixos
logzet has quit [Ping timeout: 240 seconds]
<roni>
charlesh`: i think so
* roni
shrugs at joepie91
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #41932 → haskell generic-builder: Use separate setup db in more cases → https://git.io/vhKXG
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vhKXh
<roni>
joepie91: been a while since i last tried it... and the games i'm mainly interested in are run through dosbox anyway :-D
<{^_^}>
[nixos-channel-scripts] @edolstra merged pull request #17 → Adds filename to sha256 file for use with `sha256 -c` → https://git.io/vhEnp
<{^_^}>
[nixos-channel-scripts] @edolstra pushed 2 commits to master: https://git.io/vhK1e
<roni>
joepie91: so... it turns out i did have (an outdated) shell.nix file for this project lying around >:-O
<roni>
and now my build is working again :-D
<joepie91>
heh, nice
tzemanovic has joined #nixos
Ariakenom has quit [Ping timeout: 268 seconds]
iyzsong-x has quit [Ping timeout: 260 seconds]
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
johanot has joined #nixos
selaux has quit [Remote host closed the connection]
<nh2[m]>
I'm having this Haskell packaging problem: I have a package that uses `jailbreak`, which calls `jailbreak-cabal`. For some reason, that pulls in another whole build of ghc. How can I override which version of `jailbreak-cabal` is used in an `override`?
tzemanovic has quit [Ping timeout: 256 seconds]
mbrock has quit [Ping timeout: 248 seconds]
<nh2[m]>
in general I'm not quite sure where the derivation of `jailbreak-cabal` is exactly coming from and via what ways it makes it into the generic haskell builder
<roni>
ok so i have a really dumb question: suppose i want to capture a pattern like the ones in this article (https://matrix.ai/2018/03/24/developing-with-nix/) for use in an ad-hoc kind of way (that is, without repeating the pattern in every project's shell.nix file)
<roni>
how do i abstract such a pattern into a nix function so that i can just "call" it from my system?
<roni>
(1) where do i keep the function (ideally so it can also live in VCS) and (2) how do i then go about invoking it when i need a nix-shell reflective of it?
<LnL>
you can use a function with inputs like how packages are defined in nixpkgs and callPackage it yourself with the correct nixpkgs version
<roni>
can i call such functions directly using nix-env or nix-shell somehow?
<LnL>
given the correct arguments
alexteves has joined #nixos
<LnL>
but it's not straightforward compared to just nix-build
<roni>
can you maybe give me an example? also, still not sure where i would keep these functions
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #41939 → haskell generic-builder: Always use separate pkg db for custom setup → https://git.io/vhKxk
Yaniel has joined #nixos
<{^_^}>
[nixpkgs] @pmiddend opened pull request #41940 → pdf-tools: 0.80 -> HEAD → https://git.io/vhKxt
<stites>
hi all! just installed nix-pkg on debian and am getting this noisy output where some internal shell script is trying to set the locale
reinzelmann has joined #nixos
<stites>
it happens every time i enter a new line in bash
wchresta has quit [Ping timeout: 240 seconds]
<stites>
I've slowly been uninstalling packages (there aren't that many), but it seems persistent. Would anyone be able to point me in a helpful debugging direction?
<stites>
which, in nixpkgs, is "fasd-unstable" -- it probably should have been my first choice
<tilpner>
No, I don't see why fasd would be suspicous
<__monty__>
johnw: Any idea what else branch this is talking about? http://ix.io/1cQw
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #nixos
{^_^} has quit [Changing host]
{^_^} has joined #nixos
matthewbauer has quit [Read error: No route to host]
klntsky has quit [Remote host closed the connection]
harrymoreno is now known as morenoh149
<stites>
@tilpner reading the fasd source -- one weird thing is that fasd might depend on bash language features, but for some reason nix is running `sh`? is that a possible issue?
<stites>
er -- I guess it's running `bash-4.4-p19/bin/sh`
<tilpner>
stites - I don't see why it would be (and I also don't see it running sh)
<stites>
weird. it's definitely introducing this warning, though
<stites>
oooh! If I run vim from this terminal, I get the warning again
<stites>
installing something else, when fasd is removed, I don't see any warnings
orivej has quit [Ping timeout: 260 seconds]
<stites>
anyhow, I think I can live with this and track the issue you sent me. Thanks @tilpner!
shabius has quit [Quit: Leaving]
<{^_^}>
[nixpkgs] @7c6f434c pushed to release-18.03 « Merge pull request #41919 from YorikSar/update-chromium »: https://git.io/vh6eC
<roni>
LnL: awesome, thank you! and if you wanted to change the parameters to foo, you could pass them through that set that is blank in the example, right?
<fuzzy_id>
i just upgraded from 17.09 to 18.03, rebuild went fine, i reboot into the new system
<fuzzy_id>
now i get "error: executing SQLite statement 'alter table ValidPaths add column ultimate integer': SQL logic error (in '/nix/var/nix/db/db.sqlite')"
<fuzzy_id>
when i try to do `nixos-rebuild switch`
<fuzzy_id>
followed by "error: cannot open connection to remote store 'daemon': executing [same error as above]"
<LnL>
roni: yeah, the second argument of callPackage are extra overrides
<infinisil>
What types of attrsets does nixpkgs have?
<infinisil>
> hello.type
<{^_^}>
"derivation"
<infinisil>
When I access the attribute "type" of an attribute set, can I get something else interesting?
<hodapp>
this isn't the first complain we've had about libreoffice rebuilding on unstable
<{^_^}>
[nixpkgs] @xeji pushed commit from @dywedir to master « skim: 0.4.0 -> 0.5.0 (#41936) »: https://git.io/vh6T8
roni has quit [Ping timeout: 245 seconds]
roni has joined #nixos
halfbit has quit [Ping timeout: 240 seconds]
halfbit has joined #nixos
roni has quit [Ping timeout: 240 seconds]
hoshineko has quit [Ping timeout: 264 seconds]
mtjmullen has quit [Quit: WeeChat 2.0]
pkill9 has quit [Ping timeout: 265 seconds]
inquisitiv3 has joined #nixos
hoshineko has joined #nixos
jperras has quit [Ping timeout: 240 seconds]
<andi->
I seem to be stupid today (or always...). Running `nix eval '{a}: a' --argstr a 1 --json` is expected to return `1` (as json)? It always complains about not knowing what to do with the argument..
civodul has joined #nixos
mtjmullen has joined #nixos
<srhb>
andi-: 1) Arbitrary expressions should be enclosed in parantheses, 2) I don't think you can mix arbitrary expressions and --arg/--argstr
<inquisitiv3>
Perl give me some warning messages every time I run `nixos-rebuild switch --upgrade`. Got any suggestions what triggers it?
johanot has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @erosennin opened pull request #41944 → ktorrent: fix build with CMake 3.11 → https://git.io/vh6IH
johanot has joined #nixos
<andi->
srhb: 1) I did, just didn't type here :/ 2) the backlog here suggests differently.. just not with nix eval :/ Guess I'll have to change my expression with sed instead of passing parameters...
<inquisitiv3>
tilpner: Thanks! That answer my issue :)
<inquisitiv3>
Second issue
<infinisil>
andi-: Why not write a nix file?
<inquisitiv3>
When I try to start the Nix REPL with `nix-repl` I get the error message "error: Nix database directory ‘/nix/var/nix/db’ is not writable: Permission denied".
<inquisitiv3>
I've successfully started the repl one time before.
<andi->
infinisil: I was trying to use one contained file.. I can probably use mktemp etc...
<infinisil>
,nix-repl inquisitiv3
<{^_^}>
inquisitiv3: To use nix-repl with Nix 2.0, either use the new `nix repl` or `NIX_REMOTE=daemon nix-repl`. Just using `nix-repl` gives an error because it is linked to Nix 1.x which requires NIX-REMOTE to be set correctly, while Nix 2.0 doesn't (and unfortunately it wasn't kept for backwards compatibility)
<inquisitiv3>
infinisil: Thanks! That solves that.
hoshineko has quit [Ping timeout: 260 seconds]
<inquisitiv3>
infinisil: Which Github repo contains the NixOS manual? It says that you should run the command `nix-repl '<nixpkgs/nixos>'`
<infinisil>
nixpkgs/nixos/doc contains it
klntsky has quit [Read error: Connection reset by peer]
oida has quit [Read error: Connection reset by peer]
phreedom has quit [Write error: Connection reset by peer]
keegans has quit [Write error: Connection reset by peer]
<nh2[m]>
dtz: did you just rebase `feature/ghc-cross-musl` ?
morenoh149 has left #nixos ["WeeChat 1.9"]
kiloreux has joined #nixos
<inquisitiv3>
infinisil: I'm reading trough the issue. Wondering there it leads :)
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
<inquisitiv3>
infinisil: When you run the repl, should you supply any arguments to `nix repl`?
keegans has joined #nixos
<dtz>
nh2: Right now? Sure shouldn't have touched it
<inquisitiv3>
Or is just plain `nix repl` enough and recommended?
<dtz>
But previously, yes, quite a bit. But that was at least a month ago
<infinisil>
inquisitiv3: You can, e.g. `nix repl '<nixpkgs>'` to import the pkgs set already
<nh2[m]>
dtz: I was using NIX_PATH=nixpkgs=https://github.com/dtzWill/nixpkgs/archive/feature/ghc-cross-musl.tar.gz and it literally changed *right now* what that downloads
kiloreux has quit [Ping timeout: 240 seconds]
<inquisitiv3>
infinisil: Don't you need to add `--arg` before `'<nixpkgs>'`?
<nh2[m]>
dtz: not that pushing the branch is problematic, but I just got really confused because I'm trying to build something and it suddenly decided it should rebuild the world
jperras has joined #nixos
kiloreux has joined #nixos
jperras has quit [Ping timeout: 240 seconds]
jperras has joined #nixos
<dtz>
For sure! Really really don't think I did but I'll check when I get back (~5-10) for stray commands in history. Either way sorry about that and indeed that would be surprising, confounding, and/or annoying haha so apologies!
<dtz>
Now that you mention it I did notice ofborg was reevaluating ....
<nh2[m]>
dtz: its totally OK if you push the branch, really my mistake to not turn it into a SHA first, but it would be great if you could check whether you pushed when you're back, so that we can be sure the branch is at the state you intend. Mainly because with the state that's in it now, GHC 8.2.2 no longer builds, I get `checking for setupterm in -lcurses... no`
orivej has joined #nixos
<inquisitiv3>
infinisil: My suggestions doesn't work... But if I understand the output from `nix repl --help` one shouldn't be able to add something without any options?
Slabity has quit [Remote host closed the connection]
<Sonarpulse>
I commented too
<dtz>
D: lol
robstr has quit [Quit: WeeChat 1.9.1]
<Sonarpulse>
dtz: nh2[m]: do you all like that PR?
<Sonarpulse>
when I rebase i subtly made it not a master rebuild
<nh2[m]>
dtz: OK great so I'm not insane :D So the only remaining thing to figure out is whether that rebase is supposed to work (doesn't seem so at least for 8.2.2, but perhaps it does for 8.4.1?) -- I'll leave you guys to figure that one out
<nh2[m]>
dtz: great job with the musl stuff btw
<Sonarpulse>
the --with-*-libs stuff can affect ghci
<Sonarpulse>
in weird ways
<Sonarpulse>
even if everything builds OK
<Sonarpulse>
so I kept it for true native
<nh2[m]>
dtz: so on the old commit, I'm having a trouble, maybe you know the solution. I'm trying to build some larger Haskell project with it, so I picked stack. I can *almost* build it, only at the last `stack` package does it fail
<dtz>
ty :D super glad you're finding it useful, esp the bits I did exploring ghc-musl xD was sharing with hopes someone might benefit some day xD
simukis has quit [Ping timeout: 264 seconds]
<dtz>
well IIRC on that commit (I think things have improved since?) our build infra had some problems grabbing the wrong stage's inputs
<dtz>
or... something.
<dtz>
I was never able to build all-the-things with that commit, for whatever that's worth
<nh2[m]>
dtz: it fails because `jailbreak` (to lift too tight version constraints) pulls in a version of `jailbreak-cabal` which for some weird rason wants to build against ghc 8.0.2, which pulls in some python package whose test fails
xy2_ has quit [Ping timeout: 276 seconds]
<dtz>
haha o_O
<nh2[m]>
dtz: of course I could try and disable that test, build the ghc and so on, but much easier would be if I could somehow overwrite the `jailbreak-cabal` used to build itself against a ghc version that I already have
<nh2[m]>
but I don't know how to do that
<__monty__>
nh2[m]: Do you mean `doJailbreak`?
<nh2[m]>
no matter where I stick my overridden `jailbreak-cabal`, it doesn't pick it up
<nh2[m]>
doJailbreak sets `jailbreak = true`, which makes it run `jailbreak-cabal` on the package
<nh2[m]>
of course `jailbreak-cabal` has to be built, and for some reason it tries to build it with some old compiler instead of my one
<inquisitiv3>
Is it just my VM, or does NixOS get stuck on `Starting Power-Off...\n Starting mdadm-shutdown.service...`?
<inquisitiv3>
When powering off the machine.
<steveeJ>
I'm trying to specify a custom vam plugin for neovim. apparently the plugin needs 'zip'; how do I provider that for the plugin's buildinputs?
jtojnar has quit [Read error: Connection reset by peer]
MarcWeber has quit [Remote host closed the connection]
toby1851 has quit [Ping timeout: 248 seconds]
Mr_Keyser_Soze has joined #nixos
jtojnar has joined #nixos
jtojnar_ has quit [Ping timeout: 240 seconds]
inquisitiv3 has quit [Ping timeout: 268 seconds]
i0-dfn has joined #nixos
stranger___ has quit [Quit: Connection closed for inactivity]
<nh2[m]>
how can I debug how the nix language is evaluated? No amount of -v flags to nix-instantiate seems to do it
Turion has joined #nixos
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nixos
testuser_ has quit [Ping timeout: 245 seconds]
johanot has quit [Read error: Connection reset by peer]
Turion has quit [Client Quit]
<dtz>
I sometimes make use of builtins.trace (or variants using it in lib/debug.nix IIRC)
sanscoeu_ has quit [Remote host closed the connection]
sanscoeur has joined #nixos
<Guanin>
Hi, I'm used to having these keys available: "äüöß" - on my arch system, I used a patched us layout in /usr/share/X11/xkb/symbols. What is the "nix way" to do this?
Ariakenom has joined #nixos
sir_guy_carleton has joined #nixos
<sir_guy_carleton>
join #nixos-chat
<__monty__>
Guanin: Does nixos support the compose key?
<infinisil>
nh2[m]: It is a bit of a pain.. What I usually do is make a giant `rec { }` set in a default.nix and put all the intermediate variables i need in there, then i can evaluate them on their own by doing `nix-instantiate --eval -A <attribute>`
<Guanin>
__monty__, I'd prefer to not use a compose key :/
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Maxdamantus has quit [Ping timeout: 260 seconds]
<charleshd>
hi here
<jtojnar>
why would I be getting "variable $src or $srcs should point to the source" for cabal2nix-generated shell.nix
<nh2[m]>
dtz: OK, but it fails with `Setup: can't find source for Main in .` on packages it runs on. So I guess there's a real reason for our own 8.2.2 not being used for it. Anyway, I overrode it with another 8.2.2 that's not a musl one, that seems to bring some progress now
<charleshd>
I'm trying to make a derivation for a closed-source game (puyovs). Problem is that the executable alters its directory which he is not allowed to, so the game crash in the middle of its execution.
<nh2[m]>
jtojnar: I don't know the answer, but is $src defined at all (e.g. when you try to print it in `prePatch`?
<tilpner>
Try again with that. If it works, you can do it prettier later
<nekroze>
trying to get wine working so I have set `hardware.pulseaudio.support32Bit = true;` however I cannot nixos-rebuild with that set, it fails because `while setting up the build environment: executing '/nix/store/3kw...-bash-4.4-p12/bin/bash': Exec format error` I can see with file that it is 32 bit ELF not 64 like my normal bash... what am I missing?
<nh2[m]>
jtojnar: ah sorry, what I wrote before is nonsense. If it didn't manage to unpack due to missing $src, it certainly can't run the prePatch I mentioned. Your idea of the preUnpack is good, but not sure why it's not working. Can you set the entire `unpackPhase = "echo hello"` to make something appear?
<nh2[m]>
tilpner: regarding executing stuff as writable by the process (I suppose that's what steam-run helps with?)
<tilpner>
nh2[m] - steam-run is supposed to circumvent the whole packaging/patching process. The game won't go into the store, so it can modify whatever it wants
<dtz>
I honestly couldn't promise you IN_NIX_SHELL isn't set for builds haha but I suppose it's probably not
<dtz>
curious
hiratara has joined #nixos
tnks has joined #nixos
hamishmack has joined #nixos
<WilliamHamilton>
how would I enter a nix shell which contains only the dependencies of a haskell project? I was under the impression that if I generated a shell.nix file with `cabal2nix --shell . > shell.nix` that would work, am I mistaken?
<yurrriq>
Is anyone in here at DockerCon in SF right now, by chance?
<jtojnar>
dtz: it seems to print other environment variables as well
noam has quit [Read error: Connection reset by peer]
tzemanovic has joined #nixos
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos
nekroze has joined #nixos
<nekroze>
It appears I can only run 32bit binaries, what nixos options will allow me to rebuild my system with the ability to run 32 or 64 bit binaries instead of just 64?
<nekroze>
sorry I meant it appears I can only run 64 bit binaries
<nekroze>
I want to be able to run 32bit as well so I can utilize wine 32 bit stuff
<infinisil>
WilliamHamilton: it's not directly usable for a nix-shell. What you need to do is something like `with import <nixpkgs> {}; haskellPackages.callPackage ./cabal2nix.nix {}` in default.nix, then `(import ./default.nix).env` in shell.nix
<WilliamHamilton>
infinisil: I see, thanks!
xcmw has joined #nixos
<infinisil>
:)
<dtz>
Can confirm jtojnar, although I doubt you're surprised haha. Curious!
<dtz>
Oh but builtins.getEnv is evaluator, the builder we'd want to dump "env" or something. Is it there too? That'd be partocualrly surprising.
<jtojnar>
hopefully not
<dtz>
Although this is enough to change evaluation , at least in theory, for some things
<jtojnar>
There is supposed to be pure evaluation mode in nix 2.0 but not sure how to enable it
<infinisil>
--pure-eval
<nekroze>
how can I execute a 32bit binary if I am getting "Exec format error" trying to run the,
<nh2[m]>
dtz: I succeeded! ldd /nix/store/2cbz8xb616h1cwvz0kr1cldsrrx30ygc-stack-1.6.5-x86_64-unknown-linux-musl/bin/stack - not a dynamic executable!
<nh2[m]>
dtz: if we can build stack then we can probably build a ton of stuff with musl!
<dtz>
Does it run? Lmao
<dtz>
Congratulations!
<nh2[m]>
dtz: yeah runs perfectly fine!
<elvishjerricco>
For the linux kernel, why does `generate-config.pl` try to use `m` for questions that it doesn't have an override for, rather than always using the default?
<nh2[m]>
dtz: I'm going to clean this up, hopefully tomorrow, and share it. Ideally I can also do it on your nixpkgs without my hack for jailbreak-cabal, moving that hack to my nix file instead
<nh2[m]>
dtz: one thing that doesn't work well yet is that I have to `dontHaddock` a couple things, because the execution of haddock somehow tries to pull in libgmp and it fails with "libgmp.so not found"
<nh2[m]>
so there's something that doesn't use musl, or static gmp, or some missing dependency on gmp to make it available
tertle||eltret has joined #nixos
<{^_^}>
[nixpkgs] @smaret opened pull request #41951 → ispell: fix compilation on Darwin → https://git.io/vh6Rc
worldofpeace has joined #nixos
<worldofpeace>
What's the `nix-env` command that shows what's currently imperatively installed?
logiq has joined #nixos
<infinisil>
nix-env -q
<nekroze>
how can I execute a 32bit binary if I am getting "Exec format error" trying to run it?
jperras has quit [Ping timeout: 260 seconds]
matthewbauer has quit [Ping timeout: 256 seconds]
sanscoeur has quit [Ping timeout: 248 seconds]
asymmetric has quit [Ping timeout: 240 seconds]
halfbit has joined #nixos
<symphorien>
nekroze: are you using the hardened kernel of nixpkgs ?
<worldofpeace>
I remember someone sharing a one liner that pipes `nix-env q` into fzf and then redirects that to uninstall it. Anyone know it :) Should have put it into an alias
<truthadjustr>
happened to me several times already. `cp -av /aaa/bbb/ /destination/` ended up corrupted copies, md5sum does not match. How do I make nixos do reliable copy? sync? flags? tips?
alexteves_ has quit [Remote host closed the connection]
TonyTheLion has quit [Quit: leaving]
Mr_Keyser_Soze has quit [Remote host closed the connection]
Mr_Keyser_Soze has joined #nixos
orivej has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]