roconnor has quit [Remote host closed the connection]
roconnor has joined #nixos
stumble has quit [Ping timeout: 264 seconds]
aminb has joined #nixos
sigmundv__ has joined #nixos
<srk>
hm, I'm trying to build a simple C app (https://github.com/xobs/novena-eeprom) which requires linux/i2c.h but I don't know how to pass linuxHeader path to Makefile
<srk>
ah, ok, it looks like it's just too old
pxc has joined #nixos
asuryawanshi has joined #nixos
<srk>
solved. was actually missing i2c.h (only importing i2c-dev.h)
kandinski has joined #nixos
halfbit has quit [Ping timeout: 240 seconds]
<kandinski>
hi, I'm running bundix to try and add stuff to someone else's jekyll project, but the bundix rull doesn't leave a `result` anywhere after running. I'm new to Ruby and not that nixos-knowledgeable, so I might be doing things wrong. I'm on nixos-unstable, and all three of ruby_2_5, bundler and bundix were installed with `nix-env -iA`.
<srk>
bundix just generates files to be used with your custom derivation
<srk>
which includes these
<kandinski>
yes, the vendor directory is full of stuff
<kandinski>
it's the next step that I don't know what to do with. `bundler exec` failed because of issues compiling native gems.
jackdk has joined #nixos
nckx has quit [Quit: Updating my GNU GuixSD server — gnu.org/s/guix]
<srk>
this uses files generated by bundix in the same directory
<kandinski>
srk: so I should write my own default.nix by hand then?
<srk>
yes, you can use the one I've sent you
<srk>
as a template
<srk>
we just use bundix -l to generate required files
<kandinski>
right, the only new file I can see besides the vendor directory is a 'gemset.nix'
<srk>
you also need Gemfile and Gemfile.lock
<kandinski>
Yes, those were already in the project, and are unchanged by running bundix.
<srk>
sounds promising :)
<gchristensen>
I think bundix has a flag to update the Gemset.lock? otherwise you'd need to do it yourself
griff_ has quit [Quit: griff_]
<manveru>
-l will update the lock if needed
<kandinski>
hmm, let's try that
<srk>
heh, yeah, that's kind-of undocumented
<kandinski>
`bundix -l` left Gemfile.lock unchanged. So now I write default.nix where the executable is... jekyll? I'm sorry, but I'm new to ruby and the only instructions I got were to run `bundler exec jekyll serve --watch` on github.com/composeconference/composeconference
<{^_^}>
[nixpkgs] @ElvishJerricco opened pull request #40710 → Make getHaskellBuildInputs / shellFor work with overrideCabal (Fixes #40266) → https://git.io/vpAM1
Sonarpulse has quit [Ping timeout: 256 seconds]
Have-Quick has joined #nixos
<manveru>
with import <nixpkgs> {}; let; gems = bundlerEnv { name = "gems"; gemdir = ./.; }; in stdenv.mkDerivation { name = "whatever-i-need-for-jekyll"; buildInputs = [ gems ]; }
<manveru>
that should probably do it for a nix-shell
<kandinski>
manveru: thanks. I'll explore from here.
<manveru>
ah, misses a `inherit ruby` in the bundlerEnv
<kandinski>
thanks also srk
<manveru>
i gotta sleep :)
acarrico has quit [Ping timeout: 256 seconds]
aither has quit [Ping timeout: 264 seconds]
jackdk has quit [Ping timeout: 260 seconds]
snajpa has quit [Ping timeout: 248 seconds]
srk has quit [Ping timeout: 248 seconds]
jackdk has joined #nixos
snajpa has joined #nixos
acarrico has joined #nixos
srk has joined #nixos
pie_ has quit [Remote host closed the connection]
ryantrinkle has quit [Read error: Connection reset by peer]
pie_ has joined #nixos
aither has joined #nixos
ryantrinkle has joined #nixos
<petersjt014[m]>
Hi:
<petersjt014[m]>
I'm trying to run a tomcat server and nix is overwriting some of my settings--I don't know where it wants me to put them
<{^_^}>
[nixpkgs] @dezgeg pushed commit from @dtzWill to staging « qt-5.10: don't use features that require new-ish kernels, stay compat »: https://git.io/vpADC
<{^_^}>
[nixpkgs] @dezgeg closed pull request #40577 → Don't let Qt require a minimum kernel of 3.17+ (even if we're building against headers satisfying that requirement) → https://git.io/vpdLe
<srk>
petersjt014[m]: try looking at the implementing module
<{^_^}>
→ f252c726 by @nyarly: hiro: init at 0.1.4
<srk>
petersjt014[m]: you can easily find out which variables go where
<clever>
petersjt014[m]: if you specify a serverXml in your nixos config, it will use that string as the contents, if not, it uses the result of the sed call you linked
<petersjt014[m]>
What would the option/syntax look like? The only thing I'd know to do would be to just write out a file, and that seems clunky
<petersjt014[m]>
unless it's not under `services.tomcat`
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @dtzWill opened pull request #40711 → [NOMERGE] llvm: fix cross-compilation, alternative approach → https://git.io/vpAyr
pxc has quit [Ping timeout: 256 seconds]
drakonis has joined #nixos
drakonis_ has joined #nixos
drakonis_ has quit [Client Quit]
pxc has joined #nixos
acarrico has joined #nixos
sanscoeur has quit [Ping timeout: 248 seconds]
broccoli_ has joined #nixos
<ajmccluskey>
jackdk: You want to get hoogle working locally for a Haskell package?
broccoli_ has quit [Ping timeout: 265 seconds]
markus1199 has joined #nixos
<jackdk>
yeah, I'm doing the approach in https://stackoverflow.com/a/34583430/429232 at the moment. My actual goal was to find a good way to open installed haddocks, but that might be an XY problem
<ajmccluskey>
Assuming you're using `ghcWithHoogle` as you mentioned in #haskell, you should be able to `nix-shell --run 'hoogle server --local'` and then hit `localhost:8080` to search for things and view haddocks.
<ajmccluskey>
Pretty sure there's a flag to change the port too -- I just haven't needed it.
<jackdk>
(there is, it's `-p`p
<jackdk>
s/p$/)/
markus1189 has quit [Ping timeout: 255 seconds]
<ajmccluskey>
Right. I just click through hoogle to get to the haddocks.
<jackdk>
yeah so to make that ghcWithHoogle work I had to adapt the contents of the SO link to overwrite the compiler in haskellPackages with one that's withHoogle
hamishmack has joined #nixos
<jackdk>
also having good hoogle support means I can set my editor up to take advantage, which is a win
<ajmccluskey>
That's the only place I've used this.
asuryawanshi has quit [Remote host closed the connection]
<jackdk>
oh, interesting. It's both a "compiler selection" thing and a "shell specific" thing, so I'm not sure which is more correct. nix seems very TIMTOWTDI sometimes
<ajmccluskey>
And it's taking a different approach of overriding the derivation when you're in a shell and adding hoogle with build/exe/test deps as a build dependency.
<ajmccluskey>
TIMTOWTDI?
<ajmccluskey>
I haven't played with it much -- this came from a colleague who set it up.
<drakonis>
is anyone else having trouble with kde 5?
<drakonis>
ie: no configuration modules?
srl295 has quit [Quit: Connection closed for inactivity]
ryantrinkle has quit [Ping timeout: 264 seconds]
sigmundv__ has quit [Ping timeout: 256 seconds]
<pxc>
drakonis: not atm, but I have. Do you have any KDE software in your user profile? sometimes I have problems if my user profile contains old KDE stuff and I'm using KDE on NixOS
lassulus_ has joined #nixos
<drakonis>
hmm
<drakonis>
that depends
lassulus has quit [Ping timeout: 264 seconds]
<drakonis>
it shouldn't impact kde being unable to see any configuration modules
drakonis has quit [Remote host closed the connection]
schoppenhauer has quit [Ping timeout: 248 seconds]
griff_ has joined #nixos
schoppenhauer has joined #nixos
ryantrinkle has joined #nixos
rauno has quit [Ping timeout: 260 seconds]
jperras has quit [Ping timeout: 268 seconds]
nallar has joined #nixos
Ross has quit [Ping timeout: 240 seconds]
nallar is now known as Ross
v0latil3 has joined #nixos
sir_guy_carleton has joined #nixos
<sir_guy_carleton>
hello
<v0latil3>
hello
balsoft has quit [Quit: balsoft]
nckx has joined #nixos
reinzelmann has joined #nixos
<boomshroom>
sir_guy_carleton, v0latil3: Sup?
griff_ has quit [Quit: griff_]
<v0latil3>
being sad about logstash6 plugins being broken in nix
<v0latil3>
It's okay though I don't need it
<v0latil3>
I was going to use prune filter like it shows in the example in logstash.nix but I can just use journalctl options to do the same thing
<v0latil3>
Less overhead anyways I guess
Rusty1_ has quit [Quit: Konversation terminated!]
jperras has joined #nixos
aarvar has quit [Ping timeout: 240 seconds]
vi21b has quit [Remote host closed the connection]
jperras has quit [Ping timeout: 268 seconds]
taktoa has quit [Read error: Connection reset by peer]
tertle||eltret has quit [Quit: Connection closed for inactivity]
<yrashk>
how can I get a committer's attention to review my `init` PR? I've had https://github.com/NixOS/nixpkgs/pull/36957 sitting almost idle for two months now, while all other PRs I've done were merged in pretty quickly. Am I missing some crucial ceremony here?
<sir_guy_carleton>
hmm, nix is telling me gnupg is an undefined variable, yet i have on my installation right now
<{^_^}>
→ 63f2c2f7 by @yrashk: ape: init at 6.7-131003
<{^_^}>
→ 499b9e79 by @7c6f434c: Merge pull request #40713 from yrashk/attempto-ape
<MichaelRaskin>
yrashk: there is a certain amount of luck involved. Bad luck in this specific case
<adisbladis[m]>
ryantrinkle: You know that nix1 is still around, right?
<adisbladis[m]>
You can use it on 18.03/unstable
Ariakenom has quit [Read error: Connection reset by peer]
<yrashk>
MichaelRaskin: thanks for merging it :)
<MichaelRaskin>
Sometimes pinging someone who has worked on a similar topic might help. I try to skim the GitHub events, but I don't have energy to actually read all of them, so I will catch only obviously interesting things, but will probably review or ping someone more qualified if you direct-mention me. I am not the only one like that; I mean, most people don't even try to skim the full notification stream.
<MichaelRaskin>
By the way, «many comments, you and cleverca22 involved» might have created a false impression if someone tried to skim the open PR page for a quick merge.
<MichaelRaskin>
In any case it is a luck-based game indeed.
<{^_^}>
→ b1890946 by R. RyanTM: firejail: 0.9.52 -> 0.9.54
<{^_^}>
→ ec752bc4 by @7c6f434c: Merge pull request #40676 from r-ryantm/auto-update/firejail
Tucky has joined #nixos
guillaum1 has joined #nixos
knupfer has joined #nixos
Ariakenom has joined #nixos
ahmedtd has quit [Remote host closed the connection]
MichaelRaskin has quit [Quit: MichaelRaskin]
ahmedtd has joined #nixos
hamishmack has joined #nixos
MarcWeber has joined #nixos
coot has joined #nixos
<MarcWeber>
I'm running out of gids - is an easy fix known?
<MarcWeber>
Where does the hardcoded limit 499 in the .pl script come from?
<ikwildrpepper>
MarcWeber: wikipedia says it's common in distributions: Many Linux systems reserve the GID number range 0 to 99 for statically allocated groups, and either 100−499 or 100−999 for groups dynamically allocated by the system in post-installation scripts. These ranges are often specified in /etc/login.defs, for useradd, groupadd and similar tools.
<ikwildrpepper>
probably just arbitrary
mmercier has joined #nixos
jensens has joined #nixos
jperras has joined #nixos
<MarcWeber>
The activation script dies with no gids left.
spyke has joined #nixos
<MarcWeber>
There is some limitation in ntfs I'm not using.
<MarcWeber>
sry nfs
<MarcWeber>
So I'll just increase the value and see what happens..
<infinisil>
Plato[m]: if it's your own script you want to get working with nix, you would either use @curl@ wherever you need curl in your script, then use `substitute in.sh out.sh --subst-var-by curl "${pkgs.curl}/bin/curl"`
larsvm has quit [Ping timeout: 255 seconds]
<infinisil>
Plato[m]: Or you could prefix PATH with a path the binaries you need on it, you can do this with `makeWrapper in.sh out.sh --prefix PATH : "${makeBinPath [ pkgs.curl ]}"`
<infinisil>
(disregard my failed english there)
<srhb>
Plato[m]: I tend to do exactly what you're doing unless I have to refer to the same binary many times.
smallville7123 has quit [Quit: rosa]
<srhb>
(When generating my own scripts, that is, not when patching others)
<rauno>
Hey guys
<rauno>
having problems with locales using nixops
<rauno>
for example warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
<rauno>
when trying to nixops ssh or nixops deploy
<Plato[m]>
infinisil: Ah, I see. The @curl@ variant _and_ the makeWrapper variant are out of the question here (since other non-nix people have to call the script, too, and creating a separate script for a script seems silly).
larsvm has joined #nixos
<Plato[m]>
Or am I misunderstanding makeWrapper?
<infinisil>
Yeah the second one is usually the one I prefer too
<infinisil>
Oh wait
<infinisil>
No the second one should work fine
<Plato[m]>
This creates a bash script that changes the path and calls the original script, right?
<infinisil>
You can just write a normal script and makeWrapper will convert it to a "nix-compatible" one (that doesn't need all the binaries already installed)
ericsagnes has joined #nixos
<Plato[m]>
Oh wow...that sounds like magic.
<infinisil>
Yeah, but the original, unwrapped script can be used like normal for the people who have the correct binaries installed
<Plato[m]>
I'll try makeWrapper, then.
<infinisil>
And usually you have curl installed on NixOS too, so for most people it would still work
<infinisil>
But I prefer to use makeWrapper to always have the correct dependencies
<Plato[m]>
Just to be thorough, my original approach used "substituteInplace in.sh --replace curl ${pkgs.curl}/bin/curl" in postPatch. It didn't work, however.
<Plato[m]>
Any idea why?
<Plato[m]>
(curl wasn't replaced)
<Plato[m]>
Is postPatch always executed, or only if "patches" isn't empty?
<clever>
always
<infinisil>
It should probably be in fixupPhase or postFixup
<infinisil>
And to replace the string "curl" might change other places where you used curl, which might be unintended
<LnL>
Plato[m]: yes, but overriding the entire patchPhase would disable the default patches implementation
<Plato[m]>
Yep, that's what I thought, too. Not a good solution, really. I mean, it _is_ my script, I could do something like CURL_REPLACE_ME_PLEASE="curl" and then use that.
<LnL>
(and the pre/post hooks)
<Plato[m]>
But then, the wrapper sounds more reasonable.
<infinisil>
Plato[m]: I'd just use makeWrapper (or the inplace equivalent "wrapProgram")
mounty has joined #nixos
<srhb>
Plato[m]: If it's your own script, why not just write the full paths directly in it? That is ${curl}/bin/curl ?
<Plato[m]>
srhb: The script has to be callable by non-nix users.
<srhb>
Oh, I missed that, sorry.
<Plato[m]>
np :)
<srhb>
Is there any Nix 1.x compatible workaround for renaming a ./.foo path to something legal?
griff_ has quit [Quit: griff_]
<nico202>
how do I cross-compile (build: linux, host: windows) on nixOS with meson? I can't find mingw64-g++ (it's windows only)
<steveeJ>
I don't know what to think of this: /nix/store/zqh3l3lyw32q1ayb15bnvg9f24j5v2p0-bash-4.4-p12/bin/bash: error while loading shared libraries: libdl.so.2: cannot open shared object file: Permission denied
<infinisil>
srhb: What's the problem with it?
<steveeJ>
this happens when I run a specific Docker container
<srhb>
infinisil: It's an illegal store path.
<srhb>
infinisil: In nix 2.0 builtins.path can rewrite it to something non-dotted.
<infinisil>
Ah it's a store path
Synthetica has quit [Quit: Connection closed for inactivity]
<infinisil>
srhb: Does lib.replaceStrings work?
deepfire` has quit [Ping timeout: 240 seconds]
<srhb>
infinisil: Not sure how I'd use that for this.
<camsbury>
Hey all! Is it possible to name your nixos-rebuild images so that the grub experience is a bit better?
<etu>
camsbury: -p or --profile-name is mentioned in the man page. It might do what you want :)
<camsbury>
yeah doesn't seem to be quite what I want
<{^_^}>
[nixpkgs] @lheckemann opened pull request #40721 → kdeApplications.konquest: init at 2.4 → https://git.io/vpx4H
<camsbury>
I want to label the images themselves, not a stream of them
<etu>
Then I don't think so :(
<camsbury>
but it is a good start at least
<camsbury>
thanks though!
<camsbury>
just seems only natural to add labels to these
<camsbury>
like commit messages in a git log
cryp2nomicon has joined #nixos
<etu>
I think that depends on how you use it :)
stumble` has joined #nixos
fendor has joined #nixos
alex`` has joined #nixos
stumble has quit [Remote host closed the connection]
maingo has quit [Quit: Connection closed for inactivity]
freusque has quit [Quit: WeeChat 2.0]
orbekk has quit [Quit: WeeChat 2.0]
ajs124 has joined #nixos
Willi_Butz_ has quit [Quit: WeeChat 1.9.1]
orivej has quit [Ping timeout: 268 seconds]
reinzelmann has quit [Quit: Leaving]
alexteves has joined #nixos
WilliButz has joined #nixos
WilliButz has quit [Client Quit]
jmeredith_ has quit [Quit: Connection closed for inactivity]
orivej has joined #nixos
WilliButz has joined #nixos
xAFFE has left #nixos ["Error from remote client"]
smallville7123 has joined #nixos
freusque has joined #nixos
leat has quit [Quit: WeeChat 2.0.1]
WilliButz has quit [Quit: WeeChat 1.7.1]
WilliButz has joined #nixos
leat has joined #nixos
WilliButz has quit [Client Quit]
WilliButz has joined #nixos
<bbsl>
im trying to build a rust binary but I keep getting "note: /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/ld: cannot find -lmysqlclient" even though Iv added libmysql to the env Im trying to build in, any ideas?
WilliButz has quit [Client Quit]
WilliButz has joined #nixos
alexteves_ has joined #nixos
jperras has joined #nixos
rauno has joined #nixos
<rauno>
error: cannot open connection to remote store 'daemon': current Nix store schema is version 10, but I only support 7 << any idea about this error ?
smallville7123 has quit [Quit: rosa]
<joepie91>
hmmm. is there a reason why nixops uses the XML output mode of nix-instantiate? considering that the comments in the code even explicitly state that the postprocessing of the XML output results in an equivalent result to if it were to parse the --json output
<eacameron>
Is there a better way of "installing" a dependency without adding it to path than this? `nix-shell -p git --run 'which git'` ?
<aminechikhaoui>
joepie91: I think some resources are already using the json output
freeman42x]NixOS has joined #nixos
<aminechikhaoui>
I guess it's just a matter of refactoring for the rest
civodul has joined #nixos
camsbury has quit [Remote host closed the connection]
camsbury has joined #nixos
asuryawanshi has joined #nixos
deepfire` has joined #nixos
<joepie91>
aminechikhaoui: ah, so it's more a case of "nobody has done it yet"? and does that mean that the --json output feature is newer than the --xml feature or something?
<LnL>
bbsl: maybe the library is not in $mysql/lib but a subdir?
asuryawanshi has quit [Ping timeout: 240 seconds]
camsbury has quit [Ping timeout: 264 seconds]
acarrico has quit [Ping timeout: 260 seconds]
knupfer has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @uqam-fob opened pull request #40723 → Remove all references to absent nixos-prepare-root → https://git.io/vpxzV
coot has quit [Quit: coot]
<desttinghim[m]>
I'm getting an error when trying to run some of the bluez-* utilities: `no module named 'dbus'`
<fendor>
is there a reason why ghc 8.4. is not packages yet?
ryantrinkle has joined #nixos
<desttinghim[m]>
I tried installing python36Packages.dbus-python but that didn't change anything
<nikivi>
so what happened when I ran nix-shell -p nodejs
<nikivi>
I ran it in my ~/
<clever>
nikivi: it added nodejs to $PATH and thats it
<nikivi>
If I just control + c I won't leave any files anywhere?
<nikivi>
ctrl+d*
<clever>
nikivi: correct, and you use exit to exit, or eof
<nikivi>
Whats preferred way to search for packages in nix to install?
<clever>
eacameron: but also, nix wont know that your depending on git if you keep the path in a random var like that, so its best so use the result symlink nix-build makes
<nikivi>
Say I wanted to install tsc for typescript, what would I do to know what to type
<eacameron>
clever: I just want to use it during the run of a single script
<clever>
eacameron: if a garbage collection happens in the middle of that script running, it might delete git on you
<nikivi>
So after I quit from nix-shell after nix-shell -p nodejs
<eacameron>
clever: Right...I realize that
<nikivi>
node will not be in my PATH any more right?
<nikivi>
So this is needed for what exactly?
<pxc>
nikivi: right
<clever>
nikivi: correct
<eacameron>
clever: Does nix-shell solve that? I.e. is it "thread-safe"?
<eacameron>
if you're in a shell while a gc runs...
<clever>
eacameron: yeah
<rauno>
Hey again :) how can i upgrade nix store schema version ?
<eacameron>
The problem I'm having is that nix-shell is slow
<clever>
eacameron: nix run is faster
<eacameron>
I end up running it a dozen times in a row
<pxc>
nikivi: nix-shell is a nice way of trying out software without globally installing it. It's an alternative to permanent installation
<eacameron>
nix run?
<clever>
eacameron: nix run nixpkgs.git
<nikivi>
nix-env -iA nixpkgs.nodejs finished in 2 seconds
<nikivi>
what is this magic
<eacameron>
clever: it failes can't find nixpkgs in selection path
<pxc>
clever: _why_ is it faster? I see that with nix-shell you specify package names but with nix-run it's attributes. Is that all there is to it?
<clever>
nikivi: nix-shell already downloaded the package and left it cached in /nix/store/
<clever>
eacameron: what i prefer doing is something like: nix-build '<nixpkgs>' -A git -o git ; export PATH=./git/bin:$PATH
<clever>
pxc: nix-shell gives you a shell with gcc that is suitable for building things, so it has to run setup hooks and download build-time deps
<clever>
pxc: nix run just gives a shell suitable for using X and nothing more
<nikivi>
I read that nix is a Turing complete language which is used for configuration and building packages
<nikivi>
What neat features does this turing completeness give?
<pxc>
clever: oh! awesome. It's nice to have the command with the narrower purpose in Nix 2.0. I'm gonna have to make more use of it
orbekk has joined #nixos
<clever>
nikivi: i can use a for loop in nixops to generate 10 machines, that each have 10 systemd services, and then just do `nixops deploy` and it spins up 100 instances of a program on AWS
jmeredith_ has joined #nixos
<joepie91>
nikivi: in practice that means you can do arbitrary computation with it; ie. you're not limited to a particular set of configuration options / expression formats, you can do loops, you can build abstractions, and so on
xeji has joined #nixos
<joepie91>
or well, sort-of-loops :)
jmeredith_ has quit [Client Quit]
<nikivi>
You still use domain specific package managers with nix right? Like npm/pip and so on?
jmeredith has joined #nixos
dbmikus has quit [Ping timeout: 255 seconds]
nipav has quit [Quit: leaving]
<joepie91>
nikivi: basically, think of Nix (the language) as an expression-based programming language where every program evaluates to a single (possibly complex) value; that resulting value is what is used as eg. the configuration of your system or a package, but it means that you can generate that value based on arbitrary logic and abstractions like you would with a regular programming language
balsoft has quit [Quit: balsoft]
<joepie91>
unlike most configuration formats which have a specific structure, a specific set of keys and sections, and everything has to be specified literally
<nikivi>
That sounds amazing, thank you for that joepie91
Tucky has quit [Quit: WeeChat 2.1]
<nikivi>
I am just curious about it because it seems that nix is `pure` whilst something like pip or npm isn't
<nikivi>
And just curious how it all bodes together
<{^_^}>
[nixpkgs] @xeji merged pull request #40705 → elfutils: add patch that fixes compilation under gcc8 → https://git.io/vpAED
<{^_^}>
[nixpkgs] @xeji pushed commit from @Synthetica9 to gcc8 « elfutils: add patch that fixes compilation under gcc8 (#40705) »: https://git.io/vpxXw
<joepie91>
nikivi: as for domain-specific package managers, It Depends; it's possible with varying degrees of hackiness (and I definitely use eg. npm for development), but for a 'real' deployment - whether as a service on a server or as a local application - you'd want to convert your project's metadata to a Nix expression and let Nix handle the dependency management
<joepie91>
there are tools for that for most domain-specific package formats
<joepie91>
eg. node2nix
<clever>
joepie91: and there is also yarn2nix
<joepie91>
nikivi: you're correct on the difference in purity as well, which is why 'traditional' methods of dependency installation are typically poorly supported and not used for prod deployments :)
<joepie91>
on NixOS, the same even applies for static binaries, which won't run without patching
<joepie91>
(as there's no global dependency folder)
<{^_^}>
[nixpkgs] @taku0 opened pull request #40728 → Firefox bin 60.0.1 → https://git.io/vpx1T
<eacameron>
clever: Yeah I was trying avoid temp files like that...but I can see the concern.
<joepie91>
nikivi: anyway, on non-NixOS, the usage of Nix won't interfere with whatever's already on your system, just the guarantees provided by Nix won't apply to anything that's installed by means other than Nix
<joepie91>
on NixOS, it's all-in on Nix; which gives you some benefits (like eg. having your system's service management and kernel management integrated into Nix as well), but also means you don't have an 'escape hatch' in most cases
<eacameron>
I'll see if I can find a way. I'm actually in haskell. I wonder if I could do `withTempFile $ \f -> system "nix-build -A nixpkgs.git -o '" <> f <> "'"; ... do stuff with git`
nipav has joined #nixos
nuncanada has joined #nixos
<{^_^}>
[nixpkgs] @nlewo opened pull request #40729 → nixos/tests/hydra: build a trivial derivation → https://git.io/vpx1n
<nikivi>
It's quite awesome that nix as package manager is available on systems like macOS and not just exclusive to nixOS
<clever>
eacameron: id use withTempDirectory
<eacameron>
clever: Oh?
<clever>
eacameron: nix-build wont overwrite a file that already exists, and deleting it creates a race condition
<eacameron>
clever: Ah
<clever>
but nix-build can overwrite symlinks
<eacameron>
Very good to know.
<eacameron>
clever: But why couldn't I delete the temp file *before* calling nix-build?
leat has quit [Ping timeout: 240 seconds]
<clever>
then its a race condition, somebody could steal the file name
mizu_no__ has joined #nixos
<clever>
and cause problems
pxc has quit [Ping timeout: 256 seconds]
<eacameron>
clever: Oh it's a race condition for the temp file. I guess I didn't realize that's how it worked but it makes sense
<stumble`>
nikivi: I agree.
nixer has joined #nixos
nipav has quit [Quit: leaving]
<nixer>
I package up my local source through a fixed output derivation, I compute the hashes by hand and store them in my repo. I'm running into an issue where sometimes I forget to update the hashes when I need to redeploy, and the source FOD doesn't get rebuilt. So I added a test to do nix-build -A source --check, but that doesn't seem to throw an error. Is that normal? Any ideas on how to do this easily?
ajp has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to master « imagemagick7: 7.0.7-29 -> 7.0.7-32 (#40669) »: https://git.io/vpxMy
<clever>
nixer: i dont think --check can rebuild that kind of thing, you generally need to either give each version a unique name, or corrupt the hash by just replacing a few chars with ffff to make it fail
ajp has joined #nixos
pxc has joined #nixos
vi21b has joined #nixos
<fragamus>
I am using ec2 user data and I got it to work but it does not invoke the /etc/nixos/configuration.nix how can i make that happen at ec2 launch?
srl295 has joined #nixos
<nixer>
clever: I don't mind rebuilding it myself, but is there a way to actually check if the FOD has the correct hash? I thought that's what --check does?
mizu_no__ has quit [Quit: Computer has gone to sleep.]
<nixer>
fragamus: Are you putting nix in the userdata?
<norfumpit>
I'm a bit confused about systemd user services. I've got a container within which I want to run a service as a non-root user. I've defined a user service, but trying to start it using systemctl --user gives "Failed to connect to bus [...]". Because systemd --user is not running. How do I have it running?
thblt has quit [Ping timeout: 240 seconds]
<fragamus>
nixer: I'm not sure what you mean. I am putting in the configuration.nix that I want to use. I will make a gist of mine so you can tell me what I am doing wrong.
judson has joined #nixos
judson is now known as Guest95697
<nixer>
fragamus: You can put whatever you want in configuration.nix into the userdata, and have your nodes configure themselves.
<fragamus>
maybe I have a race condition, but I don't see it configuring automatically. lemme try again
<Taneb>
"nix-shell --pure" is running my .bashrc even though I would expect it not to
<fragamus>
nixer: ok I launched it, and now I will verify that the /etc/nixos/configuration.nix is loaded properly
sigmundv__ has quit [Ping timeout: 265 seconds]
<Taneb>
Have I got incorrect assumptions about nix-shell or am I doing something wrong?
<fragamus>
nixer: yes the configuration.nix I have in the gist above was loaded
asuryawanshi has quit [Ping timeout: 264 seconds]
grp has joined #nixos
<fragamus>
OMG it worked
<fragamus>
nixer: it worked
<fragamus>
I must have logged in too fast
<cransom>
fragamus: `systemctl status amazon-init.service` and you'd see how long it takes/when it happens/etc.
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Taneb>
Ah, "Note that ~/.bashrc and (depending on your Bash installation) /etc/bashrc are still sourced, so any variables set there will affect the interactive shell."
kane_ has joined #nixos
romildo has joined #nixos
Lisanna has joined #nixos
maingo has joined #nixos
<kane_>
Hi, does anyone have like in their dotfiles the packages needed for phone stuff to work in gnome?
__Sander__ has quit [Quit: Konversation terminated!]
<{^_^}>
→ 33a94b04 by @gnidorah: franz: switch to autoPatchelfHook
<{^_^}>
→ 636fce50 by @gnidorah: maxx: switch to autoPatchelfHook
<{^_^}>
→ cfc016c7 by @xeji: Merge pull request #40703 from gnidorah/autopatchelf
<roconnor>
Works like a charm!
<kane_>
gmarmstrong: mtp stuff and the likes working in gnome files
<drakonis>
oh boy oh boy, there's automatic elf patching?
<drakonis>
this is pretty cool
bbsl has quit [Remote host closed the connection]
<eacameron>
What's the easiest way to run wrapProgram on a haskell package. I have it working with runCommand but I have to copy the result and this seems like it should be easy.
<{^_^}>
[nixpkgs] @xeji pushed commit from @Ma27 to master « nixos/xss-lock: add module (#40619) »: https://git.io/vpx5m
fendor has quit [Remote host closed the connection]
fendor has joined #nixos
<elvishjerricco>
eacameron: I think you're just supposed to do `ln -s foo $out/bin/foo; wrapProgram $out/bin/foo ...`
<eacameron>
elvishjerricco: I see. So just `mkdir -p "$out/bin"` first and then do that.
<dmj`>
I have a dynamic library (C++ compiled, being exposed from C) that I’d like to be configured when I enter a nix-shell for my haskell project, so I don’t have to keep cabal configuring —enable-extra-library. I could put it into extra-lib-dirs, but then I’d need a hardcoded path to the nix store in my package.yaml, advice?
asuryawanshi has joined #nixos
<elvishjerricco>
dmj`: Something I've started to do is have my nix-shells provide a `CABAL_CONFIG` environment variable. cabal-install will pick this up and use it rather than ~/.cabal/config, which is great because that file comes with repository stanzas and whatnot by default, which we'd rather not have. You can also put extra libs / frameworks / include dirs / etc. in there.
h30 has quit [Quit: WeeChat 1.6]
mmercier has quit [Ping timeout: 264 seconds]
leat has joined #nixos
<dmj`>
elvishjerricco: I have my C library defined in the extra-libraries section, when I call cabal configure and watch what it does verbosely, it doesn’t pass the flag —extra-lib-dirs to the compiled Setup.hs
<elvishjerricco>
dmj`: Right because you have to tell cabal-install about --extra-lib-dirs. Listing the lib in the cabal file and having the package as a build input for the nix shell isn't enough for cabal-install to know where to find the lib.
Ariakenom has joined #nixos
waleee has quit [Quit: WeeChat 2.1]
<elvishjerricco>
You'd have to pass --extra-lib-dirs to cabal-install because it doesn't know where the lib is otherwise. Or, if you use this CABAL_CONFIG thing, you can simply add it to a file and point the environment variable there; then cabal-install will pick it up without needing any extra args.
<dmj`>
elvishjerricco: but if I add extra-lib-dirs to my cabal file, and then call cabal configure it should know right...
<elvishjerricco>
dmj`: Oh are you hard coding the nix store path in the cabal file?
<elvishjerricco>
That would work but it's not a good plan
<dmj`>
elvishjerricco: I’m trying to not have to do that
jperras has quit [Quit: WeeChat 2.1]
jD91mZM2 has joined #nixos
<elvishjerricco>
dmj`: Right, so there's nothing you could reasonably put into `extra-lib-dirs` in the cabal file, right?
<dmj`>
elvishjerricco: unless I do something like /nix/store/*-mylib/, but I doubt wildcards are recognized :)
<elvishjerricco>
Hah.
<elvishjerricco>
Yea so there are two main options
<elvishjerricco>
The better one (now that I think about it), is to use the pkgconfig-depends field in the cabal file
<dmj`>
elvishjerricco: optionally, I could hardcode the path, but then have a cabal flag for nix which would read extra-lib-dirs, this would require pinning nixpkgs though
<elvishjerricco>
If the lib has a pkg-config directory
<elvishjerricco>
The more heavy handed one is to use the CABAL_CONFIG environment variable and config the dirs in there
<dmj`>
elvishjerricco: what would I put in the pkg-config directory
<elvishjerricco>
dmj`: I'm not really sure how pkg-config works. But most libraries install the pkg-config stuff on their own
<Baughn>
So... nix-shell provides the paths to every included package through buildPackages.
asuryawanshi has quit [Ping timeout: 260 seconds]
<Baughn>
But this is *not* an array? I'm confused.
<elvishjerricco>
dmj`: But it's easy to test. In the nix-shell just try pkg-config --list-all and see if your lib is in there.
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
kane_ has quit [Ping timeout: 260 seconds]
fendor has quit [Ping timeout: 240 seconds]
arianvp2 has joined #nixos
<arianvp2>
does `nix build` have a way to check reproducbility?
<arianvp2>
like `nix-build --check` (which is undocumented for some reason?)
<elvishjerricco>
arianvp2: Nope
asuryawanshi has joined #nixos
<elvishjerricco>
It's missing a number of things, unfortunately :/
<arianvp2>
Is there an easy way to check reproducibility otherwise?
<elvishjerricco>
nix-build --check :P
<arianvp2>
I was thinking of: make a version of the derivation with different name
<arianvp2>
and then hash the outputs and check if they're the same
<arianvp2>
so some higher order derivation called "checkReproducible"
<arianvp2>
that should work right?
<elvishjerricco>
arianvp2: Seems like more work than just using nix-build --check
gmarmstrong has quit [Quit: Quit]
acarrico has quit [Ping timeout: 255 seconds]
drakonis has quit [Read error: Connection reset by peer]
<Guest95697>
Does anyone know why, when I start a new Chrome instance (i.e. after updating), media keys are no longer recognized?
arianvp2 has quit [Ping timeout: 260 seconds]
Guest95697 is now known as judson
<judson>
(That was me)
<judson>
(NickServ is *so* picky)
dbmikus has joined #nixos
coot has quit [Read error: Connection reset by peer]
coot has joined #nixos
krey has joined #nixos
<Izorkin>
joachifm: please recheck PR 33835
mmercier has joined #nixos
juri2mol has quit [Quit: sleep]
mmercier has quit [Client Quit]
juri2mol has joined #nixos
knupfer has quit [Ping timeout: 265 seconds]
<Izorkin>
globin: how to need to merge PR 33176 (mariadb galera)?
johnw has joined #nixos
ihar has quit [Quit: WeeChat 2.0]
romildo has left #nixos ["Leaving"]
ihar has joined #nixos
chpatrick has quit [Quit: Connection closed for inactivity]
<nikivi>
however how do I know which one is the correct one
<elvishjerricco>
Was builtins.genericClosure new in 2.0, or was that in 1.11?
<nikivi>
there is 'rust-src' but also 'rustc-1.24.0'
acarrico has joined #nixos
<nikivi>
I tried to run: nix-env -iA nixos.rustc
<nikivi>
But got: error: attribute 'nixos' in selection path 'nixos.rustc' not found
<mkaito>
How can I do this without incurring infinite recursion? services.nginx.virtualHosts = mkForce (mapAttrs disableSSL config.services.nginx.virtualHosts)
<johnw>
try: nix-env -f '<nixos>' -iA rustc
<johnw>
mkaito: use lib.recursiveUpdate
boomshroom has joined #nixos
<goibhniu>
hi nikivi are you on NixOS?
<nikivi>
goibhniu macOS
<boomshroom>
Good morning, or whatever time you're in!
<johnw>
oh, I think recursiveUpdate doesn't allow applying a function
<mkaito>
nikivi: try nixpkgs.rustc? or whatever your channel is called. try sudo nix-channel --list, first word is channel id
<nikivi>
johnw I am worried of running this command
<nikivi>
I am not running nixOS
<mkaito>
oh then ommit sudo
<mkaito>
if you're on macos, it's likely nixpkgs.rustc
<nikivi>
I was always wary of grepping ~. Seems like it searches too much, RIP my CPU
<mkaito>
try ag/rg
logzet has joined #nixos
<srhb>
nikivi: grep is really fast. I occasionally grep -R through /
<srhb>
Because it's "Good Enough" :-P
<mkaito>
grep is damn fast, yeah. ag/rg just ignore some things :P
<johnw>
find ... -print0 | xargs -P4 grep is even faster
<johnw>
(well, probably only for systems with SSDs)
jperras has joined #nixos
<johnw>
mkaito: hmm
<johnw>
mkaito: does it work if you do it using an overlay?
camsbury has quit [Ping timeout: 248 seconds]
<mkaito>
that would be interesting to weave into this
<mkaito>
the situation is that I've got a bunch of things defined for a server, and I'm trying to deploy it to a local container using nixops for testing, so I want to disable ACME stuff.
<{^_^}>
→ 208abdba by @dtzWill: gllvm: 1.2.0 -> 1.2.1
<{^_^}>
→ 41ede7f4 by @dtzWill: wllvm: 1.2.0 -> 1.2.1
<{^_^}>
→ 6a8aa56a by @dtzWill: Merge pull request #40733 from dtzWill/update/gllvm-wllvm-1.2.1
kane_ has joined #nixos
<kane_>
Anyone have an IPhone working in gnome(file transfer, pictures, etc)? I enabled the usbmuxd service and I have libimobiledevice. I'm wondering if gvfs has the afc mount backend.
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
xy2_ has quit [Ping timeout: 264 seconds]
<{^_^}>
[nix] @grahamc opened pull request #2168 → manual: document why ~/.netrc doesn't work → https://git.io/vppJ6
<kane_>
I'll try building it with the patch and maybe commit it :)
<{^_^}>
[nixpkgs] @dotlambda opened pull request #40735 → nixos/tests/home-assistant: ignore "Timer got out of sync" error → https://git.io/vppUt
<nikivi>
What is a good CI product to use with nix?
<nikivi>
For personal GitHub projects mostly
chisui has joined #nixos
<srhb>
Anything you can self-host and control the store properly with.
<dmj`>
elvishjerricco: I ended up using pkgs.lib.overrideDerivation on myPackage.env inside of shell.nix, and adding DYNLIB=“${dynamicLibrary}”, and then cabal configure —extra-lib-dirs=$DYNLIB
<{^_^}>
[nixpkgs] @xeji pushed commit from @Synthetica9 to master « iasl: 20180313 -> 20180508 (#40613) »: https://git.io/vppUD
<elvishjerricco>
dmj`: yuck. Why not just do the pkgconfig stuff?
<elvishjerricco>
Sounds much easier.
<dmj`>
elvishjerricco: pkg-config isn’t present in my shell
<dmj`>
will the pkg-config route implicitly configure cabal-install with that path
<elvishjerricco>
dmj`: I think it's only not there if you have no pkgcongfig-depends in your cabal file / cabal2nix. It will do that implicitly yes (and it will work correctly in the nix-build)
<dmj`>
elvishjerricco: I have latest cabal2nix, and an extra-libraries section in my cabal file, when invoking cabal2nix it just adds my library to librarySystemDepends = [ myLib ];
<elvishjerricco>
dmj`: Yea, you're supposed to use `pkgconfig-depends` in the cabal file instead of `extra-libraries`
<dmj`>
WARNING: package.yaml: Ignoring unrecognized field $.library.pkgconfig-depends
<pxc>
the install script currently at nixos.org/nix/install seems to go right ahead with a single-user install. How do I use the new systemd-based multi-user installer on non-NixOS?
<elvishjerricco>
dmj`: Gah, yes that's true. This is exactly why cabal preprocessors are a dumb idea
<dmj`>
elvishjerricco: newer hpack still doesn’t like pkgconfig-depends
<dmj`>
elvishjerricco: but moving on, I added it the cabal file, and then regen’d with cabal2nix, now getting "setup: The pkg-config package ‘mylib' is required but it could not be found."
<elvishjerricco>
dmj`: Cool, so I'm guessing your lib just needs to gen some pkgconfig stuff. I'm pretty sure there's an easy automated way to do that
<dmj`>
elvishjerricco: and pkgconfig —list-all is empty
Sonarpulse has joined #nixos
<dmj`>
elvishjerricco: pkgconfig stuff?
<elvishjerricco>
dmj`: For example: cat $(nix-build "<nixpkgs>" -A zlib.dev)/lib/pkgconfig/zlib.pc
<elvishjerricco>
Basically, the .pc file specifies how to use this library so that other tools can rely on it. Then you just put it in $dev/lib/pkgconfig/name.pc, and Nix automatically makes it available to packages that depend on it
<dmj`>
elvishjerricco: so wait, can I just put pkgconfig-depends = [ zlib.dev ]; and nix will do the right thing
<dmj`>
as long as pkgconfig-depends: zlib exists in my cabal file
jD91mZM2 has quit [Quit: WeeChat 2.0]
<elvishjerricco>
dmj`: If you have `pkgconfig-depends: zlib` in your cabal file, cabal2nix will make sure the nix expression has the dependency listed automatically
<elvishjerricco>
So right now, it's doing that correctly
<elvishjerricco>
But you don't have a .pc file in your mylib output
<pxc>
jD91mZM2: huh. Do I need to create nixbld and its users first, and then run the installer? on macOS, the installer creates the users, and I thought that's what gchristensen's new installer for systemd-using Linux distros did, too
<dmj`>
elvishjerricco: I might have to create one manually I assume …
<elvishjerricco>
dmj`: Yea I dunno if there's a particularly automated way to do it or not
<dmj`>
elvishjerricco: do I need to make it a multiple output derivation (put the .pc files into dev)
<elvishjerricco>
dmj`: Probably not
<elvishjerricco>
That is convention, but I guess it depends on if the cabal2nix expression uses mylib or mylib.dev
<dmj`>
elvishjerricco: cabal2nix seems to be wanting to put just mylib, not mylib.dev
<elvishjerricco>
dmj`: Alright that's fine
<dmj`>
elvishjerricco: so ok, I’ll try to make a pkg-config, but I have another question now
<dmj`>
elvishjerricco: in haskell-mode, when I try to start cabal-repl, I get <command line>: can't load .so/.DLL for: liblmdb.dylib (dlopen(liblmdb.dylib, 5): image
<pxc>
nikivi: give it a try and see what happens. boomshroom has pointed you to the right starting point in the docs. Also review the docs on Go packaging: https://nixos.org/nixpkgs/manual/#sec-language-go
<eacameron>
where is nix-prefetch-url. Is it not in a package?
<srhb>
eacameron: It's nix (2)
<eacameron>
srhb: ah. nix-shell -p nix is a thing...
<srhb>
It is indeed. :)
griff_ has joined #nixos
<johnw>
shlevy: nix-buffer-after-load-hook seems to be working well for now
<johnw>
shlevy: I just group all my haskell-mode function into one function, and then add a function to haskell-mode-hook that calls nix-buffer, and then adds that setup function to nix-buffer-after-load-hook, so that it all happens in the right sequence
griff__ has quit [Ping timeout: 240 seconds]
<pxc>
eacameron: this is probably a clumsy way to do things, but you can figure out which package a command comes from using realpath, which'll find its location in the Nix store, i.e. `realpath $(which nix-prefetch-url)`
rauno has quit [Ping timeout: 264 seconds]
rauno has joined #nixos
<srhb>
And nix-locate will do it even if it's not installed: nix-locate bin/nix-prefetch-url
<srhb>
To make things really easy, nix-locate lives in nix-index so you can't find it without nix-locate.
ben has quit [Quit: leaving]
<pxc>
srhb: that's really handy! Thanks for the tip
<pxc>
hahaha I found it because on NixOS we still have the command-not-found handler at least
ben has joined #nixos
ThatDocsLady has quit [Ping timeout: 256 seconds]
troydm has quit [Ping timeout: 240 seconds]
ThatDocsLady has joined #nixos
orivej has quit [Ping timeout: 265 seconds]
troydm has joined #nixos
nico202 has joined #nixos
<{^_^}>
[nixpkgs] @Infinisil opened pull request #40737 → blockhash: init at 0.3 → https://git.io/vppmT
<{^_^}>
[nixpkgs] @jwiegley opened pull request #40738 → rabbitmq_server: Don't use getconf optimization on non-Linux systems → https://git.io/vppmr
MichaelRaskin has joined #nixos
arianvp2 has joined #nixos
<arianvp2>
err
<arianvp2>
I ran nix-store --gc
<arianvp2>
and it removed nix
<arianvp2>
:(
<clever>
arianvp2: what does ~/.nix-profile point to?
<pxc>
ok, I'm going back to bed, but I'll share this for the benefit of future archaeologists of the IRC logs:
<nikivi>
kane_ That's amazing. I am curious how do you test derivations you made?
<nikivi>
kane_ Are you going to send PR to nixpkgs?
<pxc>
the answer to my earlier question about how to use the new multi-user installer with Nix 2.0.2 is to pass `--daemon` as an argument to the install script. It gets passed on to the install script in the Nix release tarball, which knows what to do with it
grp has quit [Quit: box shutting down...]
<kane_>
nikivi: It's very easy to made an expression for gopkgs (this was completly automatic). I'll pr it after I get the meta atributes and actually use it. :)
broccoli has joined #nixos
<kane_>
nikivi: Save those files and run in the dir nix-build -E 'with import <nixpkgs> { }; callPackage ./default.nix {}'
<nikivi>
Just curious because I heard bad things about the language and its maintainability
<nikivi>
but maybe its a good language for this domain
<kane_>
Excellent language for this purpose.
<cransom>
nix was originally a lot of perl, so hydra followed. there was an effort to rewrite hydra in haskell but i haven't heard anything about progress lately.
civodul has joined #nixos
rauno has joined #nixos
<nikivi>
for some reason running: nix-env -iA nixpkgs.tldr
<nikivi>
error: attribute 'nixos' in selection path 'nixos.tldr' not found
<nikivi>
nope
<kane_>
no darwin the expression says " platforms = platforms.linux;"
<nikivi>
So I have to make macOS specific expression and PR it?
orivej has joined #nixos
jperras has quit [Ping timeout: 256 seconds]
<thoughtpolice>
No, just try changing the 'platforms' line in the tldr expression to say 'platforms = platforms.unix;' and try to use it. Then it will be available to build with nix-env
<thoughtpolice>
Note that it still might not work on macOS for <a number of reasons you might have to fix>. Most things don't need totally separate expressions, however.
<kane_>
^
jperras has joined #nixos
<nikivi>
thoughtpolice how can I run this changed expression?
<nikivi>
Assuming I installed default.nix and changed it accordingly
<LnL>
nikivi: darwin uses nixpkgs for the channel name so it would be nixpkgs.tldr instead
<nikivi>
LnL I tried it with nixkgs.tldr
<nikivi>
It returns nothing and package is not installed
<thoughtpolice>
If you have a copy of nixpkgs somewhere, say in /home/me/nixpkgs, you can do: nix-env -f /home/me/nixpkgs -iA tldr
<thoughtpolice>
And it will try to build and install it into your user profile
<LnL>
but no error and not installed seems pretty strange
<nikivi>
Is there descriptive flag maybe?
<LnL>
I'd expect the channel version to fail with the allowUnsupported error
<nikivi>
LnL I don't have any channels setup for some reason
<nikivi>
I think that maybe the problem, I did however install many other packages like rust, yarn already with 0 errors
<mjacob>
how can i pass something with spaces as a cmake define? "-DCMAKE_CXX_FLAGS=-std=c++14 -msse3 -g -mfpmath=sse -nostdlibinc -D_LIBCPP_HAS_MUSL_LIBC -I$IncludeOS_posix -I$libcxxabi_inc -I$libcxx_inc -I$musl_inc" passes 10 things to cmake instead of 1
<LnL>
by default the nixpkgs channel will be owned by root
<LnL>
not your local user
<mjacob>
(in cmakeFlags)
<mjacob>
adding two escaped \" doesn't seem to work either
<nikivi>
Same thing happens with: `nix-env -iA nixpkgs.imgur-screenshot`
<nikivi>
Just runs and returns nothing and no package instaled
<LnL>
mjacob: you can't use cmakeFlags but you can with a preConfigure hook
<mjacob>
LnL: that sound unnecessarily complicated, but i'll give it a try. thanks!
<kane_>
nikivi: Hey can you test antibody on your machine. I need to see if it build's in darwin. Here's my fork: git clone https://github.com/worldofpeace/nixpkgs -b antibody --depth 1
<{^_^}>
[nixpkgs] @dotlambda merged pull request #40735 → nixos/tests/home-assistant: ignore "Timer got out of sync" error → https://git.io/vppUt
<{^_^}>
[nixpkgs] @dotlambda pushed to master « nixos/tests/home-assistant: ignore "Timer got out of sync" error (#40735) »: https://git.io/vppWj
<nikivi>
I ran the command
<nikivi>
and my shell broke :|
<nikivi>
pressing tab prints eval):1: _cd: function definition file not found
<kane_>
?
<nikivi>
opened new shell, tab works again
<nikivi>
but I just ran your command and it clones it, what now?
<kane_>
cd into and and run: nix-build default.nix -A antibody
<kane_>
The imperative mindset will die with time :)
<johnw>
kane_: yet that's an imperative statement, sadly
<kane_>
lol
<johnw>
we could phrase it as: the imperative mindset has no value for time indices beyond an existential value
shabius has quit [Quit: Leaving]
<nikivi>
Is declarative paradigm straight up 'better' than imperative?
<johnw>
I don't think it's about declarative vs. imperative
<johnw>
it's about hidden vs. apparent semantics
<kane_>
I as well
<johnw>
well-typed imperative programs, where you can see the range of possible effects, are also easy to reason about
<johnw>
but some foo :: Int -> Int that can do anything in world, that's not so cool
<johnw>
IO is only one step up. In that case, we've just made a type that means "it can do anything in world"
<johnw>
MonadEffect, for some specific effect, is much better
<johnw>
in that realm, I have no issues at all with imperative programming (i.e., programming by making statements of effect in the context of other pure computations)
<kane_>
Some people just really want nix install :)
<krey>
is it possible to tell ahead of time whether a package will be built or grabbed from the binary cache?
h30 has quit [Quit: WeeChat 2.0]
<johnw>
kane_: oh wow, sorry, I thought I was in #haskell
<kane_>
lots of nix people use haskell too :)
<johnw>
in Nix we have a few implicit effects; I'm enumerating them all in hnix using a MonadEffects monad, so that I can know the exact extent of them all
<{^_^}>
[nixpkgs] @xeji opened pull request #40743 → nixos/tests/nexus: fix for i686 → https://git.io/vpp4E
<infinisil>
The default is to use `~/.config/nixpkgs/config.nix` and `~/.config/nixpkgs/overlays` (and some variations of those)
<jack[m]>
They have defaults, so you don't have to pass them.
<mjacob>
what i'd like to do is to build some package from nixpkgs (in the example libcxx, because others depend on it) but with a custom patches musl and the libc
<boomshroom>
mjacob: It's also extremely useful for cross compiling.
jbboehr has quit [Ping timeout: 265 seconds]
<mjacob>
s/patches/patched/
<infinisil>
mjacob: Then you want an overlay for it, overriding musl and libc with your changes
<boomshroom>
mjacob: In that case, using crossSystem to build with musl and overlays to patch musl would be the way to go.