<infinisil>
wrapProgram is probably all you need here though
<infinisil>
with --suffix/--prefix PATH
<simpson>
wrapProgram would be the nixpkgs-approved way. I won't tell anybody if you put it in propagatedBuildInputs.
<simpson>
If for no other reason than that a wrapper *is* an extra moving piece at runtime.
<infinisil>
simpson: Eh, propagatedBuildInputs does'nt work if you just build the binary and execute it directly without installing
<clever>
propagatedBuildInputs doesnt even affect nix-env
<clever>
its only a build-time thing, for other things that depend on X
<infinisil>
Yeah, propagatedBuildInputs is not good for this
<simpson>
infinisil: It depends on what's being propagated. I agree that, if it's something like Node.js, then that's not a viable plan; I wasn't thinking.
<NemesisD>
so like `wrapProgram $out/bin/my-haskell-exe --prefix PATH : ${lib.makeBinPath [ some deps ]}`?
work_ has quit [Quit: Connection closed for inactivity]
<clever>
NemesisD: yep
<NemesisD>
ok, thanks for everyone's advice. i'll give that a try
<kandinski>
yeah, I've been using Nixos for over a year, but it's still to big of an elephant for me to chew at. Will anybody here be at Lambda Jam in Melbourne, and willing to sit with me (or do a BoF) and explain inner workings?
tboston_ has joined #nixos
<kandinski>
I also don't want to add too much noise here. Where is a good place to discuss this as a relative newb? https://github.com/NixOS/rfcs/pull/17
<{^_^}>
rfcs#17 (by wmertens, 1 year ago, open): [RFC 0017] Intensional Store
linarcx has quit [Quit: WeeChat 2.4]
mexisme has quit [Ping timeout: 246 seconds]
<gchristensen>
here is fine!
<simpson>
If you have feedback for that RFC, I think that it's supposed to be left on the PR. Here is fine as well.
<simpson>
I mean, I think that any RFC, as well as the RFC process, is very on-topic for this channel.
mconstant has quit [Ping timeout: 245 seconds]
rev_strangehope has quit [Ping timeout: 264 seconds]
tboston_ has quit [Ping timeout: 276 seconds]
anaothmane has quit [Remote host closed the connection]
DanielFabian has joined #nixos
<kandinski>
so I don't understand this: "The basic concept is aliasing equivalent input derivations in such a way that dependent derivations won't need to change if only `$out` changes but not the input derivation contents."
rprije has joined #nixos
<kandinski>
how can 2 different derivations have a different $out (so a different hash of the input expression) but the same $cas (same hash of the output binary or tree of files)?
mconstant has joined #nixos
<clever>
kandinski: the hash of $out is the hash over the build directions (and app deps's build directions)
mmlb has joined #nixos
<clever>
but 2 different sets of directions can produce the same file
sindrip has quit [Quit: WeeChat 2.4]
sindrip has joined #nixos
<simpson>
kandinski: e.g. "download the file from URL 1" vs. "download the file from URL 2" kinds of builds.
<kandinski>
I guess two compilers that differ in an unused feature would have different input hashes but produce the same input
iceypoi has quit [Ping timeout: 246 seconds]
<kandinski>
simpson: thanks
<kandinski>
s/produce the same input/produce the same output/
<simpson>
kandinski: That's another good example. Many people here have mentioned using Nix in place of other build systems for the task of creating art or other intricate outputs based on long-running processes. The build system provides a guard against re-running redundant computations.
jneto has quit [Quit: Page closed]
<simpson>
This RFC grants more-or-less the same incremental qualities, up to the coarseness of the supporting Nix expression. (We already have this, in the Monte programming language's Nix support; modules are built incrementally.)
kleisli has quit [Remote host closed the connection]
<blackriversoftwa>
Hi there. Has anyone had issues with python programs on NixOS timing out on SSL operations?
kleisli has quit [Ping timeout: 258 seconds]
<blackriversoftwa>
Specifically, I'm trying to use ofxclient. It works for my bank on Ubuntu 18.04 (python 2.7) but on NixOS (where it's run under python3.7) it sits and thinks for a bit before failing and saying `socket.timeout: the read operation timed out`
sindrip has quit [Client Quit]
<blackriversoftwa>
I'm wondering if there's some extra something I have to do on NixOS to get python SSL working?
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjssv
mexisme has joined #nixos
qubasa_ has quit [Read error: Connection reset by peer]
Qubasa has joined #nixos
Guest53611 has quit [Ping timeout: 250 seconds]
sindrip has joined #nixos
<{^_^}>
[nixpkgs] @risicle opened pull request #60188 → mesos: fix build by forcing protobuf 3.4 → https://git.io/fjssO
silver has quit [Read error: Connection reset by peer]
LnL7 has joined #nixos
sindrip1 has joined #nixos
<sindrip1>
Can anyone help me with hibernation. I have a xps 9360, I added the following: swapDevices = [
<sindrip1>
{ device = "/swapfile"; size = 8192; }
<sindrip1>
];
<sindrip1>
What happens is the screen goes black, then it flashes the screen again and then shuts down
<sindrip1>
All I remember is mucking around on ubuntu 2 years ago and getting it to work and I have no idea what I did. If only that would have been declarative :>
<Shouou>
How do I use a node2nix package in a nix-shell? I can't seem to import said package from within Node through `nix-shell -A package override.nix`. Should this work?
<{^_^}>
[nixpkgs] @dtzWill opened pull request #60192 → electron_5: init at 5.0.0 → https://git.io/fjssu
<clever>
Shouou: -A gives a shell suitable for building something, rather then using it, so that could be the issue
<{^_^}>
[nixpkgs] @marsam opened pull request #60195 → Init xkcd font → https://git.io/fjsGc
mexisme has joined #nixos
oida has joined #nixos
day|flip has joined #nixos
cyraxjoe has joined #nixos
dbmikus__ has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
dbmikus__ has quit [Ping timeout: 264 seconds]
ddellacosta has joined #nixos
wolfman154 has joined #nixos
<wolfman154>
Is anyone still on?
stepcut has quit [Ping timeout: 250 seconds]
dramforever has joined #nixos
<Ashy>
this is a global channel so... yes
<wolfman154>
I just installed nixos 19.03, in the sign in screen when I press fn + f2 (to open a virtual terminal to set the user password) , it does not work, why is this?
<colemickens>
how do I ask the bot which pkg a binary is in?
<dramforever>
I think sl matched Slovakia or something
<wolfman154>
I just installed nixos 19.03, in the sign in screen when I press fn + f2 (to open a virtual terminal to set the user password) , it does not work, why is this?
<wolfman154>
Is this the correct key binding to open a virtual terminal?
<dfordivam>
hi.. how can I create a mkDerivation without src? it complains that $src is missing.. I am trying to do echo in the install phase to create a bunch of files..
moredhel- has quit [Ping timeout: 245 seconds]
<etu>
dfordivam: runCommand is probably what you want maybe?
rauno has joined #nixos
<dfordivam>
etu: actually I do have a propagatedBuildInput thing, and I want to use this derivation in another place..
<dfordivam>
etu: I am just creating the required files by writing to $out
<sphalerite>
dfordivam: you can use propagatedBuildInputs in runCommand too.
<sphalerite>
dfordivam: runCommand is equivalent to using buildCommand in mkDerivation though
<sphalerite>
buildCommand replaces all the phases, including the unpackPhase (which is what looks for src)
<{^_^}>
[nixpkgs] @JohnAZoidberg opened pull request #60198 → treewide: Add passthru.updateScript to gnome pkgs → https://git.io/fjsnT
<val_>
How to rename boot option from generation N to something meaningful? I went to nix/var/nix/profiles but configuration-name file is readonly and empty. So I think there’s a way to rename using nixos-something —somehow
<xorAxAx>
Val_, you can pass -p
<xorAxAx>
to rebuild
<val_>
I don’t understand
<xorAxAx>
srhb, hmm, how do you solve upgrading then?
<xorAxAx>
srhb, do you use autoUpgrade?
<val_>
The build already exists
<xorAxAx>
Val_, i understand, hmm. no idea then :)
hellrazor has quit [Ping timeout: 268 seconds]
<val_>
I got it
<val_>
Man works
<val_>
Thank you
<xorAxAx>
Val_, how? :)
<val_>
I just used -p and passed current config via -I option
<val_>
Now I have i3-stable and can try to launch xmonad without being lost
cfricke has joined #nixos
schjetne has quit [Remote host closed the connection]
<michaelpj>
is the `hydra-build-products` file documented anywhere? I can't find anything
<ambro718>
I'm really fed up with executable wrappers that set or add to environment variables. Could we add these variables to the executable the same way we add library directories to RPATH?
<ambro718>
with some extra code in ld-linux to find those ELF attributes and adjust environment vars like they dictate
<ramses_>
Is this normal? Anything I should do to resolve this?
Izorkin has joined #nixos
<gchristensen>
ambro718: no, I don't think we can -- what has annoyed you with the wrappers?
<ambro718>
pretty sure it's "normal"
Glider_IRC has joined #nixos
kisonecat has joined #nixos
<ambro718>
gchristensen: people forget to write wrappers, wrappers obscure the executable name (see process list), they unconditionally add to a colon-separated var without checking if the element is already there, env adjustments affect also child processes when they often should not (open a terminal in a program that was wrapped)
<ambro718>
oh that last part would not be solved with such a mechanism though
<xorAxAx>
is there any way to resolve these conflicts, a bit like update-alternatives on debian?
<xorAxAx>
+permanently
<simpson>
It'd be nice if wrappers were more transparent.
<xorAxAx>
i.e. some kind of auto-generated conflict resolution snippet being output by -rebuild that you can paste into your config to mute these warnings and settle on a winner
<aanderse>
gchristensen: awesome that you're holding those "office hours" weekly!
<aanderse>
so sad about proposed times, though T_T
<ambro718>
simpson: I rather think what is needed is a generic way to provide "dependency information" to a program without being an environment variable, so that it is not inherited by children.
<ambro718>
maybe it could look like an environment variable but not be inherited by child processes
<ambro718>
(because programs already use getenv, you can't invent a new thing and patch thousands of getenv calls)
<ambro718>
we could patch getenv() to look for special hard-coded-env-vars in the ELF file
<simpson>
ambro718: Oh, sure. The transparency of a wrapper/forwarder has an (upper?) bound based on the calling convention being wrapped. The thicker and fancier the calling convention, the thicker the minimum viable wrapper.
<gchristensen>
aanderse: tell me about that?
<ambro718>
simpson: sorry I don't understand, what calling convention??
<ambro718>
simpson: my general argument is that dependencies of an executable should ideally be stored in the executable itself, like library paths
<simpson>
ambro718: In this case, invoking subprocesses on a UNIX-like.
<aanderse>
gchristensen: ha ha ha don't worry about me... the timespan i have in which i can actually join something like that is very limited
<gchristensen>
ambro718: it also has to work for macOS and WSL
linarcx has quit [Ping timeout: 245 seconds]
<aanderse>
once the kids are in bed, and until before i pass out from exhaustion :D
<gchristensen>
aanderse: what times work for you? I might not be able to change, but just curious
<ambro718>
WSL uses ld-linux right?
<ambro718>
or not?
<gchristensen>
dunno
<aanderse>
kids are usually in bed by 8pm EST
<ambro718>
then we could just do patching of specific getenv() calls to do something else, not sure what yet
<simpson>
ambro718: I do agree that, in some sense, our lives would be easier if there were such a thing as nixlibc.
<simpson>
But we'd also be maintaining (patches to) a libc, which is not fun. Dunno; maybe others have more of an appetite for it.
<AlexRice[m]>
is there something like a .gitignore for nix-build so that changing some files doesn't cause a recompilation
<AlexRice[m]>
In particular ignoring the result symlink
<gchristensen>
and musl and go I think too?
<gchristensen>
and also we'd be making nix build results less debuggable with standard tools, and secret "env" vars people don't have tools to change
<simpson>
gchristensen: Yeah, and also I don't think that this would actually *work* on Darwin or WSL?
<gchristensen>
I wonder if we can fix the executable name problem and the colon separated var problem
<gchristensen>
right, and it would doubtfully work on programs which are cross compiled to windows
<Taneb>
AlexRice[m]: you can use builtins.filterSource
<gchristensen>
Profpatsch: ^ you've got a gitignore-for-nix thing?
<Profpatsch>
gchristensen: yeah, there’s also one in lib
<ambro718>
simpson: We could add "dependency variables" either as ELF attributes or a linked-in array that is found by dlsym(), and we could add a simple getdepvar() function implementation in the libc, that looks up the variable.
<CMCDragonkai>
Is there a way to depend on just the GCC glibc headers, and not the entire compiler? Similar to the linuxHeaders package?
<ambro718>
that would be OS-independent as long as we get the getdepvar() code in the libc.
<AlexRice[m]>
Taneb: Thanks that looks perfect
fendor has joined #nixos
<gchristensen>
I feel the lift to fix the bugs would be significantly smaller than patching libc?
kisonecat has quit [Ping timeout: 258 seconds]
<ambro718>
gchristensen: many cannot be fixed and all never will be because we don't have a mechanism good enough
<gchristensen>
you wrote 4 bugs, 1 you said was unfixable, 2 seem pretty simply fixable, the remaining one isn't fixable in software
<gchristensen>
no?
cosmo_ has joined #nixos
<ambro718>
> people forget to write wrappers it could be automated such that a wrapper is made automatically for any program that links to some library, same way library paths are set up magically
<ambro718>
but I don't think it should be because it's such a big hack and can break things
<gchristensen>
that was the one I think isn't really fixable in software
<ambro718>
> wrappers obscure the executable name not sure if it's fixable
<ambro718>
> hey unconditionally add to a colon-separated var without checking if the element is already there fixable
<ambro718>
> env adjustments affect also child processes when they often should not unfixable
jasongrossman has quit [Ping timeout: 250 seconds]
<ambro718>
aanderse: I'm saying if you're looking into the bin folder of the package itself
<gchristensen>
that could be cleaned up easily enough I think
<ambro718>
which is reasonable if you're debuggign stuff or just exploring
<aanderse>
not disagreeing (or agreeing) with your overall point, but i would say that conventions on nixos are quite different
<xorAxAx>
you can also modify argv[0] after starting the process ,right ...
[Leary] has joined #nixos
<ambro718>
we could implement wrapping by modifying the executable instead of making a shell script, by injecting some code
<simpson>
xorAxAx: That's not portable. Nor are the various per-kernel ways to do it. Sadly it's not in POSIX.
<ambro718>
but not sure if there's a simple way to do this
<jschievink[m]>
is there a way to view the currently booted configuration?
Lears has quit [Ping timeout: 258 seconds]
<gchristensen>
/run/current-system is the one you're on now, /run/booted-system is the one you booted from
<AlexRice[m]>
is there a better way to find out if string x contains string y other than builtins.length (builtins.split x y). I feel I'm missing something obvious
<__monty__>
ambro718: That could even fix a shortcoming. I think currently something that's used as an interpreter in a shebang, python for instance. Can't be wrapped because mac os doesn't allow shell scripts as shebang interpreters.
phreedom_ has joined #nixos
<srhb>
jschievink[m]: If by configuration you mean the nix expression -- then not really. The closest you can get is (possibly) the derivation.
<jschievink[m]>
gchristensen: thanks!
<srhb>
jschievink[m]: There's also an option to copy configuration.nix (or something like it) into each profile, but it won't be able to follow all imports etc.
Lears has joined #nixos
<ambro718>
__monty__: you would want to wrap a shell script? I'm assuming wrapping as I understand it is relevant only for executables.
<ambro718>
__monty__: if it's a script, I think it doesn't often need wrapping anyway
<gchristensen>
I wrap shell scripts too
<jschievink[m]>
srhb: I mean the OS configuration created from `configuration.nix` - `nixos-rebuild switch --rollback` calls it a "configuration"
<__monty__>
No no no, the wrapper is currently a script. That would prohibit wrapping python-the-executable because you wouldn't be able to do #!python-the-wrapper-script on mac os.
[Leary] has quit [Ping timeout: 246 seconds]
<ambro718>
__monty__: ah, I see, yes
<jschievink[m]>
ah, "generation" is the word I'm looking for
phreedom has quit [Ping timeout: 256 seconds]
init_6 has joined #nixos
<srhb>
jschievink[m]: Yeah, or system profile would work too. :)
<jschievink[m]>
really I was just interested in the generation number, and `readlink /nix/var/nix/profiles/system` seems to be the easiest way to view that
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #57108 → pythonPackages.pysideTools: Use fetchFromGitHub and update meta → https://git.io/fhh0I
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjslF
Qubasa has quit [Ping timeout: 255 seconds]
<xorAxAx>
hmm, is the nixops container backend not documented?
kleisli has quit [Ping timeout: 246 seconds]
uwap has quit [Remote host closed the connection]
uwap has joined #nixos
<simpson>
It's definitely underdocumented.
npmccallum has joined #nixos
ramses_ has quit [Ping timeout: 256 seconds]
fendor_ has joined #nixos
sysreq has joined #nixos
fendor has quit [Ping timeout: 255 seconds]
sindrip has joined #nixos
<ambro718>
simpson: Maybe we could "wrap" by adding something to .ctors or .init_array elf section (I think it depends on the toolchain/cpu which is the relevant one).
<ambro718>
that should be easier compared to trying to actually hook code
<ambro718>
not sure about MacOS though
<ambro718>
yeah MacOS seems to have an equivalent (__mod_init_func)
srid0 has quit [Ping timeout: 250 seconds]
drakonis has joined #nixos
phreedom_ has quit [Remote host closed the connection]
phreedom has joined #nixos
drakonis_ has quit [Ping timeout: 250 seconds]
<{^_^}>
[nixpkgs] @sorki opened pull request #60206 → ledmon: init at 0.92 → https://git.io/fjs8K
<ambro718>
of course I will need to do a massive rebuild to try it out :)
waleee has quit [Quit: WeeChat 2.4]
hellrazor has joined #nixos
halfbit has joined #nixos
<arianvp>
why do some nixos modules have config = mkMerge [mkIf cfg.enable] instead of config = mkIf cfg.enable ?
acarrico has joined #nixos
<arianvp>
what is the difference? it seems ... nuanced
<gchristensen>
if that is the literal only difference, then there is no reason
<arianvp>
ah is it just so that in the future they could add more parts?
<gchristensen>
there is no sense it being proactive about it, either
<arianvp>
probably remnant of refactorings
<arianvp>
im trying to fix the acme module
<arianvp>
which is fun :D
<arianvp>
ish
cfricke has quit [Quit: WeeChat 2.4]
<gchristensen>
nice
<arianvp>
it is pretty borked currently :(
<arianvp>
it's also a huge module. lots of stuff happening. not fully sure yet what its all doing
<gchristensen>
yeah
<gchristensen>
I ended up having to implement my own once, which I haven't upstreamed yet -- but will some day
<arianvp>
the current one basically only works if you have exactly one virtualHost
<gchristensen>
that can't be: I have about about a dozen virtualhosts and each one uses LE
<arianvp>
have you incrementally deployed them, or all at once?
<gchristensen>
both
<arianvp>
because incremental is currently broken and I have a reproducer as well
<gchristensen>
though all at once requires a bit more planning to avoid being rate limited
<arianvp>
so now I reboot for deploys, instead of nixos-rebuild switch
<gchristensen>
what is the problem?
<arianvp>
on first deploy acme-certificates-selfsigned.target becomes active. On which nginx.service has a Wants= to make sure it doesn't start up without certs cause nginx -t will fail otherwise
<arianvp>
Then once you have deployed the first virtualHost. that target _remains_ active because targets never deactivate
<arianvp>
then when you deploy the second cert, nginx will restart _before_ the cert is generated and nginx crashes
<gchristensen>
ouch
<arianvp>
because the target is still active, and hence nginx thinks the cert is already there
<arianvp>
I think we can fix it with path units instead
cosmo_ has quit [Ping timeout: 264 seconds]
<arianvp>
might be a fun thing to work on the next office hour session ;)
<arianvp>
I also found another small bug in the meantime.
<arianvp>
if nixos-rebuild switch fails to activate a unit, it usually calls systemctl status to show an overview
<arianvp>
but if it's a preStart or postStop that fails, it doesn't do that for some reason
<arianvp>
(that's why I didn't notice during deploy, as I didn't get a big fat error that nginx.service had failed)
<gchristensen>
ouch
mexisme has quit [Ping timeout: 255 seconds]
<arianvp>
really would be nice if we could test switch logic in nixos tests. but I remember there being some roadblocks for that. some old issue
<ambro718>
is there a way to wrap a package such that the contents are copied and additionally all occurrences of the original store path are replaced with the wrapped store path?
sindrip has quit [Ping timeout: 258 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
o1lo01ol1o has joined #nixos
<gchristensen>
there is a nixpkgs hook called nukereferences or something (search for "nuke" and you'll find it) which does this, but destructively. you can take that idea and apply it constructively
rev_strangehope has joined #nixos
kisonecat has joined #nixos
drakonis_ has joined #nixos
rprije has quit [Ping timeout: 255 seconds]
o1lo01ol1o has quit [Ping timeout: 246 seconds]
rev_strangehope has quit [Ping timeout: 245 seconds]
<exarkun>
I found this somewhere - https://gist.github.com/exarkun/c5596032b841d470886390d4b5468495 - for doing making ad hoc virtualenv-like python environments. It's not compatible with pip "editable" installs though (the build environment doesn't have the PYTHONPATH that setuptools wants (which is wrong because setuptools doesn't know the difference between build time and run time but oh well)). Is there a trick
<exarkun>
for making those work?
<exarkun>
seems like the manual recommends packaging the software and using a path for src
drewr has quit [Remote host closed the connection]
<lordcirth_>
If I run 'nixos-rebuild build', then I want to switch, what's the correct way to do that? If I just run 'nixos-rebuild switch', it will build again, potentially with changes. Do I use nix-env to switch generations?
drewr has joined #nixos
srid0 has joined #nixos
<{^_^}>
[nixpkgs] @exarkun opened pull request #60214 → pyhamcrest: switch from application to package → https://git.io/fjsBQ
<sphalerite>
lordcirth_: although I'm not sure that will update the system profile, you may also need to use `nix-env -p /nix/var/nix/profiles/system --set ./result` to do that
jfroche has joined #nixos
<lordcirth_>
sphalerite, thanks, I will test
endformationage has joined #nixos
jfroche has quit [Remote host closed the connection]
jackdk has quit [Remote host closed the connection]
Makaveli7 has quit [Quit: WeeChat 2.4]
<lordcirth_>
sphalerite, hmm, it said it worked but I rebooted and it's still on gen 4
<sphalerite>
lordcirth_: did you use the nix-env command as well?
<lordcirth_>
No, just the switch, trying env now
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
reinhardt has quit [Quit: Leaving]
<srhb>
bin/switch-to-configuration switch should indeed do the boot stuff.
<{^_^}>
[nixpkgs] @nmattia opened pull request #60215 → patchShebangs: create timestamp in tmp dir → https://git.io/fjsRv
mwilsoncoding has joined #nixos
clefru[m] is now known as clefru
<mwilsoncoding>
hey all- I'm working on a PR for updating the Azure Python SDK in nixpkgs
<mwilsoncoding>
this includes a number of modules that aren't currently included in nixpkgs
clefru has quit [Changing host]
clefru has joined #nixos
clefru has joined #nixos
<lordcirth_>
srhb, well, it didn't, so what am I missing?
<mwilsoncoding>
I'm making some great progress, but I currently have 6 modules that fail to build with the same error and I'm wondering if anyone can help me out
<srhb>
lordcirth_: no no, I'm just supplementing what sphalerite said.
<dminuoso>
Are haskellPackages compiled before they get added to nixpkgs?
<sphalerite>
lordcirth_: which bootloader are you using?
<mwilsoncoding>
error: error in setup.cfg: command 'bdist_wheel' has no such option 'azure_namespace_package'
<dminuoso>
I have a package that does not even compile, and Im wondering how that can be. Or are not all packages built when versions are bumped?
<lordcirth_>
srhb, sphalerite systemd-boot, as it's EFI
<srhb>
lordcirth_: It sets up the boot loader to point at the profile, but changing the active generation of the profile happens within nixos-rebuild (that is, with nix-env)
<lordcirth_>
srhb, so, I *should* have to run nix-env?
<srhb>
I believe so :)
<Taneb>
dminuoso: yes, not all packages are built when versions are bumped, and versions can be bumped even if some packages are known to fail
<lordcirth_>
sphalerite, --set isn't an option?
<sphalerite>
lordcirth_: it should be.
<sphalerite>
lordcirth_: which command are you using exactly?
<{^_^}>
yorick: '' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
cfricke has quit [Ping timeout: 245 seconds]
<yorick>
sphalerite: thanks!
<srhb>
Oh, oops.
<dminuoso>
Taneb: Fair enough. Its reassuring to see packages on hackage that adjusted for AMP in their source code but not their tests. Apparently not everyone runs their tests before releasing on hackage - and nix apparently also runs tests on haskellPackages :S
rauno has quit [Remote host closed the connection]
<gchristensen>
what is AMP?
<Taneb>
gchristensen: major breaking change a few versions of GHC ago
<srhb>
I think more broke due to MonadFail though :P
<sphalerite>
lordcirth_: so the profile generation needs to exist for the bootloader config generator to pick it up. So you need to 1. nix-env, 2. switch-to-configuration
<lordcirth_>
sphalerite, Hmm, I thought it did it the other way around, but I rebooted to gen 5. Perhaps I ran it again
<Taneb>
srhb: yeah, some of our internal packages are broken due to MonadFail... it's one of the reasons we're taking our time upgrading to nixpkgs 19.03
<Taneb>
And that will probably be the default GHC in nixpkgs 19.09
<immae>
Hello there! Say I have a sensible value, that I use during a derivation build, but that is not in the output (here, I use an encrypted file as a src, and I want to decrypt it during the build by providing the password). Can anyone else on the system have access to that password during the build, or is it correctly sandboxed to avoid that?
ThatDocsLady_ has quit [Ping timeout: 250 seconds]
<srhb>
immae: How do you provide the password?
<srhb>
immae: It sounds like it will be in the drv at the very least
<Synthetica>
immae: And is it a problem that your src would be in the store?
__monty__ has quit [Quit: leaving]
<srhb>
immae: It sounds like what you currently have is encrypted secret + password in the store.
<Synthetica>
Because otherwise you could do the same as the derivation for e.g. Mathematica, and require the user to manually add the (decrypted) source
<mwilsoncoding>
I think I found out what the problem is
dsx has quit [Quit: dsx]
<mwilsoncoding>
pip is behind
<mwilsoncoding>
the version of servicemanagmentlegacy that is available through pip is v0.20.6, rather than v0.20.7, but it looks like the azure module has been using v0.20.7 since azure v3.0.0
<mwilsoncoding>
regardless, it doesn't look like microsoft began accounting for wheel updates until around Feb 2018, so it seems any module available from pip that uses src _prior_ to that date breaks because of a known wheel incompatibility
<mwilsoncoding>
looks like I'll be using tagged src code from github for the 6 modules I have to build that pip doesn't have up-to-date releases for =/
Qubasa has quit [Ping timeout: 246 seconds]
Qubasa has joined #nixos
<jophish>
Hi all
dsx has joined #nixos
stepcut has joined #nixos
<lordcirth_>
jophish, hello
thetet has joined #nixos
thetet has left #nixos [#nixos]
<musicmatze>
How can I find which gc root a package is associated with?
halfbit has quit [Ping timeout: 258 seconds]
halfbit has joined #nixos
<grischeg>
Can someone point me to the right documentation on how to create random tap interfaces in NixOS?
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
<gchristensen>
the nixos options for networking.interfaces have some info on that
stepcut has joined #nixos
<dminuoso>
grischeg: "random"?
<Taneb>
Hey, jophish
<jophish>
hey Taneb, how's things?
<Taneb>
Going pretty good! Trying to get our stuff all working with nixpkgs 19.03
<Taneb>
How's you?
<jophish>
very well, working on Vulkan at the moment
<gchristensen>
anyone depending on wireguard to deploy to remote hosts?
<musicmatze>
infinisil: thanks. And how to interpret {temp:...} output?=
judson has joined #nixos
v88m has quit [Quit: Quit]
<{^_^}>
[nixpkgs] @eadwu opened pull request #60218 → epubcheck: init at 4.2.0 → https://git.io/fjs0g
<gchristensen>
those are processes running
<musicmatze>
ah, so nix-shell e.g.?
<gchristensen>
or any process running which refers to nix store paths
<musicmatze>
ah, ok
mabel has quit [Ping timeout: 245 seconds]
pauline has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
mabel has joined #nixos
stepcut has joined #nixos
<immae>
srhb: Synthetica: the password will be in my derivation (I store it in my password store and have a wrapper that extracts it as a nix expression that I use afterwards)
cross has quit [Remote host closed the connection]
<lordcirth_>
Perhaps Nix / NixOS needs a system for secret management?
<gchristensen>
,locate uInput.hpp
<{^_^}>
Couldn't find in any packages
<lordcirth_>
Configuration management tools generally have features specifically for secrets / variables, like Saltstack's Pillar.
<andi->
gchristensen: I see what you are dooing.. xdotool? :)
<andi->
rather ydotool
m1sosoup has joined #nixos
<gchristensen>
andi-: ...!!! are you spying on me?
<andi->
no, i was there during the weekend :D
<andi->
it requires access to /dev/input/… so I didn't continue further there.
<gchristensen>
do you by chance have an expression for me? :)
<gchristensen>
ah
<andi->
I do have that tho...
rev_strangehope has quit [Ping timeout: 276 seconds]
<gchristensen>
my migration to wayland broke a very important program of mine
<gchristensen>
(it creates an animated clock in Slack by rapidly editing the previous message)
<andi->
there is a spec for on-screen-keyboards that might be a proper workaround
kisonecat has quit [Ping timeout: 245 seconds]
<{^_^}>
[nix] @c00w closed pull request #2784 → Sort directory entries after they are returned by readdir → https://git.io/fjsCe
<andi->
just have to find on which of the three notebooks I had with me I did that.. hold on
<dhess>
Anyone around who's running a Hydra on an EC2 instance?
<{^_^}>
[nixops] @PsyanticY opened pull request #1137 → EC2: Use enum type for persistent spot type and shutdown behaviour → https://git.io/fjsEf
<dhess>
just the Hydra server, not necessarily a builder
<slabity>
Hey guys, I have `virtualisation.libvirtd.enable = true;`, but trying to create a guest with `virt-manager` leads to it saying KVM is not enabled. `lsmod` says that `kvm` is enabled as well, so I'm a bit confused
<gchristensen>
does virt-manager require your user have r/w on /dev/kvm, and, do you have it?
<dhess>
gchristensen: I regularly use WireGuard to deploy to remote hosts.
<slabity>
Huh... /dev/kvm does not exist
<slabity>
It appears the `kvm-intel` module never loaded? I have `boot.kernelModules = [ "kvm-intel" ];` though
<andi->
gchristensen: https://github.com/andir/nix-ydotool those are the three missing packages for ydotool.. I do not plan to maintian it there so catch it while you can ;-)
<gchristensen>
thanks, fetched!
<{^_^}>
[nixpkgs] @peti pushed 13 commits to haskell-updates: https://git.io/fjsEq
init_6 has quit []
<slabity>
Ah, nevermind. Looks like it's disabled in bios
<{^_^}>
[nixpkgs] @peti pushed 4 commits to haskell-updates: https://git.io/fjsE3
fusion809 has quit [Remote host closed the connection]
o1lo01ol1o has quit [Remote host closed the connection]
InFlames has quit [Ping timeout: 250 seconds]
<Vitalii>
Hi everyone. In order to install nix package manager I need to download https://nixos.org/releases/nix/nix-$NIX_VERSION/nix-$NIX_VERSION-x86_64-linux.tar.bz2 . Are there releases stored on s3? I would like to download the nix package manager from s3 bucket.
<{^_^}>
[nixpkgs] @Ma27 opened pull request #60223 → nixos/window-managers/i3: write config file to `/etc/i3/config` → https://git.io/fjszt
drakonis has joined #nixos
dejanr has joined #nixos
<wolfman154>
Hello there, I just did a fresh install of nixos 19.03, when I copied and pasted a file from my usb to my laptop , the processor goes full speed , I think it’s an infinite loop, also I noticed I’ve been having this problem with gnome3, why is this happening?
nakkle has quit [Ping timeout: 255 seconds]
<wolfman154>
How do I locate and turn off tha
<wolfman154>
Process that’s causing my processor to do this?
<makefu>
wolfman154: probably some state in your home which is missing now?
<makefu>
just guessing here
<wolfman154>
makefu: I haven’t set up home-manager yet so that’s not the problem, right after I copied and pasted my usb this happened, now whenever I turn on my laptop and sign in the processor starts going wild again?
fiberpunk[m] has joined #nixos
<ambro718>
Which code in nixpkgs is responsible for setting executable RUNPATH?
ggpeti_ has joined #nixos
lordcirth_ has quit [Remote host closed the connection]
dbmikus__ has quit [Ping timeout: 259 seconds]
<wolfman154>
So how do I locate and kill the process?
<andi->
wolfman154: run top and see which process eats the CPU?
Ericson2314 has quit [Changing host]
Ericson2314 has joined #nixos
Ericson2314 has joined #nixos
<{^_^}>
[nixpkgs] @JohnAZoidberg opened pull request #60224 → openjdk11: Update source hashes for aarch64 → https://git.io/fjszC
<pie___>
updated to 19.03 because i apparently forgot to rebuild-switch
<pie___>
oh my god nano has nix syntax highlighting now
<gchristensen>
whaaaat
<pie___>
lassulus, ^^^ :OOO
pie_ has quit [Read error: Connection reset by peer]
<gchristensen>
finally I can switch back to nano
<pie___>
i feel like im in the future
<devhell>
*cough*
<pie___>
devhell, do you have a cold too? :P
<devhell>
witchcraft
<devhell>
:P
<spacekookie>
Hey so the other day my server (using zfs as root fs) failed to boot because `boot.loader.grub.copyKernels ` was set to false (default) and I was wondering what people's opinions here were to changing the default to true
<spacekookie>
Maybe it'd be possible to only do it if the rootfs is a zfs but I'd argue that an unbootable computer is worse than some more space usage
<pie___>
can anyone help me figure out why compiling wine wont parallelize? it takes really long on one core
ris has joined #nixos
lordcirth has joined #nixos
judson__ has joined #nixos
<pie___>
also i need some easy-ish to fetchurl games to test wine with
<lordcirth>
How do you guys manage your nixos config? Do you track /etc/nixos/ in git?
<lassulus>
yes in git
<pie___>
lordcirth, yeah i think a lot of people do that
<lassulus>
pie___: Interesting project ;D
<lassulus>
maybe test with gta2?
<pie___>
lassulus, its great to have at least a working plugin stuff even if i dont understand it :D
<lassulus>
it has a really good soundtrack
<lassulus>
and it's free
<lordcirth>
pie___, something that's hard to run, or something simple?
<pie___>
lordcirth, tidbit: you can make a script that checks if you have any files not checked in, and if your repo is clean it can just update some json files to bump your pinned nixpkgs \o/ or at least i wanted to do that but havent gotten around to it...maybe theres better ways :D
<pie___>
lordcirth, taking any and all suggestions
<pie___>
lassulus, gta sounds like a reasonable try...still would need a compiled wine first
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pie___>
ill give it a shot
linarcx has quit [Quit: WeeChat 2.4]
<pie___>
hmm but if ive been using libinput all this time tha should still be fine...
<pie___>
still crappy
<pie___>
maybe it just needs a reboot :/
<monsieurp>
hello, I'm a total noob wrt writing nix expressions (packages, right?), I've been trying to put one together but to no avail, can somebody help?
<gchristensen>
yep! go ahead and explain what you're trying to do, what you've tried, and what isn't going right
<djanatyn>
wow, i'm having such a blast. i started using NixOS a few days ago and i've already gotten rid of the CentOS 7 VM i've been using at work for 2 years and replaced it with a new NixOS VM
<gchristensen>
nice, djanatyn!
<djanatyn>
the manuals for Nix, NixOS, Nixpkgs, and Nix Pills are fantastic
<djanatyn>
the package and option search is also really great!
<gchristensen>
♥‿♥
<djanatyn>
i'm really startled by how easy it has been to onboard, thanks for all the effort poured into this project
<gchristensen>
I'm so tickled to hear that you find it easy
<djanatyn>
i've spent a lot of years configuring VMs with ansible and working really hard to be confident my playbooks were actually idempotent and reproducible
<pie___>
haha
<djanatyn>
being able to specify the output hash for each derivation is magical to me
<pie___>
welcome \o/
linarcx has joined #nixos
<pie___>
not something i expected to hear :D its great to hear it though! guess ill have to start cutting back on the complaints ,P <djanatyn> the manuals for Nix, NixOS, Nixpkgs, and Nix Pills are fantastic <djanatyn> the package and option search is also really great!
<djanatyn>
the manuals definitely take some cross-reference! but all my questions have answers within the manuals and nix pills. if i'm reading someone's nix configuration and there's an expression i don't understand, i can find the answer through nixpkgs search, the manuals, or nix pills 100% of the time
<Synthetica>
mwilsoncoding: Can't you just use fetchFromGitHub instead of fetchPypi?
<Synthetica>
I don't think it's that different otherwise
<monsieurp>
I shamelessly copied most of the code from another nix expression :$
Neo-- has quit [Ping timeout: 245 seconds]
<monsieurp>
and then replaced what I needed
<mwilsoncoding>
Synthetica: oh- yeah, I think that'll do. I've been packaging ~80 python modules using pypi and may have forgot that existed...
silver_ is now known as silver
<Synthetica>
Haha, happens to the best of us
<mwilsoncoding>
monsieurp: that's also pretty much the same setup I have for pip packages, I need fetchFromGitHub tho because the package that is released on pip is behind the github repo- I'm not sure why... I'll probably find out tho =]
<monsieurp>
thing is.. how do I test it out?
<jerrytgarcia>
Anyone knows how to install Gnome from unstable? I only get this from the wiki. https://nixos.wiki/wiki/Gnome
<mwilsoncoding>
monsieurp: it's a default.nix file, so I assume nix-shell?
<mwilsoncoding>
monsieurp: I'd test that by directly using it in a checkout of nixpkgs
<monsieurp>
yes
kleisli has quit [Ping timeout: 250 seconds]
<ambro718>
symphorien: Thanks. Though, the docs say that substituteAll is anyway performed, but it does not work for me, or maybe I export my variable too late (in postPatch).
<coconnor>
ah. if you are using nixos-unstable for your nixos base then gnome3 will be gnome 3.32
psyanticy has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nixpkgs] @barakber opened pull request #60227 → swi-prolog: updated version + packs support → https://git.io/fjs2B
<coconnor>
if you want to use nixos stable and only gnome3 from unstable... not sure if that's even doable. Somebody else know?
drakonis has joined #nixos
Glider_IRC_ has joined #nixos
Glider_IRC_ is now known as Glider_IRC
strobelight has quit [Quit: gtg]
<jerrytgarcia>
coconnor: For other packages I just prefix the package attribute with the channel name nixos-unstable.firefox . Don't know how to do it with desktop and window managers though.
<mwilsoncoding>
so I'm thinking if I can just clone that one directory, very little else will need to change
<mwilsoncoding>
otherwise I need to clone the whole repo and modify the builder to cd into the servicemanagement-legacy directory prior to building, which seems all kinds of wrong
tboston_ has quit [Ping timeout: 258 seconds]
<stepcut_>
my hydra build is failing with 'error: you are not privileged to build derivations' but the 'hydra' user is listed as a trusted-user and I reloaded the nix-daemon. And doing nix-build by hand as the hydra user works :-/
kleisli has joined #nixos
<jerrytgarcia>
coconnor: Sounds like an adventure lol. I'll give nixos-unstable a go, more than half of my packages are using the unstable branch anyway.
<jerrytgarcia>
coconnor: BTW thanks for helping me out. =)
<clever>
stepcut_: does the hydra have build slaves?
<stepcut_>
clever: maybe? /etc/nix/machines has a single entry, localhost x86_64-linux 1
mabel has quit [Remote host closed the connection]
<stepcut_>
when I did not have that entry hydra-queue-runner complained that there were not machines available to build on or something
<clever>
stepcut_: localhost has a special case, dont rmember the exact rules
<coconnor>
jerrytgarcia: I use Jenkins. it is definitely an adventure haha. Kinda a sloppy setup but it's worked for a few years
<stepcut_>
hydra-queue-runner and friends were working when I ran them under my user account, this issue did not start until I created a new hydra user to run the hydra stuff
<clever>
stepcut_: if you `strace -p <pid> -f -e execve` on the pid of the queue-runner, what commands is it starting?
detran has joined #nixos
mabel has joined #nixos
wfranzini has joined #nixos
<{^_^}>
[nixos-org-configurations] @grahamc pushed commit from @edolstra to master « bigmac again »: https://git.io/fjs29
<stepcut_>
clever: thx. I think the error is that `nix-store` was not in the search path.
<clever>
stepcut_: thats a common problem when ssh'ing into a remote machine
<clever>
stepcut_: you can test it with `ssh user@host nix-store --version`
<stepcut_>
clever: in this case, it wasn't even ssh. The hydra server is running on an ubuntu box, and the hydra user did not have quite enough things in its PATH
<stepcut_>
it could not find the local version of nix-store
<BlessJah>
I get `error: value is a function while a set was expected` when calling 'import <nixpkgs/nixos/lib/make-squashfs.nix>' with required set
mconstant has quit [Ping timeout: 258 seconds]
<{^_^}>
[nixpkgs] @seqizz opened pull request #60228 → pythonPackages.pysnooper: init at 0.0.21 → https://git.io/fjs2b
m0rphism has joined #nixos
<ambro718>
Can makeWrapper do "set only if not already set"?
<yuken>
Huh, does Nix not have a setting for the GTK themes in applicable desktops? If not, I guess I'll have to just copy around my settings files.
<infinisil>
yuken: That's stateful, you have to use lxappearance or so to set it
<BlessJah>
ugh, of course, I need to call `import <nixpkgs>;` (e.g. `import <nixpkgs> {};`
<infinisil>
Or lxappearance-gtk3
<yuken>
infinisil, well, I'm installing a theme as part of my setup, arc-theme and papirus-icon-theme.
<infinisil>
Installing themes will make them available for selection in lxappearence
<yuken>
Which can be set globally for all users as a default, iirc, with XFCE at least.
elibrokeit has joined #nixos
<yuken>
Yes, but I'm talking about having my themes & panel & etc setup automatically.
<yuken>
From my Nix configs.
<infinisil>
Yeah I don't know if there's anything for that
ckoparkar has quit [Remote host closed the connection]
<yuken>
Guess I'll jsut need to copy my XFCE settings and store them on my site or something
erasmas has quit [Quit: leaving]
Anton-Latukha has quit [Ping timeout: 268 seconds]
<emilsp>
infinisil: hiya, do you recall the issue I was having yesterday night? Well, it's weird. I tried to reproduce it, but lietrally can't - nix-build '<nixpkgs/nixos>' --arg configuration /etc/nixos/configuration.nix -A config.services.znc.configFile produces a valid config file. nixos-rebuild switch generates a config file that is garbage :(
__monty__ has joined #nixos
wfranzini has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @c0bw3b merged pull request #59620 → [19.03] emacs: Link subdirs.el into emacs-packages-deps → https://git.io/fjYvu
<infinisil>
emilsp: Since you have something that works and something that doesn't you can bisect between the two
<{^_^}>
[nixpkgs] @c0bw3b pushed 2 commits to staging-19.03: https://git.io/fjsaf
<emilsp>
that's true, but it's literally the same inputs - it's the build tool that's acting up differently :/ Would you mind doing some more hand holding ?
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjsas
<sphalerite>
alienpirate5: hm, I really don't get why that would fail. Is it maybe failing as a dependency of something else, where it's used without being overridden?
<monsieurp>
sphalerite: the package builds fine but I have yet to fully grasp what the command does and why it is necessary to run nix-shell with those arguments
<monsieurp>
can you point me to a good doc to read?
<emilsp>
infinisil: I apologize for my constant cries for help - the root cause of my issues was rather simple. I hadn't set services.znc.mutable = false;
<infinisil>
Ah :)
<emilsp>
Thank you very much for holding my hand all the way through :)
Qubasa has joined #nixos
isidore has joined #nixos
<alienpirate5>
sphalerite: I don't know why it's failing either
<sphalerite>
alienpirate5: what's the full error output?
<jd823592>
Hi, would you recommend I used nix to make "script" that creates fs on selected disks, runs nixos installation and populates global but also user-specific configurations from some "templates"... my aim is to be able to get a reproducible setup of my home computer for whenever i decide to reinstall it
<ambro718>
What's the status of Wayland support in NixOS? I read that KWin is getting nvidia support and was wondering if I could try upgrading to the unstable kwin to see if it works.
<ambro718>
but only if wayland generally works at all in nixos
<sphalerite>
alienpirate5: right, it's a different orc from your overridden one that's failing
<sphalerite>
alienpirate5: it's the one brought in by gst-plugins-bad and -base
<sphalerite>
alienpirate5: to override its use in all of nixpkgs, you'll want to use an overlay. ` nixpkgs.overlays = [(self: super: { orc = super.orc.overrideAttrs (_: { doCheck = false; })]; ` should do the trick
<sphalerite>
alienpirate5: you also probably don't want it in systemPackages at all
<stepcut_>
in hydra, when looking at a build there is an 'Action' menu and you can select to 'keep' a build. But.. how do you get rid of builds you no longer care about?
stepcut has quit [Remote host closed the connection]
<rycee>
Anybody know why hnix is marked as broken?
stepcut has joined #nixos
st4ll1 has quit [Ping timeout: 244 seconds]
st4ll1 has joined #nixos
<{^_^}>
[nixpkgs] @monsieurp opened pull request #60236 → pydf: init at 12 → https://git.io/fjsVV
NickSeagull has joined #nixos
<samueldr>
rycee: AFAIUI a bunch of haskell packages were marked broken at once in an automated update, but I don't know enough about the haskell infra to say more
<monsieurp>
:D
<samueldr>
so it might not be hnix specific
<rycee>
samueldr: Right, I'm trying a build now. Will see what's up :-)
stepcut has quit [Ping timeout: 276 seconds]
<gchristensen>
monsieurp++
<{^_^}>
monsieurp's karma got increased to 1
o1lo01ol1o has quit [Remote host closed the connection]
<yuken>
Time to work on Digimend under Nix I guess, let's see if I can do this.
<{^_^}>
[nixos-org-configurations] @grahamc pushed to master « Setup wireguard on bastion »: https://git.io/fjsV7
bikes has joined #nixos
bikes has quit [Read error: Connection reset by peer]
bikes has joined #nixos
<worldofpeace>
Anyone here use fprintd in nixos and be willing to test something?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fendor has quit [Quit: Leaving]
bikes has quit [Ping timeout: 258 seconds]
shibboleth has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
<das-g[m]>
How do I hack on ruby software in NixOS?
stepcut has quit [Read error: Connection reset by peer]
stepcut has joined #nixos
ambro718 has quit [Quit: Konversation terminated!]
jasongrossman has quit [Read error: Connection reset by peer]
jasongrossman has joined #nixos
wolfman154 has joined #nixos
<samueldr>
depends, but I've been successful in simply using bundler within a nix-shell and do as usual
<samueldr>
(with other dependencies added e.g. zlib)
wolfman154 has quit [Client Quit]
wolfman154 has joined #nixos
ajp_ has quit [Quit: No Ping reply in 180 seconds.]
ajp has joined #nixos
NickSeagull has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wolfman154 has quit [Client Quit]
[Leary] has joined #nixos
mexisme has joined #nixos
hellrazor has quit [Ping timeout: 246 seconds]
Lears has quit [Ping timeout: 250 seconds]
mbrgm_ has joined #nixos
Lears has joined #nixos
mbrgm has quit [Ping timeout: 246 seconds]
mbrgm_ is now known as mbrgm
stepcut has quit [Remote host closed the connection]
Mark__ has joined #nixos
Mark__ has quit [Client Quit]
stepcut has joined #nixos
[Leary] has quit [Ping timeout: 250 seconds]
<das-g[m]>
I've cloned github.com/asciidoctor/asciidoctor and tried `nix run nixpkgs.bundler -c bundle install`
<das-g[m]>
That gave me a stack trace starting with
<das-g[m]>
Errno::EROFS: Read-only file system @ rb_sysopen - /nix/store/rwp5fpzqssf5m9dzbgbwsfgdzw8xajra-ruby-2.5.5/lib/ruby/gems/2.5.0/bundler.lock
stepcut has quit [Read error: Connection reset by peer]
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
<samueldr>
ther might be an issue with ruby 2.5's bundler within nixos when used imperatively (I no one currently confirmed my suspicions in the issue)
stepcut has quit [Remote host closed the connection]
<samueldr>
not used to nix run, so I'll go with nix-shell: nix-shell -p ruby_2_6 zlib --run "bundle install --path vendor/bundler"
<samueldr>
(nokogiri requires zlib)
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
<das-g[m]>
That seems to work. Thanks!
acarrico has quit [Ping timeout: 255 seconds]
<samueldr>
without `--path` it would try to install gems to the nix store, which it cannot
<samueldr>
do note that when collecting garbage within the nix store, it might collect whatever this is using
<samueldr>
at that point I'm not sure if there's a native way within bundler, but I nuke the vendor/bundler dir and reinstall
<samueldr>
though, don't take this as "the one way", I'm sure there are myriad ways to hack around ruby projects :)
<samueldr>
that one might be the most convenient to lull in the usual ruby developer within the Nix and NixOS ecosystem :)
stepcut has joined #nixos
hellrazor has joined #nixos
<das-g[m]>
It's some time ago I last used ruby, bundler etc.
<das-g[m]>
Is it a nixos-specific thing that it tries to install at a system-wide location when --path isn't specified?
ddellacosta has joined #nixos
<das-g[m]>
(I thought the default was some hidden directory in $HOME.)
judson_ has joined #nixos
<samueldr>
dependent on the configuration
<samueldr>
I seem to remember one other OS where it defaults to a system wide location
<samueldr>
well, distro, though not entirely positive so I won't name it
judson__ has quit [Ping timeout: 250 seconds]
NickSeagull has joined #nixos
<aswanson>
any r/rstudio users on? Specifically ones who've gotten python modules to run in R? Specifically-specifically folks who've successfully used tensorflow/keras in rstudio?
<yuken>
My jeebus, I am not used to functional programming
<yuken>
never even used a non-OOP language
<samueldr>
never ever?
<yuken>
nopers.
<samueldr>
:)
<samueldr>
no bash scripts?
<yuken>
oh, well bash can't count! :P
<aswanson>
so that's why I feel like such a dummy for googling what feels like simple stuff when writing bash scripts :P
<samueldr>
it can! echo {1..10} # sorry, I'll stop :)
<jasongrossman>
samueldr: If you'd written that joke in the chat channel I'd have ++ed you for it.
<yuken>
I can barely figure out the basics of the Nix language, maybe I should learn FORTRAN first
<samueldr>
sorry, contextual here, thouth yuken, more seriously, maybe you could pick our brain?