<slack1256>
How does one introduce a change onto haskellPackages? The file hackage-package.nix is autogenerated. I know it depends on configuration-ghc-8.*.x.nix. Is there a command or file that should be run to create a new hackage-package.nix?
<jackdk>
hackage-packages.nix is generated by hackage2nix, controlled by a yaml file in the same dir. fixups to the generated packages live in configuration-*.nix. What change are you trying to make?
<slack1256>
Oh so I am missing hackage2nix then
<slack1256>
I noticed that broadcast-chan is not broken if you use dontCheck. Adding that change also allow building taffybar.
* ZaraChimera
has returned.
<slack1256>
If I send a PR with that change, should it also include the updated hackage-package.nix or just the modified yaml?
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
alp has quit [Ping timeout: 259 seconds]
ryantm has quit [Remote host closed the connection]
marusich has quit [Remote host closed the connection]
ryantm has joined #nixos
<mac10688>
If i run nix-env -qaPA 'nixos.nodePackages' I see in the list nixos.nodePackages.pulp. I try to run nix-shell -p nixos.nodePackages.pulp and it doesn't work
<mac10688>
I'm not sure what to do
<mac10688>
and why doesn't this package show up on the website when i search for it?
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<jackdk>
slack1256: sorry, didn't see your response, I'm about to head out. I normally just fix the yaml, as peti regenerates the nix on a pretty good cadence
<slack1256>
jackdk: Don't worry jackdk!, thanks for the info!
halfbit has joined #nixos
halfbit has quit [Client Quit]
endformationage has quit [Ping timeout: 268 seconds]
justanotheruser has joined #nixos
nD5Xjz has quit [Ping timeout: 248 seconds]
<drakonis1>
glibc's still on 2.27, right?
init_6 has joined #nixos
<drakonis1>
i can't compile code because glibc can't find the stubs
<day|flip>
nix search --json glibc it seem like it. nixpkgs are still same as 19.03 stable
<drakonis1>
trying to write a package but i cannot get it to build because of this gnu/stubs-32.h: No such file or directory
<hyper_ch>
hmmm, how can I in grub force-import zfs pools?
<Mic92>
hyper_ch: always online, but sometimes responses come later.
<chrisaw>
hyper_ch: I think zfs pools are force imported by default on NixOS
<chrisaw>
hyper_ch: You can also add zfs_force=1 to your boot args though if you think this may not be working.
<chrisaw>
Can anyone help me with a nix syntax question? I'm trying to override the python package to add a few pkgs of my own. I'm following https://nixos.wiki/wiki/Python#Using_alternative_packages but I really don't get this whole with pkgs; let... yada yada stuff.
<chrisaw>
Can I do something like: pkgs.python-with-pkgs = pkgs.python-packages: with pkgs.python-packages; [ pkgs.boto ]; (for example)?
<{^_^}>
[nixpkgs] @vcunat pushed 2 commits to release-19.03: https://git.io/fjwVN
<chrisaw>
hyper_ch: Ah, if you need to have a pool import automatically - just import it at runtime, then export it again. Then reboot and it should be auto-imported from there on out.
<hyper_ch>
chrisaw: how to import it at runtime when it should be imported during bootup because its in /etc/fstab and then the whole bootup stops?
<hyper_ch>
chrisaw: becuase of some zfs encryption changes, I deattached 1 disk from a 3-disk mirror.. I created a new pool tankMediaNew... then I zfs send/recv everything to there. After that I detached second disk from tankMedia and attached it to tankMediaNew.... I made sure after resilerving that snapshots are current. Then I booted into live iso, I force imported tankMedia as tankMediaOld and and force imported tankMediaNew as tankMedia... I rebooted -
<hyper_ch>
system stopped booting up because was to be automounted in /mnt/media but tankMedia was force imported on another system
<chrisaw>
hyper_ch: I'd say boot using your livecd - comment out the lines from fstab, boot as normal - then import / export. Then your fstab changes should be added again and reboot.
<Izorkin>
How to ned to merge PR #61816 #61722 #63355 #63150 ?
<chrisaw>
hyper_ch: Ahhh! Sorry, yep that makes sense. Just comment out the lines from your nixos config which mount those legacy zfs mountpoints.
<hyper_ch>
but how do you then regenerate a new config?
<chrisaw>
nixos-install again
<jasongrossman>
sudo nixos-generate-config
<hyper_ch>
and you don't see a problem with that?
<jasongrossman>
And then nixos-install, yes.
<{^_^}>
[nixpkgs] @minijackson opened pull request #63683 → vimPlugins.camelcasemotion: init at 2019-06-06 → https://git.io/fjwws
<chrisaw>
No, you wont have any data loss. It will simply bring your installed system up-to-date with your config.
rfold has quit [Ping timeout: 246 seconds]
<hyper_ch>
you don't see a problem to install new system only because you decided to move a zpool to a new disk?
<chrisaw>
No, I'm not saying install a new system :)
<hyper_ch>
basically you are installing a new system
<hyper_ch>
mount manually everything in /mnt while in live iso
<hyper_ch>
and then run nixos-install
<hyper_ch>
that's installing a new system
alp has quit [Ping timeout: 258 seconds]
cantstanya has quit [Remote host closed the connection]
<chrisaw>
I see it as a pain in the butt yes. I didn't create either NixOS nor ZFS on Linux. I'm just telling you what needs to be done to get this working.
<hyper_ch>
luckily in my case I had an easier way to get it working again
<chrisaw>
Cool, glad to hear it! :)
m0rphism has joined #nixos
<hyper_ch>
but I still think this is handled poorly... I still don't like that change where they removed force-import of pools
<chrisaw>
The issue is really tied to the hostId matching ZFS uses to match pools to systems. Bit of a faffy setup but meh. As long as it works I guess.
cantstanya has joined #nixos
fendor has joined #nixos
bbarker has joined #nixos
<rnhmjoj>
could anyone take a look at issue 62639?
<rnhmjoj>
it's really driving me nuts
<{^_^}>
[nixpkgs] @minijackson opened pull request #63684 → vimPlugins.tmux-complete-vim: init at 2019-05-13 → https://git.io/fjww0
alp has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clacke_movim>
You could build exactly that, if you don't mind old dependencies!
<clacke_movim>
(assuming that's an old commit)
<clacke_movim>
I'm not just being facetious, it's a valid tactic, and Nix is made for it.
<clacke_movim>
Actually you could build it with up to date deps too thanks to all the layers of abstraction.
thc202 has joined #nixos
<siraben>
clacke_movim: Seems to fail with up to date deps
<siraben>
Interesting because at some point this package was removed from nixpkgs
asheshambasta has joined #nixos
<asheshambasta>
is this considered the standard way to upgrade the linux kernel? https://nixos.wiki/wiki/Linux_kernel, namely; how much of a problem can the 'Custom kernel modules' section be?
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
Xal has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dansho has joined #nixos
<asheshambasta>
Also, what are the recommended workflows for editing the /etc/nixos/configuration.nix file as the normal user? I'd like to be able to edit that file within emacs without sudo. Is the normal way to go about that just to give the user permission on the files?
delroth has joined #nixos
<sphalerite>
I find myself forced to use a Flash application :| how do I get the flash player on nixos nowadays?
<sphalerite>
asheshambasta: yeah, you can do that. Or put a symlink to something in your home at /etc/nixos/configuration.nix
<infinisil>
asheshambasta: You can also just put the file in your HOME somewhere
<infinisil>
And use nix.nixPath = [ "nixos-config=/path/to/file" ]
<infinisil>
(And be sure to propagate the nixPath defaults
<sphalerite>
-1 infinisil because of exactly that
<sphalerite>
a symlink doesn't have that problem, and broken NIX_PATH is a nasty problem that can be very confusing for people who don't know about it
<infinisil>
Well I like that way more, because less things are implicit and I have more control over things
<infinisil>
It certainly is an alternative worth showing
is_null has quit [Remote host closed the connection]
<ottidmes>
I do both, set nixos-config in NIX_PATH via nixPath and make /etc/nixos/configuration.nix a symlink to that file as well, unnecessary, but in the case something still assumes /etc/nixos/configuration.nix I am not in for a surprise. Have done this for years now, never had a problem
jackdk has joined #nixos
polmaan has quit [Ping timeout: 244 seconds]
polman has quit [Ping timeout: 248 seconds]
polmaan has joined #nixos
fendor has quit [Read error: Connection reset by peer]
gentauro has joined #nixos
<infinisil>
Oh nice idea
polmaan has quit [Ping timeout: 248 seconds]
fendor_ has quit [Ping timeout: 246 seconds]
arjen-jonathan has joined #nixos
mrCyborg has joined #nixos
polmaan has joined #nixos
stranger___ has quit [Quit: Connection closed for inactivity]
<Mic92>
hyper_ch: sorry, no longer using wireguard on any machine.
polman has joined #nixos
<Mic92>
hyper_ch: have a look at systemd-networkd, that should work better then the nixos script hackery.
is_null has joined #nixos
<tilpner>
sphalerite: Try flashplayer-standalone
Anton-Latukha has joined #nixos
pie__ has joined #nixos
pie__ has quit [Remote host closed the connection]
pie_ has quit [Read error: Connection reset by peer]
pie__ has joined #nixos
pie__ has quit [Remote host closed the connection]
pie__ has joined #nixos
pie__ has quit [Remote host closed the connection]
<statesman>
Hi. I installed mono for running F# programs. When I try to run such programs mono crashes because it could not find the FSharp.Core dll. Does anyone have experience with this?
<gentauro>
statesman: yeah, F# and Linux aren't ment to be :( (sadly)
<simpson>
Hm, really? I could have sworn I saw somebody (ldlework?) with F♯ on Linux, but I'm not sure how.
<statesman>
I think I have had this problem before (not on NixOS) and was able to resolve it. The file hierarchy on nix os makes it very difficult to discern why the DLL is not found.
<gentauro>
simpson: F# will work on Linux the day we will have Windows Docker support
<simpson>
gentauro: Bemusing. Thanks, TIL.
<gentauro>
statesman: can you just place the file locally in your project? (like some ./lib/F#.Core.dll)
<statesman>
Interesting that you would ask. I just installed NixOS coming from Ubuntu. On ubuntu the FSharp.Core.dll file would always be found in the directory after compiling an fsharp program
<statesman>
gentauro: It worked! Thanks a lot :-)
<statesman>
I copied the dll from mono in /run/current-system...
Mateon1 has quit [Ping timeout: 246 seconds]
<gentauro>
cool :)
pie_ has joined #nixos
bbarker has quit [Ping timeout: 244 seconds]
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
<eddyb>
has anyine here tried to get GCC building with doCheck=true?
<simpson>
eddyb: That sounds rad. Didn't realize we don't already do that. Is it mostly about waiting for a long test suite?
<eddyb>
I believe I'm stuck on the GCC buildsystem offering no way to add flags to non-HOST_CC (even when host==target) gcc invocations in the test suite, which results currently in crt{1,i}.o not being found
<{^_^}>
[nixpkgs] @michojel opened pull request #63690 → megasync: init at 4.1.1.0 → https://git.io/fjwig
ilmu has joined #nixos
<eddyb>
simpson: no, it's been broken for years AFAICT
Mateon1 has joined #nixos
<eddyb>
there are a few missing dependencies. when I add them, the testsuite stops failing in cryptic ways and actually runs but all the executables it tries to build hit the aforementioned linker error
<qyliss>
simpson: it would cause a dependency cycle in stdenv
<eddyb>
it's been frustrating me for a while
<simpson>
qyliss: Oh, ha, yeah, good point.
<eddyb>
qyliss: how so?
<qyliss>
I'm already deep in gcc land trying to get it to build for solaris, so I can have a go at getting the tests to run too.
<qyliss>
eddyb: dunno. I just read a comment that says that a couple of hours ago.
<qyliss>
eddyb: what version are you trying?
statesman has quit [Quit: WeeChat 2.4]
<eddyb>
anyway a few weeks ago I wanted to submit a tiny patch to libiberty and GCC *happens* to hold the primary copy of that. and because I need to submit bigger patches in the future I thought I should make sure the testsuite works
<qyliss>
yeah. it would be nice.
<eddyb>
qyliss: many. it's been broken for years. likely unchanged
<eddyb>
qyliss: heh is solaris what you were running under qemu on the -j48 server?
init_6 has quit []
<eddyb>
I got burned out when I first tried to get this working because it takes a while even on that server (hey maybe I should've figured out if I can use ccache? lol)
<eddyb>
and I also was bisecting glibc of all things for another bug (which turned out to *not* be caused by glibc, just accidentally correlated with a version bump in it in nixpkgs)
<eddyb>
qyliss: anyway I can give you more details tomorrow, when I get to the office
bbarker has joined #nixos
<qyliss>
eddyb: yep
<eddyb>
qyliss: override doCheck to true and add `expect` and `dejagnu` as native deps, I think?
orivej has quit [Read error: Connection reset by peer]
orivej has joined #nixos
<eddyb>
qyliss: if the server wasn't restarted I would've told you to look in /tmp, I was running nix-build with -K :P
<qyliss>
lol
alp has quit [Ping timeout: 258 seconds]
Soo_Slow has quit [Remote host closed the connection]
ddellacosta has joined #nixos
stepcut has joined #nixos
<chrisaw>
Can anyone provide guidance on where I'm going wrong with a python overlay> https://termbin.com/q5yc -- I'm using this but what I need is basically to end up with a package containing python2 *and* several additional packages which come from an overlay.
orivej has quit [Ping timeout: 272 seconds]
<chrisaw>
So I basically need a kind of - python.withPackages [ self.hello self.world super.random ]; kind of thing but despite reading the NixOS docs - I just can't seem to get it to do what I need.
<qyliss>
If I have a /nix/store directory backed up, but I forgot to add anything else in /nix (notably the database), can I regenerate the database somehow?
<LnL>
I don't think so
arjen-jonathan has joined #nixos
<qyliss>
oops :P
xelxebar has joined #nixos
<gchristensen>
it would be cool to refresh the NixOS on ZFS page, for example more strongly encouraging disabling atime and enabling posixacl
alex`` has quit [Ping timeout: 245 seconds]
<clever>
qyliss: nix copy --to local?root=/mnt /nix/store/foo or --all
<clever>
qyliss: that will copy things from one store to another, and maintain the database as it does so
<qyliss>
clever: trying `find nix/store -maxdepth 1 | awk '{print "/" $1}' | xargs nix copy --from local?root=/home/qyliss` just prints an error for each path telling me it isn't valid :(
pie_ has quit [Ping timeout: 258 seconds]
<clever>
qyliss: find ran locally, and is listing paths you already have
<qyliss>
It's running in my home directory, looking in my backup at /home/qyliss/nix/store
<qyliss>
there's no leading /
<{^_^}>
[nixpkgs] @arcnmx opened pull request #63695 → pythonPackages.hidapi: enable on darwin → https://git.io/fjw1k
xelxebar has quit [Ping timeout: 256 seconds]
ilmu has joined #nixos
pie_ has joined #nixos
xelxebar has joined #nixos
xorAxAx has joined #nixos
asheshambasta_m has joined #nixos
<clever>
qyliss: ahh
<clever>
qyliss: what about just using * ?
<{^_^}>
[nixpkgs] @rnhmjoj opened pull request #63696 → nixos/testing: remove leftover of virtualisation.qemu.program → https://git.io/fjw1t
<clever>
though it may been awk to add a / to that
<qyliss>
Yeah, that's what I was trying to do.
<gchristensen>
infinisil: znapzend runs as root anyway, what if: if mbuffer is enabled, it first nix-copy-closure's the correct/expected mbuffer to the remote
<infinisil>
Oh interesting
<qyliss>
clever: same result anyway
<clever>
qyliss: `nix path-info --store local?root=/home/qyliss` and check its help page, can you query anything from that store?
<infinisil>
gchristensen: Assuming the other machine has Nix, I don't see a problem with this
<gchristensen>
infinisil: it would ... have trouble ... with cross-architecture things I suppose
<gchristensen>
but might be a cute way to go about it
<infinisil>
Hmm yeah
<gchristensen>
I have a wish list for znapzend, like: use systemd timers, not a process. and: use resumable sends
<qyliss>
clever: nope
<clever>
qyliss: do you know much of sqlite? poke around in nix/var/nix/db/db.sqlite
<qyliss>
doesn't exist.
<qyliss>
<qyliss> If I have a /nix/store directory backed up, but I forgot to add anything else in /nix (notably the database), can I regenerate the database somehow?
<clever>
qyliss: ahhh, yeah, no real way to recover from a missing db.sqlite
<qyliss>
aww
<qyliss>
ah well
<qyliss>
just need to wait for stuff to build again then :0
<clever>
youll want to backup /nix as a whole next time
<qyliss>
I now realise that :)
<clever>
the nix copy stuff is mainly to deal with updating such a copy, or making partial copies
palo has quit [Quit: WeeChat 2.4]
palo has joined #nixos
peacememories has joined #nixos
peacememories has quit [Client Quit]
phreedom has quit [Ping timeout: 256 seconds]
phreedom has joined #nixos
knupfer has quit [Remote host closed the connection]
<clever>
sonercirit[m]: the client stuff should be built into the torrent client
<sonercirit[m]>
well it doesn't work, but I know it works on manjaro
<sonercirit[m]>
dunno why tho :(
<sonercirit[m]>
i tried changng ports as well
<clever>
sonercirit[m]: compare the output off ldd when ran on both binaries
<clever>
sonercirit[m]: or just forward the port manually
justanotheruser has quit [Quit: WeeChat 2.4]
<Netsu>
hello there. I'm not cpp programmer, but need to write nix recipe for one. I see pkgconfig, pkgconf and pkg-config there. Which one is recommended to use to link dependencies? Thanks, and sorry if question irrelevant to channel.
<mog>
im trying to build some software inside a nix-shellwhen it goes to link it explodes. lots of errors like this undefined reference to `std::__cxx11::basic_string
<clever>
mog: are you using gcc or g++ to link it?
<mog>
g++ i believe
<clever>
mog: can you paste the full error and the cmds it was running?
<mog>
sure one sec
vcunat has quit [Ping timeout: 252 seconds]
m15k has quit [Ping timeout: 256 seconds]
<clever>
mog: it might also need something like -std=c++11 to enable c++11
Netsu has quit [Ping timeout: 256 seconds]
dfranke_ has quit [Quit: leaving]
Netsu has joined #nixos
xelxebar has quit [Remote host closed the connection]
<Netsu>
clever: dependency 'jerasure' has include dir, and yes, jerasure/include/jerasure.h in path. but jerasure/include/jerasure/*.h are not :( How can I add that nested folder with headers to path with headers?
<clever>
Netsu: yeah, when dealing with include/jerasure, you need to add pkg-config into the mix, does jerasure have a pkgconfig file?
zupo_ has joined #nixos
<clever>
Netsu: it will be a .pc file somewhere under lib
<clever>
mog: are you sure that is inside nix-shell?
<karetsu>
I'm trying to make some i3 modes managed using home-manager, what's the easiest/correct way to specify a generic template for each mode that each 'inherits' and then I can add the extra things to for each mode? using imports feels wrong and repeating myself in every block is just laborious
<mog>
yes
<clever>
mog: you can also `make VERBOSE=1` to make cmake reveal the commands
<{^_^}>
[nixpkgs] @tobim opened pull request #63698 → Fix misuses of overrideCC → https://git.io/fjwM8
<kraem>
clever: i'm not able to `git fetch pull/60833/head` - any idea why?
<clever>
kraem: oh, i think its `git fetch origin pull/60833/head`
<kraem>
that's it. thank you
<kraem>
how do i "save" this in the package manager - or define the system wide chromium package to be built this way? because now i will only be able to start the binary through the result symlink right?
<clever>
kraem: one min
<kraem>
of course - no stress :) i'm just happy you're helping
<mog>
is there a way to have build-vm build a vm with encrypted root?
zupo has quit [Ping timeout: 272 seconds]
<srhb>
ar: What's that +replication drv?
drakonis has joined #nixos
zupo_ has joined #nixos
<ar>
srhb: dependency for lxd
<srhb>
ar: So, the broken thing is sqlite-replication?
Okinan has joined #nixos
<srhb>
ar: That does appear to be the case. :)
<kraem>
clever: just a question because i'm curious and want to understand nix: would the nix pkg manager be so smart that if i built it through cloning the nixpkgs repo and building it from there and then do nixos-rebuild with the changes i pasted; would it symlink to the same nix store folder?
<clever>
kraem: yeah, it should
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
arjen-jonathan has quit [Ping timeout: 264 seconds]
<rndd[m]>
well I know that there must me universal solution of my problem. Maybe somebody will show part of configuration.nix that install wifi driver (like rtlnew)&
<rndd[m]>
?
<clever>
day|flip: i think it goes in $out/lib/firmware, and then into hardware.firmware = []
<infinisil>
foo_bbar: Well there is a way, but it's very much discouraged. If you use this your code won't be accepted in nixpkgs, and everybody using Nix will have problems when they use it because it won't work with the default settings
<sindrip>
This is what I've tried in an overlay, not having much luck
<sindrip>
All I'm really looking for is some way to have brittany in my global environment. I'm a beginner at haskell but I like the formatting from brittany much more than hindent f.x.
sheeldotme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sheeldotme has joined #nixos
sheeldotme has quit [Client Quit]
sheeldotme has joined #nixos
sheeldotme has quit [Client Quit]
<hexagoxel>
sindrip: nice to hear. But sorry, I am not a nix user. I just target cabal and stack. But bsima has PR'd the nix instructions for brittany recently, maybe they can help.
sheeldotme has joined #nixos
sheeldotme has quit [Client Quit]
sheeldotme has joined #nixos
sheeldotme has quit [Client Quit]
sheeldotme has joined #nixos
<hexagoxel>
And feel free to open an issue on the brittany tracker. Even if the maintainers cannot help, it is useful to organize installation support via the tracker.