<c74d>
I'm on nixos-unstable, which updated a few days ago, yet, despite <https://github.com/NixOS/nixpkgs/pull/31657>, I still have wxmaxima 15.04.0, and I can't think why. What am I forgetting?
jrolfs has quit [(Ping timeout: 248 seconds)]
tekul has quit [(Ping timeout: 260 seconds)]
tekul has joined #nixos
<Ralith>
nix-env?
<samueldr>
how was it installed? environment.systemPackages or nix-env?
<globin>
c74d: could you try re-running nix-channel --update as root?
fragamus has quit [(Client Quit)]
jrolfs has joined #nixos
<c74d>
oh, no, I didn't run `nix-channel --update` after all, I just thought I did
<c74d>
>_>
<globin>
c74d: glad it was this simple :)
<globin>
c74d: nixos-rebuild switch --upgrade runs the channel update, too btw :)
<c74d>
mhm; that's what I thought I had run, but I forgot the `--upgrade`
<pkill9>
damn, worked out why `nix-shell -p nix-info` wouldn't let me run nix-info, i've been making my terminals run the fish shell by putting `exec /usr/bin/fish` at the top of my .bashrc
nuncanada has quit [(Read error: Connection reset by peer)]
<NixOS_GitHub>
[nixpkgs] globin closed pull request #33109: usbguard service: `rules` option should be of type 'lines' (master...usbguard-multiline-rules) https://git.io/vbd2A
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/vbbBJ
<NixOS_GitHub>
nixpkgs/master 95fde40 Nadrieril: usbguard service: `rules` option should be of type 'lines'
NixOS_GitHub has left #nixos []
jrolfs has quit [(Ping timeout: 264 seconds)]
otherjrolfs has quit [(Ping timeout: 240 seconds)]
Arcaelyx has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/vbbB0
<NixOS_GitHub>
nixpkgs/master 5908726 Robin Gloster: jbake: cleanup
NixOS_GitHub has left #nixos []
mbrgm has quit [(Ping timeout: 256 seconds)]
mbrgm has joined #nixos
jrolfs has joined #nixos
otherjrolfs has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] shlevy opened pull request #33158: Revert "Revert "hslib: Function to extract the haskell build inputs of a package."" (master...hslib-haskell-build-inputs-again) https://git.io/vbbBM
NixOS_GitHub has left #nixos []
acarrico has quit [(Quit: Leaving.)]
otherjrolfs has quit [(Ping timeout: 256 seconds)]
jrolfs has quit [(Ping timeout: 248 seconds)]
acarrico has joined #nixos
otherjrolfs has joined #nixos
jrolfs has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/vbbRU
otherjrolfs has quit [(Ping timeout: 240 seconds)]
jrolfs has quit [(Ping timeout: 256 seconds)]
otherjrolfs has joined #nixos
Supersonic112 has quit [(Disconnected by services)]
<loke>
How does the official nix files get to the main repository? I tried installing the android-studio nix fix, and I got version 2.x, but when I look at the git repository, this file specifies 3.0.1 as I would expect.
Supersonic112_ has joined #nixos
fresheyeball has joined #nixos
<fresheyeball>
hey peoples
<fresheyeball>
how do I fstab in nixos?
Supersonic112_ is now known as Supersonic112
<samueldr>
loke: you installed nixos unstable or 17.09 ?
<samueldr>
this would allow you to use anything else form unstable as a systemPackage
<samueldr>
though, you'll have to take into consideration updating that channel separately
<fresheyeball>
samueldr: that's not good
<fresheyeball>
I don't see how I could set fstab the way I need!
jrolfs has quit [(Ping timeout: 256 seconds)]
otherjrolfs has quit [(Ping timeout: 256 seconds)]
<samueldr>
fresheyeball: give me a sec, I need to reboot
<samueldr>
but I think I did it
jrolfs has joined #nixos
otherjrolfs has joined #nixos
<fresheyeball>
samueldr: what secrets you know?
<samueldr>
hmm, not much, I think it may be that I'm more used to nix and nixos
Tuba has quit [(Ping timeout: 240 seconds)]
pie__ has quit [(Ping timeout: 260 seconds)]
<fresheyeball>
samueldr: did you figure out how to alter fstab?
<samueldr>
no, and I may have misled you, it *maybe* is not working
<samueldr>
though, if it can't this should be fixable, but don't know if it's something that would be backported to 17.09, give me a short while, while I sort this out
Tobba has joined #nixos
pie_ has joined #nixos
ghn has joined #nixos
<fresheyeball>
samueldr: thank you
* loke
decided to switch to unstable for everything, because why not? (is there a reason why I shouldn't?)
dieggsy has joined #nixos
<samueldr>
random "breakage" when they change options around, but that's always one rollback away IF it happens
<samueldr>
many contributors use unstable
`_ has joined #nixos
<samueldr>
unstable isn't THAT unstable since there's an extensive testsuite
<samueldr>
BUT, be sure to use __nixos__ unstable and not nixpkgs
<samueldr>
the nixos-unstable channel only updates if the test suite passes
<fresheyeball>
samueldr: what do you mean?
<samueldr>
nixpkgs-unstable channel doesn't check for nixos issues (nixos configuration)
<loke>
samueldr: Thanks. That's what I use, I think.
otherjrolfs has quit [(Ping timeout: 256 seconds)]
jrolfs has quit [(Ping timeout: 248 seconds)]
mekeor has joined #nixos
otherjrolfs has joined #nixos
jrolfs has joined #nixos
steshaw has quit [(Quit: Connection closed for inactivity)]
mekeor has quit [(Quit: brb)]
<fresheyeball>
samueldr: any progress? I am kind of suprised fstab is hard to alter.
otherjrolfs has quit [(Ping timeout: 240 seconds)]
jrolfs has quit [(Ping timeout: 248 seconds)]
<samueldr>
it's not fstab that's hard to alter, it's that systemd then (from config) tries to mount it, fails and uhm, goes in failsafe mode
<clever>
ah that, thats a pain
<clever>
there is a no automount flag you can set for systemd
<`_>
I mean for now it'd be easy enough to just put the command in a script that runs on boot
m0rphism has joined #nixos
<`_>
I just want to do this right
<samueldr>
clever: how do I set that?
<fresheyeball>
samueldr: clever: meet my friend `_, who will some day become a nix master
Arcaelyx has joined #nixos
mekeor has joined #nixos
<`_>
i'm good at things
<samueldr>
oh, I misread, I thought you said "there is a no automount" and not "there is no automount"
<`_>
He did
<clever>
samueldr: hmmm, to start with, try just adding noauto to the mount flags in the fileSystems entry
jrolfs has joined #nixos
otherjrolfs has joined #nixos
<samueldr>
hm, didn't think of using "fstab stuff" in fstab :)
<samueldr>
no dice
<samueldr>
I thought I could try systemd.mounts, but it's a list instead of an attribute set
otherjrolfs has quit [(Ping timeout: 240 seconds)]
<clever>
`_: build-vm doesnt work as well for testing mounting of devices it doesnt emulate
<ghn>
Could someone provide some assistance with writing a nixpkgs overlay for the latest docker-compose? I'm trying it out but I'm not making any progress :( I started off using some code that I found in a gist but it was outdated (latest docker-compose will need a python docker module version override too) and the code seemed funny. The I'm talking about is here https://gist.github.com/oscarduignan/6ce341dd02061b7cfd295a8ba7b8b826 and what I
<clever>
the tmux config can also be done the same way
<clever>
and bashrc
<_alice_>
Anyone else have a red bar at the top of their Discord that says "Well, it looks like your Discord installation is corrupt. Let's fix that... together."? I think Nix nuked discord somehow
<`_>
My bashrc suite consists of thousands of lines
<`_>
I think for now builtins.readFile will have to suffice until I can migrate more towards nix
<clever>
`_: you can also just copy all of them into a directory and refer to that directory in the nix expression
<`_>
Yeah
<loke>
I have a piece of software that I want to build from source. The source does not use the configure&&make dance, but has its own scripts. It also installs into /usr/local by default, but there are some flags I can use to change the install directory. Is there an example nix build file somewhere I can look at that does something similar?
<`_>
I think fresheyeball can attest to the robustness of my bash setup
jrolfs has quit [(Ping timeout: 248 seconds)]
otherjrolfs has quit [(Ping timeout: 248 seconds)]
<`_>
I'm the exact opposite of him
<clever>
loke: you want to set things like configurePhase, buildPhase, and installPhase to provide commands that do each
Tuba has quit [(Ping timeout: 272 seconds)]
<loke>
clever: I see. So bascially the same as a nomral configure&&make solution? Is it as simple as ./configure being the default configurePhase?
Tobba_ has quit [(Read error: Connection reset by peer)]
<loke>
clever: OK, cool. This makes things much more clear.
Tobba has joined #nixos
Dirt[m] has joined #nixos
<loke>
clever: In this case, there is no separate configure and build pahses, it's all the same script. Which one should I use, and is there a "correct" way to disable the other?
<loke>
Also, is there a vairable that holds the install directory prefix?
<clever>
if the configure script cant be found, the default configurePhase does nothing
<clever>
and nix expects you to install everything to $out
otherjrolfs has joined #nixos
jrolfs has joined #nixos
drakonis has quit [(Quit: Leaving)]
<loke>
clever: The build script requires me to set INSTALL_ROOT to the prefix (defaults to /usr/local). So I should simply use $out in this case?
<clever>
yeah
<loke>
All right. Let me try this.
<loke>
Thanks a lot for your help
<clever>
yep
jrolfs has quit [(Ping timeout: 252 seconds)]
otherjrolfs has quit [(Ping timeout: 260 seconds)]
ghn has quit [(Ping timeout: 260 seconds)]
Tobba has quit [(Remote host closed the connection)]
Tobba has joined #nixos
klntsky has quit [(Ping timeout: 272 seconds)]
otherjrolfs has joined #nixos
mizu_no_oto has joined #nixos
otherjrolfs has quit [(Ping timeout: 248 seconds)]
_alice_ has quit [(Remote host closed the connection)]
orivej has joined #nixos
jonafato has joined #nixos
jrolfs has joined #nixos
slack1256 has joined #nixos
<loke>
Sorry, but I have one more issue with by build config... I'm using fetchgit in my nix file, but the build script calls git to find things like the version name, but it seems as though fetchgit doesn't leave the ‘.git’ directory intact.
jrolfs has quit [(Ping timeout: 252 seconds)]
<loke>
Thus, the build script fails because it can't run ‘git’. What's the workaround?
<loke>
I guess I could manually run “git checkout” in the configurePhase?
tmaekawa has joined #nixos
`_ has quit [(Ping timeout: 248 seconds)]
<samueldr>
I have to verify, loke, but try adding `leaveDotGit = true;` in your fetchGit call
<samueldr>
yep, that should be it
<loke>
samueldr: Oh, that would be really neat. Let me try.
tmaekawa has quit [(Quit: tmaekawa)]
tmaekawa has joined #nixos
otherjrolfs has joined #nixos
<loke>
samueldr: Still gettting errors telling me it can't run git describe. Is there a way to find the actual directory where this thing is beiong built so that I can check if the .git directory is there or not? (or if there is another error going on)
<samueldr>
I may look like I know what I'm doing, but I'm still soooo bad at packaging stuff, loke, yes there's a way, but I don't know it off the top of my head
<loke>
samueldr: It sure looks like you know what you're doing. :-)
<JazzyEagle>
Ok, I'm tired of trying to figure this out... Can someone help me figure out the nix-env command to install Haskell's cabal package? I don't know what I'm doing wrong.
<AntonLatukha[m]>
I want in fashionable manner add unstable channel to instance.
<samueldr>
AntonLatukha[m]: unless I'm mistaken, channels can't be declaratively described using the same mechanism that `nix-channel` uses
<JazzyEagle>
I thought it'd be something like nix-env -iA haskellPackages.cabal, but every derivation I can think of is causing one error or another.
<samueldr>
others here may have other suggestions depending on your use case
<loke>
After adding that flag, I can use “git status” (I added it to the buildPhaseto test). However, the script itself is still giving me errors. Time to look at the build script itself methinks.
<samueldr>
the CWD may not be what it thinks it should be
<JazzyEagle>
Is haskellPackages part of the unstable channel?
tmaekawa has quit [(Quit: tmaekawa)]
<jtojnar>
weird, when I use nix-build it fails but nix-shell works
<jtojnar>
nix-shell -A flatpak --pure --run "unpackPhase && cd source && patchPhase && configurePhase && buildPhase"
<loke>
samueldr: where did you find the information on leaveDotGit? I managed to figure out that th eproblem I have is that the git checkout didn't preserve tags and stuff, which the build script uses to resolve the version ID.
<loke>
I was thinking there may be other configuration variables I can use to get the git to behave.
otherjrolfs has joined #nixos
jrolfs has joined #nixos
<samueldr>
(I remembered then `grepped` through nixpkgs)
<samueldr>
though, the `nixpkgs/pkgs/build-support/fetchgit` folder may be a place to look at loke
fresheyeball has quit [(Ping timeout: 272 seconds)]
otherjrolfs has quit [(Ping timeout: 248 seconds)]
schoppenhauer has quit [(Ping timeout: 248 seconds)]
schoppenhauer has joined #nixos
jrolfs has joined #nixos
ebzzry has quit [(Ping timeout: 264 seconds)]
chloe__ has joined #nixos
<chloe__>
nick `_
chloe__ is now known as `_
<`_>
silly
jrolfs has quit [(Ping timeout: 248 seconds)]
_alice_ has joined #nixos
<_alice_>
Anyone know how I can install npm packages globally? I realize it's not nix-y but it makes my life so much easier
jrolfs has joined #nixos
jrolfs has quit [(Ping timeout: 248 seconds)]
mekeor has quit [(Ping timeout: 265 seconds)]
<jtojnar>
_alice_: You can set `prefix=~/.local/share/npm` in ~/.config/npm/config
<jtojnar>
and then just use npm install -g
justan0theruser is now known as justanotheruser
<loke>
So I managed to create a nixfile to build SBCL from source. A bit of a mess, but it worked. I'm now trying to figure out how libraries work in nixos. My immediate problem is that SBCL is not linked with all the libraries it needs, instead it dlopen's them on the fly based on the modules I load.
<loke>
For example, the SSL module will try to dlopen("libssl.so"), the GSS module will dlopen("libgss.so"), etc...
<loke>
Howis this supposed to work in nixos? I can't see a /lib directory with all the libs.
Arcaelyx has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
pie_ has quit [(Remote host closed the connection)]
pie_ has joined #nixos
<loke>
Hmm... It seems my analysis was wrong. There is a lib directory (/run/current-system/sw/lib) but this directory doesn't contain libssl.so, even after I install the openssl package.
<loke>
Is there a magic incantation to make it appear there?
<loke>
(i'll search some more after lunch)
jrolfs has joined #nixos
deepfire has joined #nixos
<clever>
loke: nixos never installs the library component globally, all builds must happen inside nix-build or nix-shell
<yegortimoshenko>
is there an easy way to find all packages in nixpkgs that are dependent on some package, by attr?
<foo_>
i get this warning : ld: warning: ld-linux-x86-64.so.2, needed by /nix/store/g1g31ah55xdia1jdqabv1imf6mcw0nb1-glibc-2.25-49/lib/libc.so.6, not found (try using -rpath or -rpath-link)
<foo_>
vaibhavsagar: what happens to the extra packages that it downloads during nix-shell
<foo_>
do they get cleaned up when i run garbage collection
<vaibhavsagar>
yes
<foo_>
i still get the warning though
<vaibhavsagar>
oh, it's a warning
<vaibhavsagar>
does your tool compile though?
<foo_>
yes, but i don't know why i get this warning
<foo_>
why does it say it can't find the interpreter?
<foo_>
i am compiling a shared library
<vaibhavsagar>
foo_: it's probably because the compilation toolchain expects some things to be in a certain place as per the FHX
<vaibhavsagar>
*FHS
<vaibhavsagar>
and Nix wreaks havoc on that assumption
<vaibhavsagar>
I wouldn't worry about it unless you're getting compilation errors that prevent your build from succeeding
<foo_>
makes sense, thanks
Tobba has joined #nixos
asuryawanshi has joined #nixos
ebzzry has quit [(Quit: WeeChat 1.9.1)]
deepfire has quit [(Ping timeout: 248 seconds)]
nallar has joined #nixos
Ross has quit [(Ping timeout: 265 seconds)]
nallar is now known as Ross
<loke>
clever: I see. But in this case, the library components needs to be available. Can I force it somehow on a per-library basis?
tmaekawa has quit [(Quit: tmaekawa)]
`_ has quit [(Ping timeout: 252 seconds)]
<clever>
loke: why does it need to be available?
<loke>
clever: Because the main package is SBCL which is a Common Lisp development runtime. Third-party modules, for example the one that provides TLS, or the SQLite module, or the gzip, or... (well, you get the idea) are often not implemented in pure Lisp. Instead, they dynamically load an underlying .so file and call its functions.
<foo_>
i am not clear on what a shell.nix file should return?
<clever>
loke: ah, then you need to set LD_LIBRARY_PATH when running the lisp interpreter, to include the path to the libraries
<loke>
Some non-insignificant percentage of the libraries available on Quicklisp do this (Quicklisp is like gem for Ruby, or Npm for js)
<clever>
foo_: a derivation
asuryawanshi has quit [(Remote host closed the connection)]
<foo_>
clever: a derivation of what?
<clever>
loke: python has the same problem
<loke>
clever: I see. That's OK. But how can I find the proper library path to use?
asuryawanshi has joined #nixos
<clever>
foo_: nix-shell will give you an environment suitable to build whatever the derivation would have built
slack1256 has quit [(Remote host closed the connection)]
ixxie has joined #nixos
<loke>
clever: I did what you suggested, and created a wrapper that sets the appropriate LD_LIBRARY_PATH. That mostly works. However, some Common Lisp libraries go even further. They dynamically compile a binary (in order to determine things like structure offsets, etc) and they dynamically invoke GCC with #include <some_lib.h>.
<ixxie>
sphalerite, etu - looks like its impossible for me to come to stockholm this week :(
<loke>
clever: How can I make the header files available to GCC for a given library?
leat has quit [(Quit: WeeChat 1.9.1)]
<loke>
(at runtime, not nix buildtime)
<clever>
loke: yuck, lol
<clever>
nix does whatever it can to not keep the headers around at runtime
<clever>
can you tell lisp to not suck? :P
<loke>
clever: Lisp works differently. Ther esimply is no "build step". Compiling, loading, and running is all performed at the same time.
<loke>
It's a fully dynamic system.
<hyper_ch>
clever: the reason I'd love to use full block device to zfs and have /boot in it as a dataset is, becuase then you can just add another one for mirror and don't have to alter anything else (except adjust configuration.nix to also install grub onto sdb etc)
<loke>
Normally, you load a lisp image, and you work in it (doing both development and running) without shutting it down. So all this stuff needs to be availablea t runtime.
<hyper_ch>
but I'm confident clever will make that possible :)
<loke>
clever: Wouldn't this be a similar to the needs of someone doing C or C++ development? You'd need headers available then, too? How are you supposed to do C or C++ development on nixos? Whatever works for C should be working for Lisp as well.
<clever>
loke: you do all c/c++ development inside a nix-shell
<loke>
clever: And in the nix-shell you have /usr/include?
<clever>
nope
<clever>
it sets some special env variables that adjust the default search path of gcc
<loke>
thats fine
<clever>
so when you try to #include <foo.h> it can still find foo.h
<clever>
but it only works when foo.h is inside /nix/store/something/include/foo.h
<loke>
OK, so I basically run Emacs and SBCL and everything else inside this nix-shell?
<clever>
so all the glib stuff that tries to avoid conflicts and needs -I/usr/include/glib-1.0/ breaks
<loke>
clever: That seems workable. Lisp doesn't do that stuff
<clever>
though if you try to use glib from lisp, it will have to rely on pkgconfig
foo_ has quit [(Ping timeout: 260 seconds)]
<loke>
It just autogenerates a C file on the fly that compiles to a small binary that outputs a datafile with all the struct offsets, that then gets loaded together with the library.
<clever>
and there is no way to compile and run that binary ahead of time, and save the results?
nallar has joined #nixos
<loke>
clever: glib is never used... It's basically only used for functionality that no one has bothered reimplementing in native Lisp.
<loke>
clever: No. Lisp doesn't have a concept of a "binary"
<loke>
clever: Smalltalk uses a similar system, when you load an image, and you work inside it.
Ross has quit [(Ping timeout: 240 seconds)]
nallar is now known as Ross
<clever>
neither does nodejs, but ive seen people "compile" javascript by replacing some variable references with hard-coded strings and other fun stuff
<loke>
(well, you _can_ generate a binary, but that's generally only when deploying an application)
<loke>
clever: Oh wow
<loke>
I try to stay as far away from JS as I can :-)
asuryawanshi has quit [(Remote host closed the connection)]
olto has joined #nixos
<clever>
loke: you might be able to do something with the #!/usr/bin/env nix-shell stuff, so the bash wrapper becomes an entire nix-shell wrapper
Tuba has joined #nixos
<clever>
loke: but nix can gc things, and then has to re-download the headers&compiler every time you run it
<NixOS_GitHub>
nixpkgs/staging a139613 Vladimír Čunát: glibc: maintenance 2.26-75 -> 2.26-115
NixOS_GitHub has left #nixos []
Itkovian has joined #nixos
klntsky has quit [(Ping timeout: 272 seconds)]
Itkovian has quit [(Client Quit)]
Itkovian has joined #nixos
<akfp>
Anyone interested in adding support for running a windows VM under Linux in nixpkgs?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vbboK
<NixOS_GitHub>
nixpkgs/staging f29000b Vladimír Čunát: Merge branch 'master' into staging...
NixOS_GitHub has left #nixos []
vidbina has quit [(Ping timeout: 268 seconds)]
WilliButz has quit [(Ping timeout: 250 seconds)]
MP2E has quit [(Remote host closed the connection)]
<zarel>
Is there a way to isolate a host without using /etc/hosts? I can use extraHosts but I need to change the conf and rebuild two times a minute...
WilliButz has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<zarel>
Yes I know it's like introducing state, but it's only for development, I promise :)
`_ has joined #nixos
Itkovian has joined #nixos
mkoenig has quit [(Remote host closed the connection)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
asuryawanshi has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nixpkgs] fpletz pushed 3 new commits to master: https://git.io/vbbXz
<NixOS_GitHub>
nixpkgs/master 7b9c5b4 Franz Pletz: collectd: 5.7.2 -> 5.8.0
<NixOS_GitHub>
nixpkgs/master 4ce44d6 Franz Pletz: wireguard: 0.0.20171111 -> 0.0.20171221
<NixOS_GitHub>
nixpkgs/master e2fe111 Franz Pletz: nixos/profiles/all-hardware: remove unavailable modules
NixOS_GitHub has left #nixos []
ylwghst has quit [(Remote host closed the connection)]
nslqqq has joined #nixos
nslqqq has quit [(Client Quit)]
m0rphism has quit [(Quit: WeeChat 1.9.1)]
nslqqq has joined #nixos
willprice has joined #nixos
<steveeJ>
from wanting to convert my linkedin profile to a CV, I'm now on to patching patchelf because it can't handle go binaries /o\ something must change
<steveeJ>
what's the simplest way of getting a shell at the point where unpackPhase is done?
<steveeJ>
preferably declarative so that nix-shell can be used to reproduce the environment
<MoreTea>
steveeJ: you might be able to use the shellHook that is run if you start a nix-shell
Tobba_ has joined #nixos
Tuba has quit [(Ping timeout: 256 seconds)]
asppsa[m] has joined #nixos
Tobba_ has quit [(Ping timeout: 260 seconds)]
aarvar has quit [(Quit: Leaving.)]
<sphalerite>
steveeJ: just nix-shell does that
<sphalerite>
Anyone else having trouble with scdaemon? gpg --card-status no longer works for me, just hangs. strace suggests that scdaemon is not accepting connections on its socket
<sphalerite>
Oh right. Turns out it's my USB hub's fault, or the kernel's handling of it
<steveeJ>
sphalerite: what do you mean it does that? ;-) e.g., if I need all the nativeBuildInputs of patchelf in a nix-shell, how do I set it up?
<sphalerite>
yay USB-C support
<steveeJ>
sphalerite: scdaemon (and anything to do with GPG works fine here)
<sphalerite>
steveeJ: nix-shell '<nixpkgs>' -A patchelf
<steveeJ>
sphalerite: doesn't that just install patchelf?
<sphalerite>
no, that's nix-shell -p patchelf
Neo-- has quit [(Ping timeout: 252 seconds)]
<sphalerite>
nix-shell has two major CLI modes, one is "give me the environment for building a package" and one is "make a dummy package with these inputs and give me the environment for building it"
<sphalerite>
the latter is activated by -p
Neo-- has joined #nixos
<steveeJ>
`nix-shell '<nixpkgs>' -A patchelf` != `nix-shell -p patchelf` ?
<sphalerite>
exactly. The former means "give me the env for building patchelf". The latter means "give me an env with patchelf in it"
<steveeJ>
this is absolutely unclear from the manual :-D
<sphalerite>
The command nix-shell will build the dependencies of the specified derivation, but not the derivation itself. It will then start an interactive shell in which all environment variables defined by the derivation path have been set to their corresponding values, and the script $stdenv/setup has been sourced. This is useful for reproducing the environment of a derivation for development.
<steveeJ>
(man nix-shell)
<sphalerite>
Seems pretty clear to me
orivej has quit [(Ping timeout: 268 seconds)]
<steveeJ>
now I'm even more confused. why is the patchelf binary in PATH when I execute any of the above commands?
<sphalerite>
because it's in stdenv
tmaekawa has quit [(Quit: tmaekawa)]
<sphalerite>
that won't be the case for most packages though
<steveeJ>
self-dependency, that's interesting
* steveeJ
tries hard to resist looking into the bootstrapping mechanism
<sphalerite>
So the scdaemon issue is because the kernel doesn't seem to have removed the USB hub correctly, i.e. it thinks some devices that are definitely no longer reachable are still there. Does anyone know if I can poke the kernel in a way to tell it that they are in fact gone, short of rebooting?
<sphalerite>
bah, even trying to rmmod the relevant modules hangs
linarcx has joined #nixos
<sphalerite>
does anyone know a good place (ideally IRC) to ask about kernel issues like this?
<steveeJ>
there's ##kernel
<sphalerite>
also, I'm having an issue with a server of mine: I run a tmux session on it, but whenever I disconnect my SSH session /run/user/1000 is umounted (lost) and I have to SIGUSR1 tmux so it recreates the socket. Can I somehow ensure that /run/user/1000 isn't unmounted whenever I disconnect?
ma27 has quit [(Quit: WeeChat 2.0)]
asuryawanshi has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub>
[nixpkgs] dguibert opened pull request #33166: libelf required by some module compilation (on kernel >= 4.14) (master...fix/modules-require-libelf) https://git.io/vbb7A
NixOS_GitHub has left #nixos []
klntsky has quit [(Remote host closed the connection)]
klntsky has joined #nixos
Tobba has quit [(Ping timeout: 248 seconds)]
rhino has joined #nixos
rhino is now known as Guest32978
<Guest32978>
hi!! I'm installing nixos on a virtual machine form insdide OSX. it works fine so far. however, whenever I try to install new packages, most of the time the process is stuck with 'download-from-binary-cache.pl still wating for...' an does not finish..
ma27 has joined #nixos
vidbina has joined #nixos
<gchristensen>
Guest32978: I can't help much, but maybe this will get you closer: can you access anything through the net? `ping 4.2.2.2; curl ipv6.icanhazip.com; ping curlipv4.icanhazip.com`
vcunat1 has joined #nixos
vcunat has quit [(Ping timeout: 252 seconds)]
vcunat1 has quit [(Client Quit)]
vcunat has joined #nixos
<ma27>
when I try to deploy a node on NixOps to libvirtd I get the following error when trying to build: mknod: /dev/vda1: File exists (config and full output will follow as gist)
nuncanada has quit [(Read error: Connection reset by peer)]
<Guest32978>
gchristensen: generally I have internet connection on both the vm and the host. however only the ipv6 curl does not work on both...
<Guest32978>
gchristensen: oh, wow.. it was the --option binary-caches-parallel-connections 40 for nix-env that fixed it..
<gchristensen>
huh
<MoreTea>
Anyone here familiar with Rok Garbas' pypi2nix? I want to build `dlib` with python 3, which requires a boost that is compiled for python 3.
<MoreTea>
I tried injecting this overriden boost via the requirements_override.nix, but I don't think that that is used during the the pypi2nix run
<FRidh2>
MoreTea: use the -E flag, e.g. -E postgresql
<loke>
In my efforts to get my development environment with all its parts working right, I'm now looking at getting Android Studio to run correctly. My problem is that the Android Emulator doesn't start, and it fails because it can't find the library i965_dri.so. This file is available, but it's located in the directory /run/opengl-driver/lib/dri, while LD_LIBRARY_PATH is only set to /run/opengl-driver/lib
<MoreTea>
FRidh2: and how would I inject an overriden package then? e.g. boost.override { python = python3; }
<loke>
I tried updating LD_LIBRARY_PATH but it only seems to take effect from Android Studio itself, not when the Emulator runs.
<infinisil>
ma27: Maybe you could try asking on the mailing list
<loke>
Is anyone familiar with the android-studio nixfile?
<NixOS_GitHub>
nixpkgs/master 504016f Peter Simons: Merge pull request #32993 from shlevy/haskell-internal-libs...
NixOS_GitHub has left #nixos []
dgpratt has quit [()]
otherjrolfs has quit [(Ping timeout: 260 seconds)]
jrolfs has quit [(Ping timeout: 268 seconds)]
dgpratt has joined #nixos
<nix_newb>
i get really long bash startup time;
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] bnikolic opened pull request #33167: Mingw_w64 fix to get cross-compilation working again (staging...mingw32-w64-fix) https://git.io/vbbFX
NixOS_GitHub has left #nixos []
<viric>
gchristensen: thank you :)
ssmike has quit [(Remote host closed the connection)]
<gchristensen>
yep!
ssmike has joined #nixos
<infinisil>
nix_newb: #bash
<infinisil>
nix_newb: they should be able to help you debug it
the has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peti pushed 1 new commit to master: https://git.io/vbbFA
<NixOS_GitHub>
nixpkgs/master 40a3d77 Peter Simons: hackage-packages.nix: automatic Haskell package set update...
NixOS_GitHub has left #nixos []
<gchristensen>
(continued spam problems being reported, the bot's list of ban words has een updated to include what they say)
<infinisil>
nix_newb: It's probably gonna be in unstable yes, but there's a way to net require using unstable but still get the fix (via git cherry-picking)
otherjrolfs has joined #nixos
<pstn>
Sorry, wrong autocomplete
<nix_newb>
so i clone the repo and cherry-pick the commit into the stable branch?
contrapumpkin is now known as {-_-}
<infinisil>
nix_newb: yeah
{-_-} is now known as contrapumpkin
<infinisil>
I'm doing that for all kinds of stuff that i need, or for PR's that aren't merged
<infinisil>
yet
<infinisil>
hopefully
<nix_newb>
infinisil: sounds like lot of work :( is there any problem in just switching to unstable?
jrolfs has quit [(Ping timeout: 248 seconds)]
<infinisil>
it's really not that hard work, but yeah just using unstable is easier
otherjrolfs has quit [(Ping timeout: 256 seconds)]
<infinisil>
you need to use nixos-unstable though (/not/ nixpkgs-unstable)
<adisbladis>
Wikipedia is still going on at hive stage
<pie_>
hey guys im running nix-shell -E '(with import <nixpkgs> {}; callPackage ./default.nix {})' on https://pastebin.com/h9bYqmEx , but i dont have access to the z3 command in the nix-shell, what am i supposed to add?
otherjrolfs has quit [(Ping timeout: 248 seconds)]
<adisbladis>
Supposed to have ended 30 minutes ago
<adisbladis>
Mic92: makefu:
Acou_Bass has joined #nixos
ssmike has quit [(Remote host closed the connection)]
ssmike has joined #nixos
<adisbladis>
Komona looks empty
<adisbladis>
Mic92: makefu:
jrolfs has joined #nixos
otherjrolfs has joined #nixos
<Mic92>
adisbladis: we go hive stage
<adisbladis>
Mic92: Check. Sure it wont be double booked?
<Mic92>
adisbladis: do you have an account?
<Mic92>
adisbladis: my one does not work atm
<adisbladis>
Mic92: Wiki account or what
<Mic92>
to change the location, yes
<adisbladis>
Will do
<adisbladis>
Mic92: Can you put up a note at the other room saying where we moved
<infinisil>
pie_: you need to use -p instead of -E
<infinisil>
pie_: -E puts you into an environment to build z3, -p puts you into an environment where z3 is built and available
<adisbladis>
Wiki updated
<Mic92>
adisbladis: makefu is talking with qubesos people to reroute our session
<pie_>
infinisil, but i cant pass an expression to -p ...
<pie_>
oh wtf you can? :O
<infinisil>
yup :)
<pie_>
mind blown and life is easier
<zarel>
oh, you can? I was about to pass you a shell.nix that creates an env with z3 in the build inputs
<infinisil>
Also amazed me the first time I found that out
<zarel>
infinisil: I still don't get how to call it, "nix-shell -p default.nix" ?
asuryawanshi has quit [(Ping timeout: 252 seconds)]
jrolfs has joined #nixos
i-am-the-slime has quit [(Ping timeout: 246 seconds)]
asuryawanshi has joined #nixos
orivej has joined #nixos
jrolfs has quit [(Ping timeout: 240 seconds)]
dieggsy has joined #nixos
toppler is now known as jstevewhite`
jstevewhite` is now known as toppler
<boegel>
Is the count of "nearly 6,500 packages" at https://nixos.org/nixpkgs/ still accurate? What's the best way to tell how many different software packages Nix currently supports?
<samueldr>
but some packages are duplicated (see kernel packages)
<samueldr>
and some aren't present (see most language-specific dependencies like ruby gems)
<lejonet>
Can I use the mkIf function to optionally create users/groups too? E.g. users.extraUsers = mkIf config.services.<service>.<some option> singleton { <user/group stuff> };
dieggsy has quit [(Remote host closed the connection)]
<boegel>
samueldr: I'd like to exclude different versions of packages in the count (so Python 2.x & 3.x should count as one for example)
<samueldr>
exactly
<samueldr>
sorry, if it wasn't clear, I was sharing failures to get an actual count :)
<boegel>
samueldr: np :)
<infinisil>
boegel: Oh I think I got a good estimate
* boegel
is still a huge n00b when it comes to Nix
<boegel>
infinisil: any idea how that compares with the stable set of pkgs?
<infinisil>
this counts the number of packages defined in nixpkgs/top-level/all-packages.nix
<FRidh2>
boegel: what is to you a package? If different builds of the same source are not different packages, then I suppose the amount of unique source packages would be a better estimate for you?
<boegel>
FRidh2: I guess so, yes
<boegel>
context: I'm working on a comparison between different installation tools (conda, EasyBuild, Nix, Guix, Spack)
<FRidh2>
boegel: very interesting. I've been doing a little comparising myself as well (when I was still a scientist myself :) )
leat has quit [(Quit: WeeChat 1.9.1)]
vcunat has quit [(Ping timeout: 252 seconds)]
<infinisil>
boegel: I'd
<FRidh2>
boegel: you forgot to include the modules system which is used almost everywhere (unfortunately)
<infinisil>
(Ignore what i accidentally sent)
* lejonet
does a /ignore infinisil ;)
Avaq has joined #nixos
<bkchr>
Mic92: online? :D
jrolfs has quit [(Ping timeout: 256 seconds)]
leat has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] johbo opened pull request #33175: pelican: Disable pandoc support for now (master...pelican-without-pandoc) https://git.io/vbNkJ
<NixOS_GitHub>
[nixpkgs] FRidh closed pull request #33175: pelican: Disable pandoc support for now (master...pelican-without-pandoc) https://git.io/vbNkJ
NixOS_GitHub has left #nixos []
<Mic92>
bkchr: can you remind me in two hours?
<Mic92>
I currently have no laptop
stepcut has quit [(Remote host closed the connection)]
stepcut has joined #nixos
vcunat has joined #nixos
Avaq has quit [(Ping timeout: 248 seconds)]
stepcut has quit [(Ping timeout: 240 seconds)]
<boegel>
infinisil: someone in #guix told me that command produces a huge undercount, due to stuff like TeX not being counted, etc.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Izorkin opened pull request #33176: mariadb galera: init at 25.3.22 (staging...mariadb-galera) https://git.io/vbNkb
NixOS_GitHub has left #nixos []
<bkchr>
Mic92: I will not be at a pc, but if you want, I write a comment and link you
<gchristensen>
boegel: hydra builds shows 40,000, but that includes multiple architectures
stepcut has joined #nixos
jrolfs has joined #nixos
<infinisil>
boegel: yeah
<infinisil>
Also haskellpackages aren't included and other stuff like that
<Mic92>
bkchr yes
jb55 has joined #nixos
<infinisil>
nix-env -qaP digs down through some attributes so It'll have a more complete set, but then there's duplicates with different python versions
LouisDeFunes294 has quit [(Quit: Textual IRC Client: www.textualapp.com)]
jrolfs has quit [(Ping timeout: 250 seconds)]
<FRidh2>
gchristensen: [18:05] <boegel> I'd like to exclude different versions of packages in the count (so Python 2.x & 3.x should count as one for example)
<gchristensen>
sure, then I go back to "why do you ask" :P
stepcut has quit [(Remote host closed the connection)]
stepcut has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vbNIC
<NixOS_GitHub>
nixpkgs/staging a1a3e54 Vladimír Čunát: Merge branch 'master' into staging...
NixOS_GitHub has left #nixos []
ma27 has joined #nixos
zarel_ has joined #nixos
zarel has quit [(Disconnected by services)]
zarel_ is now known as zarel
jrolfs has joined #nixos
stepcut has quit [(Ping timeout: 268 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej pushed 1 new commit to master: https://git.io/vbNIX
<infinisil>
I wondered why nix-locate also knows about haskellPackages, but i see it just queries it manually (haskellPackages, nodePackages, and a couple others)
<globin>
Isorkin: are you sure we need the galera plugin, quoting mariadb website:
<globin>
There are no longer separate MariaDB Galera Cluster releases for MariaDB 10.1 and above. Simply download MariaDB (10.1 or above) and configure your cluster as normal.
ssmike has quit [(Remote host closed the connection)]
<sphalerite>
I'm having an issue with a server of mine: I run a tmux session on it, but whenever I disconnect my SSH session /run/user/1000 is umounted (lost) and I have to SIGUSR1 tmux so it recreates the socket. Can I somehow ensure that /run/user/1000 isn't unmounted whenever I disconnect?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mounium opened pull request #33177: dash-to-panel: init at v11 (master...gnome-ext) https://git.io/vbNLz
NixOS_GitHub has left #nixos []
pie_ has quit [(Remote host closed the connection)]
pie_ has joined #nixos
<sphalerite>
also does anyone know how to find out what pts an open instance of ptmx is connected to? I want to debug a problem with tmux but don't know how to find which application is causing the issue
<boegel>
gchristensen: I'm trying to come up with a count that can be used in fair way to compare pkgs counts between Nix, Guix & other projects (conda has 3.5k, EasyBuild has 2k)
ssmike has joined #nixos
<gchristensen>
that seems like a not useful thing to compare, but I see
<boegel>
gchristensen: I think it is, it gives an idea about the scope of the project
<boegel>
so, would a statement like "> 10k" make sense for Nix?
<gchristensen>
yes
<pstn>
adisbladis: Did you document your touchpad entirely for scrollng adventure somewhere?
<boegel>
infinisil: any idea how to count without ignoring TeX & Haskell stuff?
<FRidh2>
boegel: infinisil: pkgs/tools/typesetting/tex/texlive For an estimate you could do wc -l pkgs/tools/typesetting/tex/texlive/fixedHashes.nix
<infinisil>
another 7617 :D
<boegel>
I'm heavily included to count that as one :)
<boegel>
it would skew the count way too much
<gleber_>
Is there a way to load current NixOS configuration into nix-repl?
<LnL>
nix-repl '<nixos/nixos>'
<infinisil>
boegel: I guess it all depends on the definition of 'package'
alexteves has quit [(Quit: My Mac Mini has gone to sleep. ZZZzzz…)]
<gleber_>
LnL: thanks!
orivej has quit [(Ping timeout: 255 seconds)]
klntsky has quit [(Ping timeout: 272 seconds)]
romildo has joined #nixos
klntsky has joined #nixos
<boegel>
infinisil: well, I'm aiming for counting each tool/app once
<boegel>
which is not easy
<infinisil>
boegel: Hmm, so python modules shouldn't count either?
<boegel>
infinisil: I think those should count, libraries should be counted too
<boegel>
but not extension packages like TeXLive stuff, that's different imho... anyway, it's a thin line
<boegel>
or a squigly one, maybe :)
<sphalerite>
whoopee, getting different results every time I run nix-store --verify --check-contents
<sphalerite>
(it's bad RAM)
<FRidh2>
boegel: Why present package counts? Especially, considering what is considered a package is subjective.
<boegel>
FRidh2: mainly to give an idea about scope; it's just a tiny part of my talk, I'm definitely not focusing on it
ssmike has quit [(Remote host closed the connection)]
<FRidh2>
boegel: then I would keep it to order of magnitudes, in which case Nix and Debian have 10^3
<vcunat>
Maybe 10^4, it really depends what you count.
<vcunat>
(e.g. haskellPackages)
<FRidh2>
vcunat: since boegel wants to count multiple builds of a package as only a single package, I think the amount of source packages is the best indicator. I don't think we get to 10^4 then anymore
<infinisil>
(list is too big for gist.github.com :P)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vbNmu
<NixOS_GitHub>
nixpkgs/master d8490e3 Frederik Rietdijk: python.pkgs.numexpr: 2.6.2 -> 2.6.4
NixOS_GitHub has left #nixos []
ok2``` has quit [(Ping timeout: 250 seconds)]
ok2``` has joined #nixos
jrolfs has quit [(Ping timeout: 240 seconds)]
<vcunat>
kernelPackages (and luaPackages) get counted multiple times, vim plugins are perhaps questionable, and some other packages counted in multiple variants. Fair comparisons are difficult. (and quality is very important, too)
linarcx has joined #nixos
knupfer has quit [(Quit: knupfer)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dywedir opened pull request #33178: feh: 2.22.2 -> 2.23 (master...feh) https://git.io/vbNYF
NixOS_GitHub has left #nixos []
pie_ has quit [(Remote host closed the connection)]
pie_ has joined #nixos
Avaq has joined #nixos
ssmike has quit [(Ping timeout: 252 seconds)]
<elvishjerricco>
Hm. I added an `x86_64-darwin` machine to my `nix.buildMachines` and turned `nix.distributedBuilds`, but I'm still not able to build darwin derivations.
<elvishjerricco>
Is there something else I have to configure?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 opened pull request #33179: libresolv: fix library version (master...darwin-libresolv) https://git.io/vbNOK
NixOS_GitHub has left #nixos []
jrolfs has joined #nixos
<infinisil>
elvishjerricco: what is the value of $NIX_BUILD_HOOK ?
<LnL>
did you check everything I mentioned in the comment?
<sphalerite>
Anyone using veracrypt or tcplay? I want to open an old truecrypt container I made some backups onto a long time ago, not had any luck with veracrypt yet (`veracrypt -tc Backup.crypt /backup`)
<sphalerite>
Getting "Error: mount: /crypt: wrong fs type, bad option, bad superblock on /dev/mapper/veracrypt1, missing codepage or helper program, or other error"
<sphalerite>
nothing relevant in the journal
<elvishjerricco>
LnL: Derp, it was the known_hosts thing
<elvishjerricco>
Alright so now I can connect, but I'm getting "lacks a signature" errors
<elvishjerricco>
Despite having `trusted-users = *` on the build machine
otherjrolfs has quit [(Ping timeout: 240 seconds)]
<LnL>
don't think I've seen that before
jrolfs has quit [(Ping timeout: 264 seconds)]
<elvishjerricco>
Oh! Just had to restart this nix-daemon
<elvishjerricco>
I think it's working now! :)
<elvishjerricco>
LnL: infinisil: Thanks for your help!
<LnL>
great :)
yegortimoshenko has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peti pushed 2 new commits to master: https://git.io/vbNG0
<NixOS_GitHub>
nixpkgs/master 1ee61d8 Shea Levy: Revert "Revert "hslib: Function to extract the haskell build inputs of a package.""...
<NixOS_GitHub>
nixpkgs/master 4a01a17 Peter Simons: Merge pull request #33158 from shlevy/hslib-haskell-build-inputs-again...
NixOS_GitHub has left #nixos []
jrolfs has joined #nixos
otherjrolfs has joined #nixos
romildo has quit [(Quit: Leaving)]
klntsky has quit [(Remote host closed the connection)]
klntsky has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] edolstra pushed 1 new commit to master: https://git.io/vbNGb
<NixOS_GitHub>
nixpkgs/master 56518ff Joachim F: Merge pull request #32230 from bkchr/renderdoc...
NixOS_GitHub has left #nixos []
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
otherjrolfs has joined #nixos
jrolfs has joined #nixos
<gleber_>
LnL: `nix-repl <nixos/nixos>` doesn't work as it can't find a path. My $NIX_PATH is `/etc/nixos:nixos-config=/etc/nixos/configuration.nix` and I pin my NixOS onto a checked out repo at /etc/nixos/nixpkgs
<gleber_>
sphalerite: hmm... ah, so this effectively loads nixpkgs/nixos/default.nix file?
<sphalerite>
yes
<LnL>
yeah, the channel name is nixos by default
<gleber_>
hmm... and <nixpkgs> or <nixos> are names of a channel or of a directory somewhere on NIX_PATH, right?
<sphalerite>
of something on NIX_PATH
<sphalerite>
channels are on NIX_PATH by default, in your case they aren't because of your custom settings
randomstrangerb has quit [(Ping timeout: 260 seconds)]
<gleber_>
sphalerite, LnL: these were the bits I was missing! thanks for explaining
randomstrangerb has joined #nixos
* gleber_
will boot up a clean NixOS and see how these are set up by default there
<LnL>
the default is 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
<sphalerite>
Anyone know a good way to recover data from a somewhat broken HFS+ filesystem, ideally on linux?
vidbina has joined #nixos
<LnL>
so <nixpkgs> is basically aliased to <nixos>
<sphalerite>
but nixpkgs is the one to prefer generally speaking because it'll work on non-nixos systems too
<gleber_>
so... why do we have these two names in the first place? is there any reason to have both configured on the same system?
otherjrolfs has quit [(Ping timeout: 260 seconds)]
jrolfs has quit [(Ping timeout: 272 seconds)]
<LnL>
no idea
ma27 has quit [(Ping timeout: 252 seconds)]
<LnL>
I thought the nixos tools used <nixos> so that it could be different, but I guess not
pie_ has quit [(Ping timeout: 246 seconds)]
<LnL>
might be something from the time nixos was in a separate repo
<yegortimoshenko>
i think that <nixpkgs> vs <nixos> is because of that
dywedir has quit [(Remote host closed the connection)]
jrolfs has joined #nixos
otherjrolfs has joined #nixos
pie_ has joined #nixos
jb55 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 closed pull request #33167: Mingw_w64 fix to get cross-compilation working again (master...mingw32-w64-fix) https://git.io/vbbFX
NixOS_GitHub has left #nixos []
asuryawanshi has quit [(Ping timeout: 263 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 pushed 1 new commit to staging: https://git.io/vbNcr
<NixOS_GitHub>
nixpkgs/staging 7ede347 John Ericson: Merge #33167 into staging
NixOS_GitHub has left #nixos []
otherjrolfs has quit [(Ping timeout: 240 seconds)]
jrolfs has quit [(Ping timeout: 240 seconds)]
pie_ has quit [(Remote host closed the connection)]
pie_ has joined #nixos
jb55 has quit [(Ping timeout: 272 seconds)]
jrolfs has joined #nixos
otherjrolfs has joined #nixos
jb55 has joined #nixos
<gleber_>
yegortimoshenko: makes sense
Tobba has joined #nixos
aminb has joined #nixos
orivej has joined #nixos
otherjrolfs has quit [(Ping timeout: 260 seconds)]
jrolfs has quit [(Ping timeout: 260 seconds)]
pie_ has quit [(Ping timeout: 240 seconds)]
<NickHu>
Are images working for anyone else in w3m?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] mstarzyk opened pull request #33183: miller: init at 5.2.2 (master...miller) https://git.io/vbNCT
NixOS_GitHub has left #nixos []
<stepcut>
I updated from Yesomite -> Sierra, Upgraded to a newer version of virtualbox, and upgraded from nixops-1.3 to nixops-1.5. Now when I try to nixops deploy to a virtual box it fails with 'error: string index out of range'. Though it builds with --build-only. nixops check also fails.
<NickHu>
And I tried it in tty1 and it didn't work
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej pushed 1 new commit to master: https://git.io/vbNC3
<NixOS_GitHub>
nixpkgs/master 77cc639 Orivej Desh: wxmaxima: build with cmake...
NixOS_GitHub has left #nixos []
<NickHu>
Linus: I'll try the permissions thing
<sphalerite>
Nick Hu: no that's not the right solution if you're trying to get it to work within X I'm pretty sure
<sphalerite>
I don't know how it's supposed to work in X, but it might also be writing straight to the framebuffer there too. If so you'll need to make sure you're not running a compositor for it to work, and even that doesn't guarantee it'll work.
<sphalerite>
Why do you want this?
jrolfs has joined #nixos
otherjrolfs has joined #nixos
<NickHu>
Well I added myself to the video group and it doesn't seem to work
<NickHu>
I saw that other people have it working and I was curious tbh
<NickHu>
Could be useful to have images inside neovim
<sphalerite>
it's definitely not very reliable
<sphalerite>
if you want fancy graphics terminal stuff you may want to look into sixels
<sphalerite>
Or terminal emulators with graphics support like terminology
averell has joined #nixos
<pkill9>
i wondered how terminals like urxvt displayed images in w3m with the images support added to w3m
<NickHu>
Hmm, there are rw perms on /dev/fb0 for the video group, but fbi fails with "Inappropriate ioctl for device"
<sphalerite>
did the group change actually take effect? You probably need to log out and back in
<sphalerite>
oh wait inappropriate ioctl isn't a permission error
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vbNCp
<NixOS_GitHub>
nixpkgs/master 1e77d0b David Guibert: kernel 4.14 require libelf to compile modules....
NixOS_GitHub has left #nixos []
<NickHu>
I did a newgrp video and then checked the output of groups
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg closed pull request #33166: libelf required by some module compilation (on kernel >= 4.14) (master...fix/modules-require-libelf) https://git.io/vbb7A
NixOS_GitHub has left #nixos []
aminb has quit [(Quit: WeeChat 2.0.1)]
aminb has joined #nixos
<sphalerite>
I haven't tried fbi but jfbview worked for me last time I tried it
jrolfs has quit [(Ping timeout: 268 seconds)]
otherjrolfs has quit [(Ping timeout: 272 seconds)]
<NickHu>
jfbview seems to display garbage for me
<sphalerite>
maybe your graphics driver's fbdev is broken
<sphalerite>
idk
<NickHu>
Hmm, no wonder you said it was unreliable haha
<NickHu>
Should be on the intel driver, so it's not like a niche piece of hardware
JosW has quit [(Quit: Konversation terminated!)]
<sphalerite>
works on my intel graphics :/
<sphalerite>
Wait, are you running this from within X?
<NickHu>
Yes
<sphalerite>
yeah that's very unlikely to work
otherjrolfs has joined #nixos
jrolfs has joined #nixos
<NickHu>
Could you tell me more about sixel? Seems kinda hard to find information on it
<samueldr>
`readlink -f /etc/nixos/result` to see what it points to
<nixy>
That may be an artifact of some nix operation you performed from that directory yourself
<samueldr>
^ nixy is probably right, a nix-build you happened to do in that directory
<LnL>
nix-build and nixos-rebuild build create a 'result' symlink when the build is done for convinience
el_putin_asleep is now known as el_putin
<samueldr>
(I've never had a result symlink from nixos-rebuild??)
<nixy>
samueldr: Only when you use the `build` option
<samueldr>
oh ah!
<nixy>
das-g[m]: TL;DR is you wouldn't have to track that
<LnL>
yeah, same with build-vm but switch skips that
coot_ has joined #nixos
<LnL>
you can even just remove it
roberth has left #nixos []
jtojnar has quit [(Ping timeout: 252 seconds)]
jrolfs has joined #nixos
nix-build has quit [(Ping timeout: 255 seconds)]
marzzzello has joined #nixos
jrolfs has quit [(Ping timeout: 252 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vbN45
<NixOS_GitHub>
nixpkgs/master 722295f Tuomas Tynkkynen: openblas: Support ARMv6
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] iamale opened pull request #33184: waterfox-bin: init at 56.0.1 (master...master) https://git.io/vbN4p
NixOS_GitHub has left #nixos []
<nix_newb>
hello, is it possible to write a package derivation such that it auto updates when a new version available(assuming this information can be acquired from some update http query)
dan_b has joined #nixos
<nixy>
I don't know if that is possible but it doesn't seem very in the spirit of Nix derivations
<nixy>
(It wouldn't be reproducible because it would change as updates become available)
<infinisil>
nix_newb: you'll have to invoke a nix command to update it, which could be done by a systemd unit, so I guess it's possible
<nix_newb>
nixy: i am not after reproducibility of such a package; e.g. say i don't care about browser versions
<samueldr>
which has update.sh, which generates upstream-info.nix
<samueldr>
but it still needs to be called manually, afaik
<sphalerite>
nix_newb: you can also use nasty stateful stuff like builtins.fetchurl. But it's nasty and stateful
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 pushed 3 new commits to staging: https://git.io/vbNB3
<NixOS_GitHub>
nixpkgs/staging 8b04971 John Ericson: Merge branch 'alt-stdenv' into ericson2314-cross-base
<NixOS_GitHub>
nixpkgs/staging 5db559f John Ericson: Merge branch 'mingw32-w64-fix' into ericson2314-cross-base
<NixOS_GitHub>
nixpkgs/staging 4d3282f John Ericson: Merge branch 'ericson2314-cross-base' into staging
NixOS_GitHub has left #nixos []
<sphalerite>
but that does match your "acquired from some update http query" thing
<nix_newb>
so i need to override the previous package with the new src right?
dpren has left #nixos []
<nix_newb>
so nix-env -i foo when called next time would update itself to new version
<nixy>
Doesn't fetchurl require a matching hash?
<infinisil>
not the builtin one
<nix_newb>
yeah
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #33185: treewide: A few misc cross changes from #26805 (staging...cross-simple) https://git.io/vbNBE
NixOS_GitHub has left #nixos []
<nix_newb>
but the updater also provides the hash information in my case; so it's not a problem
hiratara has quit [(Remote host closed the connection)]
<infinisil>
nix_newb: You'll still need to fetch that updater somehow
<infinisil>
which is what builtins.fetchurl can be used for
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 pushed 5 new commits to staging: https://git.io/vbNB2
<NixOS_GitHub>
nixpkgs/staging 6f4cfe0 Ben Gamari: gawk: Enable cross-compilation
<NixOS_GitHub>
nixpkgs/staging 946c1b2 Ben Gamari: diffutils: Enable cross-compilation
<NixOS_GitHub>
nixpkgs/staging e73d805 John Ericson: libelf: Fix cross compilation...
NixOS_GitHub has left #nixos []
<infinisil>
oh you mean to run a script that updates the nix expression, then yeah
hiratara has joined #nixos
phreedom has quit [(Ping timeout: 246 seconds)]
stepcut has quit [(Remote host closed the connection)]
<sphalerite>
Does anyone know some sort of "idiot-proof encryption" tool? I want it to generate a key from a passphrase and encrypt a file for me sensibly.
<sphalerite>
and more on-topic: can I disable use of remote builders on a per-build basis, i.e. using a command-line flag for nix-build or something?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] dtzWill opened pull request #1768: use brotli API instead of external command (master...feature/brotli) https://git.io/vbN0w
NixOS_GitHub has left #nixos []
oida has joined #nixos
<nix_newb>
sphalerite: gpg not good enough for you? ;)
<nix_newb>
you are looking for -c btw
<sphalerite>
nix_newb: it could be. Just not sure how to use it correctly for this.
jrolfs has joined #nixos
<sphalerite>
So just `gpg -c file`? That looks easy enough. Thanks :D
<nix_newb>
yep
otherjrolfs has joined #nixos
otherjrolfs has quit [(Ping timeout: 260 seconds)]
jrolfs has quit [(Ping timeout: 260 seconds)]
randomstrangerb has quit [(Ping timeout: 252 seconds)]
pxc has quit [(Ping timeout: 268 seconds)]
yegortimoshenko has quit [(Ping timeout: 252 seconds)]
<NixOS_GitHub>
[nixpkgs] benley opened pull request #33191: melpaPackages: match version of magit-popup to magit (master...magit-popup-version) https://git.io/vbNzW
NixOS_GitHub has left #nixos []
Tobba has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] yegortimoshenko pushed 1 new commit to master: https://git.io/vbNz0
<sphalerite>
Anyway, to answer your question: I use nix-env to manage my user profile, but always with the -r option and with a custom expression — so my user env is declarative, and nix-env essentially takes on a similar role to nixos-rebuild