<joepie91>
and the /bin/bash shebang didn't get patched... but it *did* get patched if I +x'ed the start.sh first
kampfschlaefer has quit [(Ping timeout: 258 seconds)]
shanemikel has joined #nixos
<angeldude>
The reason I asked here is because collision resolution is usually a repo-specific procedure. Have any of you had similar problems making patches to NixPkgs?
player1_ has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vHn3Z
<NixOS_GitHub>
nixpkgs/master b20f20d Martin Wohlert: libopus: 1.1.4 -> 1.1.5...
NixOS_GitHub has left #nixos []
bhipple has quit [(Ping timeout: 255 seconds)]
bhipple has joined #nixos
Nobabs27 has quit [(Quit: Leaving)]
<angeldude>
Something different: how do I install flash for my browser (vivaldi)? Can I just install the version in the repository and have it just work, or is it more involved?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 2 new commits to release-17.03: https://git.io/vHns0
<NixOS_GitHub>
nixpkgs/release-17.03 5600895 Franz Pletz: geolite-legacy: 2016-07-08 -> 2017-05-26...
<NixOS_GitHub>
nixpkgs/release-17.03 9f4a102 Thomas Tuegel: spotify: 1.0.53.758 -> 1.0.55.487...
NixOS_GitHub has left #nixos []
Supersonic112 has quit [(Disconnected by services)]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
lambdamu has joined #nixos
rcschm has joined #nixos
rcschm has quit [(Remote host closed the connection)]
lambdamu_ has quit [(Ping timeout: 246 seconds)]
jgertm has quit [(Ping timeout: 240 seconds)]
s33se has joined #nixos
s33se_ has quit [(Ping timeout: 240 seconds)]
hellrazor has quit [(Ping timeout: 240 seconds)]
hellrazor has joined #nixos
shanemikel has quit [(Quit: Konversation terminated!)]
jsgrant__ has joined #nixos
cpennington has joined #nixos
mbrgm has quit [(Ping timeout: 240 seconds)]
mbrgm has joined #nixos
takle has joined #nixos
derjohn_mob has quit [(Ping timeout: 258 seconds)]
Drako365 has quit [(Quit: Lost terminal)]
Raimondii has joined #nixos
takle has quit [(Ping timeout: 272 seconds)]
Raimondi has quit [(Ping timeout: 268 seconds)]
Raimondii is now known as Raimondi
derjohn_mob has joined #nixos
siddharthist has joined #nixos
<siddharthist>
hi, i'm trying to build a python application that uses pygtk. it builds properly, but when i try to run the result, I get "ImportError: No module named gobject". Any ideas? I'm happy to post a gist of the .nix file
<boomshroom>
Vivaldi reports that Flash is installed, but twitch couldn't load the plugin
<iMatejC>
yes
<iMatejC>
look at the same gist I previously pasted and use the second file
<iMatejC>
different flash :P
<iMatejC>
you need to use pepper
<iMatejC>
:P
<boomshroom>
thank you. I thought NPAPI was fishy
<boomshroom>
bye again!
boomshroom has quit [(Client Quit)]
<dash>
iMatejC: in stdenv.mkDerivation it doesn't directly change anything about runtime behavior, it's the python stuff that does shenanigans to make it matter
<iMatejC>
dash: I am not saying that python stuff is not doing something special, but the similar thing is working for mkDerivation, I should know, I have hacked a bunch of packages that way :P
<boomshroom>
All this to watch Jonathan Blow demo his WIP compiler.
<boomshroom>
JAI-hype!
marsel has joined #nixos
<boomshroom>
"One of the reasons [Linux] has so many problems is they have this dual bad idea of we're gonna use dynamic libraries and then we're just gonna update the dynamic libraries, so we're gonna update your libc and you're not gonna know. Well actually in reality that brakes things" from the livestream.
<boomshroom>
I don't think he's the only one who noticed that problem. ;)
<boomshroom>
"You test exactly the configuration the configuration that ships" I'm pretty sure he hit most of the points that Nix stresses.
<boomshroom>
oops, only one "the configuration"
<siddharthist>
@dash Thank you so much! Such a silly mistake :)
hellrazor has quit [(Ping timeout: 268 seconds)]
hellrazor has joined #nixos
cpennington has quit [(Remote host closed the connection)]
marsel has quit [(Ping timeout: 240 seconds)]
tywkeene has joined #nixos
<tywkeene>
Anyone else not able to start Xorg with nvidia drivers? Just did a nixos-rebuild switch --upgrade to 17.03 and i have permission denied on /dev/tty0 in my xorg log, and starx returns no screens found
<tywkeene>
Yet the nvidia module is installed and loaded
<clever>
tywkeene: are you manualy running startx?
hellrazor has quit [(Ping timeout: 240 seconds)]
<tywkeene>
Not by default, display-manager failed
<clever>
ah
ertes has joined #nixos
<clever>
tywkeene: what does "journalctl -u display-manager" say?
<tywkeene>
Failed with result 'exit-code'
isidore has quit [(Quit: WeeChat 1.8)]
<tywkeene>
oh sorry, looked further up, getting no screens found there too
<clever>
not sure then
<tywkeene>
Think im narrowing it down, there seems to be a syntax error in the xorg config
<tywkeene>
Section is not a valid keyword in this section
<clever>
can you gist the xorg.conf and the configuration.nix?
<tywkeene>
if you tell me how from console lmao
<clever>
are you able to ssh in from another machine?
<tywkeene>
oh duh
<tywkeene>
yes
<tywkeene>
one seconds
<clever>
there is a gist command in nix
<clever>
so you can gist -p /etc/nixos/configuration.nix /nix/store/foo-xorg.conf
<nixy>
Does man -k not work in NixOS?
<clever>
nixy: makewhatis isnt being ran, so that might be to blame
drakonis has quit [(Read error: Connection reset by peer)]
<boomshroom>
My "package manager" for LFS was 2 bash scripts, one generated the folder to contain the package, the other to link it to the global filesystem.
<clever>
and this script handles the bulk of that
<clever>
i never once updated a single package on my LFS system
<clever>
it was one massive imperative heap
<clever>
and the hdd failed one day, but i luckily had a backup image
boomshroom has quit [(Quit: Page closed)]
boomshroom has joined #nixos
<boomshroom>
whoops, closed the wrong tab
<tywkeene>
that reminds me, i need to start doing backups
<tywkeene>
i can never decide on a solid backup strategy
<dash>
tywkeene: LTO-4 tapes
jsgrant__ has quit [(Ping timeout: 240 seconds)]
<tywkeene>
"800GB uncompressed"
<tywkeene>
neat
<clever>
my nas is a 3 drive raidz1 with nfs
<clever>
the desktop is a zfs mirror
<dash>
clever: how do you back it up
<clever>
dash: no real backup plans for the nas or desktop
<clever>
only protection against a single failing drive
<dash>
clever: yeah this is my problem too
<tywkeene>
does anyone even sell drives for those tapes?
<boomshroom>
One of these days, I'll get a harddrive for backups.
<dash>
tywkeene: you might have to steal one
<tywkeene>
shit
<clever>
i think i have 2 or 3 scsi tape drives
<clever>
and a decade ago, i had a working tape drive that connected to the floppy drive ribbon
<tywkeene>
my ex took my hockey mask when she left
<tywkeene>
guess im boned
<tywkeene>
A while ago i started writing a backup solution for myself in Go. it runs in the background, automatically distrubutes files to multiple nodes at once. Started writing caching for it so it wouldnt have to index everytime a node requested a file listing but caches are hard
<clever>
tywkeene: have you seen what nix-store --optimize does?
<tywkeene>
I have not
<clever>
tywkeene: it hardlinks every file in the nixstore to /nix/store/.links/<hash>
<clever>
so if 2 files have the same hash, they wind up hardlinked to eachother, via the .links/<hash>
<clever>
that does file-level dedup
<tywkeene>
so basically you have a file in two places? or am i misunderstanding?
<clever>
same contents in 2 different places, potentialy with different names
<clever>
and neither is writable
<tywkeene>
i did find it kind of jarring not being able to write to a lot of files in nixos
<clever>
in some cases, you can temporarily cheat by copying
<clever>
for example, copy the contents of /etc/nix/nix.conf to a new file, delete the symlink, and rename the copy
<clever>
next time you boot or nixos-rebuild, that will be undone, and the symlink restored
<clever>
or in the case of some scripts, cp /run/current-system/sw/bin/foo foo; chmod +w foo; $EDITOR foo ; ./foo
<clever>
to test a fix out
justanotheruser has joined #nixos
<clever>
as an added benefit, you cant forget to undo debug stuff and leave the system in a weird state
<tywkeene>
never stops surprising me how different nixos is
<clever>
tywkeene: another fun thing i did recently is this
<clever>
this collection of nix expressions will compile down to a ~250mb .tar file, upload it to any linux machine, unpack to /, and /kexec_nixos
<clever>
and within 2 minutes, its running nixos from a ramdisk
<clever>
ssh back into it, and either do a normal install (fdisk, nixos-generate-config, nixos-install)
<clever>
or run "justdoit" and let the script do it all
<boomshroom>
"the root block device that justdoit will nuke from orbit and force nixos onto" The clever man who wrote this clearly has a sense of humor.
<clever>
:D
<tywkeene>
^
<clever>
line 37, it will use dd to wipe the old partition table and boot sector
<tywkeene>
i always liked that phrase 'nuke from orbit'
<tywkeene>
i recall seeing something similar but with an ubuntu image
<dash>
tywkeene: ok. optimization problem is basically like you have some inputs (say x, y coordinates) and an output you want to maximize/minimize (say, height)
<dash>
tywkeene: the idea is figuring out what kind of algorithm you use to search the space to find the optimal inputs
<dash>
tywkeene: so in the case i described it's like trying to figure out how to walk to the highest point in an area while only looking at the ground right in front of/next to you
<tywkeene>
so really you just have to justdoit (tm)
<tywkeene>
right
<dash>
the simplest idea is that you just start walking uphill and stop when you get to a spot where everything around you is lower (i.e. the top of a hill)
<dash>
but this fails in the case where there might be a bigger hill on the other side of the valley!
<clever>
dont recreate the graph in #1445 above
<tywkeene>
i think i get what you mean anyways
<dash>
the point of this analogy is that sometimes you have to get to a place that's less effective/efficient for a while to get to a higher level of productivity later
<dash>
therefore switch to emacs today, qed
* dash
should not still be awake
<tywkeene>
lmao
<tywkeene>
yes, go to sleep
<tywkeene>
the church of emacs gathers in the morning
Bradyn2000_ has quit [(Ping timeout: 240 seconds)]
hellrazor has quit [(Ping timeout: 268 seconds)]
vandenoever has joined #nixos
vandenoever has quit [(Changing host)]
vandenoever has joined #nixos
nil has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vHn4N
<NixOS_GitHub>
nixpkgs/master fa8ee5d Frederik Rietdijk: Python: update script for packages...
<NixOS_GitHub>
nixpkgs/master dcc6a69 Frederik Rietdijk: Merge pull request #25583 from FRidh/updatescript...
NixOS_GitHub has left #nixos []
nil has joined #nixos
<simpson>
Ooh, exciting.
<jluttine>
i have a nix expression for a (python) application (not module). the problem is that it also adds its runtime dependencies to path (and python path) when i install the application. i don't like this. i would only like to have that particular application executable in path, none of its dependencies. any ideas how i could easily achieve this? with some kind of wrapping?
<danbst>
jluttine: perhaps split binaries to separate output and install `package.bin`?
<danbst>
jluttine: for normal derivations this should be as easy as `outputs = [ "out" "bin" ];`, not sure for python derivations
<simpson>
jluttine: A wrapper sounds about right. Nix already generates a wrapper for Python entrypoints, though, I think?
<jluttine>
simpson: i guess it does but it seems to add all the dependencies into my environment. i don't like that and i think that is against the "application" idea (vs "module" idea)
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
<simpson>
jluttine: Well, I guess you can patch the package to not do that.
<Filystyn>
guys last nix update broke my kde 5 ;-)
vandenoever has quit [(Ping timeout: 246 seconds)]
katyucha has joined #nixos
justanotheruser has quit [(Ping timeout: 240 seconds)]
katyucha has quit [(Ping timeout: 240 seconds)]
Filystyn has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vHnBA
fifo23 has quit [(Remote host closed the connection)]
fifo23 has joined #nixos
thc202 has joined #nixos
<nixy>
¯\_(ツ)_/¯
hiberno has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peti pushed 9 new commits to master: https://git.io/vHn02
<NixOS_GitHub>
nixpkgs/master bf09054 Peter Simons: liquid-fixpoint: patchShebangs is no longer required in version 0.6.0.1
<NixOS_GitHub>
nixpkgs/master 2c2965c Peter Simons: liquid-fixpoint: disable shared executables to fix the test suite...
<NixOS_GitHub>
nixpkgs/master 2670838 Peter Simons: hackage2nix: clean up required extra-versions for aeson
NixOS_GitHub has left #nixos []
fifo23 has quit [(Ping timeout: 272 seconds)]
justanotheruser has joined #nixos
Itkovian has joined #nixos
katyucha has quit [(Ping timeout: 240 seconds)]
tywkeene has quit [(Quit: leaving)]
takle has joined #nixos
fifo23 has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
fifo23 has quit [(Remote host closed the connection)]
fifo23 has joined #nixos
takle has joined #nixos
fifo23 has quit [(Ping timeout: 245 seconds)]
<nixy>
Anyone have a guide on statically configuring my IP? I am following the NixOS manual, but I am a little lost on it
<nixy>
My interface is named eth0, but when I do an ip a I get the whole enp0s4 thang
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vHnEu
<NixOS_GitHub>
nixpkgs/master 0989178 Frederik Rietdijk: python36.pkgs.networkx: disable tests
NixOS_GitHub has left #nixos []
andymandias has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 3 new commits to staging: https://git.io/vHnE6
<NixOS_GitHub>
nixpkgs/staging f71b83a Vladimír Čunát: libdrm: 2.4.79 -> 2.4.81
<NixOS_GitHub>
nixpkgs/staging b4bb396 Vladimír Čunát: libdrm: support valgrind suppression via a lighter version...
<NixOS_GitHub>
nixpkgs/staging 76a020e Vladimír Čunát: Merge branch 'master' into staging
NixOS_GitHub has left #nixos []
pbogdan has joined #nixos
andymandias has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ekleog opened pull request #26147: dkimproxy: init at 1.4.1 (master...dkimproxy) https://git.io/vHnEH
NixOS_GitHub has left #nixos []
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Itkovian has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 3 new commits to master: https://git.io/vHnuL
<NixOS_GitHub>
nixpkgs/master 66deb18 Frederik Rietdijk: python.pkgs.pytestdjango: remove duplicate expression...
<NixOS_GitHub>
nixpkgs/master dce1c26 Frederik Rietdijk: Python: fix update script...
<NixOS_GitHub>
nixpkgs/master 959842a Frederik Rietdijk: Python: add pname attributes to libraries...
NixOS_GitHub has left #nixos []
mpcsh has quit [(Quit: THE NUMERICONS! THEY'RE ATTACKING!)]
mpcsh has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] pSub pushed 1 new commit to master: https://git.io/vHnuM
<NixOS_GitHub>
nixpkgs/master f717118 Pascal Wittmann: fsql: init at 0.1.0
NixOS_GitHub has left #nixos []
Wizek_ has quit [(Ping timeout: 240 seconds)]
Itkovian has joined #nixos
<srhb>
Is this behaviour normal? I have a haskell package with some symlinked modules. If I nix-shell and cabal build, everything is fine, but if I nix-build it, it fails to load the interfaces for the symlinked modules. I could swear I've done this before with no issue.
Filystyn has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] pSub pushed 1 new commit to master: https://git.io/vHnzU
<symphorien>
then maybe add popplet_utils to services.printing.drivers
<symphorien>
*poppler_utils
<romildo>
symphorien, I will try that.
acarrico has joined #nixos
bennofs has quit [(Ping timeout: 240 seconds)]
dejanr has joined #nixos
pie__ has quit [(Read error: Connection reset by peer)]
pie_ has joined #nixos
Bradyn2000 has joined #nixos
bennofs has joined #nixos
Raimondii has joined #nixos
Raimondi has quit [(Ping timeout: 268 seconds)]
Raimondii is now known as Raimondi
bennofs has quit [(Ping timeout: 240 seconds)]
<jluttine>
i managed to get Conda working on nixos so i wrote a blog post about my solution and thought i'd share here because it might be relevant to some people here: http://www.jaakkoluttinen.fi/blog/conda-on-nixos/
jgertm has joined #nixos
bennofs has joined #nixos
alx741 has quit [(Quit: alx741)]
vandenoever has joined #nixos
vandenoever has quit [(Changing host)]
vandenoever has joined #nixos
romildo has quit [(Quit: Leaving)]
<FRidh>
jluttine: nice work!
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ma27 opened pull request #26156: WIP: allow bgSupport for windowManagers as well (master...25978-refactor-bg-image-module) https://git.io/vHn6t
NixOS_GitHub has left #nixos []
<FRidh>
jluttine: as to your last line. I think there's definitely interest from others to being able to use Conda.
<FRidh>
jluttine: did you try whether Qt5 applications work?
<manveru>
yay, finally found a way to build my image without root :)
<BlessJah>
module I'm writing requires set of third-party config (rules) that may be updated few times a day, which is why I want it to be updated via cron
<BlessJah>
where is best place to store them (on NixOS fs layout)
<LnL>
I think most things on nixos put their data in /var/lib
<ris>
is anyone else able to do a successful local build of python35Packages.django_hijack on current master?
dejanr has quit [(Ping timeout: 240 seconds)]
<ris>
suspect it's broken
<BlessJah>
django.core.exceptions.ImproperlyConfigured: Requested setting AUTH_USER_MODEL, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
hotfuzz_ has joined #nixos
<BlessJah>
is this expected result?
Bradyn2000 has quit [(Ping timeout: 240 seconds)]
Drako365 has joined #nixos
phinxy has joined #nixos
<Drako365>
does nixOS use udev?
hotfuzz has quit [(Ping timeout: 240 seconds)]
<Drako365>
I'm trying to set up bcache and it's not showing up in /dev
<sphalerite>
Actually not nearly as minor as I thought at first, I believe I can escalate to root with the bug D:
<sphalerite>
Drako365: it does
<sphalerite>
systemd's udev
pareidolia has joined #nixos
Filystyn has joined #nixos
<sphalerite>
Drako365: ask your question in the channel, you're more likely to get help that way and it could be useful for others (public logs)
<ris>
BlessJah: yes thats what im getting too thanks
<ris>
think im going to have to disable the checks - on py27 the only reason it "passes" the checks is it subtly skips them all
<sphalerite>
Drako365: URL for logs is in the topic. Please stop PMing
<ris>
on py3 it tries to run them & fails
<FRidh>
then the checkPhase should be fixed
<FRidh>
regarding django_hijack. If I recall correctly you need to override it to use an older Django version.
Bradyn2000 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] nh2 opened pull request #26157: tinc: Mention in docs that the host name may not be used verbatim. (master...tinc-docs-hostname) https://git.io/vHnP8
NixOS_GitHub has left #nixos []
acarrico has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vHnPV
<NixOS_GitHub>
nixpkgs/master 2ff488c Frederik Rietdijk: python.pkgs.django_hijack...
NixOS_GitHub has left #nixos []
<sphalerite>
do build substituters run as build users in a multi-user setup?
acarrico has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vHnPF
<NixOS_GitHub>
nixpkgs/master 19c298e Niklas Hambüchen: tinc: Mention in docs that the host name may not be used verbatim. (#26157)...
NixOS_GitHub has left #nixos []
rnhmjoj has joined #nixos
_0bitcount has joined #nixos
ambro718 has joined #nixos
equalunique_ has joined #nixos
hellrazor has joined #nixos
<bennofs>
sphalerite: they should. network access as root sounds like a bad idea
katyucha has quit [(Ping timeout: 260 seconds)]
<equalunique_>
Has anyone left their NixOS machine running for awhile, come back to it, and saw X is no longer running? I experience this when I leave two of my NixOS systems. It affects my ThinkPad E465 and my SuperMicro SYS-7038A-i. It never happens while I'm using these, only when I've left them alone for a while. I have not seen this behavior on my ThinkPad T420 running NixOS.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] montag451 opened pull request #26158: simpleproxy: init at 3.5 (master...simpleproxy) https://git.io/vHnXr
NixOS_GitHub has left #nixos []
rcschm has quit [(Remote host closed the connection)]
_c_ has left #nixos ["-"]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vHnXj
<NixOS_GitHub>
nixpkgs/master 4760869 Frederik Rietdijk: python.pkgs.urllib3: disable tests...
NixOS_GitHub has left #nixos []
Drako365 has quit [(Remote host closed the connection)]
Drako365 has joined #nixos
<Drako365>
how would I add udev rules to the installation enviroment?
<equalunique_>
Drako365: I have udev rules in my configuration.nix to allow my FIFO tokens to be accessed by chrome
<Drako365>
I need them on the live enviroment though, because I'm setting my system up with bcache
<equalunique_>
Drako365: I guess I'm not sure what you mean by live environment. Like, do you not want to reboot the machine in order to have the udev rules take effect?
<rnhmjoj>
Drako365: you can generate an iso with a custom configuration
<Drako365>
Can I do that from the installation ISO?
<equalunique_>
Drako365: Also good luck with your bcache testing! :)
<equalunique_>
Drako365: In theory you could create a custom ISO. There must be a way to do it on a live system...
iyzsong has quit [(Ping timeout: 246 seconds)]
<Drako365>
equalunique_: thanks
<jluttine>
FRidh: i think i just used matplotlib with pyqt5, but didn't try any other qt5 applications. any suggestions what application to try?
<FRidh>
jluttine: maybe spyder. I recall there used to be issues with conda that they provide qt5 libraries that are of a different version than the system ones.
DutchWolfie has quit [(Remote host closed the connection)]
<Drako365>
Actually, the bcache-tools package seems to be on the graphical install, so it should work more or less without issue.
<Drako365>
I saw on an ubuntu questions thread that there was a way of manually registering devices with bcache, but the paths they used don't exist on the installation enviroment
FRidh has quit [(Quit: Konversation terminated!)]
acarrico has quit [(Ping timeout: 268 seconds)]
sellout-1 has joined #nixos
<equalunique_>
Darko365: I have to go but would definitely be interested in learning more how bcache went for you. Later m8
sellout- has quit [(Ping timeout: 260 seconds)]
k2s has joined #nixos
orivej_ has joined #nixos
orivej has quit [(Ping timeout: 246 seconds)]
oever has joined #nixos
marsel has quit [(Ping timeout: 272 seconds)]
<rnhmjoj>
i have a FHSUserEnv to run games and binary only software. glib 2.25 broke some programs: is there a way to override it inside the environment?
alx741 has joined #nixos
alx741 has quit [(Client Quit)]
vandenoever has quit [(Ping timeout: 255 seconds)]
alx741 has joined #nixos
alx741 has quit [(Client Quit)]
<rnhmjoj>
adding glibc-2.24 to multiPkgs doesn't work. glib-2.25 is still symlinked to /usr/lib/libc.so
vandenoever has quit [(Ping timeout: 260 seconds)]
hellrazor has quit [(Ping timeout: 240 seconds)]
hotfuzz_ has quit [(Read error: Connection reset by peer)]
hotfuzz_ has joined #nixos
<BlessJah>
is it possible to easily check why a derivation was built? I was surprised to see aws-sdk-c++ built during build-vm with absolute minimal config
<pikajude>
aws-sdk-c++ is one of nix's build inputs, lol
<pikajude>
that'll be why
<BlessJah>
can I trace such dependency (without grep wizardry)?
<pikajude>
hmmm
<pikajude>
there's a nix-store you can run to get a .dot file of the dependency graph
<pikajude>
i don't remember what it's called
<pikajude>
i think it's just nix-store -q --graph {path}?
<pikajude>
or you can use nix-store -q --tree to just get a textual representation
<pikajude>
i prefer the graphical one but it does require graphviz
hotfuzz has joined #nixos
hotfuzz_ has quit [(Ping timeout: 260 seconds)]
<BlessJah>
I prefer text, and answer like "X because Y asked, Y because Z asked and you enabled Z in config.nix" or "because user W installed it"
<pikajude>
oh ok
<pikajude>
nix-store -q --tree if you pass it a path will show a textual tree representation of the dependency chain
<pikajude>
no generic way to figure out if things have been enabled in config.nix
<pikajude>
because there's no generic way to enable things
<BlessJah>
pikajude: nix-store --query --referrers is the answer
<pikajude>
hmm
<pikajude>
ok
marsel has joined #nixos
mudri has quit [(Ping timeout: 260 seconds)]
drakonis has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] proteansec opened pull request #26162: libvmi: init at 3e4114 (master...pkgs/libvmi) https://git.io/vHnSO
NixOS_GitHub has left #nixos []
marsel has quit [(Ping timeout: 268 seconds)]
<Drako365>
Alright, unless someone has a truly preposterous idea, I'm concluding that bcache simply doesn't work from the nixOS instalelr
<Drako365>
installer*
Bradyn2000 has quit [(Ping timeout: 240 seconds)]
<Filystyn>
guys with nixshell you can use older glibc versions?
oever has joined #nixos
<rnhmjoj>
Filystyn: i was asking the same question earlier
<rnhmjoj>
i couldn't find a way so i'm rebuild the system with 2.24 but this will take a while
<simpson>
evangeline: ISTR that there's something specific for hypervisors but don't know the details. Grep for other Xen users in nixpkgs, I guess?
sellout-1 has quit [(Quit: Leaving.)]
<evangeline>
btw: why is .git directory removed when pulling the source from github with fetchFromGitHub ?
drakonis has quit [(Remote host closed the connection)]
drakonis has joined #nixos
oever has quit [(Ping timeout: 240 seconds)]
<mdash>
It's an exported zipfile rather than a git checkout
ris has quit [(Read error: No route to host)]
endformationage has joined #nixos
ris has joined #nixos
bennofs1 has joined #nixos
<katyucha>
Hi. The Travis test failed on my pull request : It say : py.test: error: unrecognized arguments: -n ... but I don't modify python or thing like that .. is it normal ? (PR : 26130 about vault)
bennofs has quit [(Ping timeout: 240 seconds)]
<rnhmjoj>
travis is not much reliable, which PR?
<rnhmjoj>
ah, 26130, sorry
sellout- has joined #nixos
mellowmaroon has joined #nixos
<Infinisil>
God, my university wants us to do a project with Java and some libraries which weren't updated in a decade, sparse documentation. And the other members of my team write the ugliest imperative non-understandable code ever, it's horrible
<mellowmaroon>
Infinisil: I had a class like that too... :(
<Infinisil>
So many if's, for loops, it's the worst
<bennofs1>
Infinisil: do they require you to use BlueJ as IDE as well?
<mellowmaroon>
bennofs1: Never heard of BlueJ, in high school I had to use JGrasp though
<Infinisil>
Eclipse is recommended
<bennofs1>
that's what they use for teaching at my university, although luckily we can use whatever we want (bluej doesn't even have a "compile all" button, you have to compile each class manually by selecting it and clicking compile ... lol)
<mellowmaroon>
the worst part of my university assignment like that, was that the prof just extended later classes from earlier ones for little reason
<mellowmaroon>
so assignment14 extends assignment13, which extends 12, etc... it was very annoying to debug
<Infinisil>
They actually make us use a whole Ubuntu OS in a VM because they can't get the environment to work any other way
<bennofs1>
wow
<mellowmaroon>
That would've been a better approach for us, honestly. It was a nightmare getting things to work right
cpennington has joined #nixos
<mellowmaroon>
I use Linux, and my prof's code distribution was Windows-based, so I had to spend an extra weekend messing with junk
<mellowmaroon>
That is, there were dll's called through JNI and some other weird things
<katyucha>
mellowmaroon: in a lot of work ... windows is the standard workstation ... it's really ugly
<drakonis>
when's deterministic vms
hellrazor has joined #nixos
mellowmaroon has quit [(Ping timeout: 240 seconds)]
<Infinisil>
I spent about 2 hours today looking at the code my collegues wrote (they started with it), and I still don't get what's supposed to do what
<Hoolootwo>
join #esoteric if you like that feeling :P
marsel has joined #nixos
drakonis has quit [(Read error: Connection reset by peer)]
tonyt has left #nixos []
<Infinisil>
yet it's only about 1000 lines
<Infinisil>
Sometimes I fear I'll have to deal with an imperative code base when I finally start working
<Infinisil>
Nightmares
DutchWolfie has joined #nixos
<simpson>
Are you normally in Prolog? Datalog? Kanren?
<simpson>
I've always dreamed of doing logic programming for non-small stuff but can't imagine how it must be.
georges-duperon has joined #nixos
siddharthist has joined #nixos
oever has joined #nixos
<mdash>
simpson: doesn't Make count? ;)
<Infinisil>
I have a lot of experience with functional swift, been coding pretty much all the time when I used macOS
<Infinisil>
I'd love to use more Haskell and Idris, which I both have learned the basics of
<Infinisil>
Also Rust would be very much appreciated
oever is now known as vandenoever
kampfschlaefer has quit [(Ping timeout: 258 seconds)]
ambro718 has joined #nixos
rcschm has quit [(Remote host closed the connection)]
georges-duperon has quit [(Ping timeout: 246 seconds)]
<BlessJah>
is there easy way to generate yaml from nix?
<simpson>
Infinisil: Well, isn't Haskell "the best imperative language"?
<simpson>
Infinisil: I'm just imagining that maybe the problem is your company's style guide and not the language of choice, if 1000 lines is a problem.
<Rotaerk>
Infinisil, enjoy haskell all you want, it's a nice language, and great to work with
<Rotaerk>
but as a programmer you need to accept that existing code-bases aren't always going to be written in the best language, or in the best style within the language of choice
<Infinisil>
True
<Rotaerk>
and just do your best to infer intent
<Rotaerk>
learning to read others' code is a skill in and of itself
<Rotaerk>
it's usually badly written and hard to follow; that's the norm
<Infinisil>
You see, this project, it uses multiple libraries nobody has a clue about, is written in Java 6 (!), and the code is just barely working, just enough so that the assignment can be fulfilled. I really hope in an actual job the circumstances are not as bad
Mateon3 has joined #nixos
<Rotaerk>
don't get your hopes up too high :P every codebase I've encountered where I work is cringe-worthy to varying degrees
Mateon1 has quit [(Ping timeout: 240 seconds)]
Mateon3 is now known as Mateon1
<simpson>
Infinisil: A dirty secret of the industry is that there is no such thing as non-bad code.
Infinisil has quit [(Ping timeout: 260 seconds)]
Infinisil has joined #nixos
Rotaerk has quit [(Read error: Connection reset by peer)]
Rotaerk has joined #nixos
joelpet has quit [(Remote host closed the connection)]
kampfschlaefer has joined #nixos
sellout- has quit [(Quit: Leaving.)]
DutchWolfie has quit [(Remote host closed the connection)]
mizu_no_oto has joined #nixos
simukis has joined #nixos
joelpet has joined #nixos
joelpet has quit [(Changing host)]
joelpet has joined #nixos
pbogdan`` has quit [(Ping timeout: 260 seconds)]
Infinisil has quit [(Quit: leaving)]
arian_ has joined #nixos
drakonis has joined #nixos
<arian_>
how am I supposed to read the output of exportReferencesGraph ?
<katyucha>
rnhmjoj: I go backward in my branch to put the last version which compiling successfully (to test, to be sure it's my modification which make travis fail)
<arian_>
what do the numbers mean?
seantparsons has joined #nixos
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
seanparsons has quit [(Ping timeout: 255 seconds)]
<NixOS_GitHub>
[nixpkgs] abbradar opened pull request #26165: grub installer: remove old kernels before copying new ones. (master...grub-clean) https://git.io/vHnbB
<LnL>
and when the nixos channel updates you can remove it again
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 1 new commit to master: https://git.io/vHnNI
<NixOS_GitHub>
nixpkgs/master a50315d Joachim Fasting: tinycc: 0.9.27pre-20170225 -> 0.9.27pre-20170527...
NixOS_GitHub has left #nixos []
<gchristensen>
clever: ping?
krills has joined #nixos
arian_ has joined #nixos
hellrazor has quit [(Ping timeout: 240 seconds)]
arian_ has quit [(Ping timeout: 240 seconds)]
mellowmaroon has joined #nixos
mellowmaroon has quit [(Client Quit)]
mellowmaroon has joined #nixos
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
<mellowmaroon>
Is there a package/config option to get the Rust source code?
<mellowmaroon>
It looks like the racer package defines RUST_SRC_PATH, but Spacemacs' racer doesn't see it
krills- has joined #nixos
<bennofs1>
mellowmaroon: nix-build '<nixpkgs>' -A rustc.src
<bennofs1>
mellowmaroon: should give a result link that has rustc's source code
<mellowmaroon>
bennofs1: awesome! thanks :)
<mellowmaroon>
so when I run 'rustc --print sysroot', it gives a different rustc dir
<mellowmaroon>
is that why Spacemacs might not be seeing the right one? that one you had showed a different rustc dir
krills has quit [(Ping timeout: 240 seconds)]
<bennofs1>
mellowmaroon: I don't think sysroot is supposed to be the src dir
<bennofs1>
mellowmaroon: afaik, racer requires you to set RUST_SRC_PATH manually
ryantrinkle has quit [(Ping timeout: 255 seconds)]
<mellowmaroon>
bennofs1: ah ok
Infinisil has joined #nixos
simukis has quit [(Ping timeout: 245 seconds)]
<bennofs1>
mellowmaroon: (for the record, even on archlinux with rustc installed through rustup, the sysroot does not seem to contain any sources)
takle has quit [(Remote host closed the connection)]
<mellowmaroon>
bennofs1: Interesting. I'm actually very new to Rust, if you couldn't tell haha
takle has joined #nixos
<Infinisil>
I just set up rust too and had to download the sources separately as well
<c74d>
hm, I don't install the sources separately; I'll see what I do
<Infinisil>
How are you gonna get them otherwise?
takle has quit [(Remote host closed the connection)]
takle has joined #nixos
<mellowmaroon>
I didn't use rustup, I just installed the packages through Nix
<bennofs1>
on non nixos, you can do rustup component add rust-src
<c74d>
oh, Nix wraps Racer to set RUST_SRC_PATH="/nix/store/zlsjkviczwqj8wg6b081pxi4kjv9r1bc-rust-021bd29/src"
<Infinisil>
Rustup is available on nixos?
<bennofs1>
Infinisil: that's why I said non-nixos :)
<mellowmaroon>
Infinisil: Don't think so haha
<Infinisil>
Ahh
<Infinisil>
Misread
peacememories has joined #nixos
lukec1 has quit [(Ping timeout: 246 seconds)]
<Infinisil>
I still don't really get the difference between the mozilla overlay and the packages in nixpkgs
<mellowmaroon>
Infinisil: I got the impression the Mozilla one was for beta/nightlys
<mellowmaroon>
Infinisil: But, does NixOS have beta/nightly for rustc?
<drakonis>
but does nixos have a large overlay database
<drakonis>
this is important
<c74d>
Infinisil: the nixpkgs packages are built on Hydra and update only as nixpkgs packagers update them; the Mozilla packages are built by Mozilla and update as frequently as the Rust project makes releases (which is much more frequently than nixpkgs can keep up with)
<c74d>
or at least, one can update them that frequently, in theory, but it would be a lot of rebuilding and produce a lot of garbage in the store
<c74d>
or maybe not, I may be thinking of Sonarpulse_'s packages
<c74d>
whereas the Mozilla packages either can be or must be pinned to a given date
<Infinisil>
Well it would just update at maximum once per nixos-rebuild --upgrade
<c74d>
ah yes, I forget that not everyone has that run every night
Guest88144 has quit [(Quit: Lost terminal)]
<c74d>
bennofs1: why do you say that Racer needs RUST_SRC_PATH set manually? it seems to me that that variable is set with wrapProgram
<Infinisil>
Well, daily is the default if you have autoUpgrade.enable = true
<Infinisil>
Which I have, so I guess it would kinda clutter the store
<bennofs1>
c74d: ah upstream requires it, if it is wrapped then it is not required on NixOS
<mellowmaroon>
bennofs1: I had to set that manually for Spacemacs, at least
<Infinisil>
mellowmaroon: The very same for me, I just did that like yesterday
<Infinisil>
I downloaded the rust source manually, probably should use fetchFromGitHub in my configuration.nix though
<Infinisil>
And then something like environment.variables.RUST_SRC_PATH = rustsrc.out
Nobabs27 has quit [(Quit: Leaving)]
<c74d>
mellowmaroon: Spacemacs may (as the vim-racer plugin does) require the variable to be set because it thinks it needs to be set for Racer, when Nix's wrapper Racer doesn't care and will ignore the environment variable
<mellowmaroon>
c74d: yeah, that makes sense
<c74d>
mellowmaroon, Infinisil: try setting RUST_SRC_PATH to some arbitrary directory (I use `/run`)
<c74d>
s/wrapper/wrapped/
<Infinisil>
Maybe later, doing something else now
lukec1 has joined #nixos
pbogdan has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
Filystyn has quit [(Quit: Konversation terminated!)]
<mellowmaroon>
c74d: Yep, setting 'environment.variables.RUST_SRC_PATH = "/run";' works as well
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
jgertm has joined #nixos
rhon has quit [(Read error: Connection reset by peer)]
<Infinisil>
I'm kinda proud of myself, I just wrote an override expression without looking it up and it compiling on the first try!
marsel has quit [(Ping timeout: 246 seconds)]
rcschm has joined #nixos
hiratara has quit [(Ping timeout: 246 seconds)]
<mellowmaroon>
Infinisil: nicely done :)
<bennofs1>
i probably spend too much time trying to automate writing expressions so that I never wrote enough expressions to manage to do it without looking up :D
hiratara has joined #nixos
krills- has quit [(Ping timeout: 268 seconds)]
pie_ has quit [(Changing host)]
pie_ has joined #nixos
<Infinisil>
I feel like configuring everything like I want it is still going to take ages
<mellowmaroon>
I like the NixOS approach though, transfers very well
<Infinisil>
What do you mean by transfers well^
<Infinisil>
?*
<mellowmaroon>
Sorry, my laptop and desktop have similar configs
<mellowmaroon>
So I find it much easier to reuse things than, say, Arch Linux
<Infinisil>
Ah yes
<Infinisil>
Right now I have nixos on my laptop, just recently got nixos properly running on a server, and i plan on installing it on my current windows machine. Gonna share as much nix files as possible :D
<dash>
Infinisil: what's your plan for handling invalid syntax?
<Infinisil>
Is closer to AST editing than traditional editors, I believe AST editing might be very powerful
<dash>
Infinisil: or are you doing structure editing operations only?
<mellowmaroon>
I think IDE's like IntelliJ either try to figure something out with syntax errors or just choke
mizu_no_oto has quit [(Ping timeout: 246 seconds)]
<ben>
oh god it's actually too big in another gtk app
<mellowmaroon>
ben: are you using Gnome/KDE?
<ben>
no
<Infinisil>
dash: There is a concept in Idris (and others I'm sure) which is holes: Parts of the program yet unspecified, but the compiler accepts it as this. An example: add = foldl ?plus 0 list, where plus is not declared yet. The editor could just never even allow invalid syntax by inserting holes when necessary
<ben>
p much just openbox
<mellowmaroon>
Infinisil: I think Haskell can do something like that as well
<Infinisil>
mellowmaroon: Ah, makes sense, Idris draws a lot from Haskell and is even written in it
<mellowmaroon>
ben: no idea. If you're using NixOS, I'd look up some fontconfig options
<dash>
Infinisil: yeah, the language i'm a developer on has hole syntax
<ben>
yeah i am, ive been fiddling with fonts.fontconfig.dpi but not restarting my session to no avail
<dash>
Infinisil: Never thought of using it that way though.
<Infinisil>
dash: Idris is a very good fit for this, since there is almost no distinction between types and values, this means you can use holes in a type as well
<mellowmaroon>
dash: Looks cool, almost feels like a functional Python
<simpson>
dash: I have! My first AST editor thoughts were around this sort of thing, using holes to do type-directed abstract interpretation.
sophiag has left #nixos ["ERC (IRC client for Emacs 24.5.2)"]
<simpson>
Infinisil: In Monte, both guards (value types) and auditors (structural types) are plain objects, following a plain object protocol.
mizu_no_oto has joined #nixos
<Infinisil>
Uniformity is always nice
<Infinisil>
What are you guys thoughts about AST editors? Things you have thought of, problems, projects that implement it, etc.?
<simpson>
The biggest problems IMO revolve around *navigation* in the editor and *presentation* of unfolded AST fragments.
<dash>
Infinisil: The main thing I think of is stuff like Scratch
<Infinisil>
simpson: That's one of my main thinking points too. I believe for both of these things there should be a protocol specification for interacting with the backend. For navigation I'd choose a vim-like default implementaion, while presentation maybe would be best as text initially, but with visual indication of AST nodes
<dash>
Infinisil: what existing structure editors have you tried?
<Infinisil>
None yet, but I have 4 I wanna try out
georges-duperon has quit [(Ping timeout: 246 seconds)]
krills- has left #nixos ["Quit"]
<dash>
Infinisil: paredit is the main one i know of that people use
<Infinisil>
dash: Yes I'll try that one out, seems to be getting a lot of praise
<mellowmaroon>
I personally prefer smartparens, but I didn't really try paredit
<dash>
ah i knew there was a new one
<mellowmaroon>
I think it can do a bit more than paredit. But for Lisp, they're both solid
<Infinisil>
I had this discussion once before already, I think auto completion is a crucial part of fast development
JagaJaga has quit [(Ping timeout: 240 seconds)]
<mellowmaroon>
Infinisil: I certainly find it necessary
<Infinisil>
And by that I mean actually smart auto completion, which you can use to discover options, check types, and more