<{^_^}>
[nixpkgs] @worldofpeace merged pull request #77570 → nixos/tests/ec2: return to passing state → https://git.io/Jvfyl
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JvmJY
v88m has joined #nixos
mbrgm_ has joined #nixos
mbrgm has quit [Ping timeout: 246 seconds]
mbrgm_ is now known as mbrgm
fendor has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #78555 → nixosTests.limesurvey: port to python and drop badly utf encoded characters → https://git.io/Jvq57
<{^_^}>
[nixpkgs] @worldofpeace pushed 4 commits to master: https://git.io/JvmJG
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #78578 → qt5: remove last vestiges of Qt 5.11 → https://git.io/Jvmed
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JvmJW
b42 has quit [Quit: WeeChat 2.2]
o1lo01ol1o has quit [Remote host closed the connection]
NoctisLabs has joined #nixos
b42 has joined #nixos
dingenskirchen has quit [Quit: dingenskirchen]
c382feb9 has quit [Read error: Connection reset by peer]
dingenskirchen has joined #nixos
marcusr has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @alyssais opened pull request #78585 → nixos/bitlbee: don't assign list to users.groups → https://git.io/JvmUf
<NemesisD>
this might be the stupidest question i've asked yet but is there any way to prevent `nix-env -iA` from being run on a system? i'm trying to set things up so dependencies are always declared declaratively and just one nix-env -iA screws that up
<gchristensen>
you could not install Nix on the system
<{^_^}>
[nixpkgs] @alyssais opened pull request #78587 → perlPackages.Plack: run some more tests → https://git.io/JvmUE
marcusr has joined #nixos
sigmundv has quit [Ping timeout: 240 seconds]
Rusty1 has quit [Remote host closed the connection]
<NemesisD>
how do you all deal with source tarballs that don't have a root directory? i've got one and its complaining about unpacker producing multiple directories
<qyliss>
I usually just write the unpackPhase directly
<NemesisD>
qyliss: what would that look like? just like `tar xf $src`? anything else?
<qyliss>
Make a directory to put it in, and cd to the directory
<qyliss>
I would do mkdir source; cd source; tar xf $src
Rusty1 has joined #nixos
turona has quit [Ping timeout: 272 seconds]
Soo_Slow has joined #nixos
turona has joined #nixos
<NemesisD>
qyliss: thanks!
<NemesisD>
i must be doing something else wrong. i'm trying to install this derivation i wrote in my system packages: https://github.com/MichaelXavaier/filebot-nix/blob/master/default.nix but when it builds i get `error: creating a garbage collector root (/nix/store/4m4yn1vmfi1v4lndqvd7cvl938pbgj7b-filebot-4.8.5/result) in the Nix store is forbidden`
<infinisil>
NemesisD: You might be able to just use sourceRoot = "source/subdir"
<NemesisD>
i suspect i might be screwing up with that `{./filebot.sh}`, but i'm not really sure how else i'm supposed to sneak a file into the unpacked source
bhipple_ has joined #nixos
<infinisil>
I don't think anything in that file could cause that
<NemesisD>
the last line in the build output before the error is `building '/nix/store/9m2dskgih4wxd8q03zk93n8r4f56y79r-nixos-system-Apollo-Nuc-20.03pre-git.drv'...`. i'm not sure why its trying to write a result?
<infinisil>
NemesisD: Just tried this myself, worked without problems
marcusr has quit [Remote host closed the connection]
<NemesisD>
hmm, so i'm running `nixos-rebuild test`. i note that the last thing its building seems to be my system derivation. i wonder if this is unrelated
rajivr___ has joined #nixos
<infinisil>
Nah that's normal
lambda-11235 has joined #nixos
<NemesisD>
ah i forgot that i had copied an early version of this package onto the box and tried to install it. i commented out all the filebot stuff from my config and it was still failing. i removed the result and collected garbage and now `nixos-rebuild test` worked!
<NemesisD>
btw what should i do when i have a derivation like this that other folks might want. do i try to get it added to NUR or perhaps nixpkgs itself? i have no idea how i'd submit it
<infinisil>
If it's a somewhat popular package you can make a PR for nixpkgs, otherwise NUR
<NemesisD>
there are other packages in nixpkgs that people use with it. however it is nonfree software that requires a license. hmm
<gchristensen>
that is probably better to put in to NUR
<NemesisD>
got it. ok i'll look into that
tomberek has joined #nixos
<xavierzwirtz[m]>
I have a flakey test thats using nixosTesting.makeTest, figuring out whats going on with it is really painful
<xavierzwirtz[m]>
anyone have pointers for debugging nixos tests?
<{^_^}>
[nix] @Calvin-L opened pull request #3332 → Document that autoconf is a dependency → https://git.io/Jvmkq
aveltras has quit [Quit: Connection closed for inactivity]
KeiraT has joined #nixos
jakubgs has joined #nixos
alex`` has quit [Ping timeout: 265 seconds]
morgib has joined #nixos
bhipple_ has quit [Ping timeout: 260 seconds]
jakubgs has quit [Ping timeout: 265 seconds]
bhipple has quit [Ping timeout: 272 seconds]
Henson has joined #nixos
<contrun[m]>
How can I override systemd package itself in nixos? I want to change the source code of systemd and run it on my current system
<qyliss>
Use a Nixpkgs overlay
werner291 has quit [Quit: werner291]
<contrun[m]>
qyliss: Which configuration option should I change?
dingenskirchen has quit [Remote host closed the connection]
<contrun[m]>
I mean which option in configuration.nix
dingenskirchen has joined #nixos
<qyliss>
Have you read about Nixpkgs overlays?
matthuszagh has joined #nixos
<contrun[m]>
Yeah. But I didn't explicitly set which systemd package to use in my system. So I don't know how to override it. Did you mean I could just override it with `systemd = super.systemd.override`? Does this works?
<matthuszagh>
hi. what happens when a module defines the same attribute as an attribute in my configuration.nix?
<matthuszagh>
specifically, the module sets environment.systemPackages, which is also set in configuration.nix
<infinisil>
contrun[m]: You can use systemd.package
<infinisil>
It's a NixOS option
<infinisil>
matthuszagh: They get merged together
<qyliss>
Oh really?
<qyliss>
but we have pkgs.systemd everywhere
<matthuszagh>
great thanks infinisil
<infinisil>
qyliss: Yeah not everybody knows about it..
<contrun[m]>
infinisil: Thanks. That's what I want.
<infinisil>
qyliss: It might actually be possible to have something like an overlay (but not quite) to set pkgs.systemd to systemd.package
<qyliss>
that sounds extremely magical
<qyliss>
i'm not sure that would be a good idea
<matthuszagh>
separately, i have an overlay that's not being defined. any common reasons why that might be? i've set nixpkgs-overlays in nix_path and the package is set in an imported module
<gchristensen>
sounds like an extreme amount of rebuilding
<matthuszagh>
overlay that's not being applied**
h0m1 has quit [Ping timeout: 246 seconds]
<infinisil>
gchristensen: The idea would be to not have that by not using an overlay, but something like `pkgsWithAllOverlays // { systemd = config.systemd.package; }`
<gchristensen>
ow
orivej has quit [Ping timeout: 268 seconds]
h0m1 has joined #nixos
<matthuszagh>
do i need to do anything extra to make the module aware of the overlay, or should be recognized?\
<infinisil>
matthuszagh: You need to use the `nixpkgs.overlays` option for overlays in NixOS
<infinisil>
Well, for overlays that should be applied to the `pkgs` you have in NixOS modules at least
v88m has joined #nixos
<matthuszagh>
infinisil: oh ok. what is nixpkgs-overlays for then?
tertl3 has joined #nixos
<infinisil>
Overlays for commands like nix-shell, nix-env, etc.
<matthuszagh>
read this in the wiki
<matthuszagh>
If you want your overlays to be accessible by nix tools and also in the system-wide configuration, add nixpkgs-overlays
<infinisil>
Hm though yeah nixpkgs-overlays might also work for nixos actually, not sure now
<matthuszagh>
"system-wide configuration" is that wrong, or just doesn't mean what i think it does
<ajs124>
you can also evaluate your config with a nixpkgs imported with an { overlays = []; } option
<matthuszagh>
hm ok
<infinisil>
Ah no, nixpkgs-overlays doesn't apply to NixOS
<infinisil>
By default
<infinisil>
But I think the wiki has some code to make it work
delli3 has joined #nixos
<matthuszagh>
infinisil: thanks for the help
delli3 has quit [Max SendQ exceeded]
v88m has quit [Ping timeout: 260 seconds]
delli3 has joined #nixos
delli3 has quit [Max SendQ exceeded]
bhipple has joined #nixos
delli3 has joined #nixos
iyzsong has joined #nixos
delli3 has quit [Max SendQ exceeded]
delli3 has joined #nixos
delli3 has quit [Max SendQ exceeded]
<Henson>
I've occasionally have problems with firefox after I wake my computer from sleep. I'm running KDE with network-manager and when it starts up, it says it can't connect to the internet, when every other program on my computer can. Sometimes restarting network-manager helps, but killing and restarting firefox always helps. Has anybody else noticed this problem?
bhipple_ has joined #nixos
<arcnmx>
Hm, I used to have that problem constantly but haven't noticed it in ages.
mDuff has joined #nixos
<Henson>
arcnmx: just found an article on the firefox knowledge base. It might not be NixOS related. My firefox connection settings had "use system proxy settings", so I changed it to "no proxy". I'll see if that helps.
euandreh has quit [Ping timeout: 272 seconds]
<arcnmx>
I think it stopped around the time I switched from using connman+wpa_supplicant to connman+iwd but not sure if anything else in my system config may have changed around then too...
<arcnmx>
could've been an update or a million other things really ._.
<{^_^}>
[nixpkgs] @peti pushed to master « haskell-pandoc: disable test suite when building with ghc-8.8.x »: https://git.io/JvmWZ
vesper11 has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @peti pushed 260 commits to haskell-updates: https://git.io/JvmWn
mananamenos has joined #nixos
vesper11 has joined #nixos
jakubgs has joined #nixos
<mananamenos>
hi, when installing nixos on vultr or digital ocean, i was only able to choose dos as 'label type'. Should i and is it possible to partition with gpt?
<{^_^}>
[nixpkgs] @mmahut opened pull request #78595 → litecoin: move to qt5 and add zeromq supoort → https://git.io/JvmWp
kenjis1 has quit [Ping timeout: 245 seconds]
Chiliparrot has joined #nixos
<Rovanion>
I've got a piece of software lying around that needs Ruby 1.9.2 or some other ancient version of Ruby. Could I create a shell.nix file to create an environment with that ancient Ruby version in it or do I have to find some other approach since nixpkg only holds Ruby 2.4.9 as the oldest version?
<rsoeldner>
If I want to use `postgresql` inside a Nix shell (running nixos), I get the following error `could not create lock file "/run/postgresql/.s.PGSQL.5432.lock": No such file or directory`. Do I need to add my local user to the postgresql group, or enable the service globally ?
<Rovanion>
dminuoso: So the answer is no, find some other approach?
<wpcarro>
Nix beginner question here: I'm looking to run some file.nix from the command line. What is the best way to do this?
<clever>
rsoeldner: you need to enable the postgresql service globally
<dminuoso>
Rovanion: That's my recommendation, yes.
<rsoeldner>
clever, thanks
<dminuoso>
Rovanion: Overall I'd prefer JRuby for several reasons.
rsoeldner has quit [Remote host closed the connection]
<Rovanion>
dminuoso: Sorry for bothering you further. But looking past your preferences. Would it at all be possible to solve this issue by having Nix provide Ruby 1.9.2? The reason why I'm asking again is because I don't understand the problems involved with trying to install an older version of Ruby that doesn't currently have its own name in nixpkg; and I want to understand that. I want to understand why this approach
<Rovanion>
is impractical.
<dminuoso>
Rovanion: It's old, error prone, without security fixes.
rsoeldner has joined #nixos
chagra has quit [Ping timeout: 268 seconds]
<Rovanion>
dminuoso: It's only running on my machine to create a static site. It is never exposed to the world in any direct way. It is only a hypothetical either way.
<dminuoso>
Rovanion: As far as I can see, JRuby should work out of the box.
chloekek has joined #nixos
<dminuoso>
It's drop-in solution with no downsides. :)
chagra has joined #nixos
smatting has joined #nixos
<Rovanion>
I'm sure it is. But that still doesn't answer my actual question. I made up the details in the question to make it easier to relate to. Perhaps that was a mistake.
chagra has quit [Ping timeout: 265 seconds]
thc202 has joined #nixos
<rsoeldner>
clever, isn't it possible to have an adhoc env with postgresql using `nix-shell -p postgresql`?
pmiddend has joined #nixos
<pmiddend>
I'd like to build a LaTeX file using Nix using "./." as the source _plus_ an lco file that's somewhere else in my file system hierarchy.
<pmiddend>
Can I somehow easily copy this lco file to the build directory before calling Make?
<{^_^}>
[nixpkgs] @cw789 opened pull request #78599 → elixir_1_10: init at 1.10.0 → https://git.io/Jvm83
alex`` has joined #nixos
ng0 has joined #nixos
ng0 has joined #nixos
ng0 has quit [Changing host]
vx_id has joined #nixos
sigmundv has joined #nixos
jgeerds has joined #nixos
<rsoeldner>
clever, do you have any idea why pg_ctl start -D ... tries to write a lockfile under /var/postgresql/.. ?
astk has joined #nixos
<astk>
is there a way to use nix to compile using cabal3 and ghc to an exe which can then be placed on an AWS instance?
<clever>
rsoeldner: there is an argument to change the lock file dir, i cant remember which one, check the man page
<astk>
i need to choose the version of glibc as a local linux install on virtualbox using debian uses GLIBC_2.27, while the AWS only has GLIBC_2.26
<clever>
astk: if you properly copy the closure (using nix-copy-closure), then the glibc version wont matter
<clever>
astk: nix will copy the required one for you
<astk>
im not sure i understand, it somehow gets the required specs from the AWS and sets up the corresponding build environment?
<clever>
astk: if you build a binary using `nix-build`, then nix will keep track of everything it depends on, and you can use `nix-copy-closure` to deploy that to another machine
<astk>
or is it something to do with running nix also on the remote server, to bypass the OS there
<astk>
ah, that makes sense, so the remote nix will just gather up all the required dependencies
<clever>
astk: yeah, you would have nix installed on both ends, and nix just uses its own version of glibc
<clever>
yep
<astk>
awesome, that should avoid any conflicts of trying to replace the glibc on the aws... it seemed like the similar issues on the web were advocating not trying to alter the AWS but instead simply compiling using the previous glibc
<astk>
it seems like this way would allow the newer glibc to be put on the aws without upseting anything
<clever>
astk: yeah, avoiding conflicts like that is half the reason to use nix
civodul has joined #nixos
<clever>
astk: you can also use nixops to deploy nixos to aws
<astk>
so, i dont know where to begin with this, i have a vm running debien that i had compiled on to then scp the exe onto the aws
<astk>
from what i understand nix would do this mirroring also?
<astk>
like, the actual transfering of the exe
Makaveli7 has joined #nixos
<clever>
astk: after you compile the binary with `nix-build`, just do `nix-copy-closure ./result --to root@machien`
<clever>
that will copy the entire thing over
<astk>
ok, this sounds doable, ill try and follow those instructions and see if everything works smoothly
<astk>
thanks
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<astk>
oh, one more thing, the source code is quite complicated, as it uses backpack, so is split among several .cabal files, appearing in a cabal.project file, so i need to use cabal to build it, does nix do that with nix-build?
<astk>
i had written a script to delve into the dist-newstyle directory produced on running cabal v2-build
<astk>
to gather up the various exes produced
<astk>
i guess that stage would have to be different with nix
cosimone has joined #nixos
vx_id has quit [Remote host closed the connection]
<astk>
is there a bin dir or something it uses to do this?
<clever>
astk: you would either need to use cabal2nix to generate a .nix file for each component, or try using haskell.nix
<astk>
do i have to run the exes on the remote machine using something like cabal v2-run ?
<clever>
astk: nope
<astk>
then how?
<astk>
where do the exes end up?
<clever>
astk: when nix-build is done, youll have a regular ELF binary in a bin dir, just like any c/c++ project
<astk>
but there were several exes produced because it uses a cabal.project file
<astk>
and when it is built using cabal, it buries these so obscurely that cabal v2-run is the easiest way to call them
<clever>
astk: each .cabal file will have its own bin dir, you can then either install of them with nix-env, or merge them with buildEnv
<astk>
do these all end up on the $PATH?
<clever>
astk: if you install them with nix-env, yes
<astk>
great!
<astk>
thanks
<astk>
(not really sure merging them is a good idea, they do totally different things)
<clever>
astk: nix-env would merge them together anyways
logzet has joined #nixos
<clever>
astk: installing things with nix-env merges them into ~/.nix-profile/
<astk>
oh, thats confusing, what do you mean by merge?
bvdw has quit [Read error: Connection reset by peer]
<magnetophon>
I have a compiler (faust) that works inside nix-shell, but mostly won't find it's dependencies outside of it. Sometimes it does though: there are multiple scripts coming from upstream to compile with various gui toolkits etc, and some work outside of the shell. How doe I troubleshoot this?
<alexarice[m]>
mkg20001: You get that error because there's a package in `all-packages` which isn't really a package and shouldn't be evaluated and you just evaluated all the packages in nixpkgs
<alexarice[m]>
mkg20001: hard to know how to do it properly when I don't know what you are trying to do
<mkg20001>
<alexarice[m] "mkg20001: hard to know how to do"> filter packages by their meta values
<alexarice[m]>
I'm not actually sure how to do that, sorry
<dminuoso>
Interesting, there's no corosync/pacemaker available in nixos options. Is there some canonical alternative?
<hyper_ch2>
".On December 31, 2020, Adobe Systems will officially stop updating and distributing Adobe Flash. "
<hyper_ch2>
"While the software can still be enabled through Chrome settings, Google has confirmed that effective the date of end of life for Flash, Google will completely block Flash from being able to run under the Chrome browser."
<eoli3n_>
i don't care about that, i'm asking on how to run flash things in firefox :)
<exarkun>
what/where is the nix function to make a new file from a template and some nix variables? (not, eg, substituteAll which is for use in shell scripts)
<boogiewoogie[m]>
hey, as I assume some of you know, the version of the riot-desktop expression lags behind the riot-web one. I'd like to make my own which simply always gets its version attribute from the riot-web expression (could it be useful to do this for nixos' riot-desktop expression?). what would be an elegant way to access an attribute from another expression?
<cYmen>
So I am trying nixos with i3 in virtualbox but it won't resize with the window. I have added virtualisation.virtualbox.guest.enable = true; to the bottom of my configuration.nix and run nixos-rebuild switch and rebootet. What else do I need?
wpcarro has joined #nixos
<dansho>
stdenv.lib.makeLibraryPath =)
drakonis has joined #nixos
<tilpner>
boogiewoogie[m]: Take the other expression in the functions attrset argument, then use its .version field
<tilpner>
boogiewoogie[m]: Or alternatively take the version string as an argument and rely on your entry in all-packages.nix to provide it from the other attribute
<tilpner>
boogiewoogie[m]: Customisation in all-packages is ugly, but so is passing large dependencies just to get their version number, so I don't feel strongly either way here
wpcarro has quit [Ping timeout: 272 seconds]
<boogiewoogie[m]>
tilpner: thanks! yeah, I see. in this case the decision is easy as riot-web is already an argument :)
<{^_^}>
[nixpkgs] @tobim opened pull request #78614 → arrow-cpp: fix for darwin → https://git.io/Jvmwr
veske has quit [Quit: This computer has gone to sleep]
<{^_^}>
[nix] @yorickvP opened pull request #3333 → Use libarchive for all decompression (except brotli) → https://git.io/JvmrG
<gchristensen>
lucky # 3333
dingenskirchen1 is now known as dingenskirchen
OmnipotentEntity has joined #nixos
Palpares has quit [Remote host closed the connection]
Palpares has joined #nixos
<evanjs>
In testing #78420, I opened merge conflict view with GitKraken and was presented with zalgo text... anybody have an idea as to what might be happening?
<{^_^}>
[nixpkgs] @primeos pushed to master « tdesktop: Remove NIX_CFLAGS_COMPILE and CPPFLAGS »: https://git.io/Jvmry
<noonien>
--strict seems to fail somewhere in nixpkgs, can i just force evaluation of the resulted list?
rhitakorrr has joined #nixos
halfbit has joined #nixos
<tilpner>
noonien: It's hard to help with a failure "somewhere in nixpkgs"
<noonien>
oh, my bad
<noonien>
i had the wrong asumption that --strict changes the way lists work, and that they are always evaluated
<noonien>
but aparently it works on just the result of the expression i give it, and i had a bug before that
<noonien>
--strict works just fine now
Chiliparrot has quit [Ping timeout: 245 seconds]
nohTo has quit [Quit: Leaving]
<evanjs>
Is anybody else experiencing font rendering issues with (GTK?) apps in 20.03?
<evanjs>
Unsure if GTK, but the only app I've seen it on so far is GitKraken
sigmundv has quit [Read error: Connection reset by peer]
turion has joined #nixos
sigmundv has joined #nixos
Chiliparrot has joined #nixos
<infinisil>
noonien: You can use .0 to access the first element
<infinisil>
E.g. `nix-instantiate --eval -A foo.0` where foo would give a list
dm9 has joined #nixos
<Synthetica>
infinisil: huh, TIL
<Synthetica>
infinisil: Does that also work in normal nix code, or only in -A
<evanjs>
okay... so the font in the app doesn't render properly... but copying it out seems to result with the expected/valid text. wot
<evanjs>
okay yep. I am dumb
<turion>
I'm trying to work with Rust. When I try to compile the dependency crate servo-fontconfig-sys, it seems like the configure script needs executables in /usr/bin that it doesn't have:
<turion>
configure: error: Package requirements (freetype2) were not met:
<turion>
/home/turion/.cargo/registry/src/github.com-1ecc6299db9ec823/servo-fontconfig-sys-4.0.9/configure: line 7528: /usr/bin/file: No such file or directory
<turion>
No package 'freetype2' found
<evanjs>
Previously, I saw a font in the editor config that looked funny, switched to that and forgot about it... I switched back to a normal font and I'm fine now 🙃
<evanjs>
turion: are you using a shell.nix and have you specified freetype2 as a dependency there?
<infinisil>
Synthetica: Only on the CLI with -A
<evanjs>
rust apps will often times depend on system dependencies, which can either be in your system or specified in e.g. a shell.nix which can be easily utilized with direnv or lorri
<evanjs>
turion: in this case, adding freetype2 to your buildinputs _should_ be enough AFAIK
alex`` has quit [Ping timeout: 268 seconds]
<evanjs>
assuming you do have an environment for the project set up
mac10688 has joined #nixos
<evanjs>
turion: here's an example of what that might look like
<boogiewoogie[m]>
can I change attributes (i.e. the version) of expressions (i.e. `riot-desktop`) with overlays? still looking for more ways to sync the version field of `riot-desktop` to `riot-web`s, for educational purposes. :p
mananamenos has quit [Ping timeout: 260 seconds]
emacsomancer has quit [Quit: WeeChat 2.6]
<evanjs>
turion: so if you replace "pkgconfig openssl" with "pkgconfig openssl freetype2" that shell.nix should work
emacsomancer has joined #nixos
alex`` has joined #nixos
gentis has left #nixos [#nixos]
<rhitakorrr>
I'm trying to cross-compile some Haskell code to my Pi via `crossSystem = pkgs.lib.systems.examples.aarch64-multiplatform`, but it's failing to build due to glibc warnings being raised to errors
<Shoubit>
turion, `nix-env` doesn't make a library visible to any other package. It (mostly?) just makes binaries available in PATH. You need a nix-shell or similar if you want libraries to be in the environment.
<evanjs>
And that ^
emacsomancer has quit [Quit: WeeChat 2.6]
emacsomancer has joined #nixos
mananamenos has joined #nixos
shibboleth has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
<evanjs>
infinisil++ wow. note to self, don't abbreviate :P
<{^_^}>
infinisil's karma got increased to 199
<infinisil>
You could also define ,libs btw :)
<evanjs>
I cooooooould buuut :P
<infinisil>
,help
<{^_^}>
Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<infinisil>
I guess it's a bit unorthodox to have two definitions of the same thing which could get out of sync
<disasm>
is there a good way to get all the recursive build dependencies needed for a derivation added to contents of a dockerTools.buildImage derivation?
<boogiewoogie[m]>
infinisil: thanks!
veske has joined #nixos
gagbo has quit [Remote host closed the connection]
dsx has joined #nixos
<boogiewoogie[m]>
i'm using this snippet https://hastebin.com/fekibuduni.m in my configuration.nix now. then, loading <nixpkgs> in a nix repl and evaluating `riot-desktop.version` and `riot-web.version` still gives different values. how come?
sondr3 has joined #nixos
<infinisil>
disasm: Build dependencies depend on what you already have built, e.g. if foo needs bar as a build dependency, but foo is already built, nix won't need bar at all, and this recursively. So e.g. to make sure you can build `hello` you'd need to include all the bootstrap dependencies
<disasm>
infinisil: correct, is there a function for identifying all those dependencies from a derivation?
<infinisil>
disasm: For that you can use `nix-store -qR <derivation>`
<disasm>
infinisil: I meant from nix code :)
<boogiewoogie[m]>
okay, pulling nix-desktop's version from `pkgs.riot-web` in the overlay instead of unstable works.. hrm
<infinisil>
disasm: AH hm, not sure if that's possible
<disasm>
infinisil: ir would nix-store need ran in IFD to do that?
<kalbasit>
`error: value is a string while a set was expected`
<kalbasit>
I'm not sure why /shrug
smatting has joined #nixos
veske has quit [Quit: This computer has gone to sleep]
wildtrees has joined #nixos
ixxie has quit [Ping timeout: 268 seconds]
smatting has quit [Ping timeout: 265 seconds]
ixxie has joined #nixos
<arcnmx>
kalbasit: line 23 missing mkOption?
<kalbasit>
arcnmx: 🤦♂️
<kalbasit>
here's 45 minutes I'll never get back
<kalbasit>
thanks!
anirrudh has quit [Quit: Leaving.]
immae has quit [Quit: WeeChat 2.4]
bdesham has joined #nixos
endformationage has joined #nixos
<gustavderdrache>
i'm building a docker image with PHP, and the openssl extension is giving me "SSL routines:tls_process_server_certificate:certificate verify failed"
<gustavderdrache>
i've tried adding cacert to the image but it doesn't seem to be working - is there something i'm missing to get openssl to pick up on the cacert bundle?
<gustavderdrache>
update: it turns out that openssl is looking for /etc/ssl/certs/ca-certificates.crt instead of /etc/ssl/certs/ca-bundle.crt, which is what i get if i add pkgs.cacert to my image
<gustavderdrache>
not sure if that's something to address or not
<elvishjerricco>
drozdziak1: In what context? In nix derivations you can usually just include it in the build inputs and the package your building can probably use it properly out of the box
magnetophon has quit [Remote host closed the connection]
<drozdziak1>
elvishjerricco: I'm trying to develop a Rust project which depends on OpenSSL. Right now I'm jerry-rigging everything with nix-env, and pkg-config can't find OpenSSL for some reason
<Yaniel>
nix-shell is the way to go
<notgne2>
drozdziak1: openssl and pkgconfig was enough to satisfy every rust build I've been done so far
<elvishjerricco>
infinisil: What's that command time get the boy to tell users about using nix-shell instead of installing libs?
<anns>
Hello, I'm fairly new to NixOS and am not sure what the proper nix-y way is of installing development libraries. I am trying to compile a basic program that uses the freeglut library. I have sucessfully installed freeglut.dev, but g++ is unable to find the headers. In addition, I do not know whether or not I need the normal `freeglut' package in
<anns>
addition to the dev package. Does anyone know how to get the `GL/freeglut.h' header in g++'s search path?
<notgne2>
anns: you shouldn't ever really "install" libraries, you can use nix-shell to get the library in a shell or for a single command, or have it as part of a Nix derivation
<anns>
How do I do that for the freeglut library? I'm compiling a basic one-file program
<notgne2>
`nix-shell -p freeglut` probably
<anns>
ok
<notgne2>
or `nix-shell -p freeglut --run "command"` if you dont want a shell
<Yaniel>
that was asked literally 15 minutes ago :P
<anns>
I tried to research it myself, but didn't find anything anywhere :P
<notgne2>
anns: it's a little harder for me to sum up how to make Nix derivations, but that's something worth looking into
<anns>
Fortunately, I don't have to worry about packaging the program into a nix package
anns has quit [Remote host closed the connection]
<notgne2>
if you ever plan or compiling this some other time or on some other machine, it will probably make things easier, especially as the amount of configuration and dependencies goes up
<elvishjerricco>
anns: Setting up a dev environment for a package and packaging the program for nix are very nearly the same problem.
kiwi_46 has joined #nixos
<elvishjerricco>
On NixOS that is
kiwi_46 is now known as anns
rheeseyb has joined #nixos
<anns>
Sorry, I temporarily lost my connection.
<Yaniel>
paraphrasing what notgne2 said while you were gone: setting up a shell.nix is a very good idea in case you want to ever build the thing on another machine
noudle has quit []
<Yaniel>
and from there it's a minimal step to a full-blown nix package
<anns>
ok
<Yaniel>
as a bonus if you ever need to package it for some other distro you have a ready list of dependencies :P
morgib has quit [Quit: Connection closed for inactivity]
yhager has joined #nixos
aw has joined #nixos
sigtrm has quit [Read error: Connection reset by peer]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
xantoz has quit [Ping timeout: 268 seconds]
umachan has quit [Ping timeout: 268 seconds]
<yhager>
Hi! I'm very new to nix. I'm trying to use `mongoc` package, but it's very old (1.8.0). I've tried updating to `1.16.0`, and now I'm getting at the end of the build: "RPATH of binary /nix/store/fh5jfn14vgalngl304h0zp25yw5174ir-mongoc-1.16.0/bin/mongoc-stat contains a forbidden reference to /build/
<yhager>
builder for '/nix/store/2c7a66xncsvr10hm0ddap09ljwd9480i-mongoc-1.16.0.drv' failed with exit code 1". Any idea how to approach this?
<noonien>
how can one pass dependencies of a script created with `writeScript`?
spacekookie has quit [Ping timeout: 268 seconds]
juhoh has quit [Ping timeout: 268 seconds]
anirrudh has joined #nixos
sigtrm has joined #nixos
juhoh has joined #nixos
<noonien>
i want to be able to use other packages in my script, is there a way of doing it except using ${pkg}/bin/cmd?
umachan has joined #nixos
xantoz has joined #nixos
<adisbladis>
noonien: What's wrong with ${pkg}/bin/cmd?
<noonien>
it's too verbose
kleisli has joined #nixos
azazel has quit [Ping timeout: 240 seconds]
wavirc22 has quit [Ping timeout: 268 seconds]
wavirc22 has joined #nixos
<adisbladis>
noonien: You could always stick something like `export PATH=${lib.makeBinPath [ pkgs.somePkg ]}:$PATH` in your script
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @danbst to master « nixos/doc: add a section mentioning GitHub team for nixos release managers (#78625) »: https://git.io/JvmDR
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #78625 → nixos/doc: add a section mentioning GitHub team for nixos release managers → https://git.io/Jvm1E
<gchristensen>
worldofpeace++
<{^_^}>
worldofpeace's karma got increased to 60
<noonien>
ok, didn't know about makeBinPAth, thanks!
<disasm>
noonien: I use makeBinPath multiple times a day every day :) very useful!
<anirrudh>
Hi, is there anyway to replicate `buildFHSUser` on darwin platforms?
<worldofpeace>
🙂 gchristensen
CindyKimber has joined #nixos
NoctisLa1 has joined #nixos
NoctisLabs has quit [Ping timeout: 240 seconds]
CindyKimber has quit [Client Quit]
mexisme has quit [Ping timeout: 265 seconds]
virus_dave has joined #nixos
<virus_dave>
hello all, I’m having trouble understanding how to follow the manual section on “Qt” for local development and execution of a python program which uses PyQt
<virus_dave>
i have a rather empty nix derivation, and i use a command like “nix-shell -A my-env ./ “ to get into a nix shell that has python3 and pyqt5 installed. But when i attempt to run the python program, i get qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in ""
<virus_dave>
a bunch of googling led me to the Qt section of the manual, but i can’t figure out how to apply what’s written there to my situation; it looks like it’s trying to explain how one wraps an existing derivation to make the resultant executable be correctly patched
<{^_^}>
[nixpkgs] @primeos pushed to master « tdesktop: Remove the last custom patch from Arch Linux »: https://git.io/JvmDQ
<fresheyeball>
A UI should have a palette, usual a company branding determined set of colors
<simpson>
fresheyeball: Sure, I guessed something like that. Nix *does* have the types that would be needed for the numerical work of color blending, but the string-parsing bits are tough.
<fresheyeball>
If you want to have a single source of truth for colors, you need to do some kind of code generation
<fresheyeball>
nix is perfect for this use-case
<fresheyeball>
I have Colors.elm, Colors.sass, Colors.ts
<fresheyeball>
each of which reflects the colors defined in colors.nix
<fresheyeball>
I do this for a few things
<fresheyeball>
like static service discoveryish on the frontend
<fresheyeball>
where fqdn's get passed to build targets
<simpson>
That's an interesting way to build SDKs.
<noonien>
tbh, that's probably something you should do outside of nix
<fresheyeball>
it also guarntees these files are not edited by a human, and are not out of sync
<fresheyeball>
noonien: why?
<fresheyeball>
It's statically known
<noonien>
you can create a derivation from your color pallete, and import that into your other applications
<fresheyeball>
right...
<fresheyeball>
I have Colors.elm, Colors.sass, Colors.ts
<fresheyeball>
each is a derivation, that get's imported into that part of the application
<noonien>
is that not good enough?
<simpson>
noonien: I mean, which language would you pick instead? I guess something like Dhall might have better string parsing.
<fresheyeball>
noonien: it's great
<fresheyeball>
the problem I have is this
<noonien>
well, it would depend on what i would be building
<fresheyeball>
I need colors in more formats
Czen has joined #nixos
<fresheyeball>
and so I would want to have a nix function that does color convertions
<gchristensen>
uhoh
<fresheyeball>
so I am thinking I might just take the time to convert an existing lib to nix
immae has joined #nixos
<gchristensen>
Nix is a DSL to describe how to build software :P
immae has quit [Client Quit]
<fresheyeball>
yes
<noonien>
perhaps there are other oppinions, but i think some nix packagers are over-zealous when it comes to replacing everything, especially configuration files with nix.
<gchristensen>
Nix isn't really a lanugage for color conversion
<fresheyeball>
why not?
immae has joined #nixos
<fresheyeball>
I am getting great utility out of my current stradegy
<gchristensen>
oh dear
<fresheyeball>
gchristensen: what is the problem you see?
<Yaniel>
something something hammer & nails
<fresheyeball>
omg
<noonien>
hehe, was about to go hammers
<fresheyeball>
what would you recommend?
<Yaniel>
HAMMERTIME
<fresheyeball>
STOP
<gchristensen>
I agree
<noonien>
something external, that you call using nix perhaps
<fresheyeball>
uh... what do you mean
<noonien>
yo generate a derivation, and then you use the files from that derivation
<arcnmx>
having colour schemes available to nix expressions is fairly useful ><
<Yaniel>
what type of color formats are we talking about?
<noonien>
how do you currently generate Colors.elm, .sass, .ts, etc?
<fresheyeball>
I have a file colors.nix
<fresheyeball>
that defines the palette
<fresheyeball>
then I have a file that is basically the build script for my app
<fresheyeball>
more or less
<simpson>
Yaniel: It sounds like sRGB colors, packed like "#424242", which we'd want to blend in a reasonable linear sRGB colorspace. The main problem AISI is parsing the strings.
<noonien>
that sounds like a good solution
<fresheyeball>
I have in that file variables like
<arcnmx>
(though I limit my use of it to precomputed palettes, so don't actually do anything more complex than parse+generate)
<gustavderdrache>
i guess my question is: why not just do this as part of your build script? at $WORK we take a yaml file and just output the sources using gulp before we compile anything needing the palette tokens
<noonien>
yup, that's exactly how you would use nix
<fresheyeball>
and in the multiline string, I generate the desired elm representation of the colors
doublej472 has joined #nixos
<simpson>
fresheyeball: gustavderdrache's along the same lines as what I used to do; I had had a JSON file with all of the precomputed constants, a (Python) script to regenerate the JSON, and a Nix expression which slurped the JSON.
<fresheyeball>
simpson: right
<gustavderdrache>
if you're using a tool like gulp or webpack you don't even need nix at all
<fresheyeball>
so what is wrong with keeping constants in nix?
<noonien>
if you need to work with colors, you could, for example, use an existing library that works with colors in a language you already know, and use that to generate the actual "Colors.Elm", and other files
<noonien>
no, but there isn't a reason to do it either, and, what i've suggested, still keeps your constants in nix, you just don't have to do anything with them apart from just passing them on
<arcnmx>
fresheyeball: it's not well isolated since I'm just using it as a small part of my base16 template parser/generator, just saying that string parsing is far from the hard part? substring + convert from hex to int then do whatever you want with the numbers o:
<gchristensen>
noonien: sounds reasonable
<fresheyeball>
noonien: so how do I pass them on?
NoctisLa1 has joined #nixos
<noonien>
"hello, here's your color: ${color}"
kamadorueda has joined #nixos
<noonien>
> let color = "#fff"; in "hello, here's your color: ${color}"
<{^_^}>
"hello, here's your color: #fff"
<fresheyeball>
so now I have a string with the color...
<fresheyeball>
how do I pass this to my typescript code, sass code, and elm code?
<gchristensen>
pass it to a build phase which converts it in the ways you need
<fresheyeball>
gchristensen: great!
<gchristensen>
or at most, trivial writeText derivations
<noonien>
from what i understand, you need more than just the colors, but derivations from those colors as well
<fresheyeball>
gchristensen: ok so that is what I am doing
<gchristensen>
no color math
<fresheyeball>
here is a constant for you
<gchristensen>
no color math implemented in Nix*
<fresheyeball>
hang on
<fresheyeball>
this is no color math
<fresheyeball>
the elm code looks like this
<arcnmx>
nix is okay for template string/file generation, if you're already using it I see no reason why it couldn't be used. there's just also not a strong reason you couldn't be using anything else o:
<kamadorueda>
Hello ladies and gentlemen, maybe someone knows a way to speedup nix-build's ? like running it on ramdisks or something ?
<gchristensen>
but I think a build phase which takes the color in and runs a script with ./generate-color-files.sh "${cthecolor}" would be a bit nicer (but not so bad)
<gchristensen>
you're doing fine, fresheyeball, sometimes people do spooky weird math in Nix and I can't help but :x :x :x
<fresheyeball>
what is the advantage? and what would that .sh file look like?
NoctisLabs has joined #nixos
<gchristensen>
you can run it an dev time without using Nix to build things
<noonien>
that .sh file would do the color math you would need
<gchristensen>
apparently there is no math
<noonien>
you're trying to use nix to build Colors.elm, we're just saying it's better to tell nix HOW to build Colors.elm, instead
<fresheyeball>
are you saying there is a color math bash program, and that it would be better to do it in bash than nix?
NoctisLa1 has quit [Ping timeout: 260 seconds]
<noonien>
no, but you can use anything in runCommand
<fresheyeball>
In all seriousness I don't understand why it would be better to build Colors.elm in bash, when I have string interpolation in the host language anyway
<gchristensen>
there is no color math lol
<gchristensen>
we misunderstood
<fresheyeball>
gchristensen: we are getting to that
<noonien>
because you said you needed to do color math, not just string interpolation
<fresheyeball>
before we get to that, I needed to dig past the snark and separate one criticism from another
<noonien>
if it were just string interpolation, we would just suggest using nix directly
<fresheyeball>
ok
<fresheyeball>
now I have a color variant
<fresheyeball>
the customer wants to say that the accent color is 10% brighter than the base color
<gchristensen>
-> runCommand
<noonien>
then you would probably need a separate DSL just for working with colors
<fresheyeball>
I don't get why string manipulations and interpolation are just fine, numeric manipulations are fine, but for some reason color manipulations are not
CMCDragonkai1 has joined #nixos
<Yaniel>
because color is an eldritch horror that practically nobody handles correctly
<gchristensen>
it is all about "what is Nix good at?" and "what is it for?" and it isn't Color
<fresheyeball>
Yaniel: since when?
drakonis has joined #nixos
<noonien>
i mean, they are, but 1. you have no language support, 2. no libraries, 3. it's not going to be fun, 4. it's not really what nix is used for
<simpson>
Yaniel: Just linearize.
<Yaniel>
since always, it just became more visible once people started caring about them actually looking the same on different systems
sigmundv has joined #nixos
<fresheyeball>
gchristensen: I would say, nix is good at defining how to build software, and manipulating constants.
<fresheyeball>
I don't see color as outside of that
<simpson>
noonien: I only know of a few languages that have color built-in; they usually don't do *anything* besides color manipulation. (e.g. GLSL)
<Yaniel>
GLSL does not have color built in
<noonien>
if you're brave enough, there's nothing really stopping you from doing color manipulation in nix
<gchristensen>
in what way is Nix good at minipulating constants?
<gchristensen>
I'd say Nix is actually quite poor at it ...
<fresheyeball>
well given that it's a configuration language, I guess it failed then
fusion809 has quit [Remote host closed the connection]
<fresheyeball>
noonien: I know this is going to come up more for me, so that was the plan
<fresheyeball>
unless there was one out there anyway
johrmungand has joined #nixos
<noonien>
you also seem pretty set on doing this, not really listening to advice, so, perhaps you should do it, it will be a great opportunity to learn more about what nix is good at, and what it isn't
<fresheyeball>
I think every language needs basic color math somewhere, and most do
tilcreator has quit [Ping timeout: 272 seconds]
<gchristensen>
noonien++
<{^_^}>
noonien's karma got increased to 3
<johrmungand>
I'm currently using gnu stow to manage my dotfiles and was wondering how can I do the same so that it can manage the nixos configuration file too (if possible) since it doesn't exist under home I'm not positive how to do this
<fresheyeball>
I think doing the color math for this, will be easier than moving from nix string interpolation to some bash file builder
jD91mZM2 has joined #nixos
<fresheyeball>
which is the only alternative I think I recieved
CMCDragonkai1 has quit [Ping timeout: 265 seconds]
<fresheyeball>
and then of course I need to find a color transformation library I can access in bash
<fresheyeball>
or write a binary that exposes one myself
<noonien>
also, if you're working with html colors, it will be even more fun. "#fff" and "PaleVioletRed" are compeltely valid colors
<noonien>
in the second argument to runCommand, you can specify build inputs
<fresheyeball>
noonien: sure, I know
<noonien>
`runCommand "my-script" { buildInputs = [ python ]; } '' use python here to do color manipulation ''`
<Yaniel>
simpson: doesn't look like it handles "PaleVioletRed" being two completely different colors within the same document
<Yaniel>
which yes, has happened to me
<arcnmx>
it's fair to say there are probably better tools to use in comparison to nix, unless you absolutely need to for interop purposes (because of say a need to pass the computed values on to other nix modules)
<simpson>
Yaniel: It sounds like you have designed your own challenge for fresheyeball, but that is not how they are storing their colors; they are talking about RGB strings stored like "#424242", AIUI.
<Yaniel>
simpson: I was just responding to the eldritch horror part
<fresheyeball>
simpson: I can make the source of truth representation whatever I want
<arcnmx>
but idunno I also see no problem with it if you're willing to write the necessary parts yourself? it's just yeah, unlikely that anything existing will be useful to you, as there isn't much of a "library" ecosystem for nix in general
<noonien>
perhaps there's a way to parse a derivation's output as a nix expression and use that?
<arcnmx>
particularly not for the more niche topics
<fresheyeball>
Yaniel: yeah, it's not like color math is hard or would be hard to write in nix
fleaz has joined #nixos
<noonien>
afaik `import` is just a function, maybe it'll work?
<noonien>
perhaps someone more experienced knows
<noonien>
i'm doubtful though
<fresheyeball>
Yaniel: part of the reaction I am getting, feels like they think color transformations are hard, and that nix would not be good at doing those computations. I don't think those are justified notions
<arcnmx>
noonien: as in IFD? that works sometimes but has its own limitations/issues
<virus_dave>
alexarice[m]: stdenv/generic/builder.sh just pipes it into $out/nix-support/propagated-user-env-packages, but i don’t see a whole lot being done with that.
<alexarice[m]>
virus_dave: interesting, guess I'll just keep trying to figure out what is going on
chagra has quit [Ping timeout: 260 seconds]
kvda has joined #nixos
<infinisil>
alexarice[m]: I believe nix-env has some special handling for derivations that have $out/nix-support/propagated-user-env-packages
ayerhart has quit [Quit: ayerhart]
<alexarice[m]>
infinisil: ah ok thanks
<infinisil>
But if you're asking because you need to have some runtime dependencies, this is a bad solution for it
ayerhart has joined #nixos
<virus_dave>
In the fixup phase, it writes the propagated build inputs (propagatedBuildInputs) to the file $out/nix-support/propagated-user-env-packages. nix-env recursively installs all packages listed in this file when you install a package that has it. [...]
immae has quit [Quit: WeeChat 2.4]
<infinisil>
Yeah, so it's a very impure way to add runtime dependencies, there are many better ways to do this, propagatedUserEnvPackages should be considered an anti-pattern
<alexarice[m]>
infinisil: I'm asking because I'm trying to figure out how the emacs `trivialBuild` (doesn't work). It doesn't seem to be picking up elisp dependencies
<alexarice[m]>
* infinisil: I'm asking because I'm trying to figure out how the emacs `trivialBuild` (doesn't) work. It doesn't seem to be picking up elisp dependencies
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<infinisil>
Could very much be due to it using that
o1lo01ol1o has joined #nixos
<alexarice[m]>
it sets `propagatedBuildInputs` and `propagatedUserEnvPkgs`
<alexarice[m]>
and then runs some setup hook which updates the load path which I think relies on the propagatedBuildInputs bit and not the user env stuff
<infinisil>
Ah yeah that's fine, propagatedBuildInputs is okay to use
<infinisil>
(I don't have the time to debug this right now though)
<alexarice[m]>
It's not really a huge problem, I can deal with one package not being byte-compiled
sondr3 has quit [Quit: WeeChat 2.7]
<noonien>
is there a way to print more information about lambdas?
<noonien>
i'm trying to debug expression and i feel like i'm just stumbling arounnd