<clever>
fragamus: this one is 32bit, and compiled
<fragamus>
ok super nintendo
btbytes has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
btbytes has joined #nixos
btbytes has quit [Client Quit]
<Myrl-saki>
Wtf.
<Myrl-saki>
What does enable-kernel do?
<Myrl-saki>
(glibc)
<Myrl-saki>
"compile for compatibility with kernel not older than VERSION"
<Myrl-saki>
I guess this is a hard requirement.
<Myrl-saki>
The minimum Linux kernel version that this version of the GNU C Library can be used with is 3.2, except on i[4567]86 and x86_64, where Linux kernel version 2.6.32 or later suffices (on architectures that already
<Myrl-saki>
So I really have to downgrade to 2.23.
cheater has quit [Ping timeout: 260 seconds]
cheater has joined #nixos
andymandias has quit [Ping timeout: 255 seconds]
<Myrl-saki>
Maybe I can LD_PRELOAD the kernel version reporting.
worldofpeace has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #42637 → trivial-builders: disallow sub in requireFile → https://git.io/f45vJ
worldofpeace has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
matthewbauer has quit [Read error: Connection reset by peer]
stepcut has quit [Ping timeout: 240 seconds]
matthewbauer has joined #nixos
newhoggy has quit [Remote host closed the connection]
newhoggy has joined #nixos
matthewbauer has quit [Ping timeout: 240 seconds]
fresheyeball has joined #nixos
phdoerfler has quit [Quit: Leaving.]
ryantrinkle has quit [Ping timeout: 276 seconds]
tput has joined #nixos
matthewbauer has joined #nixos
<ldlework>
I have two nixops deployments. They *seem* to share the same keypair... I can't delete the one until all of the assets are destroyed, but that will destroy the keypair for my other deployment too.
<ldlework>
What do?
hoshineko has joined #nixos
<ldlework>
nevermind
<tput>
I've got a package that produces both libraries and binaries. The binaries can't find the libraries, but run fine if I manually append to LD_LIBRARY_PATH. Is there a nice way to wrap a half-dozen binaries to append to their paths?
<glasserc>
Something is showing up in my nix-shell that I don't expect.. how can I figure out why? Is there a way to show the dependency graph for a shell?
matthewbauer has quit [Ping timeout: 268 seconds]
dmc has joined #nixos
<glasserc>
I see there's nix-store --graph, but I don't know how to get the hash of my shell
acarrico has quit [Ping timeout: 256 seconds]
lassulus_ has joined #nixos
Have-Quick has joined #nixos
alexteves has quit [Remote host closed the connection]
lassulus has quit [Ping timeout: 256 seconds]
lassulus_ is now known as lassulus
chessai has quit [Remote host closed the connection]
Have-Quick has quit [Remote host closed the connection]
btbytes has joined #nixos
<adisbladis[m]>
glasserc: You could graph ls like this:
<worldofpeace>
hmm, `set version-specific env variables`, i guess find the variables and what to set them. sucks that peti doesn't irc, he'd most likely tell you, if he knew.
<grantwu>
He does; he's in #nixos-dev
<grantwu>
When I asked about this issue, he said that nobody's working on it.
<grantwu>
Really, there needs to be a big warning on Nix on non-NixOS
<grantwu>
That it's really not a development priority
<worldofpeace>
Right, cross-compiling is :P . Yeah I feel this pain
<grantwu>
How exactly is this cross compiling?
<worldofpeace>
Sorry, you said this issue wasn't a priority, and I made a joke that wasn't related to this.
<grantwu>
Oh, you were saying that cross-compiling was a priority
blonkhart has joined #nixos
mahalel_ has quit [Remote host closed the connection]
Rusty1_ has quit [Quit: Konversation terminated!]
andreabedini has joined #nixos
MercurialAlchemi has joined #nixos
hph^ has joined #nixos
hph^ has quit [Max SendQ exceeded]
reinzelmann has joined #nixos
wchresta has joined #nixos
hph^ has joined #nixos
Lisanna has quit [Remote host closed the connection]
hph^ has quit [Max SendQ exceeded]
hph^ has joined #nixos
hph^ has quit [Max SendQ exceeded]
hph^ has joined #nixos
hph^ has quit [Max SendQ exceeded]
hph^ has joined #nixos
hph^ has quit [Max SendQ exceeded]
hph^ has joined #nixos
hph^ has quit [Max SendQ exceeded]
endformationage has quit [Quit: WeeChat 1.9.1]
Guanin has quit [Ping timeout: 245 seconds]
obadz- has joined #nixos
justbeingglad has joined #nixos
mariatsji has quit [Remote host closed the connection]
justbeingglad has quit [Remote host closed the connection]
reinzelmann has quit [Quit: Leaving]
obadz has quit [Ping timeout: 260 seconds]
obadz- is now known as obadz
justbeingglad has joined #nixos
worldofpeace has quit [Ping timeout: 255 seconds]
robstr has joined #nixos
Guanin has joined #nixos
Biappi has quit [Remote host closed the connection]
liori has quit [Remote host closed the connection]
cheater has quit [Ping timeout: 264 seconds]
mariatsji has joined #nixos
justbeingglad has left #nixos [#nixos]
wchresta has quit [Remote host closed the connection]
hamishmack has quit [Ping timeout: 240 seconds]
Drakonis has quit [Remote host closed the connection]
coot has joined #nixos
phreedom has quit [Ping timeout: 250 seconds]
jbgi has joined #nixos
phreedom has joined #nixos
<gchristensen>
grantwu: yeah I mean this is a priority
<gchristensen>
I don't have a solution for you, but this is absolutely a priority use case
periklis` has joined #nixos
jbgi has quit [Ping timeout: 245 seconds]
hoshineko has quit [Ping timeout: 256 seconds]
jD91mZM2 has joined #nixos
hyper_ch2 has joined #nixos
justbeingglad has joined #nixos
kreetx has joined #nixos
<thefloweringash[>
hello, anyone happen to know why nixpkgs has mysql55 and mysql57, but not mysql56?
<etu>
Probably because something in nixpkgs needs mysql55, but nothing really needed mysql56 when mysql57 was introduced
<{^_^}>
[nixpkgs] @xeji pushed commit from @timokau to master « python2Packages.rpy2: fix python2 compatibility (#42634) »: https://git.io/f45sd
goibhniu has joined #nixos
dadou has joined #nixos
Jason_Grossman has joined #nixos
agander_ has joined #nixos
<raynold>
Ahh it's a wonderful day
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
agander__ has quit [Ping timeout: 256 seconds]
__Sander__ has joined #nixos
fl3 has joined #nixos
thc202 has joined #nixos
<tilpner>
In with import (fetchTarball "channel:nixos-unstable-small") {}; python3Packages.vobject.overrideAttrs (old: { doCheck = false; }), shouldn't the tests be disabled?
thc202 has quit [Max SendQ exceeded]
thc202 has joined #nixos
Biappi has joined #nixos
blankhart has quit [Ping timeout: 256 seconds]
astrofog has joined #nixos
crmlt has joined #nixos
<thefloweringash[>
tilpner: for reasons I have yet to understand, those tests are coming from the "installCheckPhase", which is controlled by "doInstallCheck"
<fl3>
Hi! I have a library, looking for "xlib_xcb" with pkg-config. It needs libX11-xcb.so, which is in nix's xlibs.libX11. But its named x11-xcb for pkg-config. Any tips how to resolve this situation? Probably I should study a bit about pkgconfig, but no clues what exectly :(
<tilpner>
thefloweringash[ - Huh, I had not heard of installCheck before, thank you! :)
orivej has joined #nixos
asuryawanshi has quit [Ping timeout: 245 seconds]
roberth has quit [Ping timeout: 260 seconds]
tilpner has quit [Remote host closed the connection]
sigmundv has joined #nixos
__monty__ has joined #nixos
kiloreux has joined #nixos
tilpner has joined #nixos
raving has quit [Remote host closed the connection]
<Peaker>
hey, where's the default ghc defined? I'm grepping the nixpkgs repo and finding tons of references to various versions. I want to override the compiler version used in my nix file and don't know how
xy3_ has quit [Read error: No route to host]
andymandias has joined #nixos
<Peaker>
how do I update my nix pkgs? git repo has 8.4.3 but "nix-env -f "<nixpkgs>" -qaP -A haskell.compiler" shows just 8.4.2 ?
Plato[m] has joined #nixos
<{^_^}>
[nixpkgs] @ajs124 opened pull request #42643 → libvirt: fix iscsi storage support → https://git.io/f45VP
<Plato[m]>
I have a simple default.nix just calling "callCabal2Nix" and I get the error: can't load .so/.DLL for: /nix/store/.../libHSiCalendar-0.4.0.4-KilMaWRP58N9bx2DbCVRFc-ghc8.2.2.so (... undefined symbol: iCalendarzm0zi4zi0zi4zmKilMaWRP58N9bx2DbCVRFc_PathszuiCalendar_version1_closure)"
Mateon3 has joined #nixos
lysk has joined #nixos
Mateon1 has quit [Ping timeout: 276 seconds]
Mateon3 is now known as Mateon1
<lysk>
Hi! It seems as if I somehow managed to break my nix environment/profile on nixOS. Now I get error messages all the time (for example 'nix-env -i nix-repl' retunrns 'error: selector 'nix-repl' matches no derivations). Is there any easy and clean way to completely reset my profil (and also to delete another profile that I created for testing purposes)?
<dadou>
Hello, I am running on nixos. Whenever I want to use nix-env -iA (for ex), I need to be as root . Otherwise I have this error message: error: opening lock file '/nix/var/nix/profiles/default.lock': Permission denied. Does that mean that my nixos set up is wrong ?
glask has joined #nixos
<glask>
Hey folks, for some reason installing packages via nix-env (on NixOs 18.03) doesn't work anymore on my computer. For example "nix-env -i nix-repl" just returns "error: opening lock file '/nix/var/nix/profiles/default.lock': Permission denied". This also happens for any other package I am trying to install. Does anyone of you maybe have an idea what I could do to solve this problem?
phdoerfler has joined #nixos
<etu>
Hmm, now two people have asked the same question in a very short window of time (4 minutes apart).
<etu>
dadou, glask: Have you updated your systems recently?
<LnL>
glask: what does readlink ~/.nix-profile say?
<dadou>
etu: not that I can recall. But I always had this behavior. Speaking to a friend helps me realise that it was not the usual way
flyx has quit [Ping timeout: 248 seconds]
aw has quit [Ping timeout: 240 seconds]
<LnL>
no it's not, and there's no default profile on nixos by default
aw has joined #nixos
flyx has joined #nixos
iMatejC has quit [Ping timeout: 248 seconds]
makefu has quit [Ping timeout: 248 seconds]
<joepie91>
this sounds like it may not be running in multi-user mode?
<joepie91>
ends with /profile for me as well, though i haven't checked if nix-env works here as I don't really use it
m0rphism has quit [Quit: WeeChat 1.9.1]
<glask>
is there any way to reset the profile/switch back to normal?
<LnL>
it should be something like /nix/var/nix/profiles/per-user/$USER/profile and that user directory should be owned by your user
<dadou>
Ho maybe I found my issue: nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels
<dadou>
my nix_path looks like this
<dadou>
whereas my username is adfaure
<LnL>
just removing ~/.nix-profile should fix it, but then you loose what you had installed ofcorse
fl3 has quit [Remote host closed the connection]
<glask>
okay, that shouldn't be a problem since I installed most of the important stuff via config. So just rm -rf ~/.nix-profile? or do I have to rebuild/reboot afterwards?
<LnL>
dadou: that's normal, on nixos the channels are managed by root because of the system configuration
<LnL>
glask: yeah, the next nix-env command will create a user profile for you if it doesn't exist yet
<glask>
hmm no, still the same error after deleting it and trying nix-env --i nix-repl again...
<etu>
glask: "nix repl" exists now
<LnL>
hmm, this is on nixos right? is there a per-user directly for your user?
<glask>
oh, yes, nix repl seems to work now. but installing packages still gives me the same error (opening lock file/permission denied)
knupfer has joined #nixos
<glask>
yes, I'm on nixos and there is a directory for my user and for root in /nix/var/nix/profiles/per-user
<etu>
glask: I can install for example ipython with nix-env -iA, but I get the error about some db directory if I try to install nix-repl through nix-env
<Peaker>
it's a bit funny that almost all the nix code I look at mainly does record updates, but record updates look like pre-lens nested record updates in Haskell (bad)
<LnL>
strange, I wonder why it's not using that
<glask>
etu: when using -iA instead of -i I get errors like "error: attribute 'neovim' in selection path 'neovim' not found"
<LnL>
what about nix-env --switch-profile /nix/var/nix/profiles/per-user/$USER/profile
<LnL>
you need to prefix those or user -f '<nixpkgs>'
<dadou>
LnL: works for me
<dadou>
to switch profile
phdoerfler has quit [Quit: Leaving.]
<LnL>
you can install stuff now without sudo?
fendor has joined #nixos
<glask>
LnL: I switched the profile to /nix/var/nix/profiles/per-user/$USER/profile. now installing via nix-env -i seems to work, however nix-env -A still returns "error: attribute 'neovim' in selection path 'neovim' not found"
mmercier has joined #nixos
<LnL>
it's prefixed, use nix-env -f '<nixpkgs>' -iA neovim or nix-env -iA nixos.neovim
dadou has quit [Ping timeout: 260 seconds]
fendor has quit [Ping timeout: 260 seconds]
<LnL>
you don't have to use -A ofcorse, but it has some disadvantages as explained on that wiki page
ericsagnes has joined #nixos
makefu has joined #nixos
<glask>
LnL: right, I forgot the prefix! I'll have a closer look at the difference between -i and -iA! but now everything seems to be working again, after switching my profile :) so many thanks for your help!
<LnL>
any ideas why it might have ended up like that?
<glask>
LnL: hmm, probably my own stupidity... I wanted to try out some overlay stuff a couple days ago and since then things have been a little strange. I think I also switched to/created a new profile for testing purposes, so I probably just switched back to the wrong directory (if that's evn possible)
Jason_Grossman has quit [Ping timeout: 268 seconds]
iyzsong has joined #nixos
Jason_Grossman has joined #nixos
tzemanovic has joined #nixos
tmaekawa has joined #nixos
Jason_Grossman has quit [Ping timeout: 245 seconds]
chrisaw has joined #nixos
<chrisaw>
Hey folks - I realise this is a daft question but I'm struggling to find the answer. What're the steps to install packages from a cloned nixpkgs repo? As in - I want to use the absolute latest packages before they're built (due to needing a fix for a ZFS issue which hasn't yet pushed out through normal channels.)
Jason_Grossman has joined #nixos
<srk>
chrisaw: you just need to set NIX_PATH
<chrisaw>
srk: Oh, heh - that simple ey? Thanks a lot! :D
<ben>
this is not a daft question because theres like five mechanisms to achieve that for different nix tools
<srk>
but only recently realized that nix-env for users still relied on channel from installion
<srk>
yeah, my nixpkgs clone is in /etc
iyzsong-x has joined #nixos
<ben>
mh
iyzsong has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @srhb opened pull request #42648 → vimPlugins.dhall-vim: init at 2018-06-04 → https://git.io/f45Mh
<srk>
when I remove the channel it breaks some stuff it looks like (e.g. nix-env -iA nixos.srk which is part of .config/nixpkgs/)
<ben>
I have like NIX_PATH=/home/ben/.nix-defexpr/channels:nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels which feels extremely too long
tzemanovic has quit [Remote host closed the connection]
kiloreux has quit [Ping timeout: 260 seconds]
<nyanloutre[m]>
Hello, is there someone to review my PR ? It's a new python library so it shouldn't be very long :
<{^_^}>
[nixpkgs] @volth opened pull request #42649 → automake111x: fix for perl5.26 ("Unescaped left brace in regex is illegal here") → https://git.io/f45DO
cheater has joined #nixos
agander_ has joined #nixos
agander_ is now known as agander
<chrisaw>
srk: Thanks a lot - seems to have done the trick! :)
<chrisaw>
srk: Exactly that - running a quite experimental piece of kit (GPD pocket) so need the latest drivers from 4.17 (preferably 4.18) but also want to run ZFS. :)
kiloreux has joined #nixos
<davidak_>
what is the most elegant way to have a stable NixOS install and get SOME packages from unstable specified in configuration.nix?
<infinisil>
I honestly don't really like the channel way described there though
<infinisil>
Ah well, nah that's good
<srk>
infinisil: how do you teach that bot new tricks?
<infinisil>
,help srk
<{^_^}>
srk: Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<infinisil>
Feel free to try the bot out in #bottest :)
<infinisil>
Spamming all commands I mean
<nyanloutre[m]>
ok thank
<logzet>
Maybe a dumb question: Is switching to nixos-unstable a bad idea?
<logzet>
And does switching back to a normal release cause any problems in your experience? (I'm asking because iirc unstable has slightly newer software and I'm careful about downgrading the configuration in ~)
<davidak_>
logzet, unstable is .. sometimes unstable :D
Michael3232 has joined #nixos
<davidak_>
but yes, newer software
<davidak_>
it might be a problem for some software, when a newer version writes a configuration, that an older version don't understand
<davidak_>
for services configured by NixOS, it should be no problem
<srk>
I'm running unstable for like a year now without issues
<srk>
(master from git)
<{^_^}>
[nixpkgs] @peti pushed commit from @PierreR to master « haskell-filecache: disable test suite on Darwin »: https://git.io/f459l
nschoe has joined #nixos
<logzet>
My main motivation is to use packages that have not yet trickled down to stable
<logzet>
davidak_: Have you encountered such an incompatibility?
<davidak_>
thats exactly what i want with the link i just got
<logzet>
tilpner: Thanks, that is exactly what I am looking for :)
<tilpner>
This works best for applications. Trying to pick core libraries into your system may cause a lot of rebuilding and wouldn't be worth it
<Peaker>
how do I specify a specific version of a transitive Haskell dep I have? specifically, I use ghc 8.4.3, and testing-feat-0.4.3 is incompatible with that, but somehow still chosen as a dep
<Peaker>
can I say something like testing-feat = callPackage "testing-feat_1_1_0_0"?
<glasserc>
adisbladis[m]: Thanks
<cocreature>
Peaker: the easiest way is to use callHackage ime
<logzet>
tilpner: The one application I want to try is KAlarm, so this involves mixing KDE releases, let's see if it o
<fragamus>
anyhow, I don't really want to do the dpkg hack with patchelf if it can be avoided, but I am starting to think that the 32-bit ELF interpreter ld-linux.so.2 just isn't in the nix environment
astrofog has quit [Quit: Quite]
<fragamus>
can somebody say one way or the other
mmercier has joined #nixos
newhoggy has quit [Ping timeout: 256 seconds]
mmercier has quit [Client Quit]
mmercier has joined #nixos
mmercier has quit [Client Quit]
phdoerfler has joined #nixos
pyvpx has joined #nixos
<pyvpx>
I have a fresh install of 18.03 and I want to get nixpkg on there. nothing works because /nix/store is mounted read-only
<pyvpx>
by nothing I mean single-user or multi-user. at a loss what to do (first time Nix* user)
patrl has joined #nixos
<srk>
you have to use nix or related nix-* tools to access store
<srhb>
pyvpx: What do you mean, fresh install of 18.03? Read only nix store is normal operation, the nix daemon takes care of any access to the store
<srk>
it's read-only on purpose
<Peaker>
Are the "shrinking o files" thing just stripping? "--allow-newer" -> "jailbreak", "stripping" -> "shrinking"? What's with nix and renaming the world? :)
ckauhaus has joined #nixos
jtojnar has quit [Remote host closed the connection]
<hodapp>
"Main exiting due to exception: user error (initialize failed)"
<hodapp>
Peaker: ^ that is what I get when trying to run
<Peaker>
hodapp, are you running in a graphic environment? One that can open graphical windows?
<hodapp>
uhhhh, no
tzemanovic has quit []
<hodapp>
but if I add DISPLAY=:0.0 I see no errors (nor anything else because I'm remote right now...)
Guest93004 has quit [Changing host]
Guest93004 has joined #nixos
Guest93004 is now known as TweyII
<Peaker>
ok, so at least we have a seemingly working nix build - and I can go back to building without nix I guess
<Peaker>
(Given a "segfault" that doesn't have any debug info / gdb resolve fails is quite hard to debug)
<pyvpx>
srhb: I completely misunderstood and thought I needed to install nixpkg separately using the shell script. mea culpa
patrl has quit [Ping timeout: 260 seconds]
<Peaker>
hodapp, thanks anyway :)
Drakonis has joined #nixos
<Peaker>
would be great if you could try it later when you have a display to hook it on
<hodapp>
will try to tonight
<srhb>
pyvpx: Great, no such need indeed. :)
<srhb>
pyvpx: A standard 18.03 NixOS install will be subscribed to the 18.03 channel.
<pyvpx>
I made it to that part of the documentation -- I understand much better now. though unfortunately installing pandoc needs more than 4G of RAM...hrm
cheater has quit [Ping timeout: 268 seconds]
cransom has joined #nixos
ckauhaus_ has joined #nixos
<{^_^}>
[nixpkgs] @clefru opened pull request #42654 → Disable fortify and stackprotector hardening for spl/zfs. → https://git.io/f45AC
phdoerfler has quit [Quit: Leaving.]
<{^_^}>
[nixpkgs] @yesbox opened pull request #42655 → zerotier module: interface names changed; fix no dhcp → https://git.io/f45AV
<srhb>
pyvpx: I believe that is caused by the build actually being broken on 18.03 right now. Otherwise it would not attempt to build it locally but just fetch the binary artifact from the cache.
<srhb>
pyvpx: General rule of thumb when you see sudden builds on a regular channel is that that's what's happening (unless it's some unfree package that we cannot build for you)
<srhb>
pyvpx: On "low mem" systems (which, if you're building, is often *quite* a high bar on Nix) it might be useful to limit the number of concurrent jobs and cores that Nix is allowed to use, though that probably won't help you in this case. :)
roconnor__ has quit [Ping timeout: 260 seconds]
ckauhaus_ has quit [Remote host closed the connection]
<Peaker>
currently to use nixpkgs <githash> I use fetchTarball "https://github.com/NixOS/nixpkgs/archive/<githash>.tar.gz". Is there a better way? I want to try to fork nixpkgs to see if I can fix something and make a PR. But how do I refer to my fork?
ckauhaus has joined #nixos
ckauhaus has quit [Remote host closed the connection]
<Peaker>
or does /archive/<hash> auto-generate the tarball from a git hash -- a github feature?
ThatDocsLady has quit [Remote host closed the connection]
<srhb>
Peaker: Yes, it is auto generated.
<Peaker>
ah, cool
ThatDocsLady has joined #nixos
reinzelmann has quit [Quit: Leaving]
<srhb>
Peaker: fetchFromGitHub will do the same thing for you if you switch out owner and rev.
mmercier has joined #nixos
cheater has quit [Ping timeout: 256 seconds]
<Peaker>
srhb, then I need to specify the sha?
<srhb>
pyvpx: Looks to me like pandoc on 18.03 is currently available in the cache, maybe you haven't updated your channel yet?
<srhb>
Peaker: Right.
<srhb>
Peaker: Just a "fyi" that that's what it does :)
<srk>
there are some patches landing for 4.18 as well
<{^_^}>
[nixpkgs] @xeji pushed commit from @volth to staging « automake111x: fix for perl5.26 ("Unescaped left brace in regex is illegal here") (#42649) »: https://git.io/f45hw
<{^_^}>
[nixpkgs] @xeji merged pull request #42649 → [staging] automake111x: fix for perl5.26 ("Unescaped left brace in regex is illegal here") → https://git.io/f45DO
<samrose>
Hi folks, I now have a working hydra setup, and have had success building nixos iso images with it. If I wanted to build an ISO with hydra that was set up by default with system.autoUpgrade.enable = true; and system.autoUpgrade.channel = https://<nyhydrachannel>; where is the best place to put this lines? release-small.nix?
Guanin has quit [Remote host closed the connection]
<fragamus>
I have to unpack two files one is .tar.gz the other is .deb is there an example
<glys>
Hey folks, I've got a question about C++ development in NixOS. I'm trying to use the GLFW library in one of my projects. If I install it via "nix-env -i glfw", I can include the headers and compile without any problems. However, if I use environment.systemPackages inside of my config to install glfw, compiling doesn't work because g++ can't find the header. Is there a way to make the compiler find the library when it's installed via confi
<pyvpx>
srhb: not sure what ran out of memory, precisely. there is 4G allocated to the VM itself
stepcut has quit [Remote host closed the connection]
wpcarro has joined #nixos
viric has quit [Read error: Connection reset by peer]
viric has joined #nixos
phdoerfler1 has joined #nixos
phdoerfler has quit [Read error: Connection reset by peer]
matthewbauer has quit [Read error: Connection reset by peer]
matthewbauer has joined #nixos
glys has quit [Quit: Page closed]
sbdchd has joined #nixos
cheater has joined #nixos
iyzsong-x has quit [Read error: Connection reset by peer]
sbdchd has quit [Ping timeout: 268 seconds]
lo_mlatu has quit [Ping timeout: 260 seconds]
sigmundv has quit [Ping timeout: 260 seconds]
cheater has quit [Ping timeout: 268 seconds]
cheater has joined #nixos
cheater has quit [Client Quit]
<Unode>
hi all, what package contains tlc.h ? I'm getting local failures when building newt due to missing tlc.h
ckauhaus has joined #nixos
__Sander__ has quit [Quit: Konversation terminated!]
tos9 has joined #nixos
<tos9>
Hi. Is nix(-env) not equipped to install fonts on macOS? I installed one (inconsolata), which it looks like installed the directory in /nix/store, but didn't install the font (i.e. didn't make it available or link it into the Font Book)
<rardiol1>
I got this error trying to run a game on wine: "libGL: dlopen /run/opengl-driver-32/lib/dri/swrast_dri.so failed (/nix/store/wc90gz2h64w6xb59rdavgvwii7wvkq0q-glibc-2.26-131/lib/libm.so.6: version `GLIBC_2.27' not found (required by /run/opengl-driver-32/lib/dri/swrast_dri.so))" Do I need to update wine to one with glibc2.27 or it's something else causing the problem?
<TweyII>
symphorien: It looks in the RPATH of the binary it's run in?
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
<symphorien>
yes I think so
<symphorien>
not completely sure, though
humanoyd has joined #nixos
leotaku has joined #nixos
spear2 has joined #nixos
blankhart has quit [Remote host closed the connection]
blankhart has joined #nixos
andymandias has quit [Ping timeout: 248 seconds]
freeman42x]NixOS has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @xeji pushed commit from @yesbox to master « rclone: 1.41 -> 1.42 (#42652) »: https://git.io/f4dWH
<{^_^}>
[nix] @matthewbauer opened pull request #2258 → Make installer allow preexisting by default → https://git.io/f4dWQ
<pyvpx>
is there something I should read thoroughly before attempting to use cabal along side nixpkg? I see there is no pandoc-citeproc in nixpkg, so I'll install via cabal...but I have no idea what I'm doing and I'd rather not mess up this environment
<{^_^}>
[nixpkgs] @xeji pushed commit from @yesbox to master « bfs: 1.2.1 -> 1.2.2 (#42662) »: https://git.io/f4d8e
<pyvpx>
thank you very much
<infinisil>
:)
<infinisil>
pyvpx: You should really give fzf a go though, it's nice
<pyvpx>
will do
<tmplt>
I'm to to apply a patch to a program, but it fails. Manually downloading the source and applying it via `patch -p0 < file.patch` works. Does Nix apply patches differently?
<bgamari>
If I have a nixpkgs expression, is there any way to get the path of the nixpkgs tree it arose from out of it?
<infinisil>
> pkgs.path
<{^_^}>
/var/lib/nixbot/state/nixpkgs
<infinisil>
bgamari: ^
<bgamari>
ahh
<bgamari>
infinisil, awesome, thanks!
<tmplt>
Applying it after having cd'd into the source, that is
<{^_^}>
[nixpkgs] @Pneumaticat opened pull request #42663 → firebird-emu: init at 1.4 → https://git.io/f4d4q
iMatejC has quit [Remote host closed the connection]
flox has joined #nixos
<flox>
Hi guys, quick question: I want to setup my development env using nix-shell. How can I specify that in that shell I want to be able to add unfree packages to the buildInputs ?
<infinisil>
worldofpeace: I and many others prefer the `{ mkDerivation\n, extra-cmake-modules\n, kcon...` way
<infinisil>
It's also heavily used in Haskell
<tmplt>
How come I can do `systemd.services.libvirtd.path = [ pkgs.bash ]` in configuration.nix with effect, but doing it from an imported (listed in imports) file does nothing?
amir has quit [Ping timeout: 265 seconds]
jbgi has quit [Quit: WeeChat 2.1]
<samueldr>
weird, it should
<worldofpeace>
infinisil: I guess whatever will make sense visually? I guess that tends to be different.
<infinisil>
tmplt: Last time I saw that your imported module only set things behind an enable option
<Myrl-saki>
Well... crap.
<tmplt>
infinisil: yeah, but the file I'm importing now is just `{ config, pkgs, lib, ... }: { systemd.services.libvirtd.path = [ pkgs.bash ]; }`
wpcarro has joined #nixos
<{^_^}>
[nixpkgs] @mnacamura opened pull request #42668 → feedgnuplot: init at 1.49 → https://git.io/f4dzY
spear2 has joined #nixos
newhoggy has joined #nixos
wpcarro has quit [Ping timeout: 256 seconds]
spear2 has quit [Remote host closed the connection]
<ldlework>
srk: like a really minimal and tiny runtime
<srk>
ldlework: there's not-os btw
<srk>
which we've used as a basis for vpsadminos
<srk>
,not-os
<srk>
,help
<{^_^}>
Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<pushcx>
I've installed nixos and I'm writing my first package. I'm trying to follow the manual, but the step starting "Add the package to the file pkgs/top-level/all-packages.nix." refers to a file I don't have. Does anyone know what this is?
<infinisil>
pushcx: You need to clone nixpkgs
<infinisil>
If you want to add your package to nixpkgs
<infinisil>
And make a PR
<pushcx>
I'd like to get it building, first.
<pushcx>
Huh. The only mention in the manual is about adding a channel, which I already did when I installed nixos.
<{^_^}>
[nixpkgs] @Kmeakin opened pull request #42677 → nixos/xsession: check for env vars → https://git.io/f4d6d
<infinisil>
,callPackage pushcx
<{^_^}>
pushcx: If a Nix file ./foo.nix starts with something like `{ bar, baz }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<pushcx>
How does that relate?
<infinisil>
pushcx: If you were writing a package declaration to be contributed to nixpkgs, your file would look like this
matthewbauer has quit [Ping timeout: 248 seconds]
soysauce has joined #nixos
<pushcx>
The manual isn't really clear on what all-packages.nix is for and the example given doesn't look like valid syntax, so I'm pretty stumped atm.
<soysauce>
sorry got dcd, yes so services.tlp.enable = true;
<soysauce>
that works
<soysauce>
but then tlp = to set other options for tlp
<pushcx>
I'm trying to work through the hello world example to learn to build a package, this is just the next step. There's nothing about contributing to nixpkgs.
<soysauce>
gives me an error name tlp not recognized
<infinisil>
pushcx: "In the Nix Packages collection this is done in the file pkgs/top-level/all-packages.nix, where all Nix expressions for packages are imported and called with the appropriate arguments"
<pushcx>
So to build my own package I should edit the file in the store? There's a big warning about not doing that.
<infinisil>
Nonono
<infinisil>
Alright just do the callPackage thing, this will let you build your package
srl295 has joined #nixos
<infinisil>
It's essentially the same as import ./path/to/file.nix { foo = bar; ... }, but the foo argument gets filled out automatically for you
<soysauce>
i put folds into my config, next todo is to modularize i guess... anybody have a good example of a modular configuration.nix? not sure what the best practice is
coot has quit [Quit: coot]
<infinisil>
pushcx: Nah, use the nixpkgs repo for nixpkgs manual bugs
<infinisil>
Oh wait
<infinisil>
Ah yes that's the nix manual, then I guess it would be in the nix repo
<worldofpeace>
Ahh, I remember my second day. I should write a day by day nix guide. :P
freeman42x]NixOS has joined #nixos
<soysauce>
well i might even get some work done today hahah
matthewbauer has quit [Ping timeout: 256 seconds]
Xiro` has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<slabity[m]>
Does anyone know how I can call a function inside my `configuration.nix` without assigning it to a specific variable?
<worldofpeace>
soysauce: btw you'll need `{ allowUnfree = true; }` at ~/.config/nixpkgs/config.nix - For it to work with like nix-env and stuff
<infinisil>
slabity[m]: What do you mean? Do you have an example?
<slabity[m]>
I can do `var = import ./file { args }`, but that assigns it, and `imports = [ ./file ]` doesn't allow for arguments to be passed
<infinisil>
slabity[m]: Well it does need to come from somewhere..
<worldofpeace>
there's no variable assignment in nix :P
<slabity[m]>
So lets say I have a function in a file that returns a set of configuration variables. I'd like to import them directly into my configuration without assigning it to a particular variable
<infinisil>
Use options and imports instead, will work much better
szicari has quit [Quit: Leaving.]
<infinisil>
Declare a module in the other file, add that to imports, and pass arguments via options
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
obadz- has joined #nixos
<slabity[m]>
I'm a bit confused on the differences between `option` and `config`.
obadz has quit [Ping timeout: 245 seconds]
obadz- is now known as obadz
stepcut_ has quit [Remote host closed the connection]
<samueldr>
options are kind of the "API", they describe the options made available to the end-user. `config` in that context means *using* those options to _do things_.
<slabity[m]>
Looking at the manual, I'm not exactly sure what `systemd.services.update-locatedb` is doing
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
<leons>
I've got a nix derivation which uses fetchFromGithub with a 52 character long SHA256 hash and I need to verify this hash. I've downloaded the tar.gz but can't find any way to reproduce the hash nix gives me
<leons>
Is it possible with nix-hash / which options do I need to use?
<samueldr>
slabity[m]: some configuration options are composed of submodules, with the name there (update-locatedb) being the name of that submodule
matthewbauer has joined #nixos
Drakonis has quit [Remote host closed the connection]
<samueldr>
(the submodule can use the name to do thingsm e.g. create the update-locatedb.service service)
xy2_ has quit [Ping timeout: 260 seconds]
<slabity[m]>
Okay, so those values are specific to the `systemd.services.<name>` entries. Got it
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to master « smplayer: 18.5.0 -> 18.6.0 (#42674) »: https://git.io/f4dD5
<{^_^}>
[nixpkgs] @Moredread opened pull request #42678 → Enable parallel building for rtaudio and rtmidi → https://git.io/f4dDb
<samueldr>
I started doing this a bit, a cool idea I had was that machines describe their stats (amount of ram, disk space)
<samueldr>
so I can change some settings depending, e.g. for low disk space machines, reduce the total size journald logs can take
jperras has quit [Ping timeout: 248 seconds]
<worldofpeace>
I think infinisil does all of that too
<slabity[m]>
That's pretty much what I'm looking to do
<slabity[m]>
Are the modules public? I'd like to look at them
jperras has joined #nixos
<samueldr>
ah, another tip, you may want to prefix all your custom options with a key (e.g. your name) so that you reduce clashes with future and current nixos options
<pushcx>
(also, I scrolled past you on lobste.rs/u while I flipped over to do something else, so, hi from a small world)
<infinisil>
pushcx: Thanks! Hi there :P
wchresta has quit [Ping timeout: 240 seconds]
<samueldr>
pushcx: that's a fine issue there
<worldofpeace>
yeah that's pretty nice
<infinisil>
samueldr: Btw, I'm currently doing a for loop over all .nix files in nixpkgs and opening each one of them with vim, which automatically applies .editorconfig
<infinisil>
Terminal's going crazy
<ldlework>
lol
<samueldr>
there's no CLI to simply `find -exec`?
<pushcx>
samueldr: I have lots of experience being confused by docs. :)
<pushcx>
I was really impresesed by the manual for NixOS and most of the Nix manual is good, especially that the overall structure is mostly to go through the normal things every user wants to do and explain fundamentals along the way.
<samueldr>
pushcx: the nix* manuals are all... impressively furnished, you do know there are three manuals?
<samueldr>
nix{,pkgs,os} manuals
ryantrinkle has quit [Ping timeout: 240 seconds]
<pushcx>
samueldr: Yes. I started with the NixOS manual to get an install, now I'm stuck on the Nix manual trying to learn to package software before I can start the nixpkgs manual to consider contributing to the project.
blankhart has quit [Read error: Connection reset by peer]
blankhart has joined #nixos
<{^_^}>
[nixpkgs] @Moredread opened pull request #42679 → WIP vcvrack: Init at 0.6.1 → https://git.io/f4d9C
<Myrl-saki>
Anyone else love the feeling of tabbing to your nix-build exactly as it finishes?
<infinisil>
Myrl-saki: Aw yeah, I can agree with that
newhoggy has quit [Remote host closed the connection]
nschoe has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @lschuermann opened pull request #42683 → libvmi: init at 0.12 → https://git.io/f4dQe
roconnor__ has joined #nixos
obadz- has joined #nixos
dbmikus_ has quit [Ping timeout: 268 seconds]
blankhart has quit [Ping timeout: 264 seconds]
obadz has quit [Ping timeout: 260 seconds]
obadz- is now known as obadz
blonkhart has quit [Ping timeout: 256 seconds]
__monty__ has quit [Quit: leaving]
<endformationage>
I've updated the neo4j service module, and found an existing entry in modules/rename.nix for a previously renamed option.
joelpet has quit [Ping timeout: 240 seconds]
<endformationage>
With my new set of options, which mirror neo4j's newer config option names and value types, I'm not sure it makes sense to add to rename.nix, esp. as some of the types have changed..
jperras has quit [Quit: WeeChat 2.1]
Ridout has joined #nixos
jperras has joined #nixos
<endformationage>
When is it acceptable to have breaking changes to a module's options?
ckauhaus has joined #nixos
newhoggy has joined #nixos
ckauhaus has quit [Ping timeout: 268 seconds]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @nh2 opened pull request #42687 → nginx: Flag to build with debugging and parallel builds → https://git.io/f4dFI
<gchristensen>
infinisil: I think because the src drvs technically did change, causing the drv to change for stdenv, but not the outPath which is actually important
tenten8401_ has joined #nixos
Guanin has quit [Remote host closed the connection]
<tenten8401_>
Do you think it'd be very hard to write a module for something provided I already have a configuration like this? https://hastebin.com/uxetixinej.bash
<tenten8401_>
Considering writing a NixOS module for the Pterodactyl panel
Sonarpulse has quit [Ping timeout: 245 seconds]
<samueldr>
you're halfway there, in a way
Guanin has joined #nixos
<samueldr>
you "just" need to add options to configure values
obadz- has joined #nixos
<samueldr>
"just" being one of the most loaded words in tech
ericsagnes has quit [Ping timeout: 260 seconds]
<tenten8401_>
hmm
obadz has quit [Ping timeout: 240 seconds]
<tenten8401_>
I wish I haden't left my NixOps config at home
obadz- is now known as obadz
<samueldr>
obviously, it'll be harder than "just" adding options, you have to make sane options and configuration may change depending on those options ;)
<tenten8401_>
yeah, it'll definently be a project
<infinisil>
gchristensen: that doesn't make any sense, any change to a drv should also change its out path
<tenten8401_>
I wonder what the heck is connected under tenten8401
<tenten8401_>
I wonder if my desktop is on at home or something
<gchristensen>
infinisil: its a fixed output, so the inputs don't change the outPath.
<tenten8401_>
might be able to SSH into it and pull my NixOps
<tenten8401_>
o dang it is up
<infinisil>
gchristensen: yeah, so the drv can't be different
obadz- has joined #nixos
<gchristensen>
the drv is different because the inputs are different but the outpath is the same
<infinisil>
Ohh
<infinisil>
I get it now
<infinisil>
gchristensen: Although, why only stdenv?