andi- changed the topic of #nixos to: NixOS stable: 19.09 \o/ https://discourse.nixos.org/t/nixos-19-09-release/4306/2 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon ... nixcon videos: https://tinyurl.com/nixcon2019 || For best support,
<jakubgs> and --json with jq is nice too
cosimone has quit [Ping timeout: 272 seconds]
<{^_^}> [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
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/299fbcbb8b5 (from 73 minutes ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
erictapen has quit [Ping timeout: 240 seconds]
<{^_^}> [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] @ryantm merged pull request #78576 → ejabberd: 19.09.1 -> 20.01 → https://git.io/JvmeC
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JvmUI
<qyliss> I have an activation script that deletes ~/.nix-profile
<gchristensen> nice
<qyliss> so I could run nix-env -i, but I wouldn't get anything by doing so
<gchristensen> very nice
<qyliss> Or, actually, maybe I don't any more. I don't remember if my read-only home was enough to stop it
<{^_^}> [nixpkgs] @r-ryantm opened pull request #78586 → gradm: 3.1-201608131257 -> 3.1-201903191516 → https://git.io/JvmUO
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/4eba7020b9e (from 71 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
carter has quit [Excess Flood]
jgeerds has quit [Ping timeout: 265 seconds]
carter has joined #nixos
<{^_^}> [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"
<infinisil> That is very much a private repo :)
<infinisil> Ah
<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> infinisil: here's an extract of how i'm using it https://gist.github.com/MichaelXavier/2f1124bee8443e47776bd0a7fec123c4
<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]
<infinisil> nix-build such a file
marcusr has joined #nixos
<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
<{^_^}> [nixpkgs] @dawidsowa closed pull request #75064 → pam_gnupg: init at unstable-2019-10-25 → https://git.io/JeyJk
teto has quit [Quit: WeeChat 2.7]
v88m has quit [Ping timeout: 265 seconds]
orivej has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Jvmk8
rogue_koder_ has joined #nixos
rogue_koder has quit [Ping timeout: 268 seconds]
jluttine has quit [Ping timeout: 260 seconds]
jluttine has joined #nixos
silver has quit [Read error: Connection reset by peer]
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/5e9d926fa3f (from 7 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
jakubgs has quit [Ping timeout: 265 seconds]
ddellacosta has joined #nixos
KeiraT has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #78548 → procs: 0.9.0 -> 0.9.2 → https://git.io/Jvq71
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvmI4
thc202 has quit [Ping timeout: 248 seconds]
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 ._.
mDuff has quit [Ping timeout: 272 seconds]
captn3m0 has quit [Quit: ZNC 1.7.5 - https://znc.in]
captn3m0 has joined #nixos
<{^_^}> [nixpkgs] @alyssais merged pull request #78585 → nixos/bitlbee: don't assign list to users.groups → https://git.io/JvmUf
<{^_^}> [nixpkgs] @alyssais pushed to master « nixos/bitlbee: don't assign list to users.groups »: https://git.io/JvmLI
orivej has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #78588 → keepalived: 2.0.19 -> 2.0.20 → https://git.io/JvmLc
matthuszagh has left #nixos ["ERC (IRC client for Emacs 26.3)"]
lovesegfault has quit [Quit: WeeChat 2.7]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #78589 → ibus-engines.m17n: 1.4.1 -> 1.4.2 → https://git.io/JvmLP
eri has quit [Ping timeout: 248 seconds]
chkno has quit [Quit: leaving]
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
aw has joined #nixos
spacefrogg has joined #nixos
mexisme has quit [Ping timeout: 248 seconds]
bdesham has left #nixos [#nixos]
Henson has quit [Ping timeout: 268 seconds]
felixfoertsch23 has joined #nixos
v88m has joined #nixos
felixfoertsch has quit [Ping timeout: 260 seconds]
Henson has joined #nixos
Henson has quit [Ping timeout: 265 seconds]
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<jbit> is there a way to run nixos-rebuild without an internet connection? (as in, if i modified a configuration option and want to rebuild using it?)
<clever> jbit: --option substituters ''
patrl has joined #nixos
<jbit> clever: \o/ thanks, i've been trying to figure that out for ages
patrl has quit [Client Quit]
patrl has joined #nixos
jerryaldrichiii_ has joined #nixos
jerryaldrichiii has quit [Ping timeout: 268 seconds]
iyzsong-x has joined #nixos
iyzsong has quit [Ping timeout: 265 seconds]
gustavderdrache has quit [Quit: Leaving.]
patrl has quit [Quit: WeeChat 2.7]
doyougnu has quit [Ping timeout: 246 seconds]
patrl has joined #nixos
drakonis has quit [Quit: WeeChat 2.6]
[Leary] has joined #nixos
Lears has quit [Read error: No route to host]
zeta_0 has joined #nixos
zeta_0 has quit [Client Quit]
mounty has quit [Quit: Konversation terminated!]
zeta_0 has joined #nixos
wavirc22 has quit [Ping timeout: 240 seconds]
<zeta_0> hello there, i am trying to install vscode in home.nix but this piece of code is throwing an error?
<zeta_0> package = pkgs.vscodium;
<zeta_0> The option `home-manager.users.zeta.programs.vscode.package' defined in `/etc/nixos/configuration.nix' does not exist.
growpotkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
wavirc22 has joined #nixos
patrl has quit [Quit: WeeChat 2.7]
bvdw has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @Lassulus merged pull request #78161 → joplin-desktop: Add a desktop Item for joplin-desktop → https://git.io/JvLfe
<{^_^}> [nixpkgs] @Lassulus pushed commit from @Scriptkiddi to master « joplin-desktop: Add a desktop Item for joplin-desktop »: https://git.io/JvmqN
bvdw has joined #nixos
nixy37 has quit [Quit: The Lounge - https://thelounge.chat]
nixy37 has joined #nixos
ddellacosta has quit [Ping timeout: 272 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/e99ec699a43 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/e99ec699a43 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
fusion809 has joined #nixos
Soo_Slow has quit [Quit: Soo_Slow]
Acou_Bass has quit [Ping timeout: 246 seconds]
Acou_Bass has joined #nixos
shah^ has quit []
tomberek has quit [Ping timeout: 240 seconds]
jboy has quit [Quit: bye]
Chiliparrot has joined #nixos
fusion809 has quit [Read error: Connection reset by peer]
Rusty1 has quit [Quit: Konversation terminated!]
fusion809 has joined #nixos
Acou_Bass has quit [Quit: ZNC 1.7.4 - https://znc.in]
knupfer has joined #nixos
Acou_Bass has joined #nixos
jboy has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg merged pull request #78531 → strawberry: 0.6.7 -> 0.6.8 → https://git.io/JvqH0
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/JvmZA
fusion809 has quit [Remote host closed the connection]
fusion809 has joined #nixos
lambda-11235 has quit [Quit: Bye]
Lears has joined #nixos
[Leary] has quit [Ping timeout: 268 seconds]
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
shah^ has joined #nixos
knupfer has quit [Ping timeout: 248 seconds]
bhipple_ has quit [Remote host closed the connection]
bhipple has quit [Remote host closed the connection]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
captn3m0 has quit [Quit: ZNC 1.7.5 - https://znc.in]
chagra has joined #nixos
captn3m0 has joined #nixos
chagra has quit [Quit: WeeChat 2.6]
rsoeldner has joined #nixos
chagra has joined #nixos
mounty has joined #nixos
palo1 has joined #nixos
palo1 is now known as palo
palo has quit [Ping timeout: 265 seconds]
rsoeldner has quit [Ping timeout: 240 seconds]
veske has joined #nixos
chagra has quit [Ping timeout: 240 seconds]
rsoeldner has joined #nixos
chagra has joined #nixos
chagra has quit [Ping timeout: 265 seconds]
chagra has joined #nixos
mexisme has joined #nixos
chagra has quit [Quit: WeeChat 2.6]
<{^_^}> [nixpkgs] @joachifm merged pull request #78586 → gradm: 3.1-201608131257 -> 3.1-201903191516 → https://git.io/JvmUO
<{^_^}> [nixpkgs] @joachifm pushed 2 commits to master: https://git.io/Jvmct
chagra has joined #nixos
<{^_^}> [nixpkgs] @mmahut merged pull request #77826 → FIDO2 luks support → https://git.io/JvUhh
<{^_^}> [nixpkgs] @mmahut pushed 6 commits to master: https://git.io/JvmcZ
iqubic` has joined #nixos
dansho has joined #nixos
iqubic` has quit [Remote host closed the connection]
iqubic` has joined #nixos
iqubic` has quit [Client Quit]
iqubic has quit [Ping timeout: 260 seconds]
jb55 has quit [Remote host closed the connection]
ecube has joined #nixos
chagra has quit [Quit: WeeChat 2.6]
ecube has quit [Client Quit]
iqubic has joined #nixos
chagra has joined #nixos
lsix has joined #nixos
mexisme has quit [Ping timeout: 248 seconds]
sb0 has joined #nixos
<{^_^}> [nixpkgs] @adisbladis pushed to master « poetry2nix: 1.3.0 -> 1.4.0 »: https://git.io/JvmcH
m0rphism has joined #nixos
kenjis1 has joined #nixos
Jackneill has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/7b819104a21 (from 53 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/99243ec9703 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
evanjs has quit [Remote host closed the connection]
Hedgework has quit [Ping timeout: 260 seconds]
evanjs has joined #nixos
szicari has quit [Ping timeout: 272 seconds]
Hedgework has joined #nixos
marcusr has quit [Ping timeout: 260 seconds]
szicari has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #78591 → mediathekview: 13.5.0 -> 13.5.1 → https://git.io/JvmCl
gagbo has joined #nixos
Intensity has quit [*.net *.split]
marcusr has joined #nixos
morgib has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @Lassulus merged pull request #76937 → precice: fix output and cmake → https://git.io/Jepg2
<{^_^}> [nixpkgs] @Lassulus pushed commit from @Scriptkiddi to master « precice: fix output and cmake »: https://git.io/JvmC2
<{^_^}> [nixpkgs] @r-ryantm opened pull request #78592 → manuskript: 0.10.0 -> 0.11.0 → https://git.io/JvmCr
Intensity has joined #nixos
gkmngrgn has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #78593 → memcached: 1.5.20 -> 1.5.21 → https://git.io/JvmCF
Tucky has joined #nixos
stolyaroleh has quit [Quit: Konversation terminated!]
aveltras has joined #nixos
euandreh has joined #nixos
euandreh has quit [Remote host closed the connection]
shiver has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #78594 → mpd_clientlib: 2.17 -> 2.18 → https://git.io/JvmWq
<{^_^}> [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?
chagra has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @vbgl merged pull request #78253 → coqPackages.CoLoR: 1.4.0 -> 1.7.0 → https://git.io/JvLE9
<{^_^}> [nixpkgs] @vbgl pushed 5 commits to master: https://git.io/JvmWy
chagra has joined #nixos
jakubgs has quit [Quit: WeeChat 2.7]
<{^_^}> [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?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #78596 → libx86emu: 2.4 -> 2.6 → https://git.io/JvmlJ
<Rovanion> (It is a site built with some static site generator/wiki called Gollum)
rogue_koder_ has quit [Ping timeout: 268 seconds]
wpcarro has joined #nixos
mumuluxi[m] is now known as mupf[m]
<dminuoso> Rovanion: I'd rather spend my time in upgrading gollum to support Ruby 2.1.0+
<dminuoso> Rovanion: Alternatively, you can just run it with JRuby, you will most likely have less compatibility issues that way.
<{^_^}> [nixpkgs] @vbgl opened pull request #78597 → coqPackages_8_11.coq: 8.11+β1 → 8.11.0 → https://git.io/JvmlT
<{^_^}> [nixpkgs] @r-ryantm opened pull request #78598 → libzip: 1.5.2 -> 1.6.0 → https://git.io/JvmlL
rogue_koder_ has joined #nixos
<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] @Mic92 merged pull request #78426 → Merge pull request #78426 from Mic92/tmpfiles → https://git.io/Jvtpq
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/Jvmlj
<clever> rsoeldner: yeah, you could manually run the postgres daemon, and pass it flags to change all of the dirs
<clever> rsoeldner: https://github.com/samueldr/hydra-in-a-bag does that
__monty__ has joined #nixos
<{^_^}> [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
<{^_^}> Channel nixos-19.09 advanced to https://github.com/NixOS/nixpkgs/commit/299fbcbb8b5 (from 11 hours ago, history: https://channels.nix.gsc.io/nixos-19.09)
<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?
<astk> gather seperate exes in the same place?
<astk> or combine into one exe?
<clever> gather seperate exes in the same place
<astk> oh ok, thats the perfect thing!
<clever> astk: buildEnv merges them the same way, so you have fewer things to copy and/or install
<astk> ok, im going to try to get all these instructions together
<clever> astk: this is an example, that loads 2 cabal files, for machotool and macho, i can then just `nix-build -A machotool` to compile it
Makaveli7 has quit [Ping timeout: 268 seconds]
astk has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @fpletz merged pull request #78499 → dero: 0.11.6 -> 0.11.7 → https://git.io/JvqPD
<{^_^}> [nixpkgs] @fpletz pushed 2 commits to master: https://git.io/Jvm4Q
orivej has quit [Ping timeout: 265 seconds]
v88m has quit [Ping timeout: 260 seconds]
wpcarro has quit [Remote host closed the connection]
cosimone has quit [Quit: Terminated!]
Makaveli7 has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #78600 → ncmpc: 0.36 -> 0.37 → https://git.io/JvmRv
vidbina_ has joined #nixos
jboy has quit [Quit: bye]
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?
bvdw has joined #nixos
fendor has joined #nixos
jboy has joined #nixos
nohTo has joined #nixos
Izorkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
Naptra has joined #nixos
<jschievink> keepassxc is no longer starting on my system because it can't find libX11.so.6, is there a known regression related to this?
<jschievink> weirdly libX11 is not in the dependencies of keepassxc, but it seems to work for other people? I'm running Nix on Arch Linux
<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?
<dminuoso> Perhaps keepalived mmm
rheeseyb has joined #nixos
wpcarro has joined #nixos
Izorkin has joined #nixos
<{^_^}> [nixpkgs] @foxit64 opened pull request #78601 → telegraf 1.12.1 -> 1.13.2 → https://git.io/JvmEU
sb0 has quit [Quit: Leaving]
<Shoubit> jschievink, try an older version to confirm? e.g. `nix run -f channel:nixos-19.09 keepassxc -c keepassxc`
<jschievink> Shoubit: turns out I had some Arch libraries linked in via LD_LIBRARY_PATH, and it wasn't happy about that. removing them fixed it.
phreedom has quit [Ping timeout: 240 seconds]
phreedom has joined #nixos
Dagger has quit [Ping timeout: 246 seconds]
werner291 has joined #nixos
Dagger2 has joined #nixos
pmiddend has quit [Quit: WeeChat 2.7]
<{^_^}> [nixpkgs] @jobojeha opened pull request #78602 → paraview: prefix PYTHONPATH → https://git.io/JvmE7
rheeseyb has quit [Ping timeout: 268 seconds]
hyper_ch2 has joined #nixos
andreas303 has quit [Ping timeout: 240 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/ec1c46e2e58 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/ec1c46e2e58 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<{^_^}> [nixpkgs] @ehmry merged pull request #78594 → mpd_clientlib: 2.17 -> 2.18 → https://git.io/JvmWq
<{^_^}> [nixpkgs] @ehmry pushed commit from @r-ryantm to master « mpd_clientlib: 2.17 -> 2.18 »: https://git.io/JvmuU
<{^_^}> [nixpkgs] @ehmry merged pull request #78570 → cjdns: 20.4 -> 20.5 → https://git.io/JvqpA
<{^_^}> [nixpkgs] @ehmry pushed commit from @r-ryantm to master « cjdns: 20.4 -> 20.5 »: https://git.io/Jvmuk
Synthetica has joined #nixos
andreas303 has joined #nixos
cartwright has quit [Remote host closed the connection]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cartwright has joined #nixos
Chiliparrot has joined #nixos
erictapen has joined #nixos
goibhniu has joined #nixos
<{^_^}> [nixpkgs] @nh2 merged pull request #78574 → samba: 4.10.11 -> 4.11.5 → https://git.io/Jvqjj
<{^_^}> [nixpkgs] @nh2 pushed 4 commits to staging: https://git.io/Jvmua
<{^_^}> [nixpkgs] @nh2 closed pull request #73315 → samba: 4.10.10 -> 4.11.3 → https://git.io/Jewpt
turion has joined #nixos
<{^_^}> [nix] @edolstra pushed to flakes « Add Mercurial tests »: https://git.io/Jvmu1
<eoli3n_> Hi
<eoli3n_> how to configure firefox to use flash ?
<clever> eoli3n_: step 1, let flash die, step 2, repeat step 1
<eoli3n_> i doubt about your nickname
<eoli3n_> :P
waleee-cl has joined #nixos
<hyper_ch2> isn't flash dead already?
<eoli3n_> what means dead ? flash is code, code never dies
<hyper_ch2> except in the case of flash
<clever> eoli3n_: adobe has stopped supporting it ages ago, and modern browsers dont support that type of plugin
<eoli3n_> i know all of that
<eoli3n_> but still my question is
<eoli3n_> 134658 eoli3n_ | how to configure firefox to use flash ?
<hyper_ch2> "and modern browsers dont support that type of plugin"
<eoli3n_> chrome has flash builtin
<eoli3n_> and chrome is far better than firefox
<hyper_ch2> "Google Chrome discontinued the use of Adobe Flash in update 53 of their browser."
<eoli3n_> huhu
<eoli3n_> i talking about facts, not quotes
<eoli3n_> run chrome and open a flash page
<eoli3n_> it works
<etu> hyper_ch2: Wasn't that when they switched over to "pepper flash" or whatever they called it?
<etu> The builtin one
<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 :)
<eoli3n_> still
<{^_^}> [nixpkgs] @nh2 merged pull request #78580 → gparted: 1.0.0 -> 1.1.0 → https://git.io/JvmeN
<{^_^}> [nixpkgs] @nh2 pushed 2 commits to master: https://git.io/JvmuH
<hyper_ch2> flash is dead
<Shoubit> eoli3n_, nixpkgs.config.firefox.enableAdobeFlash = true, and similarly for Chromium, ixpkgs.config.chromium.enablePepperFlash
<eoli3n_> thx Shoubit
Rusty1 has joined #nixos
erictapen has quit [Quit: leaving]
<{^_^}> [nixpkgs] @nh2 merged pull request #78577 → libirecovery: 2019-01-28 -> 2020-01-14, idevicerestore: 2019-02-14 -> 2019-12-26 → https://git.io/Jvmel
<{^_^}> [nixpkgs] @nh2 pushed 4 commits to master: https://git.io/Jvmu5
iyzsong-x has quit [Ping timeout: 246 seconds]
<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)
<clever> > pkgs.substituteAll
<{^_^}> { __functionArgs = <CODE>; __functor = <CODE>; override = <CODE>; }
<clever> exarkun: its also a nix function, that does the same job
<exarkun> aha. thank you. it returns the new path?
* exarkun finds the definition
<{^_^}> [nixpkgs] @mmahut merged pull request #78356 → dat: init at 13.13.1 → https://git.io/JvtsU
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/Jvmzq
<exarkun> no I guess it still takes infile and outfile... hm
<{^_^}> [nixpkgs] @primeos opened pull request #78603 → [19.09] chromium: 79.0.3945.88 -> 79.0.3945.130 (backport) → https://git.io/JvmzO
<exarkun> except they're called src and target
<{^_^}> [nixpkgs] @r-ryantm opened pull request #78604 → pciutils: 3.6.2 -> 3.6.4 → https://git.io/Jvmz3
<clever> exarkun: it returns the new path
<clever> exarkun: target is relative to $out, when you want to create a $out/bin/foo
rheeseyb has joined #nixos
<exarkun> Okay. Thanks. I can't see that at all from substitute-all.{nix,sh}
<clever> exarkun: what does substitute-all.nix do with target?
vidbina_ has quit [Ping timeout: 248 seconds]
<exarkun> I misread it at first. It doesn't do anything with a target input, it just uses that variable name internally.
<clever> exarkun: ah, target is an internal thing, $dir is the input
<clever> exarkun: nixos/modules/installer/tools/tools.nix is an example
tomberek has joined #nixos
<exarkun> thanks
vidbina_ has joined #nixos
<{^_^}> [nixpkgs] @nh2 opened pull request #78605 → [19.09] youtube-dl: 2019.11.05 -> 2020.01.24 → https://git.io/JvmzR
tomberek has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @nh2 merged pull request #78561 → bind: 9.14.9 -> 9.14.10 → https://git.io/JvqFS
<{^_^}> [nixpkgs] @nh2 pushed 2 commits to master: https://git.io/Jvmz6
<nh2> need mini review for youtube-dl fix backport to 19.09, if anybody has time: https://github.com/NixOS/nixpkgs/pull/78605
<{^_^}> #78605 (by nh2, 6 minutes ago, open): [19.09] youtube-dl: 2019.11.05 -> 2020.01.24
<dansho> ,locate libX11.so.6
<{^_^}> Found in packages: nxproxy, xlibs.libX11
<{^_^}> [nixpkgs] @ehmry opened pull request #78606 → nim: 1.0.4 -> 1.0.6 → https://git.io/Jvmz9
Makaveli7 has quit [Quit: WeeChat 2.7]
simukis_ has quit [Ping timeout: 265 seconds]
najksz has joined #nixos
<{^_^}> [nixpkgs] @Synthetica9 opened pull request #78607 → libversion: 2.9.0 -> 3.0.1 → https://git.io/Jvmzh
<najksz> I would like to restrict command in authorized_keys for nix copy, is it possible?
<najksz> or what my question is, what command is executing nix copy on the remote host?
<dansho> how do you debug a "can't open shared object file: No such file or directory" error? lddtree doesn't show any missing .so files
<{^_^}> [hydra] @edolstra merged pull request #708 → Remove the "log diff" buttons → https://git.io/JvqjP
<{^_^}> [hydra] @edolstra pushed 2 commits to master: https://git.io/Jvmgq
<najksz> or is where any good way? I'm using morph to push to my remote servers and would like the push to be done from within CI
<najksz> but not the switch
<dansho> so I add buildInputs = [ xlibs.libX11 ], but linker still can't find libX11.so.6?
<dansho> in shell.nix
<dansho> how do you add to linker without setting LD_LIBRARY_PATH manually?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #78608 → pcl: 1.9.1 -> 1.10.0 → https://git.io/JvmgW
<dansho> also how to search for xlibs packages? they don't show in nixos packages
jgeerds has quit [Ping timeout: 265 seconds]
<clever> najksz: `nix-store --serve --write`
<{^_^}> [nixpkgs] @Profpatsch merged pull request #70078 → nixos/sshguard: use nftables backend if enabled → https://git.io/Jen8I
<{^_^}> [nixpkgs] @Profpatsch pushed commit from @abrenk to master « nixos/sshguard: use nftables backend if enabled »: https://git.io/Jvmgz
<najksz> clever: thank you so much! I will try that
mexisme has joined #nixos
drakonis has joined #nixos
najksz has quit [Remote host closed the connection]
shibboleth has joined #nixos
mexisme has quit [Ping timeout: 248 seconds]
Naptra has quit [Quit: Leaving]
tertl3 has quit [Quit: Connection closed for inactivity]
<Synthetica> Could someone merge #78265 ?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/78265 (by Synthetica9, 5 days ago, open): treewide: fix redirected urls
hyper_ch2 has quit [Remote host closed the connection]
drakonis has quit [Quit: WeeChat 2.6]
<{^_^}> [nixpkgs] @Infinisil merged pull request #78265 → Merge pull request #78265 from Synthetica9/https-homepages → https://git.io/JvL2n
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/Jvm2g
<infinisil> Synthetica: Yup :)
<Synthetica> infinisil: Thanks :)
<{^_^}> [nixpkgs] @fishi0x01 opened pull request #78609 → onesixtyone: init at 0.3.3 → https://git.io/Jvm2K
simukis_ has joined #nixos
cfricke has joined #nixos
asymmetric has joined #nixos
asymmetric has quit [Changing host]
<{^_^}> [nixpkgs] @ryantm merged pull request #78566 → armadillo: 9.800.3 -> 9.800.4 → https://git.io/JvqNr
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/Jvman
wpcarro has quit [Ping timeout: 245 seconds]
veske has quit [Quit: This computer has gone to sleep]
gentis has joined #nixos
markus1189 has quit [Ping timeout: 268 seconds]
veske has joined #nixos
uwap has quit [Quit: ZNC 1.7.4 - https://znc.in]
dansho has quit [Quit: Leaving]
uwap has joined #nixos
markus1189 has joined #nixos
ddellacosta has joined #nixos
<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?
<{^_^}> [nixpkgs] @ryantm merged pull request #78607 → libversion: 2.9.0 -> 3.0.1 → https://git.io/Jvmzh
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JvmVt
v88m has joined #nixos
gustavderdrache has joined #nixos
<{^_^}> [nixpkgs] @cstich opened pull request #78611 → Allow cupy to find the thrust library → https://git.io/JvmVr
<{^_^}> [nixpkgs] @magnetophon closed pull request #60431 → WIP faust 2.5.23 -> 2.15.11 → https://git.io/fjGyA
dansho has joined #nixos
cYmen has joined #nixos
<{^_^}> [nixpkgs] @WilliButz opened pull request #78612 → grafana: 6.5.3 -> 6.6.0 → https://git.io/JvmVh
<{^_^}> [nixpkgs] @magnetophon opened pull request #78613 → faust: 2.5.23 -> 2.20.2 → https://git.io/Jvmwe
<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]
turion has quit [Quit: Leaving.]
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/e59dcf8ccec (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
shibboleth has quit [Quit: shibboleth]
ng0_ has joined #nixos
ng0_ has joined #nixos
ng0 has quit [Ping timeout: 268 seconds]
dingenskirchen has quit [Quit: dingenskirchen]
dingenskirchen1 has joined #nixos
<{^_^}> [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?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/78420 (by evanjs, 2 days ago, open): gitkraken: 6.4.1 -> 6.5.0
<evanjs> Don't think I changed anything _that_ major
ng0_ is now known as ng0
<{^_^}> [nixpkgs] @peterhoeg merged pull request #78349 → mc: /bin/rm does not exist → https://git.io/JvtLM
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/Jvmrz
<evanjs> Okay, phew. Happens with 6.4.1, so unsure if this is actually related to my PR :D
<noonien> how can i get nix-instantiate --eval to evaluate the code inside a list, so i can get its elements?
<{^_^}> [nixpkgs] @msteen opened pull request #78615 → bitwarden_rs: 1.9.1 -> 1.13.1 → https://git.io/Jvmro
<{^_^}> [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
<{^_^}> [nixpkgs] @primeos opened pull request #78616 → iproute: 5.4.0 -> 5.5.0 → https://git.io/JvmoL
<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
<{^_^}> #70406 (by bgamari, 16 weeks ago, open): glibc doesn't cross-compile to AArch64 on 19.09
<rhitakorrr> The exact warning is different but otherwise appears to be the same issue
<infinisil> boogiewoogie[m]: .overrideAttrs (old: { version = ...; })
<rhitakorrr> Is there any way to get around this?
domogled has joined #nixos
jb55 has joined #nixos
AdrianaLima has joined #nixos
opthomasprime has joined #nixos
halfbit has quit [Ping timeout: 245 seconds]
AdrianaLima has quit [Client Quit]
dingenskirchen has quit [Quit: dingenskirchen]
<turion> evanjs: That works. Incredible. Thanks! I tried to make it work with `nix-env -iA nixos.freetype`, but that didn't work. Any idea why?
dingenskirchen1 has joined #nixos
dingenskirchen1 is now known as dingenskirchen
tomberek has joined #nixos
mac10688 has quit [Ping timeout: 268 seconds]
growpotkin has joined #nixos
opthomasprime has left #nixos [#nixos]
Tucky has quit [Quit: WeeChat 2.7]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #78617 → ocamlPackages.mlgmpidl: 1.2.11 -> 1.2.12 → https://git.io/Jvmo7
<{^_^}> [nixpkgs] @bcdarwin opened pull request #78618 → python3Packages.nibabel: 3.0.0 -> 3.0.1 → https://git.io/Jvmod
<evanjs> turion: ,libs for one
<evanjs> bah fine
<evanjs> ,libs turion
<evanjs> >_> what's the syntax again?
<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]
dsx has quit [Quit: dsx]
dingenskirchen has quit [Quit: dingenskirchen]
dingenskirchen1 has joined #nixos
doyougnu has joined #nixos
dingenskirchen1 is now known as dingenskirchen
kenjis1 has joined #nixos
MinceR has quit [Ping timeout: 268 seconds]
<infinisil> ,libraries
<{^_^}> Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/faab2914f3c (from 59 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
chagra has joined #nixos
amir has joined #nixos
erasmas has joined #nixos
orivej has joined #nixos
<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
<evanjs> unless it could be aliased, yeah
<{^_^}> [nixpkgs] @markuskowa merged pull request #78436 → foxtrotgps → https://git.io/JvqJ6
<{^_^}> [nixpkgs] @markuskowa pushed 3 commits to master: https://git.io/JvmK0
dansho has quit [Quit: Leaving]
<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?
<boogiewoogie[m]> umm, *riot-desktop's version
chloekek has quit [Quit: WeeChat 2.6]
morgib has joined #nixos
<disasm> arcnmx: nice and hacky, love it! :) (and seems like it's working perfectly)
vidbina_ has quit [Ping timeout: 260 seconds]
kwork has quit [Remote host closed the connection]
doyougnu has quit [Quit: WeeChat 2.6]
<arcnmx> mm I've been using a more horrifying recursive version of it :p
<noonien> ,eval {}.x ? 42
<noonien> ,expr {}.x ? 42
<infinisil> noonien: > {}.x ? 42
<noonien> > {}.x ? 42
<{^_^}> error: syntax error, unexpected INT, expecting ID or OR_KW or DOLLAR_CURLY or '"', at (string):276:8
<noonien> cool!
orivej has quit [Ping timeout: 265 seconds]
kwork has joined #nixos
<noonien> how can i get a default value, instead of an error?
<gustavderdrache> > {}.x or 42
<{^_^}> 42
<noonien> oh, nice
domogled has quit [Quit: domogled]
bvdw has quit [Read error: Connection reset by peer]
jonten has joined #nixos
halfbit has joined #nixos
aswanson has quit [Quit: WeeChat 2.6]
bvdw has joined #nixos
aswanson has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #78619 → plata-theme: 0.9.1 -> 0.9.2 → https://git.io/Jvmiz
noudle has joined #nixos
<{^_^}> [nixpkgs] @Infinisil merged pull request #78025 → Merge pull request #78025 from wamserma/minidlna-interval-backport → https://git.io/Jvk5h
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to release-19.09: https://git.io/JvmiX
jonten has quit [Ping timeout: 272 seconds]
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
cosimone has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
anirrudh has joined #nixos
CandyWendy has joined #nixos
nikola_i has joined #nixos
<{^_^}> [nixpkgs] @Infinisil merged pull request #78307 → Merge pull request #78307 from blanky0230/nixos-tuxedo-keyboard → https://git.io/JvLMq
<{^_^}> [nixpkgs] @Infinisil pushed 4 commits to master: https://git.io/JvmPv
Neo-- has joined #nixos
dm9 has quit [Quit: WeeChat 2.7]
CandyWendy has quit [Remote host closed the connection]
chagra has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #78620 → pkcs11helper: 1.25.1 -> 1.26 → https://git.io/JvmPJ
shah^ has quit []
tsrt^ has joined #nixos
fusion809 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @veprbl pushed commit from @thefloweringash to release-19.09 « ldc: fix build and skip impure test »: https://git.io/JvmPt
fusion809 has joined #nixos
chagra has joined #nixos
ixxie has joined #nixos
smatting has quit [Ping timeout: 240 seconds]
knupfer has joined #nixos
jonten has joined #nixos
amir has quit [Remote host closed the connection]
amir has joined #nixos
Jackneill has quit [Remote host closed the connection]
<kalbasit> I'm getting a weird error working with NixOS module type submodule: https://gist.github.com/kalbasit/1abf317c4961b96dbd2a8b0c78e64f5c
<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?
<mkaito> ,locate bin/dig
<{^_^}> [nixpkgs] @r-ryantm opened pull request #78621 → python27Packages.musicbrainzngs: 0.6 -> 0.7.1 → https://git.io/JvmXf
<{^_^}> Found in packages: bind.dnsutils
<mkaito> thansk
leotaku has quit [Ping timeout: 240 seconds]
<eyJhb> mkaito: you shall be spared in the robot upraising
<mkaito> lol
<mkaito> always be nice to your future overlords
<eyJhb> :D
dingenskirchen has quit [Remote host closed the connection]
dingenskirchen has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed to master « python38Packages.tatsu: 4.4.0 -> 5.0.0 »: https://git.io/JvmXn
chloekek has joined #nixos
shibboleth has quit [Quit: shibboleth]
mexisme has joined #nixos
fiddlerwoaroof_ has quit [Remote host closed the connection]
mniip has quit [Quit: This page is intentionally left blank.]
rheeseyb has quit [Ping timeout: 272 seconds]
<disasm> arcnmx: do you have an example of expanding that to be recursive?
bdesham has left #nixos [#nixos]
werner291 has quit [Quit: werner291]
cfricke has quit [Quit: WeeChat 2.7]
mananamenos has quit [Remote host closed the connection]
<arcnmx> disasm: mine is messy and could be implemented in a cleaner way, but https://github.com/arcnmx/tf-nix/blob/master/lib/lib.nix#L4-L18
werner291 has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #78622 → python27Packages.mozdevice: 3.0.6 -> 3.0.7 → https://git.io/JvmXg
jgeerds has joined #nixos
zeta_0 has joined #nixos
leotaku has joined #nixos
anirrudh has joined #nixos
anirrudh has quit [Client Quit]
<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
<{^_^}> [nixpkgs] @purelysloth opened pull request #78623 → androidenv: add emulator v29.3.6 → https://git.io/JvmX6
<drozdziak1> What's the preferred way of working with pkg-config on NixOS?
lovesegfault has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #78624 → python27Packages.braintree: 3.57.1 -> 3.58.0 → https://git.io/Jvm10
<{^_^}> [nixpkgs] @danbst opened pull request #78625 → nixos/doc: add a section mentioning GitHub team for nixos release managers → https://git.io/Jvm1E
leotaku has quit [Ping timeout: 265 seconds]
chagra has quit [Remote host closed the connection]
chagra has joined #nixos
mexisme has quit [Read error: Connection reset by peer]
dingenskirchen has quit [Read error: Connection reset by peer]
dingenskirchen has joined #nixos
tertl3 has joined #nixos
leotaku has joined #nixos
<{^_^}> [nixpkgs] @alexbakker opened pull request #78626 → hexchat: 2.14.2 -> 2.14.3 → https://git.io/Jvm19
mniip has joined #nixos
anirrudh has joined #nixos
anirrudh has quit [Client Quit]
o1lo01ol1o has quit [Ping timeout: 265 seconds]
<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
leotaku has quit [Ping timeout: 268 seconds]
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/cf669a884ca (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
Chiliparrot has joined #nixos
leotaku has joined #nixos
tomberek has quit [Ping timeout: 260 seconds]
justanotheruser has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @vcunat opened pull request #78628 → knot-resolver: 4.3.0 -> 5.0.0 → https://git.io/JvmMv
<{^_^}> [nixpkgs] @vcunat closed pull request #72014 → nixos/kresd: Support setting the amount of threads → https://git.io/JeECk
Profpatsch has left #nixos ["WeeChat 0.4.3"]
AudreyanaMi has joined #nixos
anirrudh has joined #nixos
anirrudh has quit [Client Quit]
v0|d has quit [Read error: Connection reset by peer]
AudreyanaMi has quit [Client Quit]
fusion809 has quit [Remote host closed the connection]
mexisme has joined #nixos
fusion809 has joined #nixos
jonten has quit [Ping timeout: 268 seconds]
kenjis1 has quit [Ping timeout: 260 seconds]
anirrudh has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #78629 → python27Packages.moznetwork: 0.27 -> 1.0.0 → https://git.io/JvmMm
anirrudh has quit [Client Quit]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #78630 → python27Packages.cvxopt: 1.2.3 -> 1.2.4 → https://git.io/JvmMO
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?
<notgne2> `nix-shell -p openssl pkgconfig --run "cargo build --release"`
<elvishjerricco> s/boy/bot/
<infinisil> ,libraries
<{^_^}> Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<Yaniel> or leave out the part starting from --run if you want an interactive shell
<adisbladis> infinisil: You beat me to it :)
<infinisil> I had ping advantage :)
<infinisil> Not in the usual sense though
DerGuteMoritz has quit [Ping timeout: 258 seconds]
Czen has quit [Ping timeout: 265 seconds]
DerGuteMoritz has joined #nixos
helpusobi has quit [Ping timeout: 258 seconds]
cptchaos83 has quit [Ping timeout: 258 seconds]
alex`` has quit [Ping timeout: 268 seconds]
cptchaos83 has joined #nixos
cosimone has quit [Quit: Quit.]
helpusobi has joined #nixos
alex`` has joined #nixos
coderobe3 has joined #nixos
jonge has quit [Ping timeout: 258 seconds]
ivan has quit [Ping timeout: 258 seconds]
jonge has joined #nixos
duck_ has joined #nixos
duckfullstop has quit [Ping timeout: 258 seconds]
coderobe has quit [Read error: Connection reset by peer]
coderobe3 is now known as coderobe
cYmen has quit [Ping timeout: 258 seconds]
cYmen has joined #nixos
azazel has quit [Ping timeout: 258 seconds]
wolfshappen has quit [Ping timeout: 258 seconds]
wolfshappen has joined #nixos
azazel has joined #nixos
ivan has joined #nixos
kleisli has quit [Ping timeout: 268 seconds]
mexisme has quit [Ping timeout: 268 seconds]
obadz has joined #nixos
index-0[m] has joined #nixos
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
anns has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #78631 → python27Packages.identify: 1.4.9 -> 1.4.10 → https://git.io/JvmMH
civodul has joined #nixos
<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
<Yaniel> ,libraries
<{^_^}> Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<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
mexisme has joined #nixos
<anns> That's why I love statelessness
sigmundv has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @bcdarwin closed pull request #72038 → minc2_simple: init at unstable-2019-11-12 → https://git.io/JvmDJ
anirrudh has joined #nixos
waleee-cl has quit [Quit: Connection closed for inactivity]
anirrudh has quit [Client Quit]
rhitakorrr has quit [Quit: WeeChat 2.7]
<{^_^}> [nixpkgs] @nh2 merged pull request #78605 → [19.09] youtube-dl: 2019.11.05 -> 2020.01.24 → https://git.io/JvmzR
<{^_^}> [nixpkgs] @nh2 pushed 2 commits to release-19.09: https://git.io/JvmDI
<anns> Thanks, I now have a working shell.nix
anns has quit [Remote host closed the connection]
kiwi_46 has joined #nixos
kiwi_46 is now known as anns
<anns> Thanks, I now have a working shell.nix
<anns> I think it would definitely be useful for newcomers if there was an FAQ for questions frequently asked on IRC :P
<gchristensen> a good idea, anns. having the most frequently used factoids be backed by a page and a list people could Just Read
<anns> heh; re-reading the FAQ apparently my question is on there. Stange that DuckDuckGo didn't index it
<anns> strange*
<gchristensen> which?
anirrudh has joined #nixos
<gchristensen> nice
ixxie has quit [Ping timeout: 272 seconds]
kenjis1 has joined #nixos
cosimone has joined #nixos
<{^_^}> [nixpkgs] @lsix merged pull request #78631 → python27Packages.identify: 1.4.9 -> 1.4.10 → https://git.io/JvmMH
<{^_^}> [nixpkgs] @lsix pushed 2 commits to master: https://git.io/JvmDl
spacekookie_ has joined #nixos
anirrudh has joined #nixos
anirrudh has quit [Client Quit]
anns has quit [Remote host closed the connection]
aw has quit [Ping timeout: 268 seconds]
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!
<{^_^}> [nixpkgs] @anderslundstedt opened pull request #78632 → spotifyd: 0.2.23 -> 0.2.24 → https://git.io/JvmDE
justanotheruser has joined #nixos
avn has joined #nixos
<{^_^}> [nixpkgs] @ryantm merged pull request #78544 → vips: 8.8.4 -> 8.9.0 → https://git.io/Jvq7v
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JvmDu
azazel has joined #nixos
<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
nezorg has joined #nixos
nezorg is now known as jmgrosen
<jmgrosen> does anyone have familiarity with the changes in https://github.com/NixOS/nixpkgs/pull/53843 ? i seem to be suffering from fallout of it...
<{^_^}> #53843 (by hedning, 1 year ago, merged): nixos/displayManager: introduce defaultSession
<jmgrosen> namely, i now get an error that the session "xfce+i3" doesn't exist, and that only "xfce" and "none+i3" do
NoctisLabs has joined #nixos
mexisme has joined #nixos
dingenskirchen has quit [Remote host closed the connection]
dingenskirchen has joined #nixos
fresheyeball has joined #nixos
NoctisLa1 has quit [Ping timeout: 260 seconds]
rheeseyb has quit [Ping timeout: 265 seconds]
NoctisLabs has quit [Ping timeout: 246 seconds]
NoctisLa1 has joined #nixos
<fresheyeball> is there a color library written in nix?
<fresheyeball> lets say I need to do color adjustment or blending in nix
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/a5840448559 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<cransom> color adjustment of what?
<fresheyeball> Let's say I have a variable in nix
<fresheyeball> foo = "#323232";
<fresheyeball> and I want it as rgb
<noonien> hmm, if i have a function with a set pattern as its argument, can i do something like {name as tname}?
<cransom> i can't say i've come across anything as specific as that, no.
<simpson> fresheyeball: Huh, what are you building? That's an interesting need.
<{^_^}> [nixpkgs] @r-ryantm opened pull request #78633 → python27Packages.deap: 1.3.0 -> 1.3.1 → https://git.io/JvmyI
<fresheyeball> simpson: ui's
<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)
<fresheyeball> elm-color = writeText "Colors.Elm" ''
<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
<arcnmx> parsing can be ugly but is far from hard? https://github.com/arcnmx/nixexprs/blob/master/build-support/base16.nix#L78
<simpson> fresheyeball: There's no concrete problem; Nix is problematic when asking it to do things like parse strings.
<fresheyeball> noonien: not everything can be solved that way
<fresheyeball> simpson: I see no reason this would be hard to write
<simpson> arcnmx: Oh wow, you've already built it. fresheyeball ^^
<noonien> well, as other have said, nix is mostly used to build software
<yhager> So I have an update to mongoc package. How do I contribute it to nixpkg? fork and submit a PR?
<simpson> Good work. Seems like quite the headache.
<noonien> fresheyeball: you can use `runCommand` instead of `writeScript`, and use any language/library you want, to generate your files
<fresheyeball> I was using writeText
<fresheyeball> for the files
<fresheyeball> and runCommand for the build script
seqizz has joined #nixos
NoctisLa1 has quit [Read error: Connection reset by peer]
<fresheyeball> arcnmx: I am not totally seeing how to use this
<noonien> i think that's a pretty good reason to avoid it
<fresheyeball> so... I am yet to hear an argument yet
<noonien> you're not making your build easier
<fresheyeball> is there a reason to NOT keep program constants in nix?
o1lo01ol1o has joined #nixos
<gchristensen> Nix is not your program
<gchristensen> IMO, the best Nix expressions are simple, clear, and to the point, and don't get overly clever
<fresheyeball> gchristensen: I agree, it's the thing that knows about all the programs that have constants that need to stay in sync
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/845b911ac21 (from 67 minutes ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
<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 ?
<fresheyeball> type Color
<fresheyeball> = ${builtins.concatStringsSep "\n | " (lib.mapAttrsToList (name: _: toElmConstructor name) colors)}
<fresheyeball> getColorCode : Color -> ColorCode
<fresheyeball> getColorCode c = case c of
<fresheyeball> ${builtins.concatStringsSep "\n " (lib.mapAttrsToList (name: value:
<fresheyeball> ''${toElmConstructor name} -> ColorCode "${value}"'') colors)}
<fresheyeball> that's it no, color math
<fresheyeball> so far so good?
<fresheyeball> not breaking any rules, or making anyone's eyes roll sarcasticaly?
<noonien> `colorFile = runCommand "my-colors" {} "echo '${color1} ${color2}' | process-colors > $out"`
<gchristensen> not so bad
<fresheyeball> great
<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
<noonien> python, c, perl, go, js, erlang, brainfuck
<gustavderdrache> js would be great, because then you could use
<noonien> i'm sure some of those languages have several good color math libraries
orivej has joined #nixos
<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 ...
jD91mZM2 has quit [Quit: ZNC 1.7.5 - https://znc.in]
<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
<simpson> gchristensen, Yaniel: FWIW the "eldritch" part of this, which IMO is just not well-known, is https://github.com/monte-language/typhon/blob/master/mast/lib/colors.mt#L10-L18 Nix can handle this just fine.
<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.
<fresheyeball> arcnmx: bingo
<{^_^}> [nixpkgs] @HugoReeves opened pull request #78634 → croc: 6.4.8 -> 6.4.10 → https://git.io/Jvmyb
<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
<noonien> IFD?
<arcnmx> https://nixos.wiki/wiki/Import_From_Derivation sounds like what you're describing
<noonien> aren't colors super hard physics? and most of the simple implementation get them wrong?
<noonien> arcnmx: yes, that's exactly what i was describing
<fresheyeball> oh unrelated question
<Yaniel> well yes, color math is pretty much trivial, assuming <insert multi-page list of things>
<fresheyeball> does nix have a compose operator?
jmgrosen has quit [Ping timeout: 260 seconds]
<fresheyeball> Yaniel++
<{^_^}> Yaniel's karma got increased to 4
<{^_^}> [nixpkgs] @r-ryantm opened pull request #78635 → python27Packages.lark-parser: 0.7.8 -> 0.8.1 → https://git.io/Jvmyh
<noonien> fresheyeball: what do you mean by compose?
<fresheyeball> noonien: function composition
<arcnmx> fun topic that is
seqizz has left #nixos [#nixos]
<fresheyeball> oh
<fresheyeball> stepping in it today lol
<noonien> sorry, i'm bad at math
<noonien> i think it's achievable though, perhaps using `foldl'`
<fresheyeball> hu?
<noonien> > foldl' (fn: x: fn x) 3 (x: x + 1) (x: x + 2)`
<{^_^}> error: syntax error, unexpected $undefined, expecting ')', at (string):276:45
<noonien> > foldl' (fn: x: fn x) 3 [(x: x + 1) (x: x + 2)]
<{^_^}> attempt to call something which is not a function but an integer, at (string):276:16
<arcnmx> iirc I've seen some experimentation attempts in the past to try and make things less painful?
<noonien> > builtins.foldl' (x: fn: fn x) 3 [(x: x + 1) (x: x + 2) (x: x + 4)]
<{^_^}> 10
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/cf669a884ca (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
tilcreator has joined #nixos
knupfer has quit [Remote host closed the connection]
<noonien> > let compose = fns: val: builtins.foldl' (x: fn: fn x) val fns; composed = compose [(x: x + " world") (x: "foo, " + x) (x: x + ", bar")]; in composed "hello"
<{^_^}> "foo, hello world, bar"
knupfer has joined #nixos
kamadorueda has quit [Remote host closed the connection]
<noonien> fresheyeball: is this what you meant?
<fresheyeball> noonien: no
<fresheyeball> but it is cool
johrmungand has quit [Quit: Quit]
<fresheyeball> the function you are folding over is function application, not function composition
<fresheyeball> I was just asking if the operator was in the language
<fresheyeball> compose: f: g: x: f (g x);
knupfer has quit [Ping timeout: 260 seconds]
<fresheyeball> but as an infix
<fresheyeball> > compose = f: g: x: f (g x)
<{^_^}> compose defined
<fresheyeball> > compose' = f: g: x: f (g x)
<{^_^}> compose' defined
<noonien> the nix manual is pretty complete: https://nixos.org/nix/manual/ i'm not sure it has what you're looking for
<noonien> from what i can tell over at https://en.wikipedia.org/wiki/Function_composition what i've done is basically `(g ∘ f)(x) = g(f(x))`
<fresheyeball> > builtins.foldl' compose' [(x: x + " world") (x: x + " there")] "foo"
<{^_^}> value is a string while a list was expected, at (string):277:1
<noonien> here's a better formatted version, perhaps easier to understand: http://ix.io/28wV
<noonien> `'` has no special meaning, it's just part of that particular functions name
<infinisil> > pipe "Hello" [ (x: x + " you") (y: y + " there") ]
<{^_^}> "Hello you there"
<infinisil> fresheyeball: Fyi ^
<infinisil> lib.pipe
Jackneill has joined #nixos
<noonien> oh, nice
<virus_dave> i think my pyqt question got buried in the color manipulation discussion :/
<fresheyeball> > builtins.foldl' compose' (x: "z" + x) [(x: "x" + x) (x: "y" + x)] "foo"
<{^_^}> "zxyfoo"
<fresheyeball> that is what is different
<noonien> virus_dave: i had the same problem you had, but withh another missing module, adding `-p qt5.full` fixed the issue
<infinisil> > composeHack (x: x + 1) (y: y * 2) 10
<{^_^}> 21
<infinisil> fresheyeball: ^
<infinisil> > :v composeHack
<{^_^}> composeHack = a: if lib.isFunction a then b: if lib.isFunction b then composeHack (x: a (b x)) else a b else a
<fresheyeball> infinisil: oooo!
<{^_^}> [nixpkgs] @r-ryantm opened pull request #78636 → python37Packages.minio: 5.0.5 -> 5.0.6 → https://git.io/JvmS4
<fresheyeball> that is nice
kline has joined #nixos
<{^_^}> [nixpkgs] @zowoq opened pull request #78637 → conmon: 2.0.9 -> 2.0.10 → https://git.io/JvmSB
<infinisil> > composeHack (x: x + 1) (y: y * 2) (z: z - 3) 10
<{^_^}> 15
<{^_^}> [nixpkgs] @zowoq opened pull request #78638 → skopeo: 0.1.39 -> 0.1.40 → https://git.io/JvmSR
<infinisil> The hacky thing is that it works with arbitrary many functions :)
<virus_dave> noonien: Thanks, trying that
gustavderdrache has left #nixos [#nixos]
<fresheyeball> > builtins.foldl' (f:g:x: f (g x)) (x: "z" + x) [(x: "x" + x) (x: "y" + x)] "foo"
<{^_^}> attempt to call something which is not a function but a string, at (string):277:18
<fresheyeball> > builtins.foldl' (f: g: x: f (g x)) (x: "z" + x) [(x: "x" + x) (x: "y" + x)] "foo"
<{^_^}> "zxyfoo"
<fresheyeball> > builtins.foldl' (g: x: g x) (x: "z" + x) [(x: "x" + x) (x: "y" + x)] "foo"
<{^_^}> cannot coerce a function to a string, at (string):277:33
<fresheyeball> I see
<virus_dave> i wonder if this will build on darwin. /me holds breath
<infinisil> fresheyeball: noonien: (Maybe we should go to #nix-lang for this)
* noonien wonders why people prefer FP
<alexarice[m]> Does anyone know what `propagatedUserEnvPkgs` does, can't find a reference to it in nixpkgs manual?
amfl has quit [Ping timeout: 268 seconds]
kline has left #nixos ["Leaving"]
<virus_dave> ….and, nope! doesn’t build on darwin :(
wildtrees has quit [Quit: Leaving]
amfl has joined #nixos
<noonien> :(
Jackneill has quit [Remote host closed the connection]
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #78639 → python37Packages.django_modelcluster: 5.0 -> 5.0.1 → https://git.io/Jvm9v
<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
<{^_^}> [nixpkgs] @edolstra merged pull request #66640 → rename iso_graphical to iso_plasma5 → https://git.io/fjdJv
<{^_^}> [nixpkgs] @edolstra pushed 2 commits to master: https://git.io/Jvm93
<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
<{^_^}> [nixpkgs] @Infinisil opened pull request #78640 → Add `types.secretPath` → https://git.io/Jvm98
halfbit has quit [Ping timeout: 245 seconds]
immae has joined #nixos
<{^_^}> [nixpkgs] @kjuvi opened pull request #78641 → timetable: 1.0.9 -> 1.1.0 → https://git.io/Jvm9z
<noonien> can i trace where a lambda was defined/
EmilyRatko has joined #nixos
EmilyRatko has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @jonringer merged pull request #78624 → python27Packages.braintree: 3.57.1 -> 3.58.0 → https://git.io/Jvm10
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.braintree: 3.57.1 -> 3.58.0 »: https://git.io/Jvm9d
<{^_^}> [nixpkgs] @jonringer merged pull request #78622 → python27Packages.mozdevice: 3.0.6 -> 3.0.7 → https://git.io/JvmXg
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.mozdevice: 3.0.6 -> 3.0.7 »: https://git.io/Jvm9N
pbb_ has joined #nixos
pbb has quit [Ping timeout: 272 seconds]
kenjis1 has quit [Ping timeout: 248 seconds]
pbb_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
pbb has joined #nixos
nikola_i has quit [Ping timeout: 245 seconds]
mDuff has joined #nixos
chloekek has quit [Ping timeout: 265 seconds]
anirrudh has quit [Quit: Leaving.]
mexisme has quit [Ping timeout: 246 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
sigmundv has quit [Read error: Connection reset by peer]
hyper_ch has quit [Ping timeout: 268 seconds]
sigmundv has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #78632 → spotifyd: 0.2.23 -> 0.2.24 → https://git.io/JvmDE
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvmHo
lsix has quit [Quit: WeeChat 2.6]
<{^_^}> [nixpkgs] @marsam merged pull request #78639 → python37Packages.django_modelcluster: 5.0 -> 5.0.1 → https://git.io/Jvm9v
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvmHi
fendor has quit [Quit: Leaving]
run500 has joined #nixos
gkmngrgn has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @petabyteboy opened pull request #78643 → nixos/alertmanager: Fix startup → https://git.io/JvmH1
__monty__ has quit [Quit: leaving]
justanotheruser has quit [Ping timeout: 265 seconds]
mDuff has quit [Quit: Konversation terminated!]
mexisme has joined #nixos
cosimone_ has joined #nixos
ayerhart has quit [Quit: ayerhart]
cosimone has quit [Ping timeout: 248 seconds]
ayerhart has joined #nixos
anirrudh has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #78637 → conmon: 2.0.9 -> 2.0.10 → https://git.io/JvmSB
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvmHj
kleisli has quit [Ping timeout: 265 seconds]
justanotheruser has joined #nixos
hyper_ch has joined #nixos
cosimone_ has quit [Read error: Connection reset by peer]
cosimone_ has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @nh2 opened pull request #78644 → pythonPackages.Babel: Add comment → https://git.io/JvmQt
o1lo01ol1o has joined #nixos
cosimone_ has quit [Client Quit]