<MP2E>
yes, I've updated it for the past few months. Works perfectly. It'll complain at the top saying "It looks like your Discord installation is corrupt" but that is an upstream bug that can be safely ignored
<iqubic>
Cool. Thanks for that info
<MP2E>
Not really sure how to workaround it other than pressing CTRL+Shift+I, isolating the element, and deleting it, but all that does is make the message go away
rotsor3 has quit [Ping timeout: 260 seconds]
<iqubic>
By upstream bug do you mean a bug in the Discord code? And not a bug in the way NixOS compiles it?
nithor has joined #nixos
<MP2E>
upstream discord binary specifically, yeah. There isn't source code available, so we use patchelf and a wrapper
mbrgm_ has joined #nixos
mbrgm has quit [Ping timeout: 264 seconds]
mbrgm_ is now known as mbrgm
<MP2E>
but even on ubuntu which it is built for, it has this message for whatever reason
<MP2E>
bleh whatever, there's worse bugs. Like the fact that it uses 2 standard C++ libraries
<iqubic>
How is that a bug?
<MP2E>
well that's not a bug but it certainly doesn't seem desired
<iqubic>
How does one manually update their system?
<iqubic>
How do you write C++ code without C++ libraries?
<MP2E>
they just need to be consistent, not do without it
<MP2E>
why use libc++ and libstdc++
<MP2E>
just pick one
<iqubic>
I can't figure out the command for updating my NixOS system.
dieggsy has joined #nixos
jrolfs_ has quit [Ping timeout: 252 seconds]
<iqubic>
nixos-rebuild switch --upgrade
nithor has quit [Ping timeout: 252 seconds]
iqubic has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
iqubic has joined #nixos
iqubic has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
iqubic has joined #nixos
<iqubic>
clearly adding discord to my systemPackages list in configuration.nix and rebuilding didn't actually install discord.
<iqubic>
How do I get this to work now?
<clever>
iqubic: how did you check to see if discord was installed?
jb55 has joined #nixos
<iqubic>
I tried to run it from my WM
<clever>
iqubic: the binary is called Discord
<clever>
they had to be special :P
<iqubic>
Oh, that's a thing.
<iqubic>
Why did they have to throw me off with a random capital letter?
pkill9 has quit [Quit: WeeChat 2.0]
<petersjt014[m]>
Is there anything obvious that would make dd run slow on mingw64? I'm writing an image and it's capping at around 170kb/s
<iqubic>
How do I get rid of the message that my installation is corrupt?
<clever>
petersjt014[m]: did you set the block size?
<iqubic>
How do I remove the message in Discord that my installation is corrupt?
<clever>
petersjt014[m]: the default of 1 is incredibly hard on the cpu, try bs=512
<clever>
iqubic: 2018-01-02 22:23:23 < MP2E> Not really sure how to workaround it other than pressing CTRL+Shift+I, isolating the element, and deleting it, but all that does is make the message go away
<MP2E>
ctrl+shift+I, then use your mouse to click through the hierarchy of elements in the dev console, and note which highlights *just* the error message, then right click and select 'delete element'
<samueldr>
not entirely sure it will work with the sd image, but it *should*, because it basically does what dd does
yegortimoshenko has left #nixos [#nixos]
<iqubic>
Not sure how to find the hierarchy of elements.
Supersonic112 has quit [Disconnected by services]
<MP2E>
it's the code on the right. If you click the arrows it shows the body of the element
<iqubic>
Also, the Linux Client is only a year or two old IIRC
<iqubic>
I think it's a single year.
<MP2E>
yeah and it's only regressed. In the beginning it was pretty good, now you need pulseaudio or any voice chat pins your CPU to 100% and most likely causes crazy ping times
<MP2E>
then you've got the stupid 2 C++ standard library thing
<MP2E>
and then the error message
pjan_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<MP2E>
i just kinda throw my hands up at this point
<iqubic>
Yeah, I would too, except all my coding buddies use discord as their primary way of communicating.
otherjrolfs has joined #nixos
jrolfs_ has joined #nixos
<iqubic>
I can't seem to remove this error message, because I can't find the right piece of html to remove.
<clever>
iqubic: you just click on it with the inspector tool
<MP2E>
nice, didn't know that
<iqubic>
Where is that?
<clever>
iqubic: did you hit ctrl+shift+i ?
<iqubic>
I did.
<clever>
iqubic: and there is a button in the top left, that says select an element
<kini>
why are the notification emails from hydra.nixos.org so delayed? I just got a build failure notification from a build that was run two and a half weeks ago (with four successful builds after it on the same job)
ebzzry has quit [Ping timeout: 260 seconds]
ee1943 has quit [Remote host closed the connection]
ee1943 has quit [Remote host closed the connection]
ee1943 has joined #nixos
asuryawanshi has quit [Ping timeout: 264 seconds]
sary has joined #nixos
otherjrolfs has quit [Ping timeout: 264 seconds]
jrolfs_ has quit [Ping timeout: 265 seconds]
ee1943 has quit [Remote host closed the connection]
ee1943 has joined #nixos
<gspia>
Hey! anybody knows if there has been lately any changes to how callCabal2nix should be used? It seems like suddenly it doesn't recognize the local path of a local package, thus giving NoHackageTarball found. (This worked about 2-3 weeks ago.)
verite has quit [Ping timeout: 240 seconds]
Itkovian has joined #nixos
otherjrolfs has joined #nixos
jrolfs_ has joined #nixos
asuryawanshi has joined #nixos
sary has quit [Ping timeout: 264 seconds]
jrolfs_ has quit [Ping timeout: 272 seconds]
otherjrolfs has quit [Ping timeout: 260 seconds]
sary has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
sary has quit [Ping timeout: 248 seconds]
guest787 has quit [Ping timeout: 260 seconds]
sary has joined #nixos
oahong has joined #nixos
jrolfs_ has joined #nixos
otherjrolfs has joined #nixos
sary has quit [Ping timeout: 248 seconds]
vincent_vdk has joined #nixos
Fannar has quit [Quit: Lost terminal]
jrolfs_ has quit [Ping timeout: 268 seconds]
otherjrolfs has quit [Ping timeout: 268 seconds]
Itkovian_ has joined #nixos
Itkovian_ has quit [Read error: Connection reset by peer]
<zugzug>
question - on macosx 10.11.3 `nix-env -i python3.6-tkinter-3.6.3` gives me the following error: `mv: missing destination file operand after '/nix/store/xzfgmgyr44arli7yax4nv6h1mpqllaf8-python3.6-tkinter-3.6.3/lib/python3.6/site-packages/'
<zugzug>
`
jrolfs_ has joined #nixos
zzamboni1 has joined #nixos
<zugzug>
I've googled far and wide and feel stuck... would appreciate pointers or to learn from anyone who has installed python3 w/ tkinter support successfully via `nix-env`
sigmundv has joined #nixos
nico202 has quit [Ping timeout: 256 seconds]
zzamboni has quit [Ping timeout: 250 seconds]
jrolfs_ has quit [Ping timeout: 264 seconds]
goibhniu has quit [Remote host closed the connection]
goibhniu has joined #nixos
willprice has quit [Remote host closed the connection]
willprice94 has quit [Remote host closed the connection]
pjan_ has joined #nixos
pjan_ has quit [Client Quit]
i-am-the-slime has quit [Ping timeout: 240 seconds]
sigmundv__ has joined #nixos
ssmike has joined #nixos
sigmundv has quit [Ping timeout: 252 seconds]
nico202 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peti pushed 7 new commits to master: https://git.io/vbjBq
<NixOS_GitHub>
nixpkgs/master e399346 John Ericson: Merge commit 'db475df127f8c82853181c46501c142ff020c3d8' into ericson2314-cross-base
<NixOS_GitHub>
nixpkgs/master a224dfc John Ericson: haskell infra: Fix cross as much as possible without changing hashes
<NixOS_GitHub>
nixpkgs/master a5cc983 John Ericson: ghc: Clean up, and add `passthru.targetPrefix`, in preparation for cross...
NixOS_GitHub has left #nixos [#nixos]
michaelpj_ has joined #nixos
michaelpj_ has quit [Remote host closed the connection]
jrolfs_ has joined #nixos
michaelpj_ has joined #nixos
jrolfs_ has quit [Ping timeout: 255 seconds]
nico202 has quit [Ping timeout: 240 seconds]
i-am-the-slime has joined #nixos
coot_ has quit [Quit: coot_]
jluttine has quit [Quit: WeeChat 1.9.1]
jluttine has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jtojnar opened pull request #33371: Flatpak (master...flatpak) https://git.io/vbjRz
NixOS_GitHub has left #nixos [#nixos]
iyzsong has joined #nixos
freusque has joined #nixos
i-am-the-slime has quit [Ping timeout: 248 seconds]
nico202 has joined #nixos
i-am-the-slime has joined #nixos
a_lebedev has quit [Quit: leaving]
<nico202>
can anybody help in setting up nginx+acme on multiple virtualhosts?
sigmundv__ has quit [Ping timeout: 248 seconds]
<nico202>
I can access the host under ssl but I get the wrong certificate: it's serving me the root cert instead of the virtual host one, having enableACME=true. With systemctl I can see that the certificate has already been obtained and it's under /var/lib/acme/sub.host.exp/{full,key,fullchain}.pem
simukis has joined #nixos
<nico202>
but the nginx.conf does not include the cert path
sigmundv__ has joined #nixos
nico202 has quit [Remote host closed the connection]
nico202 has joined #nixos
phdoerfler has joined #nixos
michaelpj has quit [Quit: ZNC 1.6.5 - http://znc.in]
michaelpj has joined #nixos
<jtojnar>
nico202: just `enableACME = true;` and `forceSSL = true;` works for me
m0rphism has joined #nixos
jrolfs_ has joined #nixos
otherjrolfs has joined #nixos
<nico202>
jtojnar: I've done it, does it work for every virtual host for you?
<jtojnar>
nico202: yes
<jtojnar>
what nixos channel are you using? there were some changes recently
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 opened pull request #33372: nixos/memcached: make unix sockets usuable (master...memcache) https://git.io/vbju5
NixOS_GitHub has left #nixos [#nixos]
<nico202>
jtojnar: unstable, 18.03pre124015
jrolfs_ has quit [Ping timeout: 240 seconds]
<jtojnar>
that should be fine
otherjrolfs has quit [Ping timeout: 248 seconds]
<jtojnar>
could you share the nginx part of the config?
<nico202>
jtojnar: oh, you were right. I had to "forceSSL" it
<nico202>
jtonjar: I wanted to be able to run it unencrypted too, but that's fine
<nico202>
jtonjar: thanks :)
__Sander__ has joined #nixos
<lassulus>
nico202: you can change forceSSL to addSSL to allow also unencrypted connections
dywedir has quit [Remote host closed the connection]
k0001 has joined #nixos
<jtojnar>
yes, I think one of addSSL, onlySSL, or forceSSL is required
<nico202>
lassulus: thanks, I'll annotate it. But wouldn't be logical to add "addSSL" automatically with "enableACME"? or is there a case in which one want to enable acme without enabling ssl?
<lassulus>
if you want to use the certificate just for other services, like email or jabber
<nico202>
lassulus: ok makes sense. Is there any documentation on it? I googled a bit but wasn't able to find it
<srhb>
i-am-the-slime: Adjust to the path of your nixpkgs channel.
<srhb>
(the stack.yml bit)
otherjrolfs has quit [Ping timeout: 268 seconds]
<srhb>
Note that I've never actually gotten stack to work well with NIx, but this at least should work.
asdfoiawe has joined #nixos
betaboon has joined #nixos
nico202 has quit [Ping timeout: 268 seconds]
i-am-the-slime has quit [Ping timeout: 272 seconds]
mystfox has quit [Quit: Connection closed for inactivity]
pukkamustard has joined #nixos
pukkamustard has quit [Client Quit]
pukkamustard has joined #nixos
pjan_ has joined #nixos
<schoppenhauer>
Hi. I've installed python2.7-setuptools-36.4.0, but when running "import setuptools" in python, it fails and can't find the package. So I cannot pip install a dependency I have, because it wants setuptools to be installed.
pukkamustard has quit [Client Quit]
ssmike1 has joined #nixos
asdfoiawe has quit [Ping timeout: 246 seconds]
ssmike has quit [Ping timeout: 255 seconds]
ssmike1 is now known as ssmike
<srhb>
schoppenhauer: This is not normally how you'd get dependencies for development.
<schoppenhauer>
srhb: aha?
knupfer has joined #nixos
<schoppenhauer>
srhb: how am I supposed to do it differently?
<LexLeoGryfon>
is there a guide to install NixOS in dualboot EFI with Win10 ?
<LexLeoGryfon>
or I should follow instructions from Arch wiki?
<schoppenhauer>
srhb: is there something like pip2nix too? because I don't really know where all the python libraries go, and the package I want is a python-package that can be installed via pip. it is fibonacci-heap-mod.
<Yaniel>
LexLeoGryfon just follow the UEFI instructions in the nix manual
<schoppenhauer>
srhb: the impure version with pip install in the shell hook does not work, and probably building a package is the better choice anyway.
<srhb>
schoppenhauer: There's pypi2nix
<schoppenhauer>
srhb: I thoutght pypi was a python interpreter
<schoppenhauer>
ok
<schoppenhauer>
that was pypy
<schoppenhauer>
apparently
<schoppenhauer>
(sorry, I am not used to python development)
<srhb>
schoppenhauer: Yeah, pypi is the Python Package Index
<srhb>
schoppenhauer: (What pip uses)
<srhb>
They almost have worse naming than the Nix ecosystem :-)
otherjrolfs has joined #nixos
funfun has joined #nixos
bbsl has joined #nixos
<bbsl>
does anyone have an example config for eduroam on nixos they could share please?
<adisbladis>
schoppenhauer: Generally you dont want to use pypi2nix for packages you want to upstream to nixpkgs
<schoppenhauer>
adisbladis: I just want it locally
<adisbladis>
schoppenhauer: Then its a great tool :)
<schoppenhauer>
adisbladis: I don't know enough about python to upstream anything
simukis has quit [Read error: Connection reset by peer]
simukis has joined #nixos
ThatDocsLady has joined #nixos
Ridout has quit [Quit: Lost terminal]
knupfer1 has joined #nixos
pie_ has joined #nixos
knupfer has quit [Ping timeout: 265 seconds]
knupfer1 is now known as knupfer
noobie_ has joined #nixos
<noobie_>
Why does the command $nix-env -iA nixpkgs.haskellPackages.hledger
asuryawanshi has joined #nixos
<noobie_>
Why does the command "$nix-env -iA nixpkgs.haskellPackages.hledger-ui" install hledger-ui, but the command "$nix-env -qa '.*hledger-ui.*' --description" returns "matches no derivations"?
<srhb>
noobie_: The haskellPackages set is not searched normally
<infinisil>
samae: requireFile { name = ...; sha256 = ...; ... } and import it into the store manually
<Yaniel>
LexLeoGryfon: the only thing you need to worry about (besides overwriting the entire windows installation of course is the EFI partition, which you can back up easily
<samae>
Will it work for a folder? Looks promising, I'm gonna go through the sources to find more about it
<samae>
Also, if it's not in the wiki, maybe I could add it?
<Yaniel>
it's essentially a collection of loaders and one of them is copied to a default filename
<Yaniel>
and the nixos loader sees the other loaders in the subdirectories and lets you choose
<infinisil>
samae: it's in nixpkgs/pkgs/build-support/trivial-builders.nix
<Yaniel>
the only problem I have is that windows likes to change UEFI settings and set itself to boot by default
<infinisil>
right above copyPathToStore actually
<Yaniel>
but apparently that can be solved by having separate EFI partitions for windows and nixos
<LexLeoGryfon>
I backed up win efi partition
<LexLeoGryfon>
> having separate EFI partitions
<LexLeoGryfon>
oh wow never though such approach is possible
<LexLeoGryfon>
you better blog post on that ж)
<Yaniel>
I'm not using that approach :P
<Yaniel>
and I don't have a blog
<infinisil>
I have been using 2 EFI partitions (unknowingly) for a while with NixOS + macOS
<samae>
infinisil: thx!
<noobie_>
If I have two channels configured, which one does "pkgs" reffer to in my configuration.nix file?
<gchristensen>
it will be from `import <nixpkgs>`
stepcut has joined #nixos
jrolfs_ has joined #nixos
<noobie_>
I'm sorry, I did not understand. I do not have an import statement in my configuration.nix. Am I supposed to?
jrolfs_ has quit [Ping timeout: 248 seconds]
<gchristensen>
no, but that is where `pkgs` comes from
coot_ has joined #nixos
<noobie_>
What is passed to my configuration.nix as "pkgs" when running nixos-rebuild?
<noobie_>
It is my understanding that pkgs is a parameter passed to configuration.nix
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vbj6Q
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master c3754a7 adisbladis: Merge pull request #33348 from erictapen/osrm-5.14.3...
<infinisil>
noobie_: The pkgs argument will be pretty much just `import <nixpkgs> {}`, and you can check what `<nixpkgs>` evaluates to with `nix-instantiate --find-file nixpkgs`
<noobie_>
Thanks
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vbjit
<NixOS_GitHub>
nixpkgs/master 340cadd Frederik Rietdijk: python.pkgs.arrow: fix python 2 build
NixOS_GitHub has left #nixos [#nixos]
knupfer has quit [Ping timeout: 265 seconds]
noobie_ has quit [Ping timeout: 260 seconds]
duncan^ has joined #nixos
otherjrolfs has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 1 new commit to master: https://git.io/vbjiA
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master ab1fdc7 adisbladis: osrm-backend: Use nativeBuildInputs for compile-time-only deps
mkoenig has joined #nixos
spietz has quit [Ping timeout: 240 seconds]
otherjrolfs has quit [Ping timeout: 248 seconds]
oahong has quit [Ping timeout: 248 seconds]
hotfuzz has joined #nixos
oahong has joined #nixos
deltasquared has joined #nixos
i-am-the-slime has joined #nixos
* deltasquared
decides to be brave and work out his differences with nix
<deltasquared>
curl | sh? seriously? -_-
<infinisil>
deltasquared: i think it declares a function first and then calls that, which might be safe?
zzamboni1 has quit [Ping timeout: 248 seconds]
<lassulus>
there also should be packages for some distros which install nix for you?
<LnL>
deltasquared: people complained when that was replaced with a download + sha check
<i-am-the-slime>
srhb: But how do I point it to these nixpkgs?
<deltasquared>
LnL: *facepalm*
<infinisil>
LnL: lol, ok
<deltasquared>
I'm going to download it anyway and look at what it does.
<nixy>
I mean you always could have done that :P
Neo-- has joined #nixos
<infinisil>
deltasquared: ask away if you want to know anything :)
jrolfs_ has joined #nixos
otherjrolfs has joined #nixos
pjan_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<deltasquared>
seems straightforward enough, fetch the relevant tarball then execute a second-stage script.
* deltasquared
wonders what size he should put aside for a mount for /nix
jensens has joined #nixos
fuzzy-id has joined #nixos
<fuzzy-id>
what's the right way to handle conflicting options in a service module?
<deltasquared>
if it's GC'd it may be a bit more space at times than a traditional distro... 24G should be plenty
<deltasquared>
(LVM is magic)
zzamboni has joined #nixos
<Turion>
Starting VirtualBox gives: Qt FATAL: This application failed to start because it could not find or load the Qt platform plugin "xcb"
<deltasquared>
I'm curious how well supported virtualbox would be in nixos to be fair, I would have thought proprietary applications would be fairly prone to such wobblies and impossible to fix correctly.
<Turion>
infinisil, that may be it, thanks! Turns out it's not related to VirtualBox per se, but QT..?
<deltasquared>
inb4 QT looks in hardcoded paths not related to LD_LIBRARY_PATH
zzamboni has quit [Ping timeout: 240 seconds]
<infinisil>
deltasquared: VirtualBox works pretty well, and the thing with nix is that once something is packaged, it's pretty much guaranteed to run well forever
<betaboon>
hello #nixos, i have a question regarding nixops: can i deploy to the container-backend on a systemd-based-linux or is this only available on nixos ?
i-am-the-slime has quit [Ping timeout: 272 seconds]
<deltasquared>
infinisil: I would imagine... if it can be made to behave in the "no FHS lib/bin paths" world first
proteusguy has joined #nixos
<infinisil>
deltasquared: there is actually something to wrap binaries in a normal FHS user env if they can't be made to work otherwise
<deltasquared>
infinisil: ... containers?
<infinisil>
deltasquared: nope, hold on
<goibhniu>
betaboon: it's only for nixos
<betaboon>
goibhniu: thanks. too bad :/
<goibhniu>
betaboon: disnix might be interesting for you though
stepcut has quit [Remote host closed the connection]
<deltasquared>
I'll read whatever, still waiting for the nix store volume to finish blanking.
<deltasquared>
oh, so not quite a full container, just namespaces.
<deltasquared>
I was on the right lines though, I was getting at the use of FS namespaces
bbsl has quit [Remote host closed the connection]
stepcut has joined #nixos
<deltasquared>
grrr, spinning rust go fasterrrrrrr
<infinisil>
deltasquared: LVM needs to wipe 24GB before you can use it?
<deltasquared>
infinisil: it's standard policy for this disk, I wipe before usage in case of any left-over data
<deltasquared>
old volumes are wiped before destruction, too.
pjan_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
asuryawanshi has quit [Ping timeout: 240 seconds]
<infinisil>
hmm alright, with ZFS I'd just tell it to create a new dataset and limit it to 24GB
<deltasquared>
alas this disk has encrypted volumes on, so on such a disk I make a point that any other volumes that are created/destroyed are wiped
<infinisil>
which I guess wouldn't guarantee exactly 24GB though when the disk is full
<deltasquared>
the truly important one being my university work. not that I'd think anyone would want to *steal* that but it's coverage policy if for some reason it was.
jrolfs_ has joined #nixos
otherjrolfs has joined #nixos
<deltasquared>
ok, next daft question, am I going to need a particurlarly large amount of inodes for nix? (I just like to have enough in reserve that I don't have tae worry about it)
otherjrolfs has quit [Ping timeout: 256 seconds]
jrolfs_ has quit [Ping timeout: 264 seconds]
<goibhniu>
deltasquared: nope
<deltasquared>
goibhniu: mkfs tells me it'll make 1.5 million, that should be more than enough
<goibhniu>
that should be just fine :D
<betaboon>
i have another question regarding private git-repositories: I'm somewhat lost on how to get them working. all the information i can find (including references to ssh_config_file, ssh_auth_sock, some suggesting fetchFromGitHub using private=true; some using http-auth) are realy confusing me. can anyone point me into the right direction ?
<FRidh>
benley: copumpkin: if I am correct you've both used jsonnet. What are your experiences with it? I see you've encountered the same issues, like lack of a brief syntax for lambdas
<infinisil>
deltasquared: what do you mean? (I haven't run the installation in a while, can't remember)
<deltasquared>
infinisil: the install script inside the tarball appends some lines to your .profile etc.
<deltasquared>
which I wouldn't mind but it'd mess up scripts I prefer to keep read-only.
otherjrolfs has quit [Ping timeout: 248 seconds]
arianvp2 has quit [Remote host closed the connection]
freusque has joined #nixos
pkill9 has quit [Read error: Connection reset by peer]
ee1943 has quit [Remote host closed the connection]
pkill9 has joined #nixos
<copumpkin>
FRidh: feels like a nix expression language made more palatable for the masses, without derivations, and with more OO junk that I largely avoid in it
i-am-the-slime has joined #nixos
duncan^ has quit [Ping timeout: 265 seconds]
<deltasquared>
OO junk you say? you mean like... *shudders* inheritance? *dives*
ee1943 has joined #nixos
<__Sander__>
inheritance through fixpoints :D
<deltasquared>
fixpoints? o.o
<deltasquared>
what have they been doing this time
__Sander__ has quit [Quit: Konversation terminated!]
romildo has joined #nixos
knupfer has joined #nixos
rogue_koder has joined #nixos
<romildo>
Has anything changed in unstable NixOS regarding XDG_DATA_DIRS setting by wrapGAppsHook? $out/share/gsettings-schemas/${name} is not being added in the wrapper.
<FRidh>
copumpkin: deep overriding is at least quite convenient as its just a matter of order.
<FRidh>
copumpkin: looking now at partial application, and noticed an issue of yours on that topic
jrolfs_ has joined #nixos
otherjrolfs has joined #nixos
fuzzy-id has quit [Ping timeout: 250 seconds]
spietz has joined #nixos
jrolfs_ has quit [Ping timeout: 250 seconds]
otherjrolfs has quit [Ping timeout: 264 seconds]
Turion has quit [Ping timeout: 250 seconds]
zzamboni1 has quit [Quit: Leaving.]
betaboon has quit [Quit: WeeChat 1.9.1]
zzamboni has joined #nixos
__Sander__ has joined #nixos
erasmas has joined #nixos
otherjrolfs has joined #nixos
<deltasquared>
hrm, nix-env queries seems to take some time, what's up with that
<deltasquared>
it doesn't seem to be a CPU or I/O task it's waiting for
<deltasquared>
like, a few seconds or more pause
<deltasquared>
... oh wait, it *is* a CPU bound task
<deltasquared>
it really take that long to figure out the information it needs?
nuncanada has joined #nixos
otherjrolfs has quit [Ping timeout: 256 seconds]
michaelpj_ has quit [Ping timeout: 240 seconds]
<srhb>
deltasquared: Yes, it's evaluating each attribute in top level at least up until its name
<tilpner>
deltasquared - Use -iA instead of -i, it's much faster
<tilpner>
(For me, -i downloads ~100MB, just to search)
<bennofs[m]>
someone needs to look at nix evaluation performance. does it have to be so slow?
<gchristensen>
is that someone you? :)
raynold has quit [Quit: Connection closed for inactivity]
<jluttine>
any instructions on how to install nix on a non-nixos system without root privileges? i found these but neither chroot nor proot works.. https://nixos.wiki/wiki/Nix_Installation_Guide
<jluttine>
i don't mind compiling everything from source, that is, not using binary cache
jrolfs_ has joined #nixos
jekor` has quit [Remote host closed the connection]
jekor` has joined #nixos
jekor` has left #nixos [#nixos]
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrolfs_ has quit [Ping timeout: 248 seconds]
TonyTheLion has joined #nixos
periklis has quit [Ping timeout: 248 seconds]
knupfer has quit [Ping timeout: 250 seconds]
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
<ocharles>
bennofs[m]: no we just thought making it slow would be a good idea
<ocharles>
let me just flip the "not slow" bit
<ocharles>
snarkin' my way into 2018
freusque has quit [Quit: WeeChat 1.9.1]
i-am-the-slime has quit [Ping timeout: 240 seconds]
freusque has joined #nixos
i-am-the-slime has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #33377: llvm: differentiate manpage builds, use recurseintoattrs to build and cache contents (master...feature/llvm-recurseintoattrs) https://git.io/vbjba
<jluttine>
infinisil: for chroot solution: i suppose the system doesn't support it because the test command `unshare --user --pid echo YES` doesn't work
m0rphism has quit [Quit: WeeChat 1.9.1]
leat has joined #nixos
Tucky has quit [Remote host closed the connection]
otherjrolfs has joined #nixos
jrolfs_ has joined #nixos
tekul has joined #nixos
<erictapen>
Hello everyone. Does anyone have experience with packaging ant based Java applications? I'm currently trying to build netbeans from source. I noticed that the recommended style would be to call just ant in the buildPhase and that works more or less, but appears to me as impure style, as ant accesses the network. Is'nt there a better way to do this?
zzamboni has joined #nixos
zzamboni has quit [Client Quit]
knupfer has joined #nixos
otherjrolfs has quit [Ping timeout: 248 seconds]
jrolfs_ has quit [Ping timeout: 248 seconds]
<gchristensen>
my understanding is that our java / ant build tools are not very good
<symphorien>
jluttine: I never tried it completely, but I think you have to compile nix from source the "traditional way" and then you can use this nix binary by setting the store location with environment variables : https://github.com/NixOS/nix/blob/master/tests/common.sh.in#L5 . Then do nix-env -iA nixpkgs.nix and you will have bootstrapped nix. (you may have to override the default locations to yours here
<symphorien>
But again, I tried once, spent some time unsuccessfully on it and when I gathered this information the need vanished so I didn't try further.
zzamboni has joined #nixos
jb55 has quit [Ping timeout: 268 seconds]
ssmike has quit [Remote host closed the connection]
zzamboni has quit [Client Quit]
ssmike has joined #nixos
<erictapen>
gchristensen: thanks
zzamboni has joined #nixos
klntsky has joined #nixos
romildo has quit [Quit: Leaving]
otherjrolfs has joined #nixos
otherjrolfs has quit [Ping timeout: 252 seconds]
rogue_koder has quit [Quit: Konversation terminated!]
rogue_koder has joined #nixos
klntsky has quit [Ping timeout: 272 seconds]
peacememories has joined #nixos
FRidh has quit [Quit: Konversation terminated!]
yorick has joined #nixos
jrolfs_ has joined #nixos
<yorick>
how frequent are hackage updates?
<yorick>
ah, daily, thanks
deltasquared has quit [Quit: SEGMENTATION FAULT]
k0001 has quit [Remote host closed the connection]
jrolfs_ has quit [Ping timeout: 248 seconds]
coot has joined #nixos
coot_ has quit [Quit: coot_]
rogue_koder_ has joined #nixos
orivej has quit [Ping timeout: 264 seconds]
rogue_koder has quit [Ping timeout: 248 seconds]
knupfer has quit [Ping timeout: 272 seconds]
asuryawanshi has joined #nixos
phreedom has joined #nixos
<srhb>
yorick: Uh, where'd you get that?
freusque has quit [Ping timeout: 252 seconds]
<zugzug>
hey folks - does anyone have experience with installing `python36Packages.tkinter` (or any other python3 version) via nix on macosx? The standard nixpkgs build fails for me with a `mv: missing destination file operand after <path to nix store>`
otherjrolfs has joined #nixos
jrolfs_ has joined #nixos
<zugzug>
this was the most relevant thread I found that was possibly related to my issue, but I'd appreciate a pointer for me proactively debug my own issue [thread: https://github.com/NixOS/nixpkgs/issues/10667 ]
sary has quit [Ping timeout: 264 seconds]
sary has joined #nixos
<yorick>
srhb: github history
<srhb>
yorick: I think you may be spotting just a coincidence.
<yorick>
srhb: okay, it's been happening for the past week
<yorick>
it would be great if it could be done now so arbtt will build
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dywedir opened pull request #33379: fd: 6.1.0 -> 6.2.0 (master...fd) https://git.io/vNeJb
NixOS_GitHub has left #nixos [#nixos]
jrolfs_ has quit [Ping timeout: 260 seconds]
otherjrolfs has quit [Ping timeout: 248 seconds]
__Sander__ has quit [Quit: Konversation terminated!]
jrolfs_ has joined #nixos
klntsky has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
freusque has joined #nixos
asuryawanshi has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
anelson- has joined #nixos
asuryawanshi has joined #nixos
<anelson->
hi all, does anyone know an easy way to run a nix shell for nix itself? I'm trying to figure out a weird nix low-level issue and it would be really helpful to be able to insert print statements etc into the code and rerun
jrolfs_ has quit [Ping timeout: 248 seconds]
rihards has joined #nixos
rihards has quit [Client Quit]
rihards has joined #nixos
chreekat has joined #nixos
oida has joined #nixos
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nico202 has joined #nixos
otherjrolfs has joined #nixos
nico202 has quit [Client Quit]
jrolfs_ has joined #nixos
hellrazo1 has quit [Quit: WeeChat 2.0.1]
jb55 has joined #nixos
<jtojnar>
anelson-: nix-repl?
i-am-the-slime has quit [Ping timeout: 248 seconds]
<the-kenny>
anelson-: a build-environment for nix?
<anelson->
build environment for nix
<anelson->
as in, nix-store etc
<clever>
anelson-: nix-shell '<nixpkgs>' -A nix
<the-kenny>
Yeah, or --run-env for nix-build, just like with any other package
<the-kenny>
I *think* there's also some nix-expression inside the nix build tree that gets you that, but nix-shell is easier :)
<anelson->
where do I run that from? how do I trigger a build?
<the-kenny>
anelson-: this will get you a shell with all dependencies available. You can then run `unpackPhase` to unpack $src, and then build however you want to (or by cd-ing into the folder and running `configurePhase`, then `buildPhase`)
mizu_no_oto has joined #nixos
otherjrolfs has quit [Ping timeout: 265 seconds]
jrolfs_ has quit [Ping timeout: 256 seconds]
<elvishjerricco>
Is it possible for an attrset to have a bunch of derivations in it, but make it so that when you `nix-build` it, only a specific few of those are actually built?
<infinisil>
elvishjerricco: you mean to give nix-build an argument that says which ones to build?
<elvishjerricco>
No,
leat has quit [Ping timeout: 240 seconds]
<the-kenny>
anelson-: nix-build '<nixpkgs>' -A nix, then in that shell `unpackPhase && cd nix-1.* && configurePhase && buildPhase` should work
<elvishjerricco>
I want to have the default be a limited set
<anelson->
the-kenny: there must be some additional steps because configurePhase works but buildPhase throws an error
<the-kenny>
ehh add --run-env to `nix-build`
<anelson->
config.h: no such file or directory
<the-kenny>
anelson-: hmm maybe patchPhase?
<clever>
anelson-: try just genericBuild
romildo has joined #nixos
<anelson->
there's no patchphase defined for nix
<anelson->
hmm ok
<elvishjerricco>
infinisil: so that I can use `nix-build -A ...` to specify one of the non-default builds, but so that `nix-build` standalone only builds a few of them.
<anelson->
the thing is that genericbuild will run everything including tests
<infinisil>
elvishjerricco: Ah, you can use passthru for that
<anelson->
also I don't know if it will build incrementally although I can see
<the-kenny>
anelson-: yeah, but you can just run buildPhase manually afterwards
<elvishjerricco>
infinisil: passthru?
<clever>
anelson-: once it has finished once, you can manually run make to do it incrementally
<anelson->
hmm ok I can run `make`
<anelson->
hopefully that gets me where I need to go
<infinisil>
elvishjerricco: mkDerivation { name = "foo"; ...; passthru = { bar = mkDerivation {...}; }; } then nix-build without arguments builds foo, and nix-build -A bar will build bar
jrolfs_ has joined #nixos
otherjrolfs has joined #nixos
<romildo>
Has anything changed in unstable NixOS regarding XDG_DATA_DIRS and gsettings schemas set by wrapGAppsHook? $out/share/gsettings-schemas/${name} is not being added by the wrapper. I need help with this.
<elvishjerricco>
infinisil: Hm, but what if I want the default to be multiple derivations, not just `foo`?
<infinisil>
elvishjerricco: create a derivation that refers to each of the ones you need, not sure what's the best way to do this
<elvishjerricco>
infinisil: Got it.
<elvishjerricco>
infinisil: For the default, it sounds like I want a Nix function that takes several input derivations and creates an output with symlinks to all the inputs.
<infinisil>
elvishjerricco: maybe just symlinks from $out/<name> to the $out of <name>
<anelson->
thanks guys, hopefully I'm on the right track here
<infinisil>
ah wait, there's some utility functions for that
<elvishjerricco>
infinisil: Yea that would be good. Does that exist?
vcunat has joined #nixos
<infinisil>
elvishjerricco: Have a look at nixpkgs/pkgs/build-support/trivial-builders.nix
<the-kenny>
buildEnv
<infinisil>
elvishjerricco: linkFarm could be what you want
jrolfs_ has quit [Ping timeout: 240 seconds]
<infinisil>
yeah that's pretty much exactly what you need i think
<elvishjerricco>
infinisil: That looks excellent!
otherjrolfs has quit [Ping timeout: 260 seconds]
<elvishjerricco>
Thanks!
<infinisil>
elvishjerricco: np :)
<the-kenny>
Huh, strangely there's pkgs.buildEnv and lib.linkFarm.
<the-kenny>
The former seems to have more features (collisions, and manually managing extra prefices, whitelists, etc.)
<infinisil>
the-kenny: but i guess the latter makes more sense in this case
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 opened pull request #33382: cmake: fix hook for multiple outputs on darwin (staging...darwin-cmake-outputs) https://git.io/vNeIc
NixOS_GitHub has left #nixos [#nixos]
chreekat has quit [Ping timeout: 276 seconds]
chreekat has joined #nixos
<anelson->
hmmmm changing a .cc file and rerunning `make` (or `buildPhase`) tells me there's nothing to be done
<the-kenny>
possibly, yeah. I don't think it matters for the simple cases
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
sg2002 has joined #nixos
goibhniu has quit [Ping timeout: 268 seconds]
FRidh has joined #nixos
sigmundv has joined #nixos
peacememories has joined #nixos
dan_b has quit [Ping timeout: 248 seconds]
peacememories has quit [Client Quit]
ssmike has quit [Quit: ssmike]
ech042 has quit [Remote host closed the connection]
leat has joined #nixos
<infinisil>
Taking a quick moment to highlight a couple recent nixpkgs changes I'm excited about:
<gchristensen>
infinisil++
<infinisil>
haskell-ide-engine got added, an LSP backend for haskell, really nice
<infinisil>
ZFS unstable got updated to the version of 28 December
<infinisil>
home-manager is now in nixpkgs
<gchristensen>
it is?
jensens has quit [Ping timeout: 260 seconds]
<infinisil>
You can now declare related packages using the relatedPackages attribute, which will get rendered in the docs
<infinisil>
the relatedPackages thing (for now at least)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] kierdavis opened pull request #33383: openvpn: make systemd dependency optional (master...openvpn-optional-systemd) https://git.io/vNetJ
NixOS_GitHub has left #nixos [#nixos]
otherjrolfs has joined #nixos
jrolfs_ has joined #nixos
<FRidh>
Its so hard to keep up with these kind of changes between all the noise of package updates
<gchristensen>
FRidh: indeed :/
<elvishjerricco>
infinisil: linkFarm doesn't take a passthru argument :/
nico202 has joined #nixos
<infinisil>
elvishjerricco: It's a rather simple function, you could just copy it and add it yourself
<infinisil>
elvishjerricco: after the preferLocalBuild = true;
<nico202>
another acme-related question, how do I tell nixos that I accept the TOS?
<elvishjerricco>
infinisil: Yea I probably will. Just disappointing; a lot of my efforts lately have been in reducing the annoyance of using Nix stuff, and this is a good example of such annoyance
<infinisil>
elvishjerricco: Well you could open a PR to change that function :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] shlevy closed pull request #32772: Extract files one at a time from all-cabal-hashes (release-17.03...release-17.03-unextracted-all-cabal-hashes) https://git.io/vb6O1
NixOS_GitHub has left #nixos [#nixos]
<infinisil>
elvishjerricco: oh actually, you could probably use overrideAttrs to add passthru
jrolfs_ has quit [Ping timeout: 255 seconds]
<elvishjerricco>
infinisil: I'm familiar with overrideDerivation (which didn't work in this case for some reason), but not overrideAttrs
<elvishjerricco>
infinisil: overrideAttrs worked perfectly
<FRidh>
infinisil: elvishjerricco: there's only one occurence in Nixpkgs thus far, so it may be acceptable to make it a function with a set pattern, or like symlinkJoin
<elvishjerricco>
what is the difference between that and overrideDerivation?
<FRidh>
overrideDerivation overrides the call to `derivation` whereas overrideAttrs overrides the call to `stdenv.mkDerivation`
<vcunat>
you want overrideAttrs, unless you do something really special, I think
sigmundv has quit [Ping timeout: 260 seconds]
<FRidh>
still around ~140 occurences of overrideDerivation left in Nixpkgs
<FRidh>
Ugh...
<FRidh>
#!/usr/bin/env bash
<FRidh>
'''':; exec "$(command -v python || command -v python3 || command -v python2 || echo "ERROR python IS NOT AVAILABLE IN THIS SYSTEM")" "$0" "$@" # '''
knupfer has joined #nixos
ma27 has quit [Ping timeout: 240 seconds]
sary has quit [Remote host closed the connection]
TonyTheLion has quit [Quit: Page closed]
ok2```` has joined #nixos
ok2``` has quit [Ping timeout: 268 seconds]
Synthetica has joined #nixos
sigmundv has joined #nixos
coot has quit [Quit: coot]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] andir opened pull request #33384: fonttools: fixed checkPhase, new test asset was missing from MANIFEST.in (master...add-fonttools-test-asset) https://git.io/vNem8
NixOS_GitHub has left #nixos [#nixos]
coot has joined #nixos
jrolfs_ has joined #nixos
otherjrolfs has joined #nixos
jtojnar has quit [Quit: jtojnar]
ok2```` has quit [Ping timeout: 246 seconds]
macslayer has joined #nixos
ok2```` has joined #nixos
<macslayer>
Good afternoon!
<macslayer>
After trying NixOS out a couple of years ago, I've decided today to reinstall, switching back from Arch.
<MoreTea>
macslayer: welcome back ;)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #33385: vmTools: omit '-drive ...' entirely instead of using /dev/null (master...fix/issue-33378) https://git.io/vNemg
NixOS_GitHub has left #nixos [#nixos]
jrolfs_ has quit [Ping timeout: 240 seconds]
otherjrolfs has quit [Ping timeout: 248 seconds]
<joepie91>
macslayer: one of us, one of us :P
<macslayer>
Thanks!
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 3 new commits to master: https://git.io/vNemo
<NixOS_GitHub>
nixpkgs/master 48a5212 Will Dietz: ncurses: use more complicated expression to avoid mass-rebuilds, note
<macslayer>
I can't remember exactly why I left, I think it had something to do with my usage of `dwm` (along with the other suckless tools) at the time, which required compile-time configurations.
Turion has quit [Ping timeout: 255 seconds]
<Synthetica>
I'm having an xkcd 196 sorta moment, with s/Linux/NixOS/
<macslayer>
haha I know that feel
<Synthetica>
On one hand, being able to `git bisect run` on your distro's source is a god send. On the other hand, I don't wanna D:
<infinisil>
Synthetica: I looove git bisect, it's so useful with nixpkgs
<Synthetica>
Yeah :)
tmaekawa has quit [Client Quit]
<Synthetica>
It's like a quick "who-fucked-up" button
<infinisil>
can answer the question "why does X not work anymore" pretty much always
<infinisil>
yea
zzamboni has quit [Quit: Leaving.]
<joepie91>
infinisil: I recently discovered that you can automate git bisect
jrolfs_ has joined #nixos
otherjrolfs has joined #nixos
<joepie91>
infinisil: that is, you can give git a command to run that tells it whether a given commit is good or bad
<Synthetica>
Currently looking for a git commit that will let my config build
<LnL>
yeah, there's a lot of usecases for bisect in nixpkgs
<joepie91>
and it'll automatically go through the bisecting process running the command for each point
<infinisil>
joepie91: indeed, it's really nice
<LnL>
joepie91: nix-build :D
<Synthetica>
Because #32969 is still not fixed :(
<Synthetica>
The answer seems to be "Peter Simons be breakin' my Haskell stuffs"
dywedir has joined #nixos
vcunat has quit [Quit: Leaving.]
<Synthetica>
Oh well, at least things seem fixed now
<elvishjerricco>
Is there an `attrsToList` function anywhere?
<phdoerfler>
Hi! I got a newb question regarding nix: I have a `set` and I would like to output one line in a bash script for each key-value pair in that set. How do I do that?
<Synthetica>
New generation after like a month :D
sary has joined #nixos
otherjrolfs has quit [Ping timeout: 248 seconds]
<phdoerfler>
is there a `map entriesOf(mySet) "this is a line in the bash script for ${entry}"` or something like that?
gfixler has joined #nixos
jrolfs_ has quit [Ping timeout: 276 seconds]
jrolfs_ has joined #nixos
otherjrolfs has joined #nixos
<gchristensen>
elvishjerricco, phdoerfler you both want the same thing :)
<Myrl-saki>
I have no idea what's happening. at. all. My qemu works, my host doesn't.
<Myrl-saki>
Non KVM, FWIW.
<elvishjerricco>
Is it possible to throw a custom error message in a failed `assert`?
otherjrolfs has quit [Ping timeout: 248 seconds]
FRidh has quit [Quit: Konversation terminated!]
otherjrolfs has joined #nixos
<matrium>
hi guys, I'm new to nixos and have some trouble with my configuration.nix. "sudo nixos-rebuild switch" works fine but after a reboot my changes seem to be discarded
typetetris has joined #nixos
<tekul>
Hi, does anyone else have problems with haskell builds due to the rebase and rerebase packageds on a regular basis?
<tekul>
They never seem to match up. e.g at the moment rerebase fails to build because the rebase version doesn't fit its bounds: Setup: Encountered missing dependencies:
<tekul>
rebase >=1.2.2 && <1.3
<datakurre>
matrium: Check nixos-rebuild —help, there’s a specified flag to update bootloader.
jrolfs_ has quit [Ping timeout: 248 seconds]
otherjrolfs has quit [Ping timeout: 265 seconds]
jrolfs_ has joined #nixos
<matrium>
datakurre: it was my understanding that the switch command makes the new configuration boot default
otherjrolfs has joined #nixos
macslayer has joined #nixos
<samueldr>
matrium: is /boot mounted as expected?
<datakurre>
matrium: I assumed the same, but got the same advice (with EFI).
<matrium>
I'm using EFI aswell, so I might have the same issues
<samueldr>
using EFI, I don't have to do anything special for it to switch configuration
<Synthetica>
Myrl-saki: Care to elaborate?
<deltasquared>
hmm, what's this firefox wrapper thing all about then? side note, do the nix tools have any commands to show a description of the package
<matrium>
just tried "nixos-rebuild switch --install-bootloader" and got a "File system "/boot" is not a FAT EFI System Partition (ESP) file system."
<datakurre>
matrium: mount /boot
<samueldr>
your system probably updated
<samueldr>
oops, mis-pressed enter
<Myrl-saki>
Synthetica: For example, ix.io. I can connect to ix.io on my qemu, but then I get a 404, from god knows what server on my host.
<samueldr>
probably updated /boot on the root filesystem, instead of on the expected to be mointed ESP
<Synthetica>
dig it?
<Synthetica>
As in, `dig ix.io`
jrolfs_ has quit [Ping timeout: 252 seconds]
mizu_no_oto has joined #nixos
otherjrolfs has quit [Ping timeout: 248 seconds]
<mpickering>
If I set "x.y.z" in an overlay will that clobber "x.y.z1"?
<samueldr>
Myrl-saki: you can, also, compare what `getent ahostsv4` and `getent ahostsv6` gives compared to dig, this should use the system's resolver
<Myrl-saki>
ix.io. 86400 IN A 66.172.11.73
<Myrl-saki>
[nix-shell:~]$ ping ix.io
<Myrl-saki>
ping: ix.io: Name or service not known
<Myrl-saki>
...?
<Synthetica>
Hmm, that is the one I'm also getting
<gchristensen>
ix.io has been broken for a long time
<Myrl-saki>
gchristensen: Okay. google.com
<Myrl-saki>
It also breaks for google.
<Myrl-saki>
Not right now.
<Myrl-saki>
But I also had problems with stackoverflow.com
<Synthetica>
But after a few visits?
<matrium>
datakurre: ok, just mounted my boot partition and did the rebuild with --install-bootloader. Now I got a "Failed to start local-fs.target: Unit -.mount is masked."
<Myrl-saki>
Synthetica: Seems to fix itself after a few minutes, I haven't tried spamming visits.
i-am-the-slime has joined #nixos
<Myrl-saki>
A bit of an aside. dig gives me the IP, ubt ping refuses to accept it?
<Synthetica>
I had similar issues, I was able to solve them by switching to `systemd-resolved` instead of the networkmanager default DNS resolver
<Synthetica>
not sure if that'll fix your problems of course
<Synthetica>
Dig has its own DNS client I believe
<datakurre>
matrium: That is new for me :/
randomstrangerb has quit [Ping timeout: 240 seconds]
<Myrl-saki>
Synthetica: How to do that?
<Synthetica>
services.resolved.enable = true;
randomstrangerb has joined #nixos
<deltasquared>
is there anywhere I can look on a nix installation that would yield short descriptions of available packages, or would I have to go look at the expressions on github or something
<Myrl-saki>
Synthetica: I'll report back once I'm done with other things I have to do.
<Synthetica>
Sure :)
pkill9 has quit [Quit: WeeChat 2.0]
matrium_ has joined #nixos
zarel has joined #nixos
macslayer_ has joined #nixos
otherjrolfs has quit [Ping timeout: 248 seconds]
jrolfs_ has quit [Ping timeout: 248 seconds]
macslayer has quit [Ping timeout: 240 seconds]
raynold has joined #nixos
matrium__ has joined #nixos
<phdoerfler>
nix-repl> {lib}: let set = { a = 42; b = 80; }; in lib.foldAttrs (a: "this is the line for ${a}") [] set
<phdoerfler>
«lambda»
<deltasquared>
hmm, just out of curiosity, I wonder if there are any packages in nixpkgs (without any modified derivations) that *don't* have a binary cache
matrium has quit [Ping timeout: 260 seconds]
<phdoerfler>
How do I get strings out of this?
vcunat has joined #nixos
<matrium__>
datakurre: ok, mounted the boot partition and did a rebuild --install-bootloader and it worked now!
matrium_ has quit [Ping timeout: 260 seconds]
simendsjo has joined #nixos
<Synthetica>
Is there a way to keep at least the last N generations for nix-collect-garbage?
<gchristensen>
Synthetica: the man page will describe how
<gchristensen>
should, anyway :)
<Synthetica>
It only talks about deleting generations older than n days, not a set number of generations
macslayer_ has quit [Quit: Konversation terminated!]
<Synthetica>
Ideally I'd have both
<Synthetica>
Either the last week or the last 10 generations, whichever is more
<deltasquared>
o.o nix-env --query --available with no filter invokers the OOM killer
macslayer has joined #nixos
<deltasquared>
surely you could just stream write them rather than trying to keep the whole lot in memory at once...
<clever>
deltasquared: it also has to manage all of the nix objects in a heap
matrium__ has left #nixos [#nixos]
<aristid>
has anybody else had gconf errors with any applications recently?
<deltasquared>
clever: all I wanted was to read a list of all the available packages from somewhere and correlate them with any known binary cache status. I wouldnae have thought it would need to touch anything else for that operation
<aristid>
in my case, gnucash can't load or save configuration anymore
<gchristensen>
deltasquared: it involves evaluating all of nixpkgs, which is the problem here
<vcunat>
all-packages has references to everything, so stuff is evaluated lazily but never garbage-collectible
<deltasquared>
gchristensen: why tho... surely you could look at them one at a time without having to look at sub-expressions or dependencies etc. whatever, I wasn't asking anything that required it to show me anything other than "top-level" info
<vcunat>
and so listing needs gigabytes of memory
<vcunat>
yes, it would be possible
phreedom has quit [Ping timeout: 248 seconds]
<vcunat>
probably not trivial to implement though
<Synthetica>
TBH that doesn't sound too crazy
<deltasquared>
vcunat: by the sounds of it, probably best done in a separate tool suited for this task
<gchristensen>
deltasquared: I'm not well enough informed to know how compilers and interpreters work and how to specifically fix this problem
<deltasquared>
my suprise that if it should be so, that it does not exist, I don't find what I'm asking an unreasonable feat
<deltasquared>
(it's certainly something other package managers do trivially, but I admit that's somewhat apples and oranges)
<vcunat>
hmm, it could be done with a separate tool only, though surely with better if changing nix
<gchristensen>
it is definitely apples and oranges
<vcunat>
*with better performance
<gchristensen>
your other tool would still need to fully implement a nix parser which brings us back to where we are
<gchristensen>
s/parser/interpreter/
<vcunat>
you wouldn't have to
<vcunat>
you could list all top-level attributes
<vcunat>
and then evaluate them one-by one
<vcunat>
via nix, but always in a new instance
<deltasquared>
vcunat: I'll let you benchmark that particular shell script :P
<gchristensen>
see-no-evil.gif
<deltasquared>
's lotta process spawns
<vcunat>
In any case, even with optimal approach, you only trade CPU for RAM.
<vcunat>
(and your human time)
<deltasquared>
vcunat: perhaps, but at least I can chug through that without my system grinding to a halt them nix getting whacked
<deltasquared>
eventual progress is better than a crash. ;)
<vcunat>
few people use nix-env -qa
<Synthetica>
Doesn't nox use nix-env -qa?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #33392: Use ncurses6 on all platforms (master...update/darwin-ncurses6) https://git.io/vNecU
NixOS_GitHub has left #nixos [#nixos]
<deltasquared>
vcunat: actually it was -qas, I was curious to see if anything in nixpkgs had no binary cache available
<bennofs[m]>
vcunat: though if you want to check if the pkg is in the binary cache, you do need to evaluate everything together
<Synthetica>
So that it can cache the result and speed up subsequent searches
<vcunat>
adding -s only hampers performance
<bennofs[m]>
because you need to figure out the derivation hash, which depends on all deps' hashes
zzamboni has quit [Quit: Leaving.]
<deltasquared>
bennofs[m]: ooooh so the hash isn't cached alongside the expression somewhere? welp
<vcunat>
(if we speak of performance; of course it's useful information)
<bennofs[m]>
deltasquared: there's quite a few "packages" (let's define everything that's reachable through an attribute as a package) that have no binary cache
<Myrl-saki>
Synthetica: It works btw. Thanks. :)
<Synthetica>
:D
<bennofs[m]>
i think it was about 50% or more? at least used to be, but that may have been before pythonPackages was built on hydra
<Myrl-saki>
Synthetica: I swear, I was getting paranoid and thinking I was getting MITM'd.
zzamboni has joined #nixos
<Synthetica>
Yeah, same when I was having that problem
<Myrl-saki>
Synthetica: We have a new router.
<deltasquared>
well I for one don't intend to run through each one crunching hashes and checking availability in the binary caches, so I'll just have to trust that the large majority of packages that I would actually install would have cached builds
<vcunat>
There are packages not shown in `nix-env -qa` but they are in binary cache.
<bennofs[m]>
deltasquared: how would you do cache invalidation for that cache?
<deltasquared>
bennofs[m]: "only two hard things in computer science... cache invalidation and naming things"
<mog>
FRidh[m] ping
* deltasquared
hides
dfranke has quit [Ping timeout: 255 seconds]
dfranke has joined #nixos
<deltasquared>
I dunno, I would need to look at the issue a bit more closely. :P
<vcunat>
BTW, `git grep` and the command-not-found hook are quite useful for searching, and there are others.
<Synthetica>
deltasquared: *four, also off-by-one errors
<bennofs[m]>
deltasquared: it does not take *that* long. a few minutes. it only needs to evaluate everything and compute the derivation hash, no building should be necessary
el_putin has quit [Read error: Connection reset by peer]
nix-gsc-io`bot has quit [Client Quit]
<gchristensen>
17.03 eh
<vcunat>
from two weeks ago?
<bennofs[m]>
vcunat: what does -s do?
<vcunat>
are we going back again?
<vcunat>
bennofs[m]: binary availability
<earldouglas>
Synthetica: Good point.
<vcunat>
(meaning you have to evaluate all output paths and query the cache for them)
fuzzy-id has joined #nixos
chreekat has quit [Ping timeout: 252 seconds]
<vcunat>
It needs 2.5 GiB for me, and megabytes of traffic on cold cache, apparently. (The cache is not optimized for this at all.)
chreekat has joined #nixos
nithor has joined #nixos
jrolfs__ has quit [Ping timeout: 248 seconds]
jrolfs has quit [Ping timeout: 248 seconds]
Neo-- has quit [Ping timeout: 260 seconds]
fyuuri has joined #nixos
orivej has quit [Ping timeout: 248 seconds]
tel has joined #nixos
<deltasquared>
vcunat: oh well. I guess it's a case of having reasonable faith that a package is cached when you do actually install it, and if not, well... ask for hydra or whatever to build future versions of it
<deltasquared>
(assuming it's in nixpkgs, of course...)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vNeWj
<NixOS_GitHub>
nixpkgs/master 707cfbf Shea Levy: haskell: Add hoogle-5.0.14 for hie-hoogle....
NixOS_GitHub has left #nixos [#nixos]
fyuuri has quit [Client Quit]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] bnikolic opened pull request #33393: Correct boost configure phase when enablePython is false (master...boostconfigurepythonfix) https://git.io/vNelJ
NixOS_GitHub has left #nixos [#nixos]
nithor has quit [Ping timeout: 265 seconds]
<vcunat>
deltasquared: you can use --dry-run
<deltasquared>
as long as I don't end up with gentoo-like compilation times for something big. thankfully the one "big" app that I use routinely (firefox) does mercifully have binaries cached. I'd expect it to be, it's popular enough
<vcunat>
or if you have attribute name, you can `nix-env -qas -A attributeName` to only show the single package
<deltasquared>
vcunat: true, but that doesn't anwser the question for all packages at once.
tel has quit [Client Quit]
<deltasquared>
and apparently my computer can't do it for all of them with the resources it has, so... *shrug*
<gchristensen>
what are you actually trying to accomplish?
<deltasquared>
gchristensen: like I said earlier, I was curious to know which packages I could install from nixpkgs would be a cache miss, so to speak
<gchristensen>
yeah, but _why_?
<deltasquared>
having read the above, determining this is non-trivial at best
<deltasquared>
gchristensen: so I can know which ones to avoid and/or be prepared for a long wait? :P
<deltasquared>
I don't have infinite patience for source only builds, what can I say
freusque has quit [Ping timeout: 240 seconds]
<vcunat>
nix-env -i --prebuilt-only :-)
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
<deltasquared>
vcunat: that merely makes it fail when I do need it but it's not cached, which I would likely only find out when I need it
<vcunat>
but it has some disadvantages - like some builds are cheap (because not really _building_ anything)
orivej has joined #nixos
<deltasquared>
well I shall have to cross my fingers and hope I don't need an important package in a hurry for whatever reason, only to find it's not cached.
fyuuri has joined #nixos
fyuuri has quit [Client Quit]
fyuuri has joined #nixos
<deltasquared>
oh, there you are earlyoom... but out of date compared to arch. hmm. I'll have to look into that later.
* deltasquared
makes a note not to overuse "but in arch X was easy!"
<taohansen>
hey gang, how does everyone debug mismatched parentheses here? there must be an easier way than my eyeballing, which takes forever
<macslayer>
I've slowly started realizing that if you install a distro with very specific expectations and requirements, it's almost never going to meet those. Oftentimes it's best to stick with a good, solid distro and simply use the packages that it makes available.
<maurer>
Use paren matching in your favorite editor?
<maurer>
e.g. if you're using vim, put your cursor over it, hit %
<taohansen>
Emacs has easier mechanisms for dealing with this for lisp. or so it appears
<deltasquared>
macslayer: perhaps, but nixos's concepts are something I've come to realise I really need, namely declarative configuration, among others.
<taohansen>
maurer: i do! but i still get syntax errors that pop up despite first appearances of everything matching up
vcunat1 has joined #nixos
nithor has joined #nixos
<deltasquared>
vcunat1: timeout?
duncan^ has quit [Ping timeout: 240 seconds]
<taohansen>
like "unexpected { at 15:1" naturally i move to observe that line. Emacs shows it as matching
vcunat has quit [Ping timeout: 252 seconds]
vcunat1 has quit [Client Quit]
<deltasquared>
grr. "unexpected X" in general is never really helpful...
vcunat has joined #nixos
<taohansen>
which means i'm composing my Nix expressions incorrectly? this is what i assume but it doesn't appear that Nix has a more thorough debugging mechanism than this.
<vcunat>
yes, I was offline for a bit
<taohansen>
deltasquared: exactly!
fyuuri has quit [Ping timeout: 255 seconds]
ssmike has joined #nixos
zzamboni has joined #nixos
Lisanna has joined #nixos
fyuuri has joined #nixos
<taohansen>
what i really want is more thorough debugging messages
<deltasquared>
well nobody has ever pointed me in the direction of a formal syntax and semantics for nix expressions, alas.
<symphorien>
taohansen: did you forget a ; or a in after a let in the previous line ?
<taohansen>
symphorien: let me just show you my code? hold on gisting it
<vcunat>
when you really have only a sinigle implementation, you don't much need to specify the syntax formally
duncan^ has joined #nixos
<deltasquared>
vcunat: ... until someone wants to write a different implementation. :P
<symphorien>
taohansen: line 12 doesn't make sense
<deltasquared>
(god knows if I thought I could I'd be gone for a few days hacking at it)
orivej has quit [Read error: Connection reset by peer]
<vcunat>
it's lazy evaluation
<symphorien>
what are you trying to do ?
orivej has joined #nixos
freusque has joined #nixos
phreedom has quit [Quit: No Ping reply in 180 seconds.]
<symphorien>
btw github syntax hilighting tell you the = line 12 is somewhat wrong
zzamboni has joined #nixos
michaelpj_ has joined #nixos
phreedom has joined #nixos
fyuuri has quit [Ping timeout: 264 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] romildo opened pull request #33394: glib: preFixupPhases should be a string, and not an array (master...fix.glib) https://git.io/vNe4l
NixOS_GitHub has left #nixos [#nixos]
<taohansen>
symphorien: i think this just comes from my superficial level of Nix knowledge. essentially for this NixOps deployment to AWS EC2, i'm trying to pass in a local package derivation that's been composed by node2nix
<taohansen>
symphorien: composed as default.nix which sources two other .nix files in the directory itself.
<symphorien>
I guess this is a nixops file, and I don't know nixops, bu this is what I gather:
<dhess>
my kingdom for like 32 armv7l compile servers.
<taohansen>
symphorien: yeah don't worry about it being a NixOps file. my understanding is it's essentially the same procedure with extra options added
<symphorien>
nix is a functionnal language, so your file is a value (an attrset because of line 1)
orivej has quit [Quit: No Ping reply in 210 seconds.]
<Synthetica>
Is there a way to check if we are on a raspberry pi?
<Synthetica>
(Or similar arm device?)
<symphorien>
inside an attrset you can only have name = value; statements
<symphorien>
line 7 you start webserver = value
freusque has quit [Ping timeout: 246 seconds]
<symphorien>
line 9 we learn that this value is a function
<symphorien>
if we remove line 12, the attrset lines 14-16 is the return value of the function
<symphorien>
but line 12 has nothing to do here
<symphorien>
maybe `with package = ......;` is what you want
<taohansen>
symphorien: this makes so much sense. thank you. any suggestions for passing in a local package in addition to the standard Nixpkg repos?
zzamboni has quit [Quit: Leaving.]
orivej has joined #nixos
<symphorien>
but then since you use no variable in the attrset below, that would have no effect
phreedom has quit [Ping timeout: 268 seconds]
<deltasquared>
of course the manual is already installed alongside nix... why didn't I think to look there earlier >_<
<symphorien>
taohansen: please step back and explain. What package, where in the file ?
<taohansen>
symphorien: certainly. i'll try my best. i suspect the best approach might be to step back further and spend more time with Nix pills and the Nixpkgs manual. that said, what i want to do is run a Node.js app on NixOS infrastructure, provisioned by NixOps.
<taohansen>
the Node.js app was originally composed by the developer at the office i intern at. i ran it through node2nix, which returns a few Nix derivations.
<taohansen>
being: default.nix, node-env.nix, and node-packages.nix
fuzzy-id has quit [Ping timeout: 240 seconds]
<taohansen>
default.nix sources the node-*.nix files itself
<symphorien>
ok, then where do you want this app to appear in the file youpasted ?
<taohansen>
so my understanding is all i need to do is tell Nix, "hey i have this extra derivation i'd like you to make use of in addition to your Nixpkg repos"
phreedom has joined #nixos
<taohansen>
symphorien: i just want it to be available globally in my provisioned NixOS environment
<symphorien>
ok. I'll tell you what I would do on nixos, you have to adapt to nixops:
orivej has quit [Ping timeout: 268 seconds]
<taohansen>
symphorien: you can see that my systemd service file should call it in the deployed environment: ` ExecStart = "${nodejs}/bin/node ${app}/sister-city-api.js";`
<symphorien>
so the app name is `app` ?
<symphorien>
Note that systemd services don't inherit the system $PATH; there is no such thing as "globally available" on a nixos base system
jrolfs has joined #nixos
<symphorien>
can you do in this directory:
jrolfs has quit [Read error: Connection reset by peer]
<symphorien>
nix-repl
<taohansen>
that would be the app name, yes
<symphorien>
import ./default.nix {}
<symphorien>
?
jrolfs has joined #nixos
jrolfs__ has joined #nixos
<symphorien>
either default.nix is the derivation itself or it is an attrset which contains your app as a value
<symphorien>
so for example do: execstart = let blah = import ./default.nix {pkgs=pkgs}; in "${nodejs}/bin/node ${blah.package}/sistersfsdfsf";
<symphorien>
is this clear for you ?
`_ has joined #nixos
<taohansen>
symphorien: clearer. i am new to programming languages of any kind. i will repeat what i understand to you to see if you think i've understood what you're conveying: let and in statements are common to most languages (including Clojure which has been my programming language base i just started learning). Nix in its nature as DSL, is essentially (i'm simplifying here) a bunch of a value pairs. within these value pairs i can
<taohansen>
make use of programming conventions like let and in to do "programming things" to my value pair
<taohansen>
these "programming things" being things like recursion or expansion or what have you
freusque has quit [Ping timeout: 252 seconds]
nithor has joined #nixos
<symphorien>
if you comme from js, be aware that `let` here is a value; there is no such thing as an assignment in nix.
<taohansen>
so i can tell the systemd service file to source the default.nix derivation. however, this doesn't seem to solve the root issue which is making sure default.nix gets built with the rest of my Nix "manifest"
<Synthetica>
`let ... in` isn't common in most languages (it's also not unique to nix, but it's mostly a functional thing)
<symphorien>
`let x = 1; in 2` is the value 2
<taohansen>
symphorien: i don't come from anything except some Linux admin
<symphorien>
then read "different from shell variable assignment"
<symphorien>
what `let x = 1; in ` does is making sure that in the value after `in` you can use the name `x` as referring to the value 1
<symphorien>
even if x is not defined outside
<symphorien>
so `let x=1; in x+1` is 2
m0rphism has joined #nixos
<symphorien>
you can use nix-repl to test this type of things
stepcut has quit []
<taohansen>
okay, got it, thank you. what about making sure that my package derivation (default.nix) is deployed when i run what is essentially a `nixos-rebuild switch`?
stepcut has joined #nixos
<symphorien>
<symphorien> so for example do: execstart = let blah = import ./default.nix {pkgs=pkgs}; in "${nodejs}/bin/node ${blah.package}/sistersfsdfsf";
chreekat has quit [Ping timeout: 252 seconds]
chreekat has joined #nixos
zzamboni has joined #nixos
<symphorien>
but there is another problem: I guess that line 31 the attr you define in the attrset line 1 should be an attr in the attrset line 14
<taohansen>
oh, so when i deploy this manifest, NixOS knows to grab the default.nix file even though i've scoped that let/in to the ExecStart portion of the systemd service?
<taohansen>
no no no, i think i understand. this is a NixOps thing
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 pushed 2 new commits to master: https://git.io/vNeES
<NixOS_GitHub>
nixpkgs/master 9361b7e Drew Hess: ghc: bootstrap 8.2.2 with 8.2.1-binary.
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master c1497ca John Ericson: Merge pull request #33350 from dhess/ghc821Binary...
<taohansen>
in NixOps i can declare which files compose my deployment
<taohansen>
so i just need to source that in at that point
<symphorien>
import is a builtin which takes a path and returns the value (as evaluated by nix) of the file
<symphorien>
so yes it should do what you think
<symphorien>
you can put the let ... in higher in the hierechy (for example line 30) if you prefer
<taohansen>
okay, i think this is enough for me to work with. i thank you very much for your patience and careful explanation.
szicari has quit [Quit: szicari]
freusque has joined #nixos
szicari has joined #nixos
anton__ has quit [Quit: No Ping reply in 180 seconds.]
zarel has quit [Quit: Leaving]
<deltasquared>
it's going to be fun diving into nix expressions when the time comes for that... meanwhile in other functional adventures I still struggle to get my head around monads.
<deltasquared>
when I say programming is my strength, I realise it's *imperative* programming that I really mean... something like nix comes along and contorts my brain into strange shapes.
jrolfs has quit [Ping timeout: 256 seconds]
jrolfs__ has quit [Ping timeout: 248 seconds]
<gchristensen>
deltasquared: I learned what I know about FP because I was excited to play with Nix
<deltasquared>
gchristensen: to be fair, I actually think (though may be wrong) I get most of the ideas of the style (though lazy generators in haskell give me the run-around), I was actually trying to get to the point I could start writing semi-useful programs using a functional language.
anton__ has joined #nixos
<deltasquared>
my current understanding of the IO monad being, for instance, ordering via data dependencies, the monad just being a handy pattern to use for it.
<deltasquared>
(I appreciate this is somewhat off-topic, but my brain tends to churn on these things)
<gchristensen>
:)
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
nithor has quit [Ping timeout: 255 seconds]
<phdoerfler>
How do I use the functions in nixpkgs/lib from within the nix-repl?
<gchristensen>
phdoerfler: in the `let` add `pkgs = import <nixpkgs> {};`
<phdoerfler>
vcunat, gchristensen: Thanks, that worked!
<gchristensen>
cool!
<phdoerfler>
I feel like this is probably covered in some official nix tutorial / manual that I have overlooked?
<phdoerfler>
seems like a very basic thing to know
<vcunat>
maybe it's not there in such a concrete form; I don't know
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
nithor has joined #nixos
jensens has joined #nixos
dan_b has joined #nixos
vcunat has quit [Quit: Leaving.]
deltasquared has left #nixos ["my internets, no!"]
romildo has quit [Quit: Leaving]
nithor has quit [Ping timeout: 246 seconds]
<pie_>
how would i go about building an application in nix-shell that only depends on rust/cargo and qt5?
<pie_>
im in nix-shell -p qt5.full cargo and the command is cargo build --all --release
asuryawanshi has quit [Ping timeout: 248 seconds]
<phdoerfler>
ok, here is the next stupid question: How do I turn a list of strings into a text file where each item in the list is one line
<phdoerfler>
I tried: script = builtins.concatStringsSep "\n" lines;
<phdoerfler>
but then I get one long string containing literal \n in there
<srhb>
phdoerfler: Combine that with writeFile or one of its friends.
<dhess>
stdenv should make ld.gold available, right?
<phdoerfler>
srhb: oh so that's just the repl showing me \n as literal \n and not as a newline? cool, thanks
zzamboni has quit [Quit: Leaving.]
<srhb>
phdoerfler: Yeah.
<dhess>
I'm having problems getting GHC 8.2.2 to find it on armv7l
<phdoerfler>
neat
<benley>
FRidh[m]: I think jsonnet is pretty decent. I think I still prefer nix overall, but jsonnet is way easier to sell at work, where nix is still too much Crazy Talk.
<benley>
FRidh[m]: I'm not sure what OO junk copumpkin was referring to; afaik it has the same data types as nix.
jrolfs__ has joined #nixos
<gchristensen>
what is that?
<copumpkin>
it has a native "self" and inheriance notion
<benley>
FRidh[m]: my main beefs are the ones you already pointed out - lack of shorthand for lambdas, lack of easy partial function application
<copumpkin>
rec { } isn't the same thing
<benley>
Oh yeah, I forgot nix doesn't have builtin self / super references
<benley>
jsonnet also lacks "with" and "inherit", which is occasionally annoying
<copumpkin>
that's what I meant by OO as a library
<`_>
So, i'm an idiot and whilst in the process of doing some fancy deletion/symlinking work, I've lost my .config/nixpkgs/config.nix. My evironment was myEnv, and `nix-env -q` merely lists `myEnv`. What would I do to find out what `myEnv` contained?
simendsjo has quit [Ping timeout: 268 seconds]
<joepie91>
`_: stupid suggestion maybe but have you tried recovering the config.nix? using extundelete or the equivalent for your filesystem
<clever>
`_: nix-store --query --references on the myEnv path
<LnL>
looking at the first level of nix-store -q --tree ~/.nix-profile might help
<clever>
--query --references will show only the first level
i-am-the-slime has quit [Ping timeout: 240 seconds]
<LnL>
oh? what is the long version of -R then
<clever>
-R is recursive over deps, while --query --references isnt
<LnL>
ah --requisites, thought that was --references
<`_>
clever: unfortunately I, in my stupidity, overwrote it.
<andi->
yep, I love the syntax checking for nix in vim <3
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 closed pull request #33393: Correct boost configure phase when enablePython is false (master...boostconfigurepythonfix) https://git.io/vNelJ
NixOS_GitHub has left #nixos [#nixos]
<tilpner>
mpickering - Oh. I assumed mkDerivation was overridable that way, should've checked :c
zzamboni has joined #nixos
<mpickering>
I just cargo culted that answer
<mpickering>
but I think that it's because mkDerivation is just a normal function?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Profpatsch opened pull request #33398: lib/generators: abort on pattern match failure (master...generators-toPretty-fix) https://git.io/vNeKX
NixOS_GitHub has left #nixos [#nixos]
<tilpner>
As opposed to the scary overridable functor that callPackage and makeOverridable return?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Profpatsch pushed 1 new commit to master: https://git.io/vNeKD
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 3197221 Profpatsch: lib/generators: abort on pattern match failure
<dhess>
Nice. I think I will soon be able to make a PR that will get haskellPackages building on armv7l-linux.
<tilpner>
It should be possible to have overridable mkDerivation
simukis has quit [Ping timeout: 248 seconds]
<mpickering>
I don't understand the intricacies of overriding
<dhess>
Anyone around who is on NixOS armv7l-linux, running one of the -unstable channels?
<dhess>
I need someone to try `nix-shell -p jemalloc` on one of those, to see what happens. The tests fail on my NixOS armv7l-linux host, want to see if that's reproducible.
dan_b has joined #nixos
<samueldr>
I'd need to test again, but iirc, it was earlier this year
<samueldr>
failing
<samueldr>
(my armv7l is currently already buildint stuff)
<dhess>
samueldr: ahh ok so you remember jemalloc having problems?
jrolfs has quit [Ping timeout: 240 seconds]
jrolfs__ has quit [Ping timeout: 252 seconds]
<dhess>
that is probably good enough confirmation if so, just wanted to make sure this is not some issue with my hardware
<samueldr>
~95% sure
<dhess>
samueldr: cool, thanks.
jrolfs has joined #nixos
jrolfs__ has joined #nixos
m0rphism has quit [Quit: WeeChat 1.9.1]
jrolfs has quit [Ping timeout: 240 seconds]
jrolfs__ has quit [Ping timeout: 256 seconds]
jrolfs__ has joined #nixos
jrolfs has joined #nixos
hiratara has quit [Remote host closed the connection]
hiratara has joined #nixos
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master e1e5860 Ryan Trinkle: Merge pull request #33346 from ryantrinkle/init-thunderbolt...
<NixOS_GitHub>
nixpkgs/master 70cf769 Ryan Trinkle: maintainers: add ryantrinkle
<NixOS_GitHub>
[nixpkgs] ryantrinkle pushed 3 new commits to master: https://git.io/vNePC
<NixOS_GitHub>
nixpkgs/master 36fbcfd Ryan Trinkle: thunderbolt: init at 0.9.2
szicari has quit [Quit: szicari]
dan_b` has joined #nixos
jrolfs__ has quit [Ping timeout: 248 seconds]
jrolfs has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vNePu
<dhess>
oh wow, someone just fixed the jemalloc issue on ARM
<dan_b`>
I'm most familiar with exim but will go with whatever makes it easiest to do reasonable spam filtering, a couple of local users and some forwards
<dhess>
yay!
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 closed pull request #33399: GHC: Normalize derivations is a few simple-hash preserving ways (master...ghc-normalize) https://git.io/vNeKM
<bgamari>
I have a reference to the expected derivation
<bgamari>
but it seems I can't use nix-diff unless I build the entire new derivation as well
<Sonarpulse>
bgamari: weird I didn't know nix-diff did that, I just used it once
<Sonarpulse>
though i think that was on a mass rebuild
<dhess>
dan_b`: oh I was hoping someone would do something like that!
pjan_ has joined #nixos
<dan_b`>
got tired of installing openwrt on my network deivices and tweaking it and then forgetting what I'd even done
<dhess>
I am so with you on that
<dan_b`>
but it's early days yet because I picked a target device that there is no support for the ethernet hw in the linus kernel
<dhess>
not to mention trying to upgrade it
<sphalerite>
who me?
<dan_b`>
hopefully it's an easy port from openwrt or lede
teej has quit [Quit: Connection closed for inactivity]
<pstn>
Linus: You might be surprised to know, that there is another linux in our ecosystem, who is nearly as important as you are :-D
<Sonarpulse>
bgamari: to be clear, nix-diff is actually performign a build? or failing if it is not done?
<Sonarpulse>
dan_b`: on bgamari's branch there should be fixed linux cross compilation, did that not work?
<sphalerite>
never heard of the linus kernel myself :p
nithor has quit [Ping timeout: 255 seconds]
Itkovian has joined #nixos
<dan_b`>
Sonarpulse: I dunno, I originally started from master and what I've got works so I haven't gone back to it
pjan_ has quit [Client Quit]
Fannar has joined #nixos
<Havvy>
How do you get the sha256 of a specific github commit?
<Sonarpulse>
dan_b`: if it works great, but it should end up being a lot easier and simpler on your end :)
<Sonarpulse>
Havvy: hi!
<dan_b`>
I will look forward to that :-)
<Havvy>
Hey Sonarpulse.
<bgamari>
Sonarpulse, you need to build the derivation before nix-diff is usable
jrolfs has joined #nixos
jrolfs__ has joined #nixos
<Sonarpulse>
bgamari: weird and unfortunate
<tilpner>
Hey Havvy! Use nix-prefetch-git or nix-prefetch-url
<Sonarpulse>
bgamari: happy to give it a shot if I can easily get at the drvs
<tilpner>
Havvy - Alternatively, provide a dummy sha256, then pick the correct one from the error c.c
<bgamari>
Sonarpulse, afraid not; it requires 30GB of wikipedia dumps and around bazillion cpu hours
chreekat has quit [Ping timeout: 265 seconds]
<dhess>
tilpner: nix-prefetch-url works for me only in some cases. I'm not sure what I'm doing wrong.
<Sonarpulse>
bgamari: well i mean the drvs not final builds, but gotcha
chreekat has joined #nixos
<tilpner>
Do you happen to have an example of it failing?
<Havvy>
tilpner: The latter sounds easier.
<dhess>
tilpner: not at the moment, but next time it happens I'll try to pass it along
<tilpner>
Havvy - It is, for small repos. But you will have to download the thing twice, which is not always acceptable, thus nix-prefetch-*
<Havvy>
It's a small repo. Not even at 1000 commits yet.
jensens has quit [Ping timeout: 246 seconds]
<dan_b`>
I have another question, actually: what's the relationship between staging and master? Does stuff on stagng turn up on master unchanged a week later or is it likely to get further changes in the interim?
jrolfs has quit [Ping timeout: 240 seconds]
jrolfs__ has quit [Ping timeout: 240 seconds]
zzamboni has quit [Quit: Leaving.]
<pie_>
copumpkin, do you have agda working
<copumpkin>
I haven't used it in nix in ages
<Sonarpulse>
dan_b`: further changes are likely
<bgamari>
How does nix hash symlinks?
nithor has joined #nixos
<gchristensen>
bgamari: I think it treats it as a text file?
<bgamari>
is there any way to convince it to hash the referee
<Sonarpulse>
bgamari: not that I now of :(
michaelpj_ has quit [Ping timeout: 264 seconds]
<pie_>
copumpkin, oh boy...thanks anyway
zzamboni has joined #nixos
MP2E has quit [Remote host closed the connection]
fyuuri has joined #nixos
jrolfs has joined #nixos
jrolfs__ has joined #nixos
<gchristensen>
bgamari: symlinks are impure in nix :(
<makefu>
!howoldis
<makefu>
ah it was !stuck ...
nithor has quit [Ping timeout: 265 seconds]
MP2E has joined #nixos
<bgamari>
gchristensen, it seems like there ought to be a way to force it to dereference symlinks
nithor has joined #nixos
fyuuri has quit [Ping timeout: 248 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jwiegley pushed 1 new commit to master: https://git.io/vNeyc
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master e8caa47 John Wiegley: nss: Omit an extraneous definition; fix other problems on Darwin
oida has quit [Quit: WeeChat 1.6]
nithor has quit [Ping timeout: 252 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master 75634af John Wiegley: pass-otp: New expression
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
[nixpkgs] jwiegley pushed 1 new commit to master: https://git.io/vNeyR
swayf has joined #nixos
knupfer1 has joined #nixos
knupfer has quit [Ping timeout: 265 seconds]
knupfer1 is now known as knupfer
nkpart has joined #nixos
spietz has quit [Ping timeout: 248 seconds]
`_ has quit [Ping timeout: 256 seconds]
oida has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master d732c53 Elis Hirwing: linux-steam-integration: init at 0.7.2
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vNeSz
<NixOS_GitHub>
nixpkgs/master 0928735 adisbladis: Merge pull request #33051 from etu/linux-steam-integration...
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 566ded3 Will Dietz: pandoc: fix build by using buildDepends to match cabal file...
yorick has quit [Remote host closed the connection]
dywedir has quit [Remote host closed the connection]
lassulus has quit [Quit: WeeChat 1.9.1]
<Aleksejs>
Hello, I'm trying to install NixOS on lenovo ideapad 910 and it shows "An error occurred in stage 1 of the boot process"
lassulus has joined #nixos
lassulus has quit [Client Quit]
lassulus has joined #nixos
pjan_ has joined #nixos
<Aleksejs>
internet suggests that this issue can be related to UEFI, and wiki says that I should do additional steps before install, but the link to those steps is dead
oida has quit [Ping timeout: 252 seconds]
mekeor has quit [Ping timeout: 255 seconds]
<dhess>
Aleksejs: the most straightforward fix is to put that link in archive.org
oida has joined #nixos
<dhess>
or you can check the new wiki, but not all of the old stuff is there
chreekat has quit [Ping timeout: 255 seconds]
chreekat has joined #nixos
nithor has quit [Ping timeout: 265 seconds]
<makefu>
Aleksejs: if you find old stuff in archive.org, go ahead and put it in the new wiki :D
sigmundv has joined #nixos
jsgrant_ has quit [Remote host closed the connection]
jsgrant_ has joined #nixos
sigmundv has quit [Remote host closed the connection]
jrolfs has joined #nixos
sigmundv__ has quit [Ping timeout: 240 seconds]
jsgrant_ has quit [Remote host closed the connection]