worldofpeace changed the topic of #nixos to: NixOS 20.09 Nightingale ✨ https://discourse.nixos.org/t/nixos-20-09-release/9668 || 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/ || use ,channels for a list of Nix* related channels || nixcon videos: https://tinyurl.com/nixcon2019 || Link to the output of nix-inf
<{^_^}> [nixpkgs] @samueldr opened pull request #121450 → iso-image: Fixes for cross-compilation → https://github.com/NixOS/nixpkgs/pull/121450
<matthewcroughan> Can anyone tell me what's wrong with this ? https://dpaste.com/7FK3BGYQD
<matthewcroughan> it gives me error: in pure evaluation mode, 'fetchTree' requires an immutable input, at /nix/store/l5nhivnnb6sisbppnn82wvfg6iqwxbag-source/tunnelvr.nix:7:9
<matthewcroughan> quite confused :D
cinimod` has quit [Ping timeout: 265 seconds]
<pennae> try giving it an exact commit/hash
ddellacosta has joined #nixos
<matthewcroughan> pennae: now it asks for a user/pas
<matthewcroughan> when fetching
<{^_^}> [nixpkgs] @lukegb merged pull request #69692 → netcdfcxx4: 4.3.0 -> 4.3.1 → https://github.com/NixOS/nixpkgs/pull/69692
<{^_^}> [nixpkgs] @marsam merged pull request #121444 → lxcfs: 4.0.7 -> 4.0.8 → https://github.com/NixOS/nixpkgs/pull/121444
<matthewcroughan> Oh I got the username wrong, nvm :D
ddellacosta has quit [Ping timeout: 240 seconds]
<matthewcroughan> What is the difference between buildInputs and nativeBuildInputs?
<lukegb> nativeBuildInputs is usually used for build tooling, like cmake, that needs to be run as part of the build
<pennae> why are python unit tests always so incredibly slow D:
<matthewcroughan> pennae: conspiracy
<matthewcroughan> big python
<matthewcroughan> sleep 5
<matthewcroughan> go here, the reason is in plain text http://pages.cs.wisc.edu/~ballard/bofh/bofhserver.pl
<pennae> big python wants you to buy more mice (to click on the tests from more machines)
<matthewcroughan> ERROR: _ensure_user_data_dir: Error attempting to create data dir: /homeless-shelter/.local/share/godot/app_userdata/tunnelvr_v0.5.
<matthewcroughan> lolwut
<matthewcroughan> does nix have a default user called homeless-shelter?
<{^_^}> [nixpkgs] @marsam merged pull request #121292 → grpc: 1.37.0 -> 1.37.1 → https://github.com/NixOS/nixpkgs/pull/121292
<kitty_hut[m]> Anyone know how to get packages outside of the regular channel/get more up to date ones, like, any way to use the nix config to build something from source from git or the such?
<aleph-> matthewcroughan: I believe so
bennofs_ has joined #nixos
<{^_^}> [nixpkgs] @lukegb merged pull request #97254 → sumorobot-manager: 0.9.0 -> 1.0.0 → https://github.com/NixOS/nixpkgs/pull/97254
growpotk- has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @bootstrap-prime closed pull request #121446 → bottomify: init at 1.2.0 → https://github.com/NixOS/nixpkgs/pull/121446
<{^_^}> [nixpkgs] @jb55 opened pull request #121451 → miniscript: init at unstable-2020-11-04 → https://github.com/NixOS/nixpkgs/pull/121451
ahmed_elgabri has joined #nixos
<{^_^}> [nixpkgs] @romildo opened pull request #121452 → mate.mate-session-manager: 1.24.2 -> 1.24.3 → https://github.com/NixOS/nixpkgs/pull/121452
ddellacosta has joined #nixos
ahmed_elgabri has quit [Ping timeout: 250 seconds]
ddellacosta has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @romildo opened pull request #121453 → lxqt.lxqt-powermanagement: 0.17.0 -> 0.17.1 → https://github.com/NixOS/nixpkgs/pull/121453
Mateon2 has joined #nixos
Mateon1 has quit [Ping timeout: 252 seconds]
Mateon2 is now known as Mateon1
gustavderdrache has quit [Quit: Leaving.]
<Henson> matthewcroughan: homeless-shelter is the "home directory" of the build process. In a mkDerivation in the buildCommand put in "cd ~" and it'll try to go to that directory. I think it's designed to cause and therefore trigger an error when part of the build process tries to reference the build user's home directory.
<{^_^}> [nixpkgs] @romildo opened pull request #121454 → lxqt.obconf-qt: 0.16.0 -> 0.16.1 → https://github.com/NixOS/nixpkgs/pull/121454
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #nixos
philr has joined #nixos
abathur has joined #nixos
romildo has joined #nixos
romildo has left #nixos [#nixos]
<matthewcroughan> What phase do I need to stop, in order to stop make from being called?
growpotk- has joined #nixos
<matthewcroughan> Does anybdy know if $TMP is writable under Nix?
<matthewcroughan> in the phases, during build
<{^_^}> [nixpkgs] @happysalada opened pull request #121455 → zoxide: 0.6.0 -> 0.7.0 → https://github.com/NixOS/nixpkgs/pull/121455
<Henson> matthewcroughan: I usually specify a buildCommand in a mkDerivation to control what it does. You might try that to see if you can stop make from being called.
Henson is now known as HensonAway
h0m1 has quit [Ping timeout: 276 seconds]
h0m1 has joined #nixos
<lukegb> matthewcroughan: you can usually override buildPhase, that's what e.g. ninja does
<lukegb> if you don't want _anything_ to happen, then there's, well, dontBuild
stree has quit [Ping timeout: 246 seconds]
ddellacosta has joined #nixos
<{^_^}> [nixpkgs] @happysalada opened pull request #121456 → starship: 0.52.1 -> 0.53.0 → https://github.com/NixOS/nixpkgs/pull/121456
ddellacosta has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @mweinelt opened pull request #121457 → home-assistant 2021.5 dependency bumps → https://github.com/NixOS/nixpkgs/pull/121457
growpotk- has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @happysalada merged pull request #121455 → zoxide: 0.6.0 -> 0.7.0 → https://github.com/NixOS/nixpkgs/pull/121455
zebrag has quit [Remote host closed the connection]
stree has joined #nixos
lsix has quit [Ping timeout: 260 seconds]
patagonicus1 has joined #nixos
<{^_^}> [nixpkgs] @mweinelt closed pull request #113855 → python3Packages.authcaptureproxy: init at 0.4.2 → https://github.com/NixOS/nixpkgs/pull/113855
<{^_^}> [mobile-nixos] @zhaofengli opened pull request #352 → examples/phosh-demo: init → https://github.com/NixOS/mobile-nixos/pull/352
<matthewcroughan> lukegb: Can you write during the build phase?
<matthewcroughan> I get the feeling that godot can't write during the buildPhase
<matthewcroughan> I'm streaming at https://nix.zone in the case you don't mind looking and helping ;D
<{^_^}> [nixpkgs] @marsam opened pull request #121458 → zoxide: install manpages → https://github.com/NixOS/nixpkgs/pull/121458
tejing has quit [Quit: WeeChat 2.9]
ddellacosta has joined #nixos
pushqrdx has quit [Remote host closed the connection]
ddellacosta has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @zhaofengli opened pull request #121459 → kgx-generic: init → https://github.com/NixOS/nixpkgs/pull/121459
roconnor has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @marsam opened pull request #121460 → rage: 0.5.1 -> 0.6.0 → https://github.com/NixOS/nixpkgs/pull/121460
<{^_^}> [nixpkgs] @marsam opened pull request #121461 → gopass: 1.12.5 -> 1.12.6 → https://github.com/NixOS/nixpkgs/pull/121461
tejing has joined #nixos
<DigitalKiwi> colemickens: ooh that sounds naughty
<{^_^}> [nixpkgs] @ashkitten opened pull request #121462 → sunvox: fix hash, unmark as broken → https://github.com/NixOS/nixpkgs/pull/121462
<matthewcroughan> How can you browse the arguments that a function will take in the repl?
HensonAway is now known as Henson
tuxlovesyou has joined #nixos
<matthewcroughan> Found it out, it's .__functionArgs
<{^_^}> [nixpkgs] @lukegb opened pull request #121463 → libsForQt5.quazip: 0.9.1 -> 1.1 → https://github.com/NixOS/nixpkgs/pull/121463
<Henson> matthewcroughan: how does functionArgs work? I've often wanted to do that in the REPL
theDon has joined #nixos
<matthewcroughan> You just tab complete it.
<matthewcroughan> Just found that out by playing around on stream lol
hyiltiz has joined #nixos
<lukegb> matthewcroughan: builtins.functionArgs is, I think, the "proper" way of doing it
<{^_^}> Channel nixos-20.09 advanced to https://github.com/NixOS/nixpkgs/commit/2685792d396 (from 8 hours ago, history: https://channels.nix.gsc.io/nixos-20.09)
<matthewcroughan> <function>.__functionArgs
<matthewcroughan> How can I build a fetchzip in the repl?
<matthewcroughan> It seems to just stick at the downloading step
<matthewcroughan> Like, how do I get it into the nix store?
shibboleth has quit [Quit: shibboleth]
ddellacosta has joined #nixos
<colemickens> <DigitalKiwi "colemickens: ooh that sounds nau"> sorry, what does?
<{^_^}> [nixpkgs] @marsam opened pull request #121464 → flexget: 3.1.110 -> 3.1.116 → https://github.com/NixOS/nixpkgs/pull/121464
<matthewcroughan> Hmm, how do I play with fetchers in the repl?
<Henson> lukegb: how does functionArgs work? If I try "builtins.functionArgs lib.zipWithNames" (or any other function in lib) it just returns "{ }"
<matthewcroughan> Can I not invoke them and have them put files in the nix sotre?
<matthewcroughan> store*
<matthewcroughan> I can't :b it because it's not a derivation
<hexa-> c
ddellacosta has quit [Ping timeout: 240 seconds]
<matthewcroughan> hexa-: there is no :c :(
<hexa-> matthewcroughan: alas this nis not my neomutt, but just weechat+
<matthewcroughan> Nobody knows about this particular question, it seems :)
<matthewcroughan> black magic
aw has joined #nixos
spacefrogg has joined #nixos
<{^_^}> [nixpkgs] @marsam opened pull request #121465 → python38Packages.flask-restx: 0.2.0 -> 0.3.0 → https://github.com/NixOS/nixpkgs/pull/121465
<Henson> matthewcroughan: it works for me. I tried fetching https://www.google.com/index.html and it looks like it froze, but it spit out a path in the Nix store which when I "cat" it is the contents of the download.
<matthewcroughan> Oh
<matthewcroughan> what about fetchurl, which doesn't return a derivation?
<Henson> matthewcroughan: builtins.fetchurl { url = "https://www.google.com/index.html"; } outputs "/nix/store/4fm1pmgmbpc75zkk3f3c71b2xs1gpix0-index.html"
<Henson> matthewcroughan: yeah, it won't return a derivation, it'll return the path in the nix store for the thing it downloaded
<matthewcroughan> mine doesn't ever return a path
<matthewcroughan> guess my nixflakes is busted lol
<hexa-> nix-repl> pkgs = import <nixpkgs> {}
<hexa-> nix-repl> pkgs.fetchurl {
<hexa-> sha256 = "1cnrwyvka87ilmxx4ygw7hjlmnqrd6rzgnnvm8kr8crqn888smnc";
ahmed_elgabri has joined #nixos
<hexa-> }
<hexa-> «derivation /nix/store/fwzrn9ygcmq1zjfbqm94y3jvbbdcwbqy-develop.zip.drv»
<matthewcroughan> yeah, it never finishes.
<matthewcroughan> just freezes
<hexa-> finishes for me
<matthewcroughan> you can see it on my stream, nix.zone
<Henson> matthewcroughan: try assigning it to a variable and then type in the name of the variable
<matthewcroughan> if you need proof :p
<matthewcroughan> it has been assigned to avar
<matthewcroughan> OH
<matthewcroughan> It has a path to a derivation. Trying to build it results in an endless build time.
ericsagnes has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @marsam opened pull request #121466 → lxc: 4.0.7 -> 4.0.8 → https://github.com/NixOS/nixpkgs/pull/121466
<Henson> matthewcroughan: put the URL in quotes
ahmed_elgabri has quit [Ping timeout: 250 seconds]
<matthewcroughan> Nope, doesn't look like the issue.
<matthewcroughan> Maaaybe it's just that big.
<matthewcroughan> But the log output is only one line, so I thought it wasn't working.
<Henson> matthewcroughan: I don't think you should try to built it, because it's not a derivation, it will just point to a path in the nix store that is the contents of the file
<matthewcroughan> Yeah I just wanna be able to refer to it and play.
<Henson> matthewcroughan: src = builtins.fetchurl { url = "https://www.google.com/index.html"; }
jgt has joined #nixos
<Henson> matthewcroughan: nix-repl> src produces "/nix/store/z60rmhn94biphgcyajmy3r3b5r3k4248-index.html"
<Henson> matthewcroughan: simply typing "src" in the repl produces the store path
jophish__ has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #120058 → ruby: 2.6.7 -> 2.7.3 → https://github.com/NixOS/nixpkgs/pull/120058
jgt has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #119506 → ruby: build without jit by default → https://github.com/NixOS/nixpkgs/pull/119506
<{^_^}> [nixpkgs] @marsam merged pull request #121458 → zoxide: install manpages → https://github.com/NixOS/nixpkgs/pull/121458
ericsagnes has joined #nixos
ddellacosta has joined #nixos
AlpineLlama has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
meh` has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @sheenobu opened pull request #121467 → doc/beam: fix syntax error in nix sample → https://github.com/NixOS/nixpkgs/pull/121467
jaiya has joined #nixos
<{^_^}> [nixpkgs] @lukegb merged pull request #110182 → open-vm-tools: 11.2.0 -> 11.2.5 → https://github.com/NixOS/nixpkgs/pull/110182
<{^_^}> [nixpkgs] @sheenobu opened pull request #121468 → spotify: upgrade dependency to ffmpeg4 → https://github.com/NixOS/nixpkgs/pull/121468
jaiya has left #nixos [#nixos]
<{^_^}> [nixpkgs] @marsam merged pull request #121071 → postgresql: enable gssapi/kerberos support → https://github.com/NixOS/nixpkgs/pull/121071
Guest11648 is now known as bourbon
stree has quit [Ping timeout: 240 seconds]
jmeredith has quit [Quit: Connection closed for inactivity]
Supersonic112 has joined #nixos
Henson has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
Supersonic has quit [Ping timeout: 276 seconds]
Supersonic112 is now known as Supersonic
rajivr has joined #nixos
stree has joined #nixos
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/2cca79be09c (from 6 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
sangoma has joined #nixos
<{^_^}> [nixpkgs] @marsam opened pull request #121469 → python38Packages.logica: init at 1.3.13 → https://github.com/NixOS/nixpkgs/pull/121469
<shreeya> Is it possible for writing adding conditional in nix to alter behavior by system, different for linux, different for macos for instance
<{^_^}> [nixpkgs] @danielfullmer closed pull request #121362 → zerotierone: 1.6.4 -> 1.6.5 → https://github.com/NixOS/nixpkgs/pull/121362
<DigitalKiwi> yes
<DigitalKiwi> shreeya: are you doing so in nixpkgs or somewhere else?
<matthewcroughan> jojosch[m]: I love you! Thank you so much for making oh-my-git.
<matthewcroughan> It's a perfect template for making Godot games work with Nix
<shreeya> DigitalKiwi: currently trying to implement in home.nix
<{^_^}> [nixpkgs] @marsam opened pull request #121470 → pngquant: 2.12.5 -> 2.14.1 → https://github.com/NixOS/nixpkgs/pull/121470
ddellacosta has quit [Remote host closed the connection]
abathur has quit [Ping timeout: 252 seconds]
orivej has quit [Ping timeout: 252 seconds]
terinjokes has joined #nixos
<{^_^}> [nix] @emilazy opened pull request #4761 → Mark `__impureHostDeps` paths as optional → https://github.com/NixOS/nix/pull/4761
ahmed_elgabri has joined #nixos
ahmed_elgabri has quit [Ping timeout: 260 seconds]
ddellacosta has joined #nixos
<{^_^}> [nixpkgs] @Kho-Dialga opened pull request #121471 → proton-caller: init at 2.2.3 → https://github.com/NixOS/nixpkgs/pull/121471
nicoo has joined #nixos
ddellacosta has quit [Ping timeout: 240 seconds]
palo has joined #nixos
<{^_^}> [nixpkgs] @sayanarijit opened pull request #121472 → xplr: 0.5.11 -> 0.5.12 → https://github.com/NixOS/nixpkgs/pull/121472
ddellacosta has joined #nixos
ddellacosta has quit [Ping timeout: 268 seconds]
growpotkin has quit [Quit: ZNC 1.8.2 - https://znc.in]
<{^_^}> [nixpkgs] @sayanarijit closed pull request #121472 → xplr: 0.5.11 -> 0.5.12 → https://github.com/NixOS/nixpkgs/pull/121472
domogled has joined #nixos
<{^_^}> [nixpkgs] @sayanarijit opened pull request #121473 → xplr: 0.5.10 -> 0.5.12 → https://github.com/NixOS/nixpkgs/pull/121473
jophish__ has quit [Quit: jophish__]
stree has quit [Ping timeout: 252 seconds]
jonringer has joined #nixos
ddellacosta has joined #nixos
ddellacosta has quit [Ping timeout: 268 seconds]
stree has joined #nixos
sangoma has quit [Quit: WeeChat 3.1]
waleee-cl has quit [Quit: Connection closed for inactivity]
sangoma has joined #nixos
<{^_^}> [hydra] @cole-h opened pull request #952 → Project: add declfile, decltype, declvalue to API → https://github.com/NixOS/hydra/pull/952
<Ke> https://hydra.nixos.org/job/nixos/trunk-combined/tested shows 6h ago success, but channes does not seem to have advanced?
cole-h has quit [Ping timeout: 240 seconds]
<Ke> my nixos-version says nixos-21.05pre285574.8e4fe32876c, while there was also a succesful build on nixos-21.05pre285770.7859f8a9d6e
ericsagnes has quit [Ping timeout: 276 seconds]
sangoma has quit [Quit: WeeChat 3.1]
ddellacosta has joined #nixos
respawn_ has joined #nixos
sangoma has joined #nixos
muppeth has quit [Remote host closed the connection]
ahmed_elgabri has joined #nixos
ddellacosta has quit [Ping timeout: 265 seconds]
ahmed_elgabri has quit [Ping timeout: 250 seconds]
ericsagnes has joined #nixos
cfricke has joined #nixos
Heirlung has quit [Quit: ZNC - http://znc.in]
Heirlung has joined #nixos
cfricke has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @cdepillabout merged pull request #120249 → add build target support → https://github.com/NixOS/nixpkgs/pull/120249
muppeth has joined #nixos
jgt has joined #nixos
patagonicus1 has quit [Quit: The Lounge - https://thelounge.chat]
jgt has quit [Ping timeout: 240 seconds]
m0rphism has joined #nixos
patagonicus1 has joined #nixos
hiro98 has joined #nixos
hiro98 has quit [Client Quit]
hiro98 has joined #nixos
ddellacosta has joined #nixos
jgt has joined #nixos
riksteri has joined #nixos
<{^_^}> [nixpkgs] @prusnak merged pull request #121432 → bitcoin: 0.21.0 -> 0.21.1 → https://github.com/NixOS/nixpkgs/pull/121432
ddellacosta has quit [Ping timeout: 252 seconds]
jgt has quit [Ping timeout: 240 seconds]
avaq has joined #nixos
Valentin[m] has joined #nixos
jgt has joined #nixos
aaabbbbbbbbbb has joined #nixos
jgt has quit [Ping timeout: 252 seconds]
ahmed_elgabri has joined #nixos
mallox has joined #nixos
turlando has joined #nixos
jgt has joined #nixos
mallox has quit [Client Quit]
seanparsons has joined #nixos
jgt has quit [Ping timeout: 265 seconds]
respawn_ has quit [Quit: Leaving]
ddellacosta has joined #nixos
sangoma has quit [Quit: WeeChat 3.1]
<{^_^}> [nixpkgs] @bjornfor opened pull request #121474 → zoom-us: fix overriding source → https://github.com/NixOS/nixpkgs/pull/121474
ddellacosta has quit [Ping timeout: 240 seconds]
sangoma has joined #nixos
<{^_^}> [nixpkgs] @LeSuisse closed pull request #110124 → mujs: 1.0.7 -> 1.0.9 → https://github.com/NixOS/nixpkgs/pull/110124
seanparsons has quit [Quit: ZNC 1.8.1 - https://znc.in]
seanparsons has joined #nixos
fendor has joined #nixos
MysteriousSilver has joined #nixos
<MysteriousSilver> Hi! I earlier installed emacsWithPackages-27.1, now i am trying to install gccemacs. How do I make gccemacs to use ELPA from nix repos? my config: http://ix.io/3lA8
<{^_^}> [nixpkgs] @danieldk opened pull request #121475 → makemkv: switch from ffmpeg_3 to ffmpeg → https://github.com/NixOS/nixpkgs/pull/121475
<{^_^}> [nixpkgs] @siraben opened pull request #121476 → knightos-mkrom : 1.0.3 -> 1.0.4, knightos-scas: 0.5.3 -> 0.5.5 → https://github.com/NixOS/nixpkgs/pull/121476
stree has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @maralorn merged pull request #121391 → add maintainer scripts for haskell package generation → https://github.com/NixOS/nixpkgs/pull/121391
<{^_^}> [nixpkgs] @RaghavSood closed pull request #102808 → miniscript: init at unstable-20201104 → https://github.com/NixOS/nixpkgs/pull/102808
ddellacosta has joined #nixos
<{^_^}> [nixpkgs] @RaghavSood merged pull request #121451 → miniscript: init at unstable-2020-11-04 → https://github.com/NixOS/nixpkgs/pull/121451
stree has joined #nixos
cognemo has joined #nixos
<{^_^}> [nixpkgs] @dotlambda opened pull request #121477 → tcpreplay: 4.3.3 -> 4.3.4 → https://github.com/NixOS/nixpkgs/pull/121477
ddellacosta has quit [Ping timeout: 240 seconds]
ahmed_elgabri has quit [Ping timeout: 260 seconds]
supercoven has joined #nixos
<{^_^}> [nixpkgs] @ehmry merged pull request #121282 → nim: 1.4.4 -> 1.4.6 → https://github.com/NixOS/nixpkgs/pull/121282
<{^_^}> [nixpkgs] @dotlambda opened pull request #121478 → metadata-cleaner: 1.0.4 -> 1.0.5 → https://github.com/NixOS/nixpkgs/pull/121478
MysteriousSilver has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @LeSuisse opened pull request #121479 → mujs: 1.1.1 -> 1.1.2 → https://github.com/NixOS/nixpkgs/pull/121479
gpanders has joined #nixos
ahmed_elgabri has joined #nixos
zupo has joined #nixos
Nickli has joined #nixos
Nicklii has quit [Ping timeout: 245 seconds]
Maxdamantus has joined #nixos
zupo_ has joined #nixos
<{^_^}> [nixpkgs] @LeSuisse opened pull request #121480 → pqiv: use ffmpeg4 → https://github.com/NixOS/nixpkgs/pull/121480
zupo_ has quit [Client Quit]
ddellacosta has joined #nixos
MysteriousSilver has joined #nixos
zupo has quit [Ping timeout: 260 seconds]
attila_lendvai has joined #nixos
ddellacosta has quit [Ping timeout: 265 seconds]
<Kinnison> Hi, I'm trying to use pandoc on nixos. pandoc itself is easy, but pandoc-citeproc only seems to be available via haskellPackages which pulls in a heck of a lot of haskell build stuff which I don't need/want.
<Kinnison> Is there a way to install only the resultant binary from pandoc-citeproc ?
<{^_^}> [nix] @Ma27 closed pull request #4759 → libstore/derivation-goal: don't raise an error if the only remaining output is a wildcard → https://github.com/NixOS/nix/pull/4759
<{^_^}> [nixpkgs] @oxzi opened pull request #121481 → pythonPackages.arrow: 1.0.3 -> 1.1.0 → https://github.com/NixOS/nixpkgs/pull/121481
qqlq has joined #nixos
<{^_^}> [nixpkgs] @oxzi opened pull request #121482 → pythonPackages.flask-httpauth: 4.2.0 -> 4.3.0 → https://github.com/NixOS/nixpkgs/pull/121482
puffnfresh1 has quit [Ping timeout: 252 seconds]
puffnfresh1 has joined #nixos
domogled has quit [Ping timeout: 260 seconds]
hiro98 has quit [Ping timeout: 240 seconds]
<sterni> Kinnison: are you sure you need pandoc-citeproc? it has been deprecated by upstream and is unmaintained, as a result it doesn't build on unstable currently I think
<Kinnison> sterni: a tool I'm trying to use uses it, but I wasn't aware of that -- is the citation support now integrated into pandoc?
<{^_^}> [nixpkgs] @jonringer opened pull request #121483 → rhash: fix static build → https://github.com/NixOS/nixpkgs/pull/121483
<sterni> Kinnison: you can use haskell.lib.justStaticExecutables haskellPackages.pandoc-citeproc, but it only reduces the runtime closure
<sterni> Kinnison: yes, it uses the citeproc library now, I think it works via pandoc --citeproc
<Kinnison> aha cool thank you
<Kinnison> I guess I'll need to work up a patch for this tool - is that present in 20.09 ?
<Kinnison> signs point to "no" :(
<{^_^}> [nixpkgs] @oxzi opened pull request #121484 → pythonPackages.pynmea2: 1.17.0 -> 1.18.0 → https://github.com/NixOS/nixpkgs/pull/121484
<Kinnison> Looks like I have more work cut out for me, thank you sterni.
__monty__ has joined #nixos
robador[m] has joined #nixos
wallacer has quit [Quit: wallace dozed off]
domogled has joined #nixos
<{^_^}> [nixpkgs] @oxzi opened pull request #121485 → pythonPackages.pytmx: 3.24.0 -> 3.25.0 → https://github.com/NixOS/nixpkgs/pull/121485
jonringer has quit [Ping timeout: 276 seconds]
<Frosku> Anyone have any idea why I can't get dxvk working?
<Frosku> vulkaninfo: https://pastebin.com/dNKWtDeT
phalrax has joined #nixos
<Frosku> Trying to start EVE: https://pastebin.com/HNamqp71
<ar> … kerberos?
<ar> huh
<Frosku> When I search I find a bunch of Arch results saying I need nvidia-libgl
<Frosku> Is there an equivelant package I might be missing?
ddellacosta has joined #nixos
puffnfresh1 has quit [Ping timeout: 240 seconds]
MysteriousSilver has quit [Ping timeout: 276 seconds]
<Frosku> Hm, finding NixGL
cr4y1 has joined #nixos
ddellacosta has quit [Ping timeout: 265 seconds]
<{^_^}> [patchelf] @rpurdie closed pull request #274 → patchelf: Fix alignment issues with contiguous note sections → https://github.com/NixOS/patchelf/pull/274
naivesheep has joined #nixos
puffnfresh1 has joined #nixos
<{^_^}> [nixpkgs] @LeSuisse opened pull request #121486 → pianobar: use ffmpeg4 → https://github.com/NixOS/nixpkgs/pull/121486
<{^_^}> [nixpkgs] @Mazurel opened pull request #121487 → ogre: Added SDL2 as a dependency → https://github.com/NixOS/nixpkgs/pull/121487
<sterni> Kinnison: on 20.09 you can probably still use pandoc-citeproc though
ahmed_elgabri has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @rnhmjoj opened pull request #121488 → quirc: 2016-08-16 -> 2020-04-06; monero: 0.17.1.9 -> 0.17.2.0; monero-gui: 0.17.1.9 -> 0.17.2.1 → https://github.com/NixOS/nixpkgs/pull/121488
puffnfresh1 has quit [Ping timeout: 240 seconds]
puffnfresh1 has joined #nixos
orivej has joined #nixos
<shreeya> I ended up using stdenv.isDarwin for changing config with system
<{^_^}> [nixpkgs] @06kellyjac opened pull request #121489 → trivy: 0.17.1 -> 0.17.2 → https://github.com/NixOS/nixpkgs/pull/121489
tuxloves1ou has joined #nixos
tuxloves1ou has quit [Read error: Connection reset by peer]
tuxlovesyou has quit [Ping timeout: 240 seconds]
<DigitalKiwi> nix-shell -I nixpkgs=channel:nixos-20.09 -p haskellPackages.pandoc-citeproc # wfm
turlando has quit [Ping timeout: 265 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/c576998594b (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
ddellacosta has joined #nixos
arjen-jonathan has joined #nixos
<eyJhb> What is the best (or just any way), to add a extra option to a NixOS module?
ddellacosta has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @domenkozar opened pull request #121490 → TEST: reformat all nix files with nixpkgs-fmt → https://github.com/NixOS/nixpkgs/pull/121490
exondation has joined #nixos
<qyliss> eyJhb: do you mean without modifying Nixpkgs?
ahmed_elgabri has joined #nixos
<{^_^}> [nixpkgs] @schnusch opened pull request #121491 → oathToolkit: 2.6.6 -> 2.6.7 → https://github.com/NixOS/nixpkgs/pull/121491
<colemickens> meet: I might write it a tiny bit differently because of my own internal way of writing nix, but that looks like the right approach more or less. https://gist.github.com/colemickens/1db82630197af1da98da0cb37d62f11f
<mvnetbiz_> eyJhb I think you can just set more options.<something> in another .nix but with the same attribute name
<{^_^}> [nixpkgs] @danieldk merged pull request #121476 → knightos-mkrom : 1.0.3 -> 1.0.4, knightos-scas: 0.5.3 -> 0.5.5 → https://github.com/NixOS/nixpkgs/pull/121476
<mvnetbiz_> options.existingmodule = { myNewOption =...} ;
stree has quit [Ping timeout: 252 seconds]
<shreeya> colemickens: ah i somehow got to that jumping from page to page trying to find how to merge lists lol, that is definitely better, nix newbie
<colemickens> "jumping from page to page" what could you mean :P
<colemickens> just a joke, welcome nix newbie!
<Kinnison> sterni: Yeah, though the closure is huge :(
* Kinnison wishes jgm would use something approximating semver
<Kinnison> it's hard to know where backward-incompatible changes happen
<sterni> Kinnison: lib.justStaticExecutables at least reduces the runtime closure
<Kinnison> sterni: Aye, but you still get a huge pile to derive that :(
<eyJhb> qyliss++ mvnetbiz_++ yes, that was the way to go. I just brainfarted. :)
<{^_^}> mvnetbiz_'s karma got increased to 3
<{^_^}> qyliss's karma got increased to 137
<sterni> Kinnison: jgm only maintains the one of the most important haskell packages :p
<Kinnison> sterni: indeed
<sterni> Kinnison: yeah, that's right, but you can garbage collect a lot of that after build
<eyJhb> Just wanted to add plugins support for minecraft - https://termbin.com/pc5k
<eyJhb> It is really cool how simple that actually is.
<DigitalKiwi> colemickens: see before the digital era we didn't have ebooks. we had pbooks
<Kinnison> Yeesh, it comes to something when the easiest way to find out what version a breaking change came in with is to use git grep, git annotate, and then some log diving on the tags
<Kinnison> So it was 2.11
<DigitalKiwi> Kinnison: have you had the joys to git bisect nixpkgs yet
<Kinnison> DigitalKiwi: not yet, but thanks for that horrifying thought
<DigitalKiwi> oh it's fun
<colemickens> DigitalKiwi: wat
<DigitalKiwi> 10:48 colemickens: "jumping from page to page" what could you mean :P
exondation has quit [Ping timeout: 260 seconds]
<DigitalKiwi> joke about how manning calls books pbooks
<Kinnison> Is there a convenient way to get a shell which contains the build-dependencies for a given package?
<Kinnison> e.g. if I wanted to hack on neomutt, what would I do to get a shell with neomutt's build-deps?
<DigitalKiwi> yeah
<DigitalKiwi> nix develop nixpkgs#neomutt
<qyliss> (if you're using stable nix it's nix-shell -A neomutt '<nixpkgs>')
stree has joined #nixos
<DigitalKiwi> man nix3-develop
<DigitalKiwi> and yeah that's probably the one you want that qyliss gave I forgot the '<nixpkgs>' so was getting an error ;(
<DigitalKiwi> kiwi@mvp-nixos ~ []$ nix-shell -A neomutt
<DigitalKiwi> error: getting status of '/home/kiwi/default.nix': No such file or directory
melg8 has joined #nixos
<Kinnison> welp, nix develop nixpkgs\#neomutt gave me a new shell
<Kinnison> sadly it's bash :(
xelxebar has joined #nixos
ahmed_elgabri has quit [Quit: WeeChat 3.1]
<Frosku> sudo doesn't work in fish for me which is super annoying
<Frosku> It works in bash
<eyJhb> Frosku: How not work in Fish?
<Frosku> It doesnt escalate my privs
<eyJhb> Oh... I can't even check it for you atm. but it has worked flawless for me before
<eyJhb> I use doas now.. So..
<Frosku> »»»» sudo whoami 0|12:07:01
<Frosku> frosku
<eyJhb> `sudo id`
<Frosku> »»»» sudo id 0|12:07:05
ddellacosta has joined #nixos
<Frosku> uid=1000(frosku) gid=100(users) groups=100(users),1(wheel)
<eyJhb> Weird.... It shouldn't make a difference if it is bash or fish
<eyJhb> What does `sudo -s` do?
<Frosku> in bash
<Frosku> frosku@cloudsdale ~$ sudo whoami
<Frosku> root
<{^_^}> [nixpkgs] @evils opened pull request #121493 → clementine: 1.4.0rc1 -> 1.4.0rc1-587-g708385c71 → https://github.com/NixOS/nixpkgs/pull/121493
<Frosku> frosku@cloudsdale ~$ sudo id
<Frosku> uid=0(root) gid=0(root) groups=0(root)
<Frosku> »»»» sudo -s 0|12:08:47
<Frosku> fish: Unknown command: -s
<{^_^}> [nixpkgs] @sternenseemann opened pull request #121494 → ghcWithPackages: set withLLVM if hostPlatform is not x86_64 → https://github.com/NixOS/nixpkgs/pull/121494
<eyJhb> Doesn't seem like it uses the real sudo command I guess.
<eyJhb> `which sudo`
<Frosku> »»»» which sudo 127|12:09:09
<Frosku> /run/current-system/sw/bin/sudo
<eyJhb> What about in bash?
<Frosku> frosku@cloudsdale ~$ which sudo
<Frosku> /run/wrappers/bin/sudo
<Frosku> Hm
<eyJhb> Yeah, wrong path...
<eyJhb> Not sure where that goes wrong.
<{^_^}> [nixpkgs] @239 opened pull request #121495 → pcloud: fix runtime dependencies → https://github.com/NixOS/nixpkgs/pull/121495
ddellacosta has quit [Ping timeout: 240 seconds]
<Frosku> Hm
<Frosku> They are reversed in path order
<Frosku> In fish/bash
<Frosku> Oh well
<Frosku> I can alias sudo to the right path
<Frosku> I guess
wallacer has joined #nixos
<eyJhb> Just seems off.. How do you enable fish/use fish?
est31 is now known as est
est has quit [Quit: https://quassel-irc.org - Komfortabler Chat. Überall.]
est31 has joined #nixos
est31 is now known as est
<Frosku> I'm guessing it's something in my fish config, I add a lot of things to path then delete duplicates
<Frosku> That could reorder path
<Frosku> I enable it in configuration.nix
<Frosku> But my fish config is several thousand lines
<Frosku> I'll try it with blank config
<Frosku> I expect that will work
<Frosku> I'm more interested in why I have a sudo that seemingly doesn't do anything in /run/curr...
<{^_^}> [nixpkgs] @Hyzual opened pull request #121497 → (goss): init at 0.3.16 → https://github.com/NixOS/nixpkgs/pull/121497
<{^_^}> [nixpkgs] @Atemu opened pull request #121498 → linux_lqx: 5.11.16 -> 5.11.17 → https://github.com/NixOS/nixpkgs/pull/121498
<eyJhb> Frosku: IT doesn't have the SUID bit set.
<eyJhb> In NixOS we have "security wrappers" which has its own dir :) Not sure why it is there however. Think it is quite common...
<Frosku> eyJhb: But why not store it outside of path?
<Frosku> If it needs to exist for some reason (probably beyond my knowledge)
<{^_^}> [nixpkgs] @primeos opened pull request #121499 → libxkbcommon: 1.2.1 -> 1.3.0 → https://github.com/NixOS/nixpkgs/pull/121499
beanbl has joined #nixos
attila_lendvai has quit [Ping timeout: 252 seconds]
<eyJhb> Store it outside of path? I am not sure, it might be a accident, etc.
<beanbl> I've heard that nixos is being worked on for pinephone, is this right?
turlando has joined #nixos
<{^_^}> [nixpkgs] @dotlambda merged pull request #121465 → python38Packages.flask-restx: 0.2.0 -> 0.3.0 → https://github.com/NixOS/nixpkgs/pull/121465
<{^_^}> [nixpkgs] @lukegb closed pull request #110226 → pounce: 2.1p1 -> 2.2 → https://github.com/NixOS/nixpkgs/pull/110226
<{^_^}> [nixpkgs] @dotlambda merged pull request #121464 → flexget: 3.1.110 -> 3.1.116 → https://github.com/NixOS/nixpkgs/pull/121464
ddellacosta has joined #nixos
<{^_^}> [nixpkgs] @servalcatty opened pull request #121500 → v2ray: 4.37.3 -> 4.38.3 → https://github.com/NixOS/nixpkgs/pull/121500
<{^_^}> [nixpkgs] @dotlambda merged pull request #121473 → xplr: 0.5.10 -> 0.5.12 → https://github.com/NixOS/nixpkgs/pull/121473
ddellacosta has quit [Ping timeout: 240 seconds]
arjen-jonathan has quit [Ping timeout: 276 seconds]
neiluj has joined #nixos
neiluj has quit [Changing host]
neiluj has joined #nixos
<evils> beanbl: mobile-nixos has some pinephone work
<Ke> also some random github repos
<Ke> but afaik noone has reported reasonably working pinephone with nixos including basic things like telephony etc.
<{^_^}> [nixpkgs] @lukegb merged pull request #103381 → dcm2niix: 1.0.20200331 -> 1.0.20210317 → https://github.com/NixOS/nixpkgs/pull/103381
ahmedelgabri has joined #nixos
<beanbl> Oh, incredible. I didn't know about mobile-nixos at all, thanks!
<{^_^}> [nixpkgs] @rnhmjoj merged pull request #121488 → quirc: 2016-08-16 -> 2020-04-06; monero: 0.17.1.9 -> 0.17.2.0; monero-gui: 0.17.1.9 -> 0.17.2.1 → https://github.com/NixOS/nixpkgs/pull/121488
<dupon1> Hi, I'm trying to compile a project but I get a CMake error telling me it can't link the static library. GCC, CMake and Erlang headers are installed but wonder if I miss a dep
sangoma has quit [Ping timeout: 260 seconds]
meh` has joined #nixos
<evils> ,library dupon1
<{^_^}> dupon1: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<dupon1> evils: thanks
<{^_^}> [nixpkgs] @7c6f434c merged pull request #121487 → ogre: Added SDL2 as a dependency → https://github.com/NixOS/nixpkgs/pull/121487
<{^_^}> [nixpkgs] @kevincox pushed commit from @vojta001 to master « maintainers: add vojta001 »: https://git.io/J34er
leotaku has joined #nixos
<{^_^}> [patchelf] @rpurdie opened pull request #275 → patchelf: Fix alignment issues with contiguous note sections → https://github.com/NixOS/patchelf/pull/275
<phalrax> is anybody using kind here? the control-plane step always times out for me
<dupon1> evils: it's working now, thanks (bis)
vidbina has joined #nixos
rubm has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @lukegb merged pull request #121463 → libsForQt5.quazip: 0.9.1 -> 1.1 → https://github.com/NixOS/nixpkgs/pull/121463
<{^_^}> [nixpkgs] @lukegb closed pull request #103254 → libsForQt5.quazip: 0.9.1 -> 1.1 → https://github.com/NixOS/nixpkgs/pull/103254
ddellacosta has joined #nixos
ddellacosta has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @georgyo opened pull request #121501 → citrix_workspace: fix build / add mesa dependency → https://github.com/NixOS/nixpkgs/pull/121501
arjen-jonathan has joined #nixos
<{^_^}> [nixpkgs] @lukegb merged pull request #110426 → thonny: 3.3.2 -> 3.3.6 → https://github.com/NixOS/nixpkgs/pull/110426
<{^_^}> [nixpkgs] @lukegb merged pull request #109863 → hyperscan: 5.3.0 -> 5.4.0 → https://github.com/NixOS/nixpkgs/pull/109863
<{^_^}> [nixpkgs] @bennofs opened pull request #121502 → librespot: 0.1.3 -> 0.1.6 → https://github.com/NixOS/nixpkgs/pull/121502
zettabyte has joined #nixos
<{^_^}> [nixpkgs] @daneads opened pull request #121503 → Add daneads to maintainers → https://github.com/NixOS/nixpkgs/pull/121503
<{^_^}> [rfc39-record] @grahamc pushed commit from rfc39 to main « Automated team sync results. »: https://git.io/J34I8
<zettabyte> Hi folks. Is this the right place to ask about nixos installation issues?
<{^_^}> [nixpkgs] @sternenseemann opened pull request #121504 → man-pages-posix: use version format as repology → https://github.com/NixOS/nixpkgs/pull/121504
<zettabyte> I'm on arch linux and bash <(curl -L https://nixos.org/nix/install) gives me the following:
<zettabyte> error: while setting up the build environment: getting attributes of path '/System/Library/Frameworks': No such file or directory
<zettabyte> + echo '/tmp/nix-binary-tarball-unpack.AcfIhYDO6H/unpack/nix-2.3.10-x86_64-linux/install: unable to install Nix into your default profile'
<qyliss> you're in the right place, yes :)
<qyliss> that's not good -- looks like it thinks you're on macOS
<zettabyte> Aaah
<{^_^}> [nixpkgs] @dotlambda merged pull request #121484 → pythonPackages.pynmea2: 1.17.0 -> 1.18.0 → https://github.com/NixOS/nixpkgs/pull/121484
<qyliss> I think there were some macOS-related installer changes made recently; I hope that didn't break it on Linux or something.
<zettabyte> I see, Any suggestions on how to debug? I'm unfortunately completely new to nix so trying to fumble my way around
<qyliss> I'm just trying it myself in a VM
<{^_^}> [nixpkgs] @rnhmjoj pushed 3 commits to release-20.09: https://git.io/J34LX
<{^_^}> [nixpkgs] @fabaff opened pull request #121506 → python3Packages.pywizlight: 0.4.6 -> 0.4.7 → https://github.com/NixOS/nixpkgs/pull/121506
<qyliss> zettabyte: what does uname -s say for you?
<DigitalKiwi> isn't that the normal progression arch -> macos -> nix -> nixos?
<{^_^}> [nixpkgs] @lukegb merged pull request #121502 → librespot: 0.1.3 -> 0.1.6 → https://github.com/NixOS/nixpkgs/pull/121502
<{^_^}> [nixpkgs] @alyssais merged pull request #121504 → man-pages-posix: use version format as repology → https://github.com/NixOS/nixpkgs/pull/121504
x10d_ has joined #nixos
x10d has quit [Ping timeout: 240 seconds]
x10d_ is now known as x10d
<zettabyte> @qyliss, uname -s
<zettabyte> Linux
<qyliss> zettabyte: do you have a GitHub account? Could you open an issue at https://github.com/NixOS/nix?
<qyliss> that's probably the best way to get attention from the right people
<{^_^}> [nixpkgs] @vbgl merged pull request #111641 → ocamlPackages.ppx_deriving_cmdliner: init at 0.5.1 → https://github.com/NixOS/nixpkgs/pull/111641
<qyliss> (fwiw: I just installed Nix in a Debian VM, and didn't see the problem, so something strange is going on)
<zettabyte> qyliss, Sure, will do
<{^_^}> [nixpkgs] @maralorn opened pull request #121507 → CODEOWNERS: Haskell files. Add maralorn, declutter → https://github.com/NixOS/nixpkgs/pull/121507
ddellacosta has joined #nixos
ddellacosta has quit [Ping timeout: 260 seconds]
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
<{^_^}> [nixpkgs] @7c6f434c merged pull request #119383 → geoclue2: Use our own mozilla API key → https://github.com/NixOS/nixpkgs/pull/119383
<{^_^}> [nixpkgs] @7c6f434c closed pull request #111208 → geoclue2: 2.5.6 -> 2.5.7 → https://github.com/NixOS/nixpkgs/pull/111208
ahmed_elgabri has joined #nixos
stree has quit [Ping timeout: 246 seconds]
respawn_ has joined #nixos
<{^_^}> [nixpkgs] @mweinelt merged pull request #121506 → python3Packages.pywizlight: 0.4.6 -> 0.4.7 → https://github.com/NixOS/nixpkgs/pull/121506
<{^_^}> [nixpkgs] @Synthetica9 opened pull request #121508 → github/workflows/editorconfig: add check for nixpkgs-fmt → https://github.com/NixOS/nixpkgs/pull/121508
ahmedelgabri has quit [Ping timeout: 276 seconds]
proofofkeags has joined #nixos
<{^_^}> [nixpkgs] @SuperSandro2000 merged pull request #121353 → cargo-rr: init at 0.1.3 → https://github.com/NixOS/nixpkgs/pull/121353
<{^_^}> [nixpkgs] @SuperSandro2000 merged pull request #110562 → cypress: add updateScript → https://github.com/NixOS/nixpkgs/pull/110562
<{^_^}> [nixpkgs] @loucass003 opened pull request #121509 → update to B3 (official/stable) release → https://github.com/NixOS/nixpkgs/pull/121509
<{^_^}> [nixpkgs] @SuperSandro2000 merged pull request #121495 → pcloud: fix runtime dependencies → https://github.com/NixOS/nixpkgs/pull/121495
<{^_^}> [nixpkgs] @jtojnar merged pull request #121443 → link-grammar: 5.8.1 -> 5.9.1 → https://github.com/NixOS/nixpkgs/pull/121443
orivej has quit [Ping timeout: 240 seconds]
stree has joined #nixos
respawn_ has quit [Quit: Leaving]
Synthetica has joined #nixos
ahmedelgabri has joined #nixos
<{^_^}> [nixpkgs] @mweinelt merged pull request #121503 → Add daneads to maintainers → https://github.com/NixOS/nixpkgs/pull/121503
<{^_^}> [nixpkgs] @maralorn merged pull request #121507 → CODEOWNERS: Haskell files. Add maralorn, declutter → https://github.com/NixOS/nixpkgs/pull/121507
<{^_^}> [nixpkgs] @xworld21 opened pull request #121511 → texlive: add new tlpdb parser (proof of concept) → https://github.com/NixOS/nixpkgs/pull/121511
ahmed_elgabri has quit [Ping timeout: 260 seconds]
ddellacosta has joined #nixos
zakame has quit [Ping timeout: 252 seconds]
MysteriousSilver has joined #nixos
<MysteriousSilver> Hi! How do I install ELPA packages for Emacs in Nix? Using emacsGcc
<qyliss> MysteriousSilver: (emacsPackagesFor gccEmacs).emacsWithPackages
zakame has joined #nixos
<qyliss> also (I saw your config earlier, after you'd disconnected), if you're using services.emacs.package, put your emacsWithPackages there instead of in environment.systemPackages
ddellacosta has quit [Ping timeout: 240 seconds]
<MysteriousSilver> ah okay, will try and report
cole-h has joined #nixos
<MysteriousSilver> `The option `services.emacs.emacsWithPackages' defined in `/etc/nixos/configuration.nix' does not exist.`
<MysteriousSilver> what should be the option called/
phalrax has quit [Quit: Connection closed]
avaq has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @SuperSandro2000 merged pull request #121273 → timeular: 3.4.1 -> 3.9.1 → https://github.com/NixOS/nixpkgs/pull/121273
<{^_^}> [nixpkgs] @SuperSandro2000 merged pull request #121271 → libfaketime: add meta.mainProgram → https://github.com/NixOS/nixpkgs/pull/121271
<{^_^}> [nixpkgs] @SuperSandro2000 merged pull request #121291 → krapslog: 0.1.2 -> 0.1.3 → https://github.com/NixOS/nixpkgs/pull/121291
<{^_^}> [nixpkgs] @SuperSandro2000 merged pull request #121360 → krankerl: 0.13.0 -> 0.13.1 → https://github.com/NixOS/nixpkgs/pull/121360
domogled has quit [Quit: domogled]
<{^_^}> [nixpkgs] @rnhmjoj opened pull request #121512 → searx: set settings.yml permissions using umask → https://github.com/NixOS/nixpkgs/pull/121512
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/219cbedb694 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
avaq has joined #nixos
beanbl has quit [Ping timeout: 260 seconds]
beanbl has joined #nixos
<{^_^}> [nixpkgs] @mweinelt merged pull request #121392 → mopidy-podcast: init at 3.0.0 → https://github.com/NixOS/nixpkgs/pull/121392
<Ke> url above is 404
<Ke> the channel history one
<Ke> seems to be missing /history appended
<{^_^}> [nixpkgs] @radhus opened pull request #121513 → xen: 4.10 -> 4.15 → https://github.com/NixOS/nixpkgs/pull/121513
<{^_^}> [nixpkgs] @radhus opened pull request #121514 → grub: build PVH variant of Grub2 for Xen → https://github.com/NixOS/nixpkgs/pull/121514
xO1 has joined #nixos
<{^_^}> [nixpkgs] @siraben opened pull request #121515 → top-level/coq-packages: remove dontDistribute → https://github.com/NixOS/nixpkgs/pull/121515
jgt has joined #nixos
<beanbl> Hey guys I notice very frequently when I rebuild my system, that files are not on static sources where they need to be. Usually this gets fixed within a week but it can be kind of disheartening to comment out packages while it gets resolved. Is there any plan for how to deal with this in the future? Tor Browser is on the of the biggest offenders by the way.
<{^_^}> [rfc39-record] @grahamc pushed commit from rfc39 to main « Automated team sync results. »: https://git.io/J3482
<thblt> beanbl: static source = binary caches?
<beanbl> (Regardless of what they say by the way, I would rather have last week's Tor Browser than no Tor Browser at all)
<beanbl> thblt: No it seems to be a thing where code/binaries are fetched from external https sites.
<{^_^}> #114643 (by tobiasBora, 9 weeks ago, open): Tor-browser: 404 error when downloading the source
<beanbl> There are others that have this sort of problem sometimes; I wonder if something like IPFS would be a good solution for the .tar.gzs, so at least it can be pulled and builds completed.
ddellacosta has joined #nixos
MysteriousSilver has quit [Remote host closed the connection]
puffnfresh1 has quit [Ping timeout: 246 seconds]
sciamp has joined #nixos
<{^_^}> [nixpkgs] @Mindavi closed pull request #121490 → TEST: reformat all nix files with nixpkgs-fmt → https://github.com/NixOS/nixpkgs/pull/121490
<{^_^}> [nixpkgs] @Mindavi reopened pull request #121490 → TEST: reformat all nix files with nixpkgs-fmt → https://github.com/NixOS/nixpkgs/pull/121490
xkapastel has joined #nixos
<bennofs> beanbl: judging from the comments on the issue, it looks to me like this is not a technically issue but rather a policy issue. Do we want to pull tor browser binaries from non-upstream sources? (the issue cites trust requirements as the reason for the fact that hydraPlatforms is set to none)
<bennofs> beanbl: if the package was built by hydra, I think it would already cache the source
<thblt> That's what's a bit strange though, why does NixOS rely on upstream binaries for that package?
ddellacosta has quit [Ping timeout: 252 seconds]
<bennofs> no idea
<bennofs> perhaps so that you don't have to trust hydra for your tor browser?
<qyliss> it's better to have to upgrade than to be using an out of date tor browser
<qyliss> same reason the tor project doesn't provide downloads of old releases
<{^_^}> [nixpkgs] @Atemu opened pull request #121516 → kernel: clarify license → https://github.com/NixOS/nixpkgs/pull/121516
<beanbl> Yeah what qyliss says is right. But we also have this problem for e.g. jdk. Just tried to build the "processing" package and "Unfortunately, we cannot download file jdk-8u271-linux-x64.tar.gz automatically." but if it were cached in IPFS...
bdju has quit [Ping timeout: 240 seconds]
<bennofs> beanbl: that sounds like a different problem. I think you're getting that error message because the package is using sources whose license forbids redistribution
<bennofs> so we cannot legally cache them
<beanbl> I see, is that the problem.
<beanbl> Really, forbids redistrubution?
<{^_^}> [nixpkgs] @jess-sch opened pull request #121517 → nixos/nftables: Allow use with iptables → https://github.com/NixOS/nixpkgs/pull/121517
sciamp has quit [Quit: Konversation terminated!]
<qyliss> (I think that's the right license but am not entirely sure)
bdju has joined #nixos
<{^_^}> [nixpkgs] @zimbatm merged pull request #121448 → piston-cli: 1.2.2 -> 1.3.0 → https://github.com/NixOS/nixpkgs/pull/121448
<beanbl> So with something like ipfs fetching support in derivations, it wouldn't be on you if they were cached would it?
<beanbl> It would make the user experience significantly better.
<qyliss> bennofs: oh yes I think you're right
<beanbl> e.g. cached by a third party, referenced by ipfs hash in a derivation.
<{^_^}> [nixpkgs] @SCOTT-HAMILTON closed pull request #121419 → neovimUtils: pynvim is disabled with python < 3.4 → https://github.com/NixOS/nixpkgs/pull/121419
<qyliss> beanbl: that depends on the license
<bennofs> providing mechanisms with the intent of circumventing the license still seems like a questionable idea for nixpkgs to me
ahmed_elgabri has joined #nixos
<qyliss> yeah
<beanbl> What I mean is, if e.g. jdk-8u271-linux-x64.tar.gz were already available on IPFS and nixpkgs simply referenced it, nix is not redistributing.
<qyliss> correct
<qyliss> anybody downloading it might be violating Oracle's copyright, though
<qyliss> doing that automatically doesn't sound very smart
<beanbl> Is this one of those things that is best served as an apology later if anyone really cares?
<beanbl> Like I said, it would improve the user experience so significantly.
<qyliss> only for a very small number of proprietary programs
<bennofs> best way to avoid it is to use openjdk
<lukegb> ^
<qyliss> bennofs++
<{^_^}> bennofs's karma got increased to 6, that's Numberwang!
<beanbl> Yeah
beertoagunfight has joined #nixos
<lukegb> open alternatives (or, failing that, licenses that permit redistribution) are the answer here, unfortunately
ahmedelgabri has quit [Ping timeout: 248 seconds]
<DigitalKiwi> hack the planet
<ar> doesn't the 89d67… part of the url change?
<lukegb> don't they check that you have the oraclelicense cookie
<DigitalKiwi> yes
<bennofs> I guess that'd be okay provided that we somehow make the user accept the license first?
<DigitalKiwi> i think there's an environment option you can set instead of doing what i did there that i found after doing that
<qyliss> bennofs: complicated
<DigitalKiwi> settings.oracle.acceptLicense = true;
<{^_^}> Channel nixos-20.09-small advanced to https://github.com/NixOS/nixpkgs/commit/c34127be2ab (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-20.09-small)
* DigitalKiwi wonder if i can make it an overlay
<{^_^}> [nixpkgs] @Atemu opened pull request #121518 → kernel/generic: add kernelTests automatically → https://github.com/NixOS/nixpkgs/pull/121518
<DigitalKiwi> 14:37 bennofs: best way to avoid it is to use openjdk
<DigitalKiwi> ib-tws = callPackage ../applications/office/ib/tws { jdk=zulu8; };
<DigitalKiwi> that might work for some things
<{^_^}> [nixpkgs] @alyssais merged pull request #121516 → kernel: clarify license → https://github.com/NixOS/nixpkgs/pull/121516
<beanbl> I like your spirit DigitalKiwi :)
lom has joined #nixos
lom has quit [Client Quit]
abathur has joined #nixos
<beanbl> Are there any Windows apps with a dependency on wine in nixpkgs? Has anyone tried to do that?
<beanbl> And if the app were appropriately licensed would a clean pull request be accepted for a wine-wrapped app?
ddellacosta has joined #nixos
<beanbl> wine-wrapped derivative
<{^_^}> [nixpkgs] @lukegb pushed to lukegb-tela-icon-theme « tela-icon-theme: format slightly differently »: https://git.io/J3420
<{^_^}> [nixpkgs] @lukegb opened pull request #121519 → tela-icon-theme: format slightly differently → https://github.com/NixOS/nixpkgs/pull/121519
<lukegb> oops, wrong repo
lom has joined #nixos
<DigitalKiwi> beanbl: yes
<DigitalKiwi> beanbl: to the wine wrapped one i mean
<lom> Are snapshots of btrfs subvolumes via snapper enabled by default?
ddellacosta has quit [Ping timeout: 240 seconds]
<lom> but if you look at snapshotInterval, it's set to 1h
<DigitalKiwi> lol yeah
<lom> the reason i'm asking is.. because i want automatic snapshots, and it looks like they're enabled by default, but none are taken
<DigitalKiwi> probably need to set the config to tell it what to snapshot hourly
<DigitalKiwi> ?
<lom> I don't really see a option for that...
<lom> and when i check the snapper log, it does get invoked every hour and then it even finds the config
<lom> but then it just ... does nothing
<lom> i set that
<beanbl> DigitalKiwi: Know any off-hand that are wine-wrapped so I can take a look?
orivej has joined #nixos
<DigitalKiwi> kiwi@mvp-nixos nixpkgs [master]$ finddefault airwave
<DigitalKiwi> ./pkgs/applications/audio/airwave/default.nix
<DigitalKiwi> kiwi@mvp-nixos nixpkgs [master]$ finddefault yabridge
<DigitalKiwi> ./pkgs/tools/audio/yabridge/default.nix
exondation has joined #nixos
<DigitalKiwi> lom: have you considered zfs
<beanbl> Thank you!
<DigitalKiwi> https://dpaste.com/42P288CYT seems to be working
<DigitalKiwi> beanbl: idk if they are good examples or not i just found them with a quick grep and spot check
<lom> very helpful DigitalKiwmi
beertoagunfight has quit [Ping timeout: 245 seconds]
<DigitalKiwi> lom: ;p there are two times to start caring about your data; before and after btrfs loses it lol
zupo has joined #nixos
<beanbl> Have you guys really had such issues with btrfs? I've been using it for years, very reliably.
<lom> I had issues with it on arch
<lom> but ever since i split everything into smaller subvolumes
<lom> it's been running great
<lom> except for that one time, where a 700 word file was suddenly empty the next day ;-; the exact reason why i want automatic snapshots
<DigitalKiwi> i've never had issues with it by virtue of never using it
<lom> i checked the snapper logs, it gets invoked every hour - just no snapshot is taken
<lom> i said that further up
zupo has quit [Client Quit]
<DigitalKiwi> did they say anything else
<DigitalKiwi> or better yet !logs ;p
puffnfresh1 has joined #nixos
<lom> it says something about loading all configs/subvolumes then it's listening for method call
<lom> calls* and a minute later it exits
aaabbbbbbbbbb has quit [Quit: Leaving]
ddellacosta has joined #nixos
meh` has quit [Ping timeout: 268 seconds]
stree has quit [Ping timeout: 260 seconds]
ahmed_elgabri has quit [Ping timeout: 245 seconds]
meh` has joined #nixos
ddellacosta has quit [Ping timeout: 260 seconds]
<{^_^}> Channel nixpkgs-20.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/c34127be2ab (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-20.09-darwin)
<{^_^}> [nixpkgs] @loucass003 closed pull request #121509 → update Looking Glass to B3 (official/stable) release → https://github.com/NixOS/nixpkgs/pull/121509
ahmed_elgabri has joined #nixos
attila_lendvai has joined #nixos
attila_lendvai has joined #nixos
Athas has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @fortuneteller2k opened pull request #121521 → xcolor: init at unstable-2021-02-02 → https://github.com/NixOS/nixpkgs/pull/121521
<{^_^}> [nixpkgs] @bjornfor merged pull request #121474 → zoom-us: fix overriding source → https://github.com/NixOS/nixpkgs/pull/121474
stree has joined #nixos
exondation has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @bjornfor pushed to release-20.09 « zoom-us: fix overriding source »: https://git.io/J34yW
ddellacosta has joined #nixos
gustavderdrache has joined #nixos
endformationage has joined #nixos
zebrag has joined #nixos
ddellacosta has quit [Ping timeout: 240 seconds]
ddellacosta has joined #nixos
wnklmnn has joined #nixos
xelxebar has quit [Ping timeout: 240 seconds]
xelxebar_ has joined #nixos
jgt has quit [Ping timeout: 240 seconds]
bitmapper has joined #nixos
justanotheruser has joined #nixos
<{^_^}> [nixpkgs] @futile opened pull request #121522 → python-language-server: 2020-06-19 -> 2020-10-08 → https://github.com/NixOS/nixpkgs/pull/121522
<{^_^}> [nixpkgs] @lukegb merged pull request #121519 → tela-icon-theme: format slightly differently → https://github.com/NixOS/nixpkgs/pull/121519
<{^_^}> [nixpkgs] @samuelgrf opened pull request #121523 → quickbms: init at 0.11.0 → https://github.com/NixOS/nixpkgs/pull/121523
<{^_^}> [nixpkgs] @Mdsp9070 opened pull request #121524 → earthly: init at 0.5.11 → https://github.com/NixOS/nixpkgs/pull/121524
<{^_^}> [nixpkgs] @primeos merged pull request #121423 → libglvnd: 1.3.2 -> 1.3.3 → https://github.com/NixOS/nixpkgs/pull/121423
<{^_^}> [nixpkgs] @primeos merged pull request #121499 → libxkbcommon: 1.2.1 -> 1.3.0 → https://github.com/NixOS/nixpkgs/pull/121499
jgt has joined #nixos
<ploupiboulba[m]> I've entered `assert true -> throw "Python2 support has been removed from neovim, please remove withPython and extraPythonPackages.";` in the REPL but I can't seem to execute it: Enter or shift+enter just adds newlines without a prompt
NieDzejkob has joined #nixos
jonringer has joined #nixos
ddellacosta has quit [Ping timeout: 240 seconds]
<pennae> ploupiboulba[m]: there's an expression missing after the semicolon that the assert is meant to protect
<pennae> > assert true -> false; "won't be evaluated"
<{^_^}> assertion (true -> false) failed at (string):494:1
<Frosku> I've installed openssl but when I try to compile Net::SSLeay (perl module) it says it can't find openssl
<Frosku> Any ideas?
<Frosku> *** Could not find OpenSSL
<Frosku> If it's already installed, please set the OPENSSL_PREFIX environment
<Frosku> variable accordingly. If it isn't installed yet, get the latest version
<qyliss> Frosku: don't install libraries globally
<qyliss> use a nix-shell
jgt has quit [Ping timeout: 246 seconds]
<Frosku> qyliss: I tried that, got the same error
<ploupiboulba[m]> pennae: k thanks
<Frosku> https://pastebin.com/yDQdw15i Does that look right qyliss?
<qyliss> Frosku: same error if you remove the .dev?
<qyliss> also try adding pkg-config
<Frosku> Yeah same without .dev
<qyliss> pkg-config is the better of my two ideas
<Frosku> Yeah, same again :/
<qyliss> Tried setting OPENSSL_PREFIX in your shell.nix?
<qyliss> OPENSSL_PREFIX = "${openssl.dev}"
<Frosku> Same issue still (confirmed it sets though)
<qyliss> hmm, that's very strange
<Frosku> Trying without .dev and it seems to get further
<Frosku> Still fails, some symbol isn't defined
<{^_^}> [nixpkgs] @primeos opened pull request #121525 → glances: 3.1.6.2 -> 3.1.7 → https://github.com/NixOS/nixpkgs/pull/121525
jonringer has quit [Remote host closed the connection]
ddellacosta has joined #nixos
ddellacosta has quit [Ping timeout: 246 seconds]
ahmed_elgabri has quit [Ping timeout: 276 seconds]
cfricke has joined #nixos
jgt has joined #nixos
arjen-jonathan has quit [Ping timeout: 250 seconds]
cfricke has quit [Ping timeout: 260 seconds]
lom has quit [Quit: WeeChat 3.1]
<{^_^}> [nix-idea] @JojOatXGME merged pull request #27 → Rewrite parser and add support for Nix 2.3 → https://github.com/NixOS/nix-idea/pull/27
philr has quit [Ping timeout: 252 seconds]
noudle has joined #nixos
jgt has quit [Ping timeout: 265 seconds]
cfricke has joined #nixos
avaq has quit [Ping timeout: 252 seconds]
cub3s_ has joined #nixos
<cub3s_> If I upload package to Haskell, how long roughly until I can see it on "haskell-updates" branch of nixpkgs?
kaivai has joined #nixos
<cub3s_> s/to Haskell/to Hackage
gustavderdrache has quit [Quit: Leaving.]
noudle has quit []
ddellacosta has joined #nixos
ahmed_elgabri has joined #nixos
stree has quit [Ping timeout: 260 seconds]
<Frosku> How does a symlinkJoin work?
<Frosku> I think if I can somehow join these openssl packages I'll get what I need
<clever> Frosku: buildenv is simpler, builtenv { name = "name"; paths = [ openssl.out openssl.dev ]; }
<clever> buildenv*
ddellacosta has quit [Ping timeout: 268 seconds]
<maralorn> <cub3s_ "If I upload package to Haskell, "> We are currently in a transition of the process so it’s not so easy to tell. The maximum right now is 2 weeks. Probably within a week. Likely sooner.
ahmed_elgabri has quit [Ping timeout: 250 seconds]
<Frosku> clever: Thanks, can I use "name" to assign to the env variable in shell.nix?
<{^_^}> [nixpkgs] @marsam merged pull request #121466 → lxc: 4.0.7 -> 4.0.8 → https://github.com/NixOS/nixpkgs/pull/121466
lordcirth has joined #nixos
<clever> Frosku: that expr will return a path for the output, so you can then put that expr somewhere useful
<cub3s_> maralorn, okay thanks for the info
<cub3s_> maralorn, what kind of process?
<cub3s_> s/process/transition
<Frosku> Sorry, very new to this, where do I put this in my shell file?
<Frosku> shell.nix file
<{^_^}> #121140 (by cdepillabout, 3 days ago, open): haskell infrastructure: moving forward without peti
<{^_^}> [nixpkgs] @AndersonTorres merged pull request #121405 → Revert "river: refactor" → https://github.com/NixOS/nixpkgs/pull/121405
lordcirth_ has quit [Ping timeout: 240 seconds]
<clever> Frosku: OPENSSL_PREFIX = buildenv { ... }; is one way
<{^_^}> [nixpkgs] @AndersonTorres merged pull request #121424 → ophis: fix build → https://github.com/NixOS/nixpkgs/pull/121424
<Frosku> undefined variable: buildenv
<clever> ah, its buildEnv
<cub3s_> maralorn, nice, thank you
noudle has joined #nixos
<Frosku> omfg clever you're a genius :D
<Frosku> Name checks out :D
stree has joined #nixos
ahmed_elgabri has joined #nixos
<eyJhb> clever is often the saviour of confusion
jgt has joined #nixos
ahmed_elgabri has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @andir merged pull request #121461 → gopass: 1.12.5 -> 1.12.6 → https://github.com/NixOS/nixpkgs/pull/121461
<yurb> If I'd like to run a command such that it can find and dynamically load a `*.so` library (gstreamer), what would be a nix(os)'y way of doing that?
<eyJhb> Frosku: Did you ever find out the fish/sudo stuff?
<Frosku> eyJhb: Yeah my PATH was being reordered in my config
<{^_^}> [nixpkgs] @veprbl opened pull request #121527 → cc-wrapper: fix regression for the C compiler wrapper → https://github.com/NixOS/nixpkgs/pull/121527
rajivr has quit [Quit: Connection closed for inactivity]
jgt has quit [Ping timeout: 252 seconds]
cfricke has quit [Ping timeout: 260 seconds]
lordcirth has quit [Ping timeout: 250 seconds]
lordcirth_ has joined #nixos
ddellacosta has joined #nixos
<{^_^}> [nixpkgs] @symphorien opened pull request #121528 → libsepol: fix static build → https://github.com/NixOS/nixpkgs/pull/121528
ddellacosta has quit [Ping timeout: 246 seconds]
johnw has joined #nixos
zupo_ has joined #nixos
<pie_> every damn time :P <Frosku> Name checks out :D
ahmed_elgabri has joined #nixos
<eyJhb> Is there any nice way to share vars across configs? I am guessing not besides creating a file to store them in, and then importing that file in each file that needs them.
ahmed_elgabri has quit [Ping timeout: 250 seconds]
<infinisil> eyJhb: NixOS options?
proofofkeags has quit [Ping timeout: 260 seconds]
ddellacosta has joined #nixos
jgt has joined #nixos
ddellac__ has joined #nixos
<{^_^}> Channel nixpkgs-20.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/dc326c78a93 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-20.09-darwin)
<a12l> How important is it to to add a dependency in the correct `*BuildInput` list? I'm trying to read section 6.3 in the Nixpkgs manual, and I'm a bit lost. https://nixos.org/manual/nixpkgs/stable/#ssec-stdenv-dependencies
<a12l> Currently my main priority is to have my derivation build and being usable.
<AmandaC> Is there a nixpkgs lib function to exclude some attrs from a recursive copy? I need to avoid including `inputs.self.images` from `inputs.self` when I'm building my `inputs.self.nixosConfigurations` values...
<AmandaC> Got a loop as a result of that. Actually, why do I even include the inputs...
<eyJhb> infinisil: It is for ... HMMMM
<eyJhb> I might be able to do that actually.
ddellac__ has quit [Ping timeout: 268 seconds]
<pie_> eyJhb: i keep having the same doh moment
<eyJhb> pie_: Are we the same person?
waleee-cl has joined #nixos
<eyJhb> What are you doing ? :p
<pie_> eyJhb: for the Nth time,
<pie_> yes
<pie_> well i monorepo my configs that share stuff (err, well lets just say that.) so its more a manner of how i make the system demux the configs
<eyJhb> infinisil: Wireguard does not have a name attribute, for the interface? I think.. except the attribute key
<eyJhb> pie_: You use Nixus as well, right?
<pie_> eyJhb: not yet no
<pie_> eyJhb: this is the latest clusterf* im experimenting with https://github.com/deliciouslytyped/nixos-surface-netboot2
<pie_> eyJhb: it reads impure/system to figure out which config to load
<pie_> the activation script creates that file
cub3s_ has quit [Quit: Leaving]
ddellaco_ has joined #nixos
<pie_> eyJhb: it gets set with impure.nix being called with the appropriate system arg and the activation script being run https://github.com/deliciouslytyped/nixos-surface-netboot2/blob/d0ce8083a57895f3b312c3b1e17368a12f2ded20/configurations/impure.nix#L33
<pie_> dunno if this is maybe not the best way to do this
<infinisil> eyJhb: You can just use the attribute name directly
<{^_^}> Channel nixos-20.09-small advanced to https://github.com/NixOS/nixpkgs/commit/dc326c78a93 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-20.09-small)
<lukegb> a12l: in general: build tools (like cmake) go in nativeBuildInputs, build-time deps go in buildInputs, propagatedBuildInputs is used for things like python packages where you have a runtime dependency on them as well (but... not necessarily for cases where you depend on _executables_ from those packages at runtime)
<eyJhb> infinisil: The name of the attribute is the name of the interface, and I reference that like 10+ times :p
* infinisil is missing context
<eyJhb> infinisil: https://termbin.com/vayh
<infinisil> Oh
<infinisil> But yeah it doesn't have a name option
<infinisil> Just the attribut key
<eyJhb> Not sure that explains it. But I need the interface name, and the netns name, which I can get easily, if I have the name
<eyJhb> No, but it should! :(
ddellaco_ has quit [Ping timeout: 265 seconds]
<eyJhb> Very annoyed...
<infinisil> I'm confused
<eyJhb> pie_: that looks... Like hell
<infinisil> What's wrong with using the attribute name?
<pie_> eyJhb: haha why
<a12l> lukegb: Thanks for the easy explanation!
ddellac__ has joined #nixos
<pie_> eyJhb: i kind of accidentally into this, havent looked at nixus or nixops yet
<eyJhb> infinisil: I guesss I could. What annoys me is, that I cannot name the attribute key something like "thisismywireguardupstreamtunnel", and then specify the interface name. Then I would have something "static" that will always be the same, even if I change the interface name.
<eyJhb> Well, it might be good practice pie_ :p
civodul has joined #nixos
<pie_> eyJhb: i mean, i should probably look for better stuff if they exist
<eyJhb> I.. I like nixus quite much
<eyJhb> I usually complain quite a lot (look above), but Nixus haven't really given me any complains. Seeing as anything I want, I can do, if I take the time to do some nix.
squirclespace has joined #nixos
ddellac__ has quit [Ping timeout: 268 seconds]
<pie_> cool
<eyJhb> So then I can only complain about myself being lazy.
<pie_> pure(ish) nix is good
<pie_> dont leave the language paradigm
<infinisil> eyJhb: Ah I see yeah
<eyJhb> also, infinisil I added two options to the Minecraft module. Ability to add plugins + manage OPs declarative. Not sure it is something for you :D
<infinisil> eyJhb: plugins? datapacks?
<eyJhb> e.g. if you use papermc, then adding plugins to plugins/
<eyJhb> So none-vanilla :)
<infinisil> Ah I see, so extension to the NixOS minecraftmodule
<eyJhb> Yeah :)
<squirclespace> Hey folks!  I'm wondering how Nix bootstraps the compiler.  Like, if I change the NIX_CFLAGS_COMPILE to have -march=something, I see it re-building clang.  But, what compiler is it using to build clang with?
<eyJhb> However, it is not that fun, since I haven't setup the do-image-updater module you have. So I have to manually build + upload the image each time I want to change something :p
ddellaco_ has joined #nixos
<squirclespace> Surely there's a difference between compiling clang with a compiler that has my overridden NIX_CFLAGS_COMPILER vs one that doesn't
ddellacosta has quit [Ping timeout: 240 seconds]
ddellacosta has joined #nixos
ddellaco_ has quit [Ping timeout: 240 seconds]
<squirclespace> https://github.com/NixOS/nixpkgs/blob/50a11f4f4301b9b4cb1f3041fca4f2e71a73d4a5/pkgs/stdenv/linux/default.nix is this how Nix solves the problem?  It compiles the gcc/clang with a specific compiler that's independent of the system config?
<{^_^}> [nixpkgs] @mweinelt opened pull request #121529 → python3Packages.csvw: 1.10.1 -> 1.10.2 → https://github.com/NixOS/nixpkgs/pull/121529
ddellaco_ has joined #nixos
AmandaC has joined #nixos
beanbl has quit [Quit: WeeChat 2.9]
arjen-jonathan has joined #nixos
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ddellaco_ has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @symphorien opened pull request #121530 → nixos: add option to load wireless regulatory database as firmware → https://github.com/NixOS/nixpkgs/pull/121530
<lukegb> squirclespace: right, it starts off by downloading some precompiled binaries and using those to bootstrap everything else
<{^_^}> [nixpkgs] @devhell opened pull request #121531 → sheesy-cli: init at 4.0.11 → https://github.com/NixOS/nixpkgs/pull/121531
<{^_^}> [nixpkgs] @numinit opened pull request #121532 → Allow swap size and partition UUIDs to be specified in make-disk-image → https://github.com/NixOS/nixpkgs/pull/121532
<squirclespace> lukegb thank you!  That makes sense
<matthewcroughan> I have a derivation, I want to override one of the dependencies inside of it. How do I do that?
<matthewcroughan> In the dpaste I just posted, you can see I've tried to do that with godot-headless
jonringer has joined #nixos
mkaito has joined #nixos
mkaito has quit [Client Quit]
ahmed_elgabri has joined #nixos
arjen-jonathan has quit [Ping timeout: 245 seconds]
romildo has joined #nixos
mkaito has joined #nixos
zupo has joined #nixos
meh` has quit [Ping timeout: 268 seconds]
squirclespace has quit [Quit: Connection closed]
stree has quit [Ping timeout: 265 seconds]
VideoGameEnjoyer has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @Mindavi opened pull request #121533 → Libnixxml: fix compilation → https://github.com/NixOS/nixpkgs/pull/121533
mkaito has quit [Quit: WeeChat 3.1]
<Luker> uhm... has anyone tried to build rust-cbindgen instead of using the cache? I get a "hash mismatch in fixed-output derivation" and don't really know what to do
<{^_^}> [nixpkgs] @lukegb opened pull request #121534 → tela-icon-theme: more changes to change the hash → https://github.com/NixOS/nixpkgs/pull/121534
riksteri has quit [Quit: riksteri]
<lukegb> matthewcroughan: so you _could_ do that with a let, but if you're trying to get that into nixpkgs then that's probably the wrong approach
<matthewcroughan> lukegb: I'm not trying to get it into nixpkgs
<lukegb> ah, OK
<matthewcroughan> I want this to be completely on its own, in the root of a random repo :D
<lukegb> then something like https://dpaste.com/DQFPFFAR3 might work
<lukegb> if you're putting this in the root of a random repo and you want e.g. just "nix-build ." to work then you'll probably want a small shim to wrap it so that callPackage is invoked on it too, unless you've already got that
stree has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #121529 → python3Packages.csvw: 1.10.1 -> 1.10.2 → https://github.com/NixOS/nixpkgs/pull/121529
<{^_^}> [nixpkgs] @lukegb merged pull request #121534 → tela-icon-theme: more changes to change the hash → https://github.com/NixOS/nixpkgs/pull/121534
sangoma has joined #nixos
<{^_^}> [nixpkgs] @leotaku opened pull request #121535 → texlive: 2020 -> 2021 → https://github.com/NixOS/nixpkgs/pull/121535
orivej has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @Mindavi opened pull request #121536 → rq: fix compilation by applying patch → https://github.com/NixOS/nixpkgs/pull/121536
gustavderdrache has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #99968 → vscode.fhs: add buildFHSUserEnv wrapped version → https://github.com/NixOS/nixpkgs/pull/99968
<{^_^}> [nixpkgs] @benley merged pull request #121440 → kubelogin-oidc: 1.23.0 -> 1.23.1 → https://github.com/NixOS/nixpkgs/pull/121440
pingiun has joined #nixos
<pingiun> if I have an imported nixpkgs (like the pkgs argument in a nixos configuration) how can I turn that into a path so that I can include qemu-guest.nix?
turlando has quit [Ping timeout: 252 seconds]
supercoven has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @teto merged pull request #121339 → neovim, neovimUtils, neovim-qt: drop python2 support → https://github.com/NixOS/nixpkgs/pull/121339
managarmr1 has joined #nixos
<azazel> pingiun: if you can manually import nixpkgs, you can also refer to nixpkgs/nixos/modules/profiles/qemu-guest.nix
noudle has quit []
neiluj has quit [Quit: leaving]
<lukegb> also pkgs has a path attribute
<lukegb> (so e.g. pkgs.path + "/nixos/modules/profiles/qemu-guest.nix" would work, I guess)
fuiltilt has joined #nixos
<{^_^}> [nixpkgs] @Mindavi closed pull request #115737 → python38Packages.aniso8601: 8.1.1 -> 9.0.1 → https://github.com/NixOS/nixpkgs/pull/115737
<pingiun> lukegb: tnx
ddellaco_ has joined #nixos
<{^_^}> [nixpkgs] @Mindavi opened pull request #121537 → graphene: fix build by allowing newer versions of aniso8601 → https://github.com/NixOS/nixpkgs/pull/121537
<pingiun> hmm that creates infinite recursion
ddellacosta has quit [Ping timeout: 240 seconds]
dongcarl has joined #nixos
sangoma has quit [Read error: Connection reset by peer]
<azazel> pingiun: is that "pkgs" reference the one passed in in a nixos configuration module?
<pingiun> is there a problem with importing modules as strings?
<matthewcroughan> lukegb: using flakes, no shim required :p
<matthewcroughan> I also want to perhaps bundle a systemd service. I'm wondering about nixosModules and how to use that.
<matthewcroughan> If I want to have a flake.nix that outputs a service someone else can use if they add it to their system, how can I do that?
<matthewcroughan> In the system that imports the flake that is advertising this systemd service, how do I refer to the service in my config?
<matthewcroughan> inputs.services.<name>.enable = true; ?
orivej has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
zupo has quit [Client Quit]
<ris> y'know that feeling when you don't know quite whether something's your proudest moment or most shameful? well i've just managed to write a jq expression that transforms netplan yaml configs into nixos networking configurations: https://gist.github.com/risicle/4aaad898902c821f535a98901d599615
<ris> currently just handles the stuff i needed it to - vlans and bonding
ormaaj[m] has joined #nixos
<azazel> never used netplan... kudos anyway
zupo has joined #nixos
zupo_ has joined #nixos
zupo_ has quit [Client Quit]
zupo has quit [Ping timeout: 246 seconds]
<ris> neither had i, but i'm trying to nixos-infect some machines that come with slightly involved network configs using netplan
<{^_^}> [nixpkgs] @Mindavi opened pull request #121538 → python3Packages.jq: fix build by updating patch → https://github.com/NixOS/nixpkgs/pull/121538
<veleiro> experimental-features = ca-references ca-derivations
<veleiro> what do these mean in terms of content addressing? i'm not understanding how much of content addressing the store is there
proofofkeags has joined #nixos
<{^_^}> [nixpkgs] @lukegb opened pull request #121539 → nixos/tests/custom-ca: fix by setting Content-Type → https://github.com/NixOS/nixpkgs/pull/121539
<gchristensen> afaik CA builds are *extremely* brand new
<{^_^}> [nixpkgs] @jtojnar pushed 175 commits to gnome-40: https://git.io/J3BF6
<{^_^}> [nixpkgs] @jtojnar pushed 175 commits to gnome-40: https://git.io/J3BF7
<veleiro> gchristensen: yep, i understand
<veleiro> i wonder where i can find more information
__monty__ has quit [Quit: leaving]
<{^_^}> [nixpkgs] @lukegb opened pull request #121540 → nixos/tests/rspamd: fix → https://github.com/NixOS/nixpkgs/pull/121540
ddellac__ has joined #nixos
<gchristensen> ca-derivations probabl ymeans can it make ca derivations, and ca-references probably means can ca-derivations have things depend on it
cody has joined #nixos
Acou_Bass has quit [Ping timeout: 252 seconds]
cody is now known as codygman___
<codygman___> I want to setup my default desktop manager to be xfce, but my default RDP window manager to be exwm. I have that mostly working, but the exwm window manager used by `services.xrdp.defaultWindowManager = "exwm"` doesn't seem to actually use the windowManager.session named "exwm" I've defined. Any ideas? More info here: https://github.com/codygman/tech-roam/blob/master/20210502164843-remmina_exwm_configuration.org
<veleiro> thanks gchristensen
ddellac__ has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @dotlambda merged pull request #121470 → pngquant: 2.12.5 -> 2.14.1 → https://github.com/NixOS/nixpkgs/pull/121470
<{^_^}> [nixpkgs] @lukegb opened pull request #121541 → nixos/tests/gitdaemon: deflake by using systemd-tmpfiles → https://github.com/NixOS/nixpkgs/pull/121541
svrana has joined #nixos
Acou_Bass has joined #nixos
proofofkeags has quit [Ping timeout: 260 seconds]
rj has quit [Ping timeout: 240 seconds]
xO1 has quit [Ping timeout: 252 seconds]
<matthewcroughan> Can anybody tell me what runCommand is in Nix?
<matthewcroughan> I can't find any docs on it.
fendor_ has joined #nixos
fendor has quit [Ping timeout: 252 seconds]
Frosku has joined #nixos
stree has quit [Ping timeout: 265 seconds]
<matthewcroughan> veleiro: google doesn't have these results yet hmm
<matthewcroughan> thanks
<matthewcroughan> oh, it does.. it just goes to here haha
<{^_^}> [nixpkgs] @mweinelt merged pull request #120526 → nixos/home-assistant: harden systemd service → https://github.com/NixOS/nixpkgs/pull/120526
le0taku has joined #nixos
jgt has quit [Ping timeout: 240 seconds]
leotaku has quit [Ping timeout: 240 seconds]
jgt has joined #nixos
<{^_^}> [nixpkgs] @mweinelt merged pull request #120536 → nixos/mosquitto: harden systemd unit and fix deprecation warnings → https://github.com/NixOS/nixpkgs/pull/120536
civodul has quit [Ping timeout: 260 seconds]
jgt has quit [Ping timeout: 240 seconds]
stree has joined #nixos
<{^_^}> [nixpkgs] @dotlambda opened pull request #121542 → authenticator: init at 4.0.3 → https://github.com/NixOS/nixpkgs/pull/121542
romildo has quit [Quit: Leaving]
<codygman___> I had assumed that xrdp would respect X11 settings, but maybe that's not true now that I look at the code.
<{^_^}> [nixpkgs] @petabyteboy opened pull request #121543 → libubox, ubus, uci, netifd: update → https://github.com/NixOS/nixpkgs/pull/121543
<{^_^}> [nixpkgs] @petabyteboy opened pull request #121544 → bpftools: build bpf_asm, bpf_dbg → https://github.com/NixOS/nixpkgs/pull/121544
<{^_^}> [nix-idea] @JojOatXGME pushed to bintray « Update plugins to stop using Bintray »: https://git.io/J3Rfn
<matthewcroughan> can runCommand not be done inside of a derivation?
<matthewcroughan> https://termbin.com/0di5y
<matthewcroughan> This throws the error error: syntax error, unexpected '"', expecting '.' or '=' on line 35
<matthewcroughan> `runCommand "tunnelvr" {} '' somestuff ''` essentially
<matthewcroughan> streaming on the https://nix.zone if anybody wants to help
<ajs124> matthewcroughan: why aren't you using fetchzip for the templates?
<matthewcroughan> ajs124: godot already has them, ignore it for now though, I'm just hacking on this thing
<matthewcroughan> it's not in any way polished
sumner has quit [Quit: The Lounge - https://thelounge.chat]
<matthewcroughan> also, it's not a .zip file, so fetchzip fails because of the extension :)
<ajs124> and runCommand is a derivation. you can assign it to an attribute in another one, like you're trying to do.
<matthewcroughan> it is literally a zip, but their docs say they renamed it for no real reason haha
<{^_^}> [nix-idea] @JojOatXGME opened pull request #29 → Update plugins to stop using Bintray → https://github.com/NixOS/nix-idea/pull/29
<jackdk> matthewcroughan: if you're going to paste massive snippets, would you be able to use a pastebin with line numbers? Anyway, the argument to mkDerivation is an attribute set, and having `runCommand` sitting on its own, and not on the RHS of a `name = ...` sort of thing is a syntax error
sumner has joined #nixos
<ajs124> you can assign the name attribute in that case, I think?
<matthewcroughan> jackdk: will do next time
<jackdk> matthewcroughan: o7 thanks
<ajs124> jackdk: oh, did my brain just autocorrect to assume there is an assignment to an attribute? oops…
<matthewcroughan> RHS?
<jackdk> any chance I can get some eyes on #121449 ? I was pinged on #121293 because they were files I changed recently
<{^_^}> https://github.com/NixOS/nixpkgs/pull/121449 (by endgame, 23 hours ago, open): metadata fetchers: use umask instead of fetch-and-chmod
<{^_^}> https://github.com/NixOS/nixpkgs/issues/121293 (by dotlambda, 2 days ago, open): NixOS modules: chmod leaves opportunity to leak secrets
<jackdk> matthewcroughan: right hand side
<matthewcroughan> Right..
<matthewcroughan> It might help if I explain what I want to do.
<matthewcroughan> I want to make nix produce a pck file. Instead of doing this in a docker container.
zeta_0 has joined #nixos
cr4y1 has quit [Ping timeout: 252 seconds]
<matthewcroughan> But what I'm making does not require any of nix's phases, all it needs is to run a command. So should I not be using mkDerivation?
<jackdk> I think: if you are writing a small thing for yourself, or to wire into some larger build process, I would use runCommand and be done with it. If you are writing something that needs to be wired into a nixpkgs-style repo or overlay or something, then I'd think harder about using mkDerivation
<matthewcroughan> But that can then not be a package right?
<matthewcroughan> Or can I have that as an output to my flake?
<matthewcroughan> My desire is that the result be this pck file.
<ajs124> matthewcroughan: runcommand is a wrapper around stdenv.mkDerivation
<matthewcroughan> Above all, I need to be able to build it like `nix build .#tunnelvr` and have the result be a symlink to `tunnelvr.pck` which was produced by Nix.
<jackdk> you didn't mention that you wanted a package, and I know epsilon about flakes
<tpw_rules> you can just set the builder attribute to a shell script which does everything. then you don't have to futz with the phases
<ajs124> https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/trivial-builders.nix#L30 if you want to read the source. idk if that's helpful.
<matthewcroughan> So isntead of mkDerivation, I need to replace that with runCommand?
<marnov> Hello, do i have to use stable, or unstable in production ?
<matthewcroughan> And if I don't need compilers, or anything from the stdenv, I do `runCommandNoCC` ?
<{^_^}> [nix-idea] @JojOatXGME merged pull request #29 → Update plugins to stop using Bintray → https://github.com/NixOS/nix-idea/pull/29
attila_lendvai_ has joined #nixos
attila_lendvai has quit [Read error: Connection reset by peer]
<gustavderdrache> matthewcroughan: to clarify: in the sense you're thinking of, everything that can be built with nix is a package since it winds up in the nix store and can be referenced by other derivations as inputs
<gustavderdrache> so whether you use mkDerivation or a wrapper, the end result is the same in the system's eyes
<matthewcroughan> gustavderdrache: Yes, but what determines whether it's able to be built like I asked?
<matthewcroughan> composed like I asked.
<matthewcroughan> `nix build .#thing`
<matthewcroughan> called with pkgs.callPackage
<gustavderdrache> so you're not going to like this, but the answer is: that part doesn't matter
<matthewcroughan> Nobody seems to agree or know what a package is.
<zeta_0> hello there, I installed nix in ubuntu in windows subsystem for linux, using vscode's remote-wsl and nix-environment-selector extensions, I was able to build an isolated nix environment in vscode will all of the needed java dependencies, anyways in the root folder of the workspace, I made a java file and did a simple java test program that prints out "java code", but it seems like vscode is not recognizing the java
<zeta_0> tooling installed in the nix-shell environment, and when I opened up the terminal, the corresponding java/javac commands are not in scope? any tips on what's wrong and how to fix this issue?
<gustavderdrache> matthewcroughan: yeah, that's because "package" in the traditional sense isn't really applicable to nix
<matthewcroughan> well, what is callPackage expecting as a return?
<matthewcroughan> An attribute set? What's the type.
<zeta_0> thanks in advance for the help!
<gustavderdrache> i'm not sure it actually cares... i think it only arranges for inputs from nixpkgs
<matthewcroughan> if I change `tunnelvr.nix` from `outputs.packages.x86_64-linux.tunnelvr` to be a runCommandNoCC, will I be able to build it all the same?
<gustavderdrache> yeah
<matthewcroughan> from mkDerivation
<ajs124> marnov: do you want your production environment to be stable or unstable?
<matthewcroughan> all it caresa bout is that something ends up in $out?
<matthewcroughan> Is that the definition of a package? Something that ends up executable in $out?
<gustavderdrache> it doesn't have to be executable
<marnov> asj yeah, stable
<marnov> ajs124: yeah, stable
<marnov> but not every distro "unstable" means unstable
<tpw_rules> nix unstable is pretty unstable...
<marnov> like arch - it is rolling relaease, and it is stable :-)
<marnov> tpw_rules: ok thx
<marnov> thats what i need to hear
<ajs124> marnov: We have two releases a year, unstable is not very stable. I personally probably wouldn't run it in production.
<tpw_rules> but on the other hand, if you can catch it at a point you like you can pin that
<matthewcroughan> gustavderdrache: can you give me a definition that is concrete?
<tpw_rules> matthewcroughan: callpackage doesn't care at all what type it is
<tpw_rules> all the nix language can do is make derivations
<marnov> tpw_rules: yeah, i know, thtat there is something like pinning :=-) but i am just starting with it ...
<{^_^}> #36354 (by nh2, 3 years ago, open): Document what callPackage does and its preconditions
<gustavderdrache> matthewcroughan: no, because thinking in packages is kind of an anti-pattern in nix
<matthewcroughan> Still an open issue, it's vague.
<matthewcroughan> Unless you can describe to me exactly what callPackage does :P
<matthewcroughan> It's a function. It takes arguments. It should be able to be described with English.
<matthewcroughan> I'm not thinking in packages right now. My mind is open. I just want to know how the function works in English.
<matthewcroughan> The nix pill is very technical, it has no abstract overview of what it is, I've only ever thought of it as magic.[
m0rphism has quit [Ping timeout: 260 seconds]
<matthewcroughan> At some point in the next year, I'll read that Nix pill, fully understand it, and have forbidden knowledge. But for now, it's just magic to me, and every time I ask about it, I actually get a different answer from people in Nix.
<{^_^}> [nix] @Ma27 opened pull request #4763 → Bump version number for `DerivedPath` changes → https://github.com/NixOS/nix/pull/4763
<gustavderdrache> > lib.functionArgs ({ x, y }: null)
<{^_^}> { x = false; y = false; }
<tpw_rules> because you ask different questions
<tpw_rules> callpackage automatically fills in the arguments to a function with attributes from an attribute set
<matthewcroughan> callPackage doesn't have a __functionArgs
<matthewcroughan> I tried to autocomplete that in the repl to see what arguments it takes, but didn't get anywhere.
<tpw_rules> matthewcroughan: all nix makes is derivations. that's the only way to do things in nix
<matthewcroughan> Well that's reassuring, like finding out that the only place it writes to is the /nix/store.
<ajs124> > builtins.functionArgs callPackage
<{^_^}> { }
<matthewcroughan> So when something is not a derivation, what is it?
jgt has joined #nixos
<tpw_rules> any other type?
<matthewcroughan> You can end up in situations where you're executing functions that expect to be passed derivations. What are these things that aren't derivations?
<matthewcroughan> Okay, so what is "making"?
<tpw_rules> you're asking non sequitor questions. that's why you get random answers
<matthewcroughan> Okay.
<tpw_rules> in order to get nix to do something, like make a pack file or whatever, you HAVE to give it a derivation. there is no other mechanism
<matthewcroughan> If you can't answer, then I've probably asked a dumb question, I'll keep that in mind in future.
<matthewcroughan> What is "it"?
<matthewcroughan> You say "give it" a derivation. What is 'it'?
<tejing> nix
<tpw_rules> i guess you could say refer to as an attribute passed to a nix command
<matthewcroughan> But when I'm in the repl, there is no Nix command. What is it?
<matthewcroughan> What is this great 'it'?
<tpw_rules> what is the repl?
<matthewcroughan> functions that take derivations, you mean?
<ajs124> tpw_rules: nix repl
jgt_ has joined #nixos
<tpw_rules> then something you give to :b or :i
<tpw_rules> or :s or :u
jgt has quit [Ping timeout: 240 seconds]
<matthewcroughan> runCommandNoCC doesn't have things like `pname` right?
<matthewcroughan> Oh wait, no it does, because it's a wrapper around mkDerivation right?
<matthewcroughan> So it inherits all that stuff?
<tpw_rules> okay so this is simplified but it's true. and it's not an answer to your question but a path to the enlightenment that enables you to find the solution
<ajs124> matthewcroughan: maybe you want to take a look at the implementation: https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/trivial-builders.nix#L61
<tpw_rules> there are two nixes. nix the language and nix the thing that does stuff with /nix/store. nix the language has ONE command to generate a derivation object: https://nixos.org/manual/nix/stable/#ssec-derivation which then gets written to a .drv file. nix the rest reads those files and runs bash and updates the store database and whatever.
supersandro2000 has quit [Killed (verne.freenode.net (Nickname regained by services))]
mbrgm_ has joined #nixos
supersandro2000 has joined #nixos
<matthewcroughan> So, I can't use runCommand inside of mkDerivation.
<matthewcroughan> But all I want to do is have a "derivation" that is nothing more than the output of a command.
<tpw_rules> "inside" isn't a thing
<tpw_rules> neither is the output of a command a thing
<matthewcroughan> tpw_rules: the output of a given command that puts a file into $out
<matthewcroughan> that isn't a thing?
<matthewcroughan> What framework do you want my mind to think under? Because whatever you have, I don't have it.
mbrgm has quit [Ping timeout: 260 seconds]
mbrgm_ is now known as mbrgm
ehmry has joined #nixos
<ajs124> if you want an explanation of nix from first principles, I'm sure one of the companies listed under https://nixos.org/community/commercial-support.html would be glad to give you a (paid) workshop :P
<ajs124> (and I'm totally not saying that because my company is listed there)
<tpw_rules> if you want some magic pile of nix that generates a pack file or whatever, the pile needs to call `derivation` with the appropriate arguments as described in that link and convey that object by naming an attribute containing it as a parameter to :b in the shell or whatever
<zeta_0> how come when I build a nix-shell env in vscode, java and javac are not showing up in terminal? how do I troubleshoot this issue?
<tpw_rules> stdenv.mkDerivation and runCommand and everything else just ultimately boil down to `derivation`.
<matthewcroughan> Okay, what's the issue here.
<matthewcroughan> something = { stdenv, lib, godot, fetchurl, runCommandNoCC, unzip }: runCommandNoCC "tunnelvr-test" { buildInputs = godot; } '' godot ''
<matthewcroughan> I did that in ther epl
<matthewcroughan> repl*, then I tried to build it. But it states that this is not a derivation.
<marnov> is there some best-practice place, where to store my own webapp, like drupal ?
<marnov> filesystem location i mean ...
<marnov> like /var, or /srv/www ....
<zeta_0> hm, so I guess after I build the isolated nix env using nix-environment-select, I also need to run nix-shell in terminal, I'm guessing?
<tpw_rules> it's not, it's a function that returns a derivation
<matthewcroughan> tpw_rules: was that a response to me?
philr has joined #nixos
<tpw_rules> yes
<matthewcroughan> Okay, so why can't I build it?
<tpw_rules> because it's not a derivation
<matthewcroughan> how can I make it one?
<ajs124> > runCommandNoCC "tunnelvr-test" { buildInputs = [ godot ]; } '' godot ''
<{^_^}> "<derivation /nix/store/qg6ag7fpficbbynzir7g6qw18cyihvv3-tunnelvr-test.drv>"
<matthewcroughan> Is this the functional part that's breaking my brain? :P
<tpw_rules> by calling the function with the appropriate arguments. the idiomatic way in nixpkgs is to use callPackage
<matthewcroughan> callpackage on what?
<tpw_rules> the function you just made called `something`
<matthewcroughan> so in the repl, how would I use callPackage on my example that I've given you ?
<matthewcroughan> `callPackage something`?
<ajs124> > callPackage ({ stdenv, lib, godot, fetchurl, runCommandNoCC, unzip }: runCommandNoCC "tunnelvr-test" { buildInputs = [ godot ]; } '' godot '') {}
<{^_^}> "<derivation /nix/store/qg6ag7fpficbbynzir7g6qw18cyihvv3-tunnelvr-test.drv>"
<tpw_rules> ^
<colemickens> > let x = ({ foo }: foo) { foo = pkgs.hello; }; pkgs.callPackage x
<{^_^}> error: syntax error, unexpected ID, expecting '.' or '=', at (string):494:64
<ajs124> surprise, it's the same .drv
<tpw_rules> don't forget the {} to specify you don't want to override any arguments
<matthewcroughan> the {} at the end?
<tpw_rules> yes
<matthewcroughan> what does that do in all contexts?
<matthewcroughan> is it dependant on context? Or is it doing the same thing in all?
<tpw_rules> there's a non sequitur again
<matthewcroughan> ?
<colemickens> > let x = ({ foo }: foo); pkgs.callPackage x { foo = pkgs.hello; }
<{^_^}> error: syntax error, unexpected ID, expecting '.' or '=', at (string):494:42
<matthewcroughan> I'm saying I've seen it done before and want to know what it does.
<matthewcroughan> Not everything is a debate :P
* colemickens should pm the bot i guess
jgt_ has quit [Ping timeout: 265 seconds]
<matthewcroughan> I've seen `{}` at the end of things a lot, and never understand if it's doing the same thing in all contexts.
<tpw_rules> i'm not real sure how to explain it because it means you don't understand the basics of nix the language
<matthewcroughan> Best part is, you don't need to, to jump in.
<tpw_rules> no, you really really do
<matthewcroughan> And that's what a lot of people do, are doing, have done in a lot of other languages.
<matthewcroughan> Okay purist :P
<matthewcroughan> You don't have to give me your help, if you feel I'm not ready for it.
<tpw_rules> because if you DID, you would know that {} is a function argument in this context. and to callPackage, it's the argument that's the set of additional arguments to pass to the package function. which there aren't any so it's a null set
<matthewcroughan> Not everyone is a functional God such as yourself! Calm down.
<zeta_0> sweet, I am now able to get my java programs to print to terminal using nix-shell in vscode, so that's a start!
<matthewcroughan> What is basic to you, is not basic to me, and to a lot of others.
<colemickens> "hey knowing the literal basics of the language might help" is not an attack.
<matthewcroughan> Feels like one :D
<colemickens> If you're comfortable not understanding how function calls work in a language you've been using on and off to some degree for a year, that's cool, but understand that others are going to roll their eyes at some point.
<matthewcroughan> colemickens ignored me for a while and I learned a little more.
<tpw_rules> i'm sorry, i don't intend to be degrading. but colemickens is right, there's a massive amount of confusion surrounding nix which is answered by forms which i've just illustrated. primarily it's because the docs suck massively rather than any innate failings of the users
<matthewcroughan> you should ignore me for a bit, I won't take offense to it.
wnklmnn has quit [Quit: Leaving]
<matthewcroughan> Cold words about eye rolling.
<matthewcroughan> Love you <3
<marnov> hello, is there some best-practice where to store in filesystem php webapp, like drupal ? /srv/www /var/www
<ajs124> marnov: /nix/store
<{^_^}> [nixpkgs] @veprbl opened pull request #121545 → tests.texlive.dvipng: apply recurseIntoAttrs → https://github.com/NixOS/nixpkgs/pull/121545
<marnov> ajs124: it is not managed by nix yet
<tpw_rules> but to some degree it IS attitude, "i'll ignore the pills lol and get by on magic runes" is a dumb way that appears to work on the surface but really hurts you. the relevant function syntax is covered in pill 5.2: https://nixos.org/guides/nix-pills/functions-and-imports.html
<ajs124> marnov: the best practice is managing it with nix, then
<matthewcroughan> Welp, thanks for the shaming.
<matthewcroughan> Won't ask any more questions until I'm qualified.
<marnov> ajs124: :-) so whaty about apps, not managed by nix ?
<ajs124> marnov: don't :D
<tpw_rules> like i wish the pills could somehow be magically clearer. most of them i kind of glazed over and then screwed up a lot and eventually i went "oh, that's what it was trying to tell me. that makes perfect sense". but the basic syntax you need to get at least a little bit. and not be afraid to read nixpkgs code itself
<marnov> ajs124: i need to start somewhere ... i have running webapps, ans wanna to switch nix :-)
<marnov> ok so it measn, doesnt matter
<hexa-> marnov: package the app with nix then:)
<marnov> yeah, i'll do ... later :-)
<matthewcroughan> I didn't realise a lack of basic knowledge could be so offensive to people who know a lot more than me.
<matthewcroughan> I didn't intend to ask people who were on a much higher level than me, these questions, knowing they would belittle me like that.
<matthewcroughan> It's an open irc. If you have a high skill level that causes your blood to boil when you see noobs, sorry.
<tpw_rules> matthewcroughan: i would genuinely suggest in a kind and respectful manner to take a few hours, go through the pills, and type out all the examples and reading all the responses. just to make sure you've seen everything in an appropriate context. that's what i did and that's what planted the seeds.
<marnov> hexa-: ajs124: i really like nixos ... it is like a dream ... but the steep learning curve ... :-)_
<marnov> i need to go step by step
<matthewcroughan> tpw_rules: yeah, except I'm learning what I need, when I need it.
<tpw_rules> like i said it was frustrating for a while and it took lots of reflection to actually Get It
<matthewcroughan> Which is a learning style that it seems neither you or colemickens agree with.
zeta_0 has quit [Quit: rcirc on GNU Emacs 27.1]
<matthewcroughan> So you're telling me to learn differently, I appreciate the suggestion. Thank you, but I'm going to keep doing what I'm doing now.
<tpw_rules> matthewcroughan: from watching other people in this channel, that's a fatal mistake! don't do it. it doesn't work. that's the part, if anything, that offends me
<matthewcroughan> I can't refute your opinions.
<ajs124> marnov: you can just put it in /srv/http or wherever and point your nginx/apache/whatever at it. I'd recommend to "just package it", but if you're in a hurry or just not that familiar with it, that should also work.
<ajs124> don't tell anyone I told you to do that though (he said, on a publically logged channel)
<matthewcroughan> tpw_rules: Everybody is always learning. Your comment about magic runes is the case in most languages.
<matthewcroughan> There are absolutely magic runes that people don't understand in C++.
<tpw_rules> nix has the un-enviable position though that the goal is unrelated to the magic runes
Synthetica has quit [Quit: Connection closed for inactivity]
<matthewcroughan> You never learn everything about everything. It's a continual process.
<gchristensen> thats how I learned. by the time I read the pills I knew just about all of it, it works
<marnov> ajs124: yeah, thx :-) how do store non-bublic webapps managed by nixos ? from some secured locations ?
<matthewcroughan> So, yesterday, I discovered that there's a __functionArgs at the end of some things, which lets me play around in the repl and discover function arguments.
<matthewcroughan> That's not there for some things. Why is that?
<marnov> ajs124: ahh, that is right question ... whre to store prsistent data (in my opinion sqlitefile )
<matthewcroughan> Can I ask that question? Or am I gonna be told to go and learn the basics? :P
<matthewcroughan> Where would I be able to read about that behavior?
<gchristensen> what do you mean, not there for some things?
<matthewcroughan> callPackage is a function, right?
<gchristensen> ah
<tpw_rules> gchristensen: so you didn't really learn much from the pills?
<matthewcroughan> There is no `callPackage.__functionArgs`
<ajs124> marnov: /var/lib/$your_app. what systemd calls StateDirectory.
ahmed_elgabri has quit [Ping timeout: 260 seconds]
<tpw_rules> what did you mean by "it works"?
<ajs124> I'm not sure I've actually read all the nix pills, to this day >.<
<ajs124> Maybe I should
<matthewcroughan> People have different learning styles.
<matthewcroughan> It's always the case that people who read a lot of books belittle those who do not.
<matthewcroughan> Reading books isn't invalid, neither is learning by doing. They're different.
<gchristensen> I don't think __functionArgs is an member of an attrset usually
<lukegb> builtins.functionArgs is the "supported" way of doing taht
<gchristensen> > builtins.functionArgs pkgs.callPackage
<{^_^}> { }
<matthewcroughan> what is `__` in Nix?
<matthewcroughan> builtins?
<gchristensen> > builtins.functionArgs pkgs.dockerTools.builDockerImage
<{^_^}> attribute 'builDockerImage' missing, at (string):494:23
<gchristensen> meh
<gchristensen> __ usually means internal, unstable interface
<marnov> ajs124: thx
<matthewcroughan> unstable? O.o
<lukegb> unstable as in "don't rely on this" not necessarily unstable as in "will crash and you get to keep all the pieces"
<matthewcroughan> how do they end up becoming members?
<matthewcroughan> and why is it there for some things and not others?
<ajs124> so if I use __functor, I shouldn't?
<gchristensen> ajs124: correct, please don't use __functor it is regretful that it was added
<gchristensen> :P
<lukegb> well, also I feel like some of the __ members are just named that so they never conflict with anything
<lukegb> matthewcroughan: so nixpkgs has this "setFunctionArgs" thing...
<gchristensen> yeah..
<marnov> !help
<ajs124> gchristensen: hey, at least I'm not using importNative or builtins.exec
<gchristensen> ;_;
<marnov> ajs124: can i give u carma ?
<tpw_rules> matthewcroughan: i'm confused now. the place to read to learn about those things is the pills.
<gchristensen> marnov: an important thing to remember is that Nix itself is a tiny language, and Nixpkgs has to add a ton of library and whatnot
<gchristensen> erm, matthewcroughan ^
<marnov> gchristensen: i hate nix language :-)))
<lukegb> ajs124: what about __findFile
<ajs124> lukegb: Ah, I think we dropped that from our tree. Let me grep real quick.
<ajs124> nope, there's still one (1) there
<ajs124> __findFile __nixPath
<lukegb> but you're not overriding it? :P
<matthewcroughan> Oh, well haven't you all read the pills?
ddellac__ has joined #nixos
<tpw_rules> i guess to really beat a dead horse, there's nowhere in nix to directly find the answers to your exact questions. but there's the pills which give you the background you need to figure that out. they're the best reading there is to be had, so saying "where can i read about this?" then deliberately ignoring them is weird
<matthewcroughan> Why is there so much confusion and discussion? :D
<ajs124> lukegb: pls no
<gchristensen> matthewcroughan: people are showing off how much cursed knowledge the yhave
<matthewcroughan> tpw_rules: You need to realise how good you are at this thing.
<matthewcroughan> I'm not trying to flatter you.
<ajs124> gchristensen: is this where I bring up how to disable restricted eval in hydra?
<lukegb> yeah, we're basically discussing things you shouldn't ever* do
<gchristensen> ajs124: stop stop stop!
<matthewcroughan> tpw_rules: If I ask a question, you don't have to answer it and tell me how little I know :P
<matthewcroughan> In fact, I'm sorry for taking up so much of your time.
<tpw_rules> don't you wish to be free of asking questions?
<matthewcroughan> I took up so much of colemickens time months ago that he blocked me haha.
<matthewcroughan> I can't wait for NixCon so you can all reject me in person too.
<ajs124> gchristensen: but this is just getting fun :(
<lukegb> I'm going to regret asking how this PID ends up being "10"
<l33[m]> <tpw_rules "don't you wish to be free of ask"> i find your questions...... 'disturbing'.
<lukegb> and no, they haven't wrapped around on this system
ddellac__ has quit [Ping timeout: 252 seconds]
<ajs124> lukegb: the internet tells me "In Linux a root user can influence the PID given to a process by writing one less of the desired PID number to /proc/sys/kernel/ns_last_pid"
<lukegb> oh wait, this is in a build, 10 is actually a reasonable pid