andi- changed the topic of #nixos to: NixOS stable: 19.09 \o/ https://discourse.nixos.org/t/nixos-19-09-release/4306/2 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || use ,channels for a list of Nix* related channels || nixcon videos: https://tinyurl.com/nixcon2019 || Link to the output of nix-info
gustavderdrache has quit [Quit: Leaving.]
Pwnna has quit [Quit: Bye]
shibboleth has quit [Quit: shibboleth]
<{^_^}> [nixpkgs] @catern opened pull request #84296 → hydra: add dep on perlPackages.CatalystPluginSmartURI → https://git.io/JvbxH
vykook has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84297 → fluxctl: 1.18.0 -> 1.19.0 → https://git.io/Jvbx5
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<energizer> when i'm making a derivation that's a programming package, am i supposed to put the language it uses in propagatedBuildInputs?
cybrian has quit [Ping timeout: 265 seconds]
<energizer> like if i were packaging python's `requests` manually (without makePythonPackage or similar) would i put propagatedBuildInputs = [python]?
<{^_^}> [nixpkgs] @nlewo merged pull request #83988 → nexus: 3.20.1-01 -> 3.22.0-02 → https://git.io/JvdB3
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/JvbxF
<{^_^}> [nixpkgs] @marsam merged pull request #84274 → chezmoi: update build tags to chezmoi 1.7.18 format → https://git.io/Jvb53
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvbxN
<energizer> looks like yes, nixpkgs.python3Packages.requests.propagatedBuildInputs does have python3 in it
vykook has joined #nixos
ZaraChimera has quit [Quit: Going offline, see ya! (www.adiirc.com)]
ericsagnes has quit [Ping timeout: 246 seconds]
<bqv[m]> https://github.com/bqv/nixos/blob/live/flake.nix#L40-L46 i am a truly awful human being
<cole-h> why tho
<bqv[m]> so that i can easily pull in a package from a pr without having to add a new flake input
<bqv[m]> i know, this is terrible in an uncountable number of ways, but it's also convenient
morgrimm has joined #nixos
vykook has quit [Ping timeout: 240 seconds]
<cole-h> What about when we go over 99k? We're already at ~84.3k
<bqv[m]> oh, well, i can bump that number, that was just a soft cap because i can't think of a neat way to lazily evaluate strings
<bqv[m]> so that first computation has to at least be done
<immae> bqv[m]: is the evaluation lazy in the context of overlays?
<morgrimm> Maybe this is a nix question and not specifically nixos question, but I built a quick derivation to pull down asdf-vm, and I'm testing it. It's failing because there's a hash mismatch in the nix-build-source derivation
<bqv[m]> the values are
<bqv[m]> the keys are not
<morgrimm> Has anyone seen that before?
justan0theruser has joined #nixos
<immae> I may miss some subtelty, but why not making a function `pr 1234` rather than generating them all?
<bqv[m]> ...i've been awake too long
<bqv[m]> you're right
<bqv[m]> that has no downsides
bgamari has quit [Quit: ZNC 1.7.5 - https://znc.in]
justanotheruser has quit [Ping timeout: 260 seconds]
vykook has joined #nixos
<immae> ok :)
<{^_^}> [nixpkgs] @marsam merged pull request #84260 → zenith: 0.8.0 -> 0.8.1 → https://git.io/Jvbyn
<{^_^}> [nixpkgs] @marsam pushed 3 commits to master: https://git.io/JvbpL
<{^_^}> [nixpkgs] @nlewo pushed commit from @armin1402 to release-20.03 « nexus: 3.20.1-01 -> 3.22.0-02 »: https://git.io/Jvbpq
<{^_^}> [nixpkgs] @marsam opened pull request #84298 → vault: 1.3.3 -> 1.3.4 → https://git.io/Jvbpm
ericsagnes has joined #nixos
vykook has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @hedning pushed to staging-next « nixos/ibus: fix evaluation »: https://git.io/JvbpO
<morgrimm> When one specifies a hash for fetching a github source, is that the hash of the commit, or the artifact?
<infinisil> morgrimm: For fetchFromGitHub, it's the hash of the contents at that commit
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84299 → grails: 4.0.2 -> 4.0.3 → https://git.io/Jvbpc
<infinisil> Not the tarball
<b42> you can obtain it with nix-prefetch-github, or
<b42> ,tofu
<{^_^}> To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected. See: tofu-vim
thc202 has quit [Ping timeout: 260 seconds]
vykook has joined #nixos
cosimone has joined #nixos
<morgrimm> nix-prefetch github?
never_released has quit [Ping timeout: 256 seconds]
zeenk has quit [Quit: Konversation terminated!]
learnday20 has quit [Quit: Leaving]
never_released has joined #nixos
<morgrimm> Oh, sweet
<morgrimm> That definitely helps
vykook has quit [Ping timeout: 256 seconds]
<bqv[m]> is lib/deprecated.nix actually deprecated?
cosimone has quit [Quit: Quit.]
<{^_^}> [mobile-nixos] @samueldr merged pull request #120 → doc: Add per-device pages → https://git.io/JvbE3
<{^_^}> [mobile-nixos] @samueldr pushed 29 commits to master: https://git.io/JvbpB
<{^_^}> [nixpkgs] @bqv opened pull request #84300 → lib: add shortcut for fake SRI hash → https://git.io/Jvbp0
<bqv[m]> nevermind.
<bqv[m]> interestinly, i found a bug in nix.
<bqv[m]> fetchZip fails if you provide hash = null as well as sha256 = lib.fakeSha256
<bqv[m]> but it fails on url resolution
<bqv[m]> not on anything else
<bqv[m]> (looks like a DNS error)
bgamari has joined #nixos
vykook has joined #nixos
<{^_^}> [nixpkgs] @marsam opened pull request #84301 → stig: fix build → https://git.io/Jvbp2
ZaraChimera has joined #nixos
work_ has quit [Quit: Connection closed for inactivity]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<morgrimm> Is there anything special I have to do to make GH sources just... available? i.e if I want to pull down a repo, and then just reference it somewhere else as a package in another expression
<morgrimm> Do I have to specifically copy source from the builder into $out?
vykook has quit [Ping timeout: 258 seconds]
<b42> morgrimm: fetchFromGitHub { ... } is a derivation, building it results in /nix/store path ... so I'd say no you don't have to
<evanjs> yeesh, does anybody actually use 0000000000000000000000000000000000000000000000000000 over e.g. lib.fakeSha256Hash? :P
<b42> you just need to pass the expression to "somewhere else", possibly as a function argument
<cole-h> evanjs: I do :P
<evanjs> y tho haha
<cole-h> ,tofu-vim is shorter than lib.fakeSha256
<{^_^}> is shorter than lib.fakeSha256: <esc>52i0<esc>
<energizer> evanjs: i have an editor snippet that inserts a dummy hash
maddo has quit [Quit: See ya]
<evanjs> okay well for those that don't :P
<{^_^}> [nixpkgs] @magnetophon opened pull request #84302 → ninjas2: init at 0.2.0 → https://git.io/Jvbpi
<{^_^}> [nixos-homepage] @dependabot[bot] pushed to dependabot/npm_and_yarn/packages-explorer/acorn-6.4.1 « Bump acorn from 6.1.1 to 6.4.1 in /packages-explorer »: https://git.io/JvbpP
<{^_^}> [nixos-homepage] @dependabot[bot] opened pull request #382 → Bump acorn from 6.1.1 to 6.4.1 in /packages-explorer → https://git.io/JvbpX
<cole-h> oof
<morgrimm> b42: yeah, all my custom derivations end up in another pkg set I pass around with my config
<morgrimm> Or, that's the idea, anyway >.>
mexisme has joined #nixos
<morgrimm> Evaluating that expression will assign the store path as the return value, right?
<morgrimm> I'm still kinda learning Nix and the ecosystem, so
vykook has joined #nixos
<b42> yes
<morgrimm> cool
mexisme has quit [Ping timeout: 272 seconds]
h0m1 has quit [Ping timeout: 265 seconds]
vykook has quit [Ping timeout: 265 seconds]
h0m1 has joined #nixos
levdub has joined #nixos
mexisme has joined #nixos
<{^_^}> [nixpkgs] @AndersonTorres closed pull request #83776 → babashka: 0.0.71 -> 0.0.78 → https://git.io/Jv7iy
vykook has joined #nixos
<{^_^}> [nixpkgs] @AndersonTorres merged pull request #84284 → babashka: 0.0.71 -> 0.0.78 → https://git.io/JvbFT
<{^_^}> [nixpkgs] @AndersonTorres pushed 2 commits to master: https://git.io/JvbhI
<{^_^}> [nixpkgs] @emilazy opened pull request #84303 → zfs: Linux 5.6 compatibility → https://git.io/JvbhY
hexa- has quit [Quit: WeeChat 2.7.1]
hexa- has joined #nixos
hexa- has quit [Client Quit]
hexa- has joined #nixos
kleisli has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84304 → kubie: 0.7.1 -> 0.7.3 → https://git.io/JvbhC
Soo_Slow has quit [Quit: Soo_Slow]
pbogdan has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @bhougland18 opened pull request #84305 → windowchef: init at 0.5.0 → https://git.io/JvbhK
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84306 → libgit2: 0.99.0 -> 1.0.0 → https://git.io/Jvbhi
markus1189 has quit [Ping timeout: 240 seconds]
cjpbirkbeck has quit [Quit: cjpbirkbeck]
dycan has quit [Remote host closed the connection]
markus1189 has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84307 → mdbook: 0.3.6 -> 0.3.7 → https://git.io/Jvbjh
<{^_^}> [nixpkgs] @jtojnar pushed to staging-next « libmodulemd: 2.6.0 → 2.9.2 »: https://git.io/JvNe4
<djahandarie> Has any ever hit this issue before?
<djahandarie> darius@darius-laptop:~$ systemctl --user
<djahandarie> Failed to list units: The name org.freedesktop.systemd1 was not provided by any .service files
iyzsong has joined #nixos
cybrian has joined #nixos
felixfoertsch23 has joined #nixos
fragamus has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84309 → micronaut: 1.3.2 -> 1.3.4 → https://git.io/JvNe6
felixfoertsch has quit [Ping timeout: 260 seconds]
felixfoertsch23 is now known as felixfoertsch
chagra has quit [Ping timeout: 250 seconds]
cybrian has quit [Ping timeout: 256 seconds]
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
aw has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spacefrogg has joined #nixos
m0rphism has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84310 → minio-client: 2020-03-06T23-29-45Z -> 2020-04-04T05-28-55Z → https://git.io/JvNe7
<{^_^}> [nixpkgs] @marsam merged pull request #84304 → kubie: 0.7.1 -> 0.7.3 → https://git.io/JvbhC
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvNvL
<drakonis> bqv[m]: how did your attempt to get guix working go so far?
teto has quit [Ping timeout: 260 seconds]
psy3497_ has joined #nixos
psy3497_ has quit [Client Quit]
<{^_^}> [nixpkgs] @jtojnar pushed to staging-next « modem-manager-gui: Fix build »: https://git.io/JvNvM
psy3497_ has joined #nixos
psy3497_ has quit [Client Quit]
<DigitalKiwi> davidak[m]: so i was closing tabs from the other day and i noticed on this one it had that pin out i described and calls it rollover http://www.prsol.com/cpd.html
psy3497_ has joined #nixos
psy3497_ has quit [Client Quit]
<DigitalKiwi> davidak[m]: at the end of the page before the last diagram
<bgamari> How does one depend upon cmake without running the setup hook?
<DigitalKiwi> davidak[m]: so now i know what words to use to search for
<bgamari> I have a python package which uses a setuptools setup.py script to build a C extension via cmake
psy3497_ has joined #nixos
psy3497_ has quit [Client Quit]
<bgamari> but if I depend upon cmake via nativeBuildInputs the package is treated as though it has a cmake build system
<cole-h> What about normal `buildInputs`?
<bgamari> cole-h, then the cmake executable isn't in PATH
<bgamari> dontUseCmakeConfigure = true; appears to be the prescription
<cole-h> Works as expected?
<{^_^}> [nixpkgs] @marsam merged pull request #84297 → fluxctl: 1.18.0 -> 1.19.0 → https://git.io/Jvbx5
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvNfN
growpotkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
<{^_^}> [nixpkgs] @offlinehacker merged pull request #84298 → vault: 1.3.3 -> 1.3.4 → https://git.io/Jvbpm
<{^_^}> [nixpkgs] @offlinehacker pushed 2 commits to master: https://git.io/JvNJM
waleee-cl has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @veprbl merged pull request #83737 → libxml2,libxslt: fix pythonSupport=false override → https://git.io/Jv7cA
<{^_^}> [nixpkgs] @veprbl pushed 2 commits to master: https://git.io/JvNJH
<morgrimm> is it better practice to run a builder script directly in a derivation?
<morgrimm> Or to run it as an arg to bash
<cole-h> What kind of builder script?
<morgrimm> Just a one liner from bash, just copying the src contents into $out
<clever> morgrimm: you almost always want to use either a phase, or buildCommand (runCommand uses buildCommand for you)
<morgrimm> A phase?
<clever> morgrimm: installPhase for ex
work_ has joined #nixos
<morgrimm> I think I'm confused, I haven't hit those yet
<morgrimm> The starter docs just went through settings bash as the builder, and then passing it the arg so far
<clever> morgrimm: setting the builder like that, means buildInputs and a lot of other things wont actually work
<clever> morgrimm: which will make your job a lot harder
fragamus has joined #nixos
<morgrimm> Where would I go for more docs on this stuff? The pills don't cover phases in depth, or build inputs or anything
<clever> morgrimm: the nixpkgs manual should explain the phases better
captjakk has quit [Remote host closed the connection]
captjakk has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
cybrian has joined #nixos
captjakk has quit [Ping timeout: 265 seconds]
hoplaahei has quit [Ping timeout: 258 seconds]
cybrian has quit [Ping timeout: 264 seconds]
morgrimm has quit [Ping timeout: 265 seconds]
<energizer> moredhel: https://nixos.org/nixos/nix-pills/fundamentals-of-stdenv.html Hypothesis.readthedocs.io
<energizer> oops
lovesegfault has quit [Ping timeout: 260 seconds]
lovesegfault has joined #nixos
ddellacosta has quit [Ping timeout: 256 seconds]
lovesegfault has quit [Client Quit]
captjakk has joined #nixos
ddellacosta has joined #nixos
captjakk has quit [Ping timeout: 240 seconds]
xkapastel has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84313 → procdump: 1.1 -> 1.1.1 → https://git.io/JvNTQ
morgrimm has joined #nixos
<mlatus[m]> nix manual only explains the `derivation` , while most of time we are actually using `stdenv.mkDerivation`, which has heavy abstractions build upon `dervition`. Which IMHO is confusing for new comers
<srhb> mlatus[m]: mkDerivation isn't fundamental to Nix, but is for nixpkgs, so it's documented in the nixpkgs manual, not the nix one.
<srhb> (And this split of manuals is also confusing to newcomers)
<mlatus[m]> srhb: sure, but I feel like there should be a chapter describing the `standard library`.
morgrimm has quit [Ping timeout: 250 seconds]
<mlatus[m]> at least a link in the top level
<{^_^}> [nixpkgs] @veprbl merged pull request #83748 → pythonPackages.docker: use dontUseSetuptoolsCheck → https://git.io/Jv7lE
<{^_^}> [nixpkgs] @veprbl pushed 2 commits to master: https://git.io/JvNkJ
<srhb> mlatus[m]: In the nix manual? I think that would be confusing too, since standard Nix doesn't have stdenv.
jmeredith has joined #nixos
drakonis has quit [Quit: WeeChat 2.7.1]
<mlatus[m]> IDK, but now the "Learn" page list them togather, which may be better
<srhb> mlatus[m]: I think there are too main categories of reasons to reach the nix manual. 1) you're implementing something like nixpkgs, and 2) you want to configure nix for use with nixpkgs. I've seen both cases in the world, but the latter is way more common. Perhaps a pointer near derivation (note: this is not mkDerivation from nixpkgs, which is likely to be what you want to use, if you're already
<srhb> using nixpkgs) or something like that.
<mlatus[m]> srhb: that's what I mean "a link in the top level". people should be quickly notified what they actually need
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/b4956dfac72 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84314 → rdkafka: 1.3.0 -> 1.4.0 → https://git.io/JvNkg
captjakk has joined #nixos
<ryantm> How do I bust the cache of nix-instantiate called with a URL?
bhipple has quit [Remote host closed the connection]
captjakk has quit [Ping timeout: 265 seconds]
slack1256 has joined #nixos
<hyper_ch> ryantm: ?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84315 → rgbds: 0.3.10 -> 0.4.0 → https://git.io/JvNkD
<hyper_ch> ryantm: ~/.cache/nix/tarballs ?
ddellacosta has quit [Ping timeout: 260 seconds]
<energizer> ryantm: change the sha256 = value
<energizer> so it becomes wrong and gets downloaded again
<energizer> if that's what you're asking?
morgrimm has joined #nixos
<ryantm> hyper_ch: Thanks that is what I wanted to know!
morgrimm has quit [Ping timeout: 260 seconds]
palo1 has joined #nixos
palo1 is now known as palo
palo has quit [Ping timeout: 265 seconds]
fragamus has quit [Ping timeout: 260 seconds]
<hyper_ch> ryantm: needed to konw that just a few days ago myself :)
slack1256 has quit [Remote host closed the connection]
rauno has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84316 → setools: 4.2.2 -> 4.3.0 → https://git.io/JvNIM
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84317 → shadowenv: 1.3.1 -> 1.3.2 → https://git.io/JvNIp
linarcx has joined #nixos
fusion809 has joined #nixos
rauno has quit [Remote host closed the connection]
rauno has joined #nixos
rauno has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84319 → suitesparse-graphblas: 3.2.1 -> 3.2.2 → https://git.io/JvNte
FRidh has joined #nixos
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/92e20dc0209 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<{^_^}> [nixpkgs] @kfiz opened pull request #84320 → mongodb: 4.0.12 -> 4.2.5 → https://git.io/JvNtJ
cybrian has joined #nixos
work_ has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84321 → thinkfan: 1.0.2 -> 1.1 → https://git.io/JvNtL
<s1341> good morning
<s1341> any chance i can get someone to approve/merge my PRs?
<{^_^}> [nixpkgs] @FRidh pushed 129 commits to staging-next: https://git.io/JvNtq
<colemickens> how's it even possible to get `gpg: public key decryption failed: No pinentry' on nixos?
<{^_^}> [nixpkgs] @FRidh pushed 138 commits to staging: https://git.io/JvNtY
avn has quit [Ping timeout: 256 seconds]
<energizer> colemickens: you need to install a pinentry program
<colemickens> gnupg comes with one by default in nixpkgs though
<colemickens> and I have multiple installed. I use this all the time.
cybrian has quit [Ping timeout: 264 seconds]
<colemickens> I'm 99.99% sure a reboot will fix this.
<energizer> i got that error last week and installing pinentry-qt solved it
<colemickens> But I've tried rebooting gpg-agent, I've issued the two usual gpg-connect-agent commands, and I keep getting this
<colemickens> nix-env -iA pinentry-qt -f ~/code/nixpkgs
<colemickens> installing 'pinentry-1.1.0'
<colemickens> followed by the gnupg command still says no pinentry
<colemickens> even if I restart gpg-agent
<colemickens> I really hate gpg
<colemickens> I think it might be:
<colemickens> kill gpg-agent
<colemickens> run gpg command
<colemickens> it's started by not-user systemd
<colemickens> because after all that, I just did a sudo pkill gpg-agent; systemctl --user restart gpg-agent; and now it works even without prompting me for a pin..
<colemickens> which is also, just weird.
zaeph1 has joined #nixos
<pjt_014> s1341: Most of the people that can are scrambling to get the 20.03 release ready, it'll depend on who's awake/not busy.
<pjt_014> It might have to be after the release
<s1341> pjt_014: ok. wasn't aware that a release was in the works...
zaeph has quit [Ping timeout: 260 seconds]
<pjt_014> Yeah. Last release was october. we're due
<pjt_014> I have a package waiting in there rn
<pjt_014> Is your pr a package? I can test it
<pjt_014> and if you want to review mine, this is it: https://github.com/NixOS/nixpkgs/pull/84078
<{^_^}> #84078 (by petersjt014, 2 days ago, open): catcli: init at 0.5.13
<pjt_014> It probably doesn't need it, but it can't hurt
koleesch_ has quit [Ping timeout: 265 seconds]
<pjt_014> First one I've ever packaged--glad I didn't try to go for some huge thing with a gui or something
shafox has joined #nixos
<evils> pjt_014: oh yea, know why the bot complained now?
<pjt_014> Nope. And check out the link now ^
zebrag has quit [Quit: Konversation terminated!]
<pjt_014> it's fine...yup
<evils> meta.platforms wants a list of strings
<pjt_014> what? was that it?
<evils> platforms.linux is a list of strings, [ x86_64-linux ] is a list but that's not a string
<pjt_014> really?
<pjt_014> wow. big award for most obtuse error here
<ZaraChimera> pjt_014 I got nix to work in opensuse WSL, as well as Ubuntu both normal and LTS and in Alpine.
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/e163a369c7a (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<ZaraChimera> Not quite sure what I borked in the first attempt.
<pjt_014> oh, neat. You have any idea why the sass occurred?
<pjt_014> Hm. Mystery. Fun.
<pjt_014> Is it working fine every time you open up the wsl?
<pjt_014> last time I tried using it I had the weirdest problem
<ZaraChimera> I can only think that something I did borked the CA certs stuff. But I am not really sure. I uninstalled and reinstalled opensuse WSL and then added the nix.conf to work around known bugs (disable sandbox and sqlite-wal) and then ran the curl command with no issues.
captjakk has joined #nixos
zebrag has joined #nixos
<ZaraChimera> nix is slow, but it works anytime I open WSL of any version.
<pjt_014> And nix commands work fine every time you open it?
<ZaraChimera> I think nix-env -i is compiling when I run it rather than pulling a binary.
<ZaraChimera> So far commands like nix-instantiate, nix-env, nix-channel all work. I have not tried nix-shell yet.
<pjt_014> When I had it installed, It lost the location of the store every time the wsl opened. I had to do 'source ?' (dont remember what) every time I opened it
<pjt_014> and I had to do it manually
<pjt_014> it never worked automated or even in a scrpit
<ZaraChimera> I have not encountered that one yet.
<pjt_014> had to type it every time
<ZaraChimera> nix-env commands take a while to execute, but they do work.
<pjt_014> Yeah, MS's impl of symlinks apparently suck all kinds of ass.
<Bunogi> What do I do if nix tells me that a NAR info file is corrupt?
captjakk has quit [Ping timeout: 260 seconds]
<ZaraChimera> Well, I at least have a nix environment to play around in without needing to have a second computer.
<pjt_014> Bunogi: try nix-store -r /nix/store/whatevs
Heirlung has quit [Read error: Connection reset by peer]
Heirlung- has joined #nixos
<pjt_014> -r / --realise should redownload the file if it's corrupt.
<pjt_014> ZaraChimera: you could dual-boot
<pjt_014> If speed is ever desired over convnince
Heirlung- is now known as Heirlung
sogatori has joined #nixos
o1lo01ol1o has joined #nixos
<Bunogi> pjt_014: I ran `nix-store -r /nix/store/vyr93....narinfo` but there's no file with that name. It gave me the same error. I used find to look for the file in /nix but it's not there
<Bunogi> Accidentally made infinite recursion in my configuration.nix yesterday which caused me to run out of memory, freezing my computer when I ran nixos-rebuild switch so that probably has something to do with it
<pjt_014> Oof.
<pjt_014> Memory or disk space?
<Bunogi> Yeah RAM, had to do a hard reset
cole-h has quit [Quit: Goodbye]
<ZaraChimera> pjt_014 I will probably dualboot at some point once I know my way around NixOS enough. Or I may wait till I upgrade the main computer and use the older hardware for the NixOS system for something. Possibly personal hybrid server-desktop setup or something.
morgrimm has joined #nixos
<pjt_014> ZaraChimera: yeah. My 1st setup was just like 3 VMs for messing with stuff, then a VPS (still have), and now it's on two desktops and two rPis
mexisme has quit [Ping timeout: 272 seconds]
<pjt_014> Bunogi: when do you get the error? boot? login? something else?
o1lo01ol1o has quit [Ping timeout: 265 seconds]
<Bunogi> pjt_014: Running nixos-rebuild
<ZaraChimera> After having had a couple of NixOS installs I kind of lost patience with FHS issues.
<ZaraChimera> Also NixOS's approach could be well suited to an audio setup.
<Bunogi> pjt_014: Here's a screenshot https://shots.bunogi.xyz/s/wLFkG.png
<pjt_014> FP is oddly common in digital audio. ever heard of faust (the language?)
<s1341> pjt_014: there's two prs, both are packages. one is approved, the other not yet
<pjt_014> s1341: I might be abl to test one/both. Likely can if they're command line only, maybe still can if not
morgrimm has quit [Ping timeout: 256 seconds]
<pjt_014> Bunogi: just for the future, do consider test instead of switch
<pjt_014> Not sure it'd helped here, but it wouldnt've hurt
<{^_^}> rycee/home-manager#1105 (by s1341, 2 weeks ago, open): zplug: Add initial support for zplug package manager
<s1341> woops...
<s1341> that's the wrong PR...
<pjt_014> It's like when people tell me "so anyway I ran nix-collect-garbage -d..." Like wHY?
<pjt_014> nix-env --delete-generations +2 THEN nix-collect-garbage. Much safer.
<{^_^}> #82949 (by s1341, 2 weeks ago, open): page: init at 2.3.4
<{^_^}> #83856 (by s1341, 4 days ago, open): zplug: init at 2.4.2
<s1341> @pjt_014
<pjt_014> s1341: got both open, I'll see If I can tonight
<s1341> ok. thanks pjt_014
<pjt_014> Bunogi: so I'm assuming this is a desktop device or similar, is it?
<Bunogi> pjt_014: Yeah it's my desktop, would be pretty quick to just give up and reinstall nixos
<pjt_014> While you boot it you should have grub's select generation screen
<das-g[m]> And if so, why does the same test work fine on other architectures (see https://hydra.nixos.org/eval/1579860?filter=tests.postgis&compare=1579813&full=#tabs-still-succeed )
<pjt_014> even if it goes by fast you can jab the up or down key to cancel the countdown
<pjt_014> then you should be able to select a previous gen. Also I just remembered nix-env --rollback is a thing, so that might work too
<Bunogi> I don't use nix-env on here so probably not, but I'll try a generation from earlier this week
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84322 → yad: 5.0 -> 6.0 → https://git.io/JvNqr
zaeph1 is now known as zaeph
<pjt_014> Bunogi: one other thing: nix-store --repair
<pjt_014> would take awhile (see the man page) but it would redownload the path
jakobrs has joined #nixos
<Bunogi> pjt_014: I was able to complete the rebuild on the old generation, didn't think that would work, because the issue was in the store but it did! Thanks for the help and advice
linarcx has quit [Ping timeout: 256 seconds]
<jakobrs> How could I get the nix-index database from a cache?
<pjt_014> Bunogi: np :)
<pjt_014> jakobrs: nix-index --database /path/to/it, If I understand your question
<pjt_014> wait, --db, I misread
<jakobrs> I mean, my computer almost runs out of resources if I run nix-index
<jakobrs> So I'm looking for a cached database download
<jakobrs> IF that makes sense
<pjt_014> Like one someone else made?
<jakobrs> Yeah? Someone mentioned a link here sometime ago
<pjt_014> It's your system, that someone would need access to do it. nix-index is like the mlocate command, it builds a database of what it sees on your system only.
<pjt_014> what you *can* do is give it just enough to run correctly once
<pjt_014> you'd only need to do it again rarely-ish
<pjt_014> I take it memory is what's running dry?
<jakobrs> probably
<jakobrs> fwiw I found the link that I was thinking of
<pjt_014> Oh. Hm. Someone made an index of their store. You know who this was?
<jakobrs> The link was "provided" by tilpner
<pjt_014> in irc?
<jakobrs> 2020-03-21 17:54 in the IRC logs
koleesch has joined #nixos
<pjt_014> I'll have to look at that later
<pjt_014> It's hard to say how useful it'll be. depends on how similar their cache is to yours.
<jakobrs> Sure
<jakobrs> In most cases it works fine
<jakobrs> As in, it's better than no cache at all
<pjt_014> here, run this for me:
<pjt_014> nix-env -iA nixos.gotop; gotop -r 0.25
<jakobrs> done
<pjt_014> keep that running while you try running the indexer, it'll let you see what exactly is being used up
<energizer> fyi gotop is unmaintained
<pjt_014> shit really? I really like it
<jakobrs> Definitely RAM
<jakobrs> Once Linux starts using swap, Plasma becomes very laggy
<jakobrs> Unmaintained as in the program or the Nix package?
<energizer> there's a bunch of them: htop ytop glances
<jakobrs> > NO LONGER MAINTAINED. Future development has moved to ytop, a rust package of gotop. A maintained fork of gotop also exists at ...
<{^_^}> error: syntax error, unexpected ',', expecting ')', at (string):293:59
<jakobrs> - The README
<jakobrs> So yeah, maybe look into ytop
<pjt_014> ooh I could add that
maddo has joined #nixos
<energizer> oh turns out nixpkgs uses this fork https://github.com/xxxserxxx/gotop
<energizer> so..nevermind
<pjt_014> jakobrs: there are afew things you can do here. 1st: prefix your commands with a timeout
kleisli has quit [Remote host closed the connection]
<pjt_014> that way you know you'll get control back even if your gui is unresponsive
kleisli has joined #nixos
<pjt_014> next: the 'nice' command may be of use
<jakobrs> Yeah ik
<pjt_014> nice -n 1 will lover the priority of whatever it's in front of, make it lower than important things like a gui environment
<pjt_014> oh
<pjt_014> didnt know soz
<jakobrs> I'm probably going to look into a better computer in the future
<pjt_014> long term, sure
<pjt_014> two other things I can think of now
<jakobrs> I mean, this machine has 4GB RAM and i5-6200U
<jakobrs> So it's not "terrible" but it's not great either
<pjt_014> I had 400mb of ram in my main machine for like 5 years
<energizer> what decade was that?
<pjt_014> 2010s
<energizer> whoa
<pjt_014> yup
<pjt_014> windows too :/
<energizer> the other tricks you were gonna mention?
<pjt_014> one, making the cache as small as possible sidesteps the problem
<pjt_014> collecting garbage, optimizing the store
<pjt_014> less to index, more chance of it working
<energizer> which cache?
<energizer> you mean the nix store?
<pjt_014> yeah. nix-collect-garbage
<pjt_014> sorry shoulda said store first
<jakobrs> Maybe Hydra could build an index automatically?
<jakobrs> I mean, that way you could get near-full coverage of the entirety of nixpkgs
<energizer> there's also ulimit, and then i think the actual solution is cgroups v2 but i havent set that up on my system yet
<pjt_014> That's an interesting idea, but it wouldn't work as-is. The nix-index is one file for your WHOLE store. What you're describing sounds like it'd need per-derivation indexes that get merged into you main one upon installing
<jakobrs> yes
<pjt_014> and removed once sonething is uninstalled to keep space efficiency
<pjt_014> possibly with a bloom filter or some cool shit
<jakobrs> (presumably with modifications to Hydra), when the relevant jobset is combined, it would create a full index of that particular revision of Nixpkgs
<jakobrs> s/combined/built/
<jakobrs> So you'd have an up-to-date nix-index database that's updated in parallel with nix-channel --update
<pjt_014> I'd still imagine it being per-package, since you aren't typically installing all of nixpkgs, also because some people wouldn't need it or be able to afford the space
Naptra has joined #nixos
<pjt_014> like on my rpi0 with its 16gb card
<pjt_014> git is good at smart merging, it could probably do this
<jakobrs> Yeah maybe not everybody could afford the space
<pjt_014> yup. anyway, make your store as small as possible. nix-env --delete-generations +x for example will delete all but your most reccent x gens
<jakobrs> But having the ability to download automatically-built cached per-package nix-index databases would be cool
<pjt_014> might be yeah
snicket has joined #nixos
<LnL> FYI channels already contain a package index, but it's not a full file index like what nix-index does
<pjt_014> after running that ^ cmd, nix-collect-garbage will eat up much more
kenran has joined #nixos
<pjt_014> what? where?
choward8 has joined #nixos
<pjt_014> wait I think I know
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84323 → alsaLib: 1.1.9 -> 1.2.2 → https://git.io/JvNmz
<pjt_014> one o' these
choward has quit [Ping timeout: 264 seconds]
choward8 is now known as choward
captjakk has joined #nixos
captjakk has quit [Remote host closed the connection]
<jakobrs> What's *.br?
<pjt_014> br is the brotli compression format
<pjt_014> it's very slow but effieicent
captjakk has joined #nixos
<pjt_014> but those file aren't it, they're plaintext, which is weird
<jakobrs> packages.json contains a invalid numeral according to jq
<pjt_014> you need some weird extra option along with --slurp
Jackneill has joined #nixos
<pjt_014> jakobrs: try --slurp --raw-input '.'
<pjt_014> wait NOW it's an actual compressed file?
captjakk has quit [Ping timeout: 260 seconds]
<pjt_014> messed up my terminal with binary trash too >:{
kleisli has quit [Remote host closed the connection]
arjen-jonathan has joined #nixos
kleisli has joined #nixos
<pjt_014> jakobrs: just --slurp worked for me
<jakobrs> On packages.json?
<pjt_014> yep
<jakobrs> You're right, that works, I don't know why it didn't earlier
<jakobrs> ... and --color-output and less -r, ofc
<pjt_014> look in your bash history and find out later I guess
<pjt_014> also I still need to tell you the other thing to make the indexing more likely to work
<pjt_014> I think that doing the indexing once will make it easier in the future
<pjt_014> like an incremental backup
<jakobrs> My history has a tendency to get confusing when running 5 shells simultaneously
<{^_^}> [nixpkgs] @edolstra merged pull request #84214 → Update nixUnstable + nixFlakes, remove nix1 → https://git.io/JvbZa
<{^_^}> [nixpkgs] @edolstra pushed 3 commits to master: https://git.io/JvNmX
<jakobrs> nix1 is removed?
<jakobrs> huh
<pjt_014> guess so
<pjt_014> now the other thing
<jakobrs> I guess it's warranted considering Nix 2.3.1 contains important security fixes
<jakobrs> Guix has a very outdated version of Nix btw, before 2.3.1
<pjt_014> wait guix *uses* nix?
<jakobrs> guix install nix
<pjt_014> oh, as a package
<jakobrs> the packaged version of nix is severely out of date
<jakobrs> What was the other thing?
<pjt_014> the other thing that's taking up lots of your ram
<pjt_014> plasma. kill it.
<jakobrs> You mean running nix-index from the VC?
<jakobrs> Or do you mean switch to xfce
<pjt_014> the first one.
<jakobrs> I just ran pkill plasma, it fails in an interesting way
<pjt_014> not the right way to do it
zebrag has quit [Ping timeout: 240 seconds]
<jakobrs> systemctl stop display-manager, ik
inkbottle has joined #nixos
<pjt_014> right
<pjt_014> ideally you should a huge drop in mem usage, either that or something else's up
<jakobrs> 300 Mb
<jakobrs> to be fair, killing firefox helps too
<pjt_014> down to 300 or 300 less than before?
<jakobrs> 305M total
<jakobrs> the first one
<pjt_014> that's def better
<jakobrs> honestly I could mostly live in the vc except for discord, firefox and the terminal font
<pjt_014> eh, you can get surprisingly far if you go to pains
<pjt_014> did you know you can interact with Twitch via IRC?
<pjt_014> I still feel weird knowing that
<energizer> i'd be surprised if theres no terminal client for discord
<pjt_014> but now it may have enough to build the first index from scratch on its own
linarcx has joined #nixos
<pjt_014> you still may wanna do timeout 2h or something in front
jakob_rs has joined #nixos
<jakob_rs> Out of power
jakobrs has quit [Ping timeout: 250 seconds]
<pjt_014> ah, the terror of batteries
<jakob_rs> That's the other thing missing in the vc, a battery indicator
jakob_rs is now known as jakobrs
<jakobrs> I ust wrote /nix instead of /nick by accident
<pjt_014> there's a place you can pull that from in /sys for sure
<jakobrs> Yeah
<jakobrs> maybe I should try i3wm
<hyper_ch> gchristensen: online?
<pjt_014> dwm is my prefered super-minimal wm. or dvtm
Dagger2 is now known as Dagger
<pjt_014> you could write a script to pull batt info to the status bar in either of them
<pjt_014> but I'm sure i3 can do that too
<jakobrs> Are you using dwm right now?
<{^_^}> [nixpkgs] @bjornfor merged pull request #84183 → uhd: 3.14.0.0 -> 3.15.0.0 → https://git.io/JvFAx
<{^_^}> [nixpkgs] @bjornfor pushed 9 commits to master: https://git.io/JvNm5
<pjt_014> No. It's a bit hard to customize and I haven't had the time. I tried using it alongside plasma, which was...interesting.
levdub has quit [Ping timeout: 260 seconds]
<jakobrs> I'd use xmonad, but everytime I've tried to set it up, it's been broken somehow
<pjt_014> When I learn haskell, I wanna try it--seems the best for customizing
<srk> jakobrs: never had any issues with xmonad being broken on nixos
<pjt_014> right now I'm just using plasma with kronkite for that goooood tiling action
<jakobrs> srk: last time I tried was ... a long time ago
<jakobrs> on Ubuntu
<jakobrs> I should probably try again
<pjt_014> What I eventually wanna do is find a nice config from /r/unixporn and just yeet that bad boy up to tweak
<jakobrs> Honestly, same
nerdrat[m] has joined #nixos
<pjt_014> It'd help if plasma had more config options besides enable = true
<jakobrs> Showerthought, people running i3-gaps should increase the gaps between the windows to reduce contagion of the coronaviros
<jakobrs> s/viros/virus/
<pjt_014> :gap -- 50
<pjt_014> I shall bravely sacrafice 90% of my screen space to stop this threat
<srk> I've recently migrated my xmonad setup to home-manager and xmobar, need to clean it up a bit and can share
<kraem> bqv[m]: cool. i'll save your config for reference for when i have time to play with flakes :)
<energizer> if you know python, qtile is a great tiling wm
<pjt_014> srk: If it's shinny cool enough stick it on the reddits so us cool kids can take a look
<srk> :))
<pjt_014> energizer: are my python speed fears waranted?
<srk> I would be afraid of my session crashing :)
<srk> I refuse to use any wm that does that
nerdrat[m] has left #nixos ["User left"]
<jakobrs> I had Plasma crash on me yesterday
<pjt_014> I have a bit of a bad taste it's left for me from back when I tried multithreading.
<jakobrs> As in everything broke
<pjt_014> always save yo work
<srk> when my computer crashes it's a very sad moment as all the layouts and shell history is lost and it takes hours to re-create it :D
<{^_^}> [nixpkgs] @Emantor opened pull request #84324 → Init/icecc icemon → https://git.io/JvNmj
<jakobrs> tmmux attach
<jakobrs> s/mm/m/
captjakk has joined #nixos
<jakobrs> lifesaver ... sometimes
<srk> tmux is weird with xmonad
<pjt_014> abduco -A main dvtm-status -m ^a
<jakobrs> how weird?
<srk> redundant a bit as you have tiling in tiling and need better bidings :)
<energizer> pjt_014: no
<jakobrs> pjt_014: the point is that even if plasma crashes, tmux continues running
<pjt_014> that's what mine does too
<pjt_014> dvtm is a muxer
<energizer> pjt_014: there is no noticeable latency in the wm
<pjt_014> nvm
<Orbstheorem> srk: what's weird with tmux and xmonad?
captjakk has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @euank opened pull request #84325 → k3s: init at 1.17.3+k3s1 → https://git.io/JvNYf
<pjt_014> wrong oncversation
captjakk has joined #nixos
<srk> Orbstheorem: redundant a bit as you have tiling in tiling and need better bidings :)
<Orbstheorem> I happily used a not-so-trivial xmonad + taffybar + tmux for some time
captjakk has quit [Remote host closed the connection]
<Orbstheorem> srk: I wouldn't say so, but I guess it depends on your workflow: I usually start working in my scratchpad and when things start to scale I promote the tmux window to its own terminal window and workspace
captjakk has joined #nixos
<srk> Orbstheorem: how do you move between windows in xmonad vs tmux?
kenran has quit [Ping timeout: 256 seconds]
<Orbstheorem> Also, I like managing my terminal sessions and windows independently since I organise terminals by topic and fork very often to check something quick, such a repl or an isolated experiment
<energizer> Orbstheorem: fork?
<Orbstheorem> I use ^q as tmux prefix and m4+{hjkl} for my windows
<srk> that's what I find confusing - having to set of ways to navigate windows
<srk> s/ways/keys/
<Orbstheorem> Fork as in spawn a new terminal window to do a quick experiment and the close it (or not) and go back to my main focus (editor/command/...)
<jakobrs> slightly unrelated, but
<jakobrs> zsh default is bindkey --emacs, right
<energizer> yes
<jakobrs> s/$/?/
<jakobrs> Then why do I have to manually add it to .zshrc on NixOS?
<Orbstheorem> srk: I guess I would have this either way. If I wasn't using tmux, but only Windows I would group my terminals in a sublayout and use different keys to come across them
<jakobrs> On nixos, the default seems to be --vim for some reason
captjakk has quit [Ping timeout: 265 seconds]
<Orbstheorem> jakobrs: this doesn't answer your question, but personally I ended up adding tons of emacs shortcuts to my vim, zsh and tmux configuration :D
<jakobrs> > emacs shortcuts to my vim [...]
<{^_^}> error: syntax error, unexpected ELLIPSIS, at (string):293:28
<jakobrs> blasphemy
<energizer> Orbstheorem: do you have a list of the zsh ones?
o1lo01ol1o has joined #nixos
jbrock_ has joined #nixos
<Orbstheorem> The rest of my configs is in my master branch, I just haven't completely migrated x)
<energizer> Orbstheorem: thanks
zupo has joined #nixos
jbrock has quit [Ping timeout: 258 seconds]
jbrock_ is now known as jbrock
o1lo01ol1o has quit [Ping timeout: 250 seconds]
jakobrs has left #nixos ["WeeChat 2.7.1"]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84326 → bacula: 9.6.2 -> 9.6.3 → https://git.io/JvNYt
mallox has joined #nixos
<{^_^}> [nixpkgs] @vbgl opened pull request #84328 → coq_8_11: 8.11.0 → 8.11.1 → https://git.io/JvNYY
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84329 → armadillo: 9.850.1 -> 9.860.1 → https://git.io/JvNY3
eoli3n__ has joined #nixos
morgrimm has joined #nixos
mallox has quit [Ping timeout: 240 seconds]
xelxebar has joined #nixos
morgrimm has quit [Ping timeout: 256 seconds]
lsix1 has joined #nixos
captjakk has joined #nixos
<{^_^}> [nixpkgs] @das-g opened pull request #84330 → nixos/xonsh: source NixOS environment → https://git.io/JvNYl
jbrock has quit [Read error: Connection reset by peer]
jbrock_ has joined #nixos
jbrock_ is now known as jbrock
pjt_014 has quit [Ping timeout: 256 seconds]
captjakk has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #84317 → shadowenv: 1.3.1 -> 1.3.2 → https://git.io/JvNIp
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvNYa
o1lo01ol1o has joined #nixos
fendor has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84331 → asymptote: 2.63 -> 2.65 → https://git.io/JvNYw
<{^_^}> [nixpkgs] @cdepillabout merged pull request #84272 → haskellPackages.persistent-postgresql: don't check → https://git.io/JvbQN
<{^_^}> [nixpkgs] @cdepillabout pushed 2 commits to haskell-updates: https://git.io/JvNYr
<yorick> does nginx support bcrypt hashes on nixos?
nomeata has joined #nixos
felixfoertsch23 has joined #nixos
felixfoertsch has quit [Ping timeout: 256 seconds]
felixfoertsch23 is now known as felixfoertsch
ij has joined #nixos
opthomasprime has joined #nixos
nikola[m]1 has joined #nixos
morgrimm has joined #nixos
medvid has quit [Ping timeout: 256 seconds]
<nikola[m]1> hello everyone! not sure if this is the right place for this particular topic, but planet.nixos.org seems to be down
<{^_^}> [nixpkgs] @vcunat pushed 2 commits to staging: https://git.io/JvNY9
<{^_^}> [nixpkgs] @vcunat merged pull request #84273 → gnutls: 3.6.12 -> 3.6.13 [security] → https://git.io/Jvb76
<nikola[m]1> it doesn't load for me in the browser, and my feed reader hasn't been able to access the feed since (at least) April 1st
raypatterson has quit [Quit: WeeChat 2.7.1]
Darkmatter66_ has joined #nixos
ZaraChimera has left #nixos ["Closing Window"]
morgrimm has quit [Ping timeout: 265 seconds]
mallox has joined #nixos
Darkmatter66 has quit [Ping timeout: 240 seconds]
arjen-jonathan has quit [Ping timeout: 260 seconds]
chagra has joined #nixos
<{^_^}> nixos-homepage#336 (by edolstra, 3 weeks ago, open): planet.nixos.org
<nikola[m]1> evils: ah, GitHub issues was the one place I haven't looked to see if anyone had reported it :) thanks! good to know it's a known issue.
medvid has joined #nixos
lsix1 has quit [Ping timeout: 265 seconds]
arjen-jonathan has joined #nixos
__monty__ has joined #nixos
koleesch has quit [Remote host closed the connection]
Zero-ghost[m] has left #nixos ["User left"]
laduke has quit [Ping timeout: 260 seconds]
civodul has joined #nixos
<{^_^}> [nixpkgs] @LnL7 opened pull request #84332 → darwin 20.03 backports → https://git.io/JvNOJ
laduke has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84333 → closurecompiler: 20200224 -> 20200315 → https://git.io/JvNOI
<bqv[m]> ,search libmagic
<bqv[m]> (I wish I was joking…)
<{^_^}> [nixpkgs] @LnL7 opened pull request #84334 → itstool: fix double-shebang backport → https://git.io/JvNOq
<tilpner> bqv[m]: pkgs.file
cr4y1 has joined #nixos
cybrian has joined #nixos
<bqv[m]> tilpner: ty
arjen-jonathan has quit [Ping timeout: 265 seconds]
nomeata has quit [Ping timeout: 256 seconds]
cybrian has quit [Ping timeout: 264 seconds]
chloekek has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84335 → cloudflared: 2020.2.1 -> 2020.3.2 → https://git.io/JvNOc
chpatrick has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84336 → python27Packages.bpython: 0.18 -> 0.19 → https://git.io/JvNOg
xkapastel has joined #nixos
chloekek has quit [Ping timeout: 256 seconds]
<bqv[m]> I dunno why people treat "detached head" like a problem that needs to be fixed. Its my default state in my nixpkgs repo
<FRidh> guess there's many that were taught to be on a branch and pull
m0rphism has joined #nixos
cosimone has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
evertedsphere has joined #nixos
evertedsphere is now known as help
knupfer has joined #nixos
help is now known as evertedsphere
<{^_^}> [nixpkgs] @FRidh pushed 3 commits to structured-attrs: https://git.io/JvNOX
<{^_^}> [nixpkgs] @FRidh pushed 2 commits to master: https://git.io/JvNOM
FRidh2 has joined #nixos
lunik1 has quit [Ping timeout: 258 seconds]
erictapen has joined #nixos
FRidh has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @FRidh pushed commit from @globin to staging « ghc883: fix structuredAttrs build »: https://git.io/JvNOD
lunik1 has joined #nixos
vonfry has joined #nixos
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @FRidh merged pull request #83618 → Staging next → https://git.io/JvQ0w
<{^_^}> [nixpkgs] @FRidh pushed 327 commits to master: https://git.io/JvNOH
<{^_^}> [nixpkgs] @FRidh pushed 18 commits to staging-next: https://git.io/JvNOQ
<{^_^}> [nixpkgs] @FRidh pushed 19 commits to staging: https://git.io/JvNO7
<{^_^}> [nixpkgs] @FRidh merged pull request #84192 → python3Packages.cryptography: 2.8 -> 2.9 → https://git.io/Jvbv4
<{^_^}> [nixpkgs] @FRidh pushed commit from @primeos to staging « python3Packages.cryptography: 2.8 -> 2.9 »: https://git.io/JvNOF
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed 4 commits to staging: https://git.io/JvNOh
<{^_^}> [nixpkgs] @FRidh merged pull request #83155 → alsa-lib: 1.1.9 -> 1.2.2 and new alsa conf packages → https://git.io/JvDi4
<{^_^}> [nixpkgs] @FRidh merged pull request #83087 → perl: 5.30.1 -> 5.30.2 → https://git.io/JvNOj
<{^_^}> [nixpkgs] @FRidh pushed commit from @volth to staging « perl: 5.30.1 -> 5.30.2 »: https://git.io/JvN3e
CMCDragonkai1 has joined #nixos
chloekek has joined #nixos
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
captjakk has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
captjakk has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @FRidh pushed to structured-attrs « Revert "Use env. for environment variables" »: https://git.io/JvN3q
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84338 → clash: 0.18.0 -> 0.19.0 → https://git.io/JvN3m
<{^_^}> [nixpkgs] @FRidh merged pull request #82460 → curl: 7.68.0 -> 7.69.1 → https://git.io/Jv61v
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to staging « curl: 7.68.0 -> 7.69.1 »: https://git.io/JvN3n
<{^_^}> [nixpkgs] @FRidh merged pull request #83267 → gd: 2.2.5 -> 2.3.0 → https://git.io/Jvy6d
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to staging « gd: 2.2.5 -> 2.3.0 »: https://git.io/JvN3c
mallox has quit [Ping timeout: 265 seconds]
teto has joined #nixos
<{^_^}> [nixpkgs] @FRidh merged pull request #82377 → libsass: 3.6.1 -> 3.6.3 → https://git.io/Jv6mu
<{^_^}> [nixpkgs] @FRidh pushed commit from @danderson to staging « libsass: 3.6.1 -> 3.6.3 »: https://git.io/JvN38
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84339 → collectd: 5.10.0 -> 5.11.0 → https://git.io/JvN32
pbogdan has joined #nixos
vonfry has quit [Ping timeout: 256 seconds]
<bqv[m]> configure: error: Could not find a version of the library!
<bqv[m]> well this is an excellent error
hmpffff has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84340 → byacc: 20191125 -> 20200330 → https://git.io/JvN3K
cosimone has quit [Remote host closed the connection]
morgrimm has joined #nixos
cosimone has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arjen-jonathan has joined #nixos
<{^_^}> [nixpkgs] @flokli merged pull request #84336 → python27Packages.bpython: 0.18 -> 0.19 → https://git.io/JvNOg
<{^_^}> [nixpkgs] @flokli pushed 2 commits to master: https://git.io/JvN3S
<{^_^}> [nixpkgs] @FRidh merged pull request #81729 → bison: 3.5.1 -> 3.5.2 → https://git.io/Jvap9
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to staging « bison: 3.5.1 -> 3.5.2 »: https://git.io/JvN39
morgrimm has quit [Ping timeout: 256 seconds]
cybrian has joined #nixos
<bqv[m]> ,locate pbc
<{^_^}> Found in packages: gromacs, gromacsMpi, gromacsDouble, gromacsDoubleMpi
<{^_^}> [nixpkgs] @Emantor opened pull request #84341 → drm_info: 2.1.0 -> 2.2.0 → https://git.io/JvN3Q
zupo has joined #nixos
philr has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @Ma27 pushed commit from @fadenb to release-20.03 « graylog: 3.2.2 -> 3.2.4 »: https://git.io/JvN3h
cybrian has quit [Ping timeout: 265 seconds]
hmpffff has quit [Quit: nchrrrr…]
zupo has quit [Client Quit]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84342 → distgen: 1.4 -> 1.5 → https://git.io/JvNsJ
zupo has joined #nixos
<gchristensen> fyi: ofborg's log viewer isn't broken anymore, afaik. if it is, lmk :)
philr has joined #nixos
Darkmatter66 has joined #nixos
johnjay has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @romildo merged pull request #84187 → matcha: 2020-03-29 -> 2020-04-03 → https://git.io/JvFjM
<{^_^}> [nixpkgs] @romildo pushed 2 commits to master: https://git.io/JvNsm
hmpffff has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84343 → eksctl: 0.15.0 -> 0.16.0 → https://git.io/JvNs3
FRidh has joined #nixos
Darkmatter66_ has quit [Ping timeout: 265 seconds]
FRidh2 has quit [Ping timeout: 260 seconds]
jbrock has quit [Ping timeout: 256 seconds]
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84344 → dict: 1.12.1 -> 1.13.0 → https://git.io/JvNsR
myr463 has joined #nixos
<yourfate> so, I want to migrate 2 web apps to a nixos machine, right now one is running on one server using docker, the other is installed natively on another machine
<yourfate> they'd be served on different subdomains
<yourfate> now I'm not sure if I want to keep using docker
<yourfate> (it's nexecloud and https://github.com/LycheeOrg/Lychee-Laravel)
<yourfate> *nextcloud
<b42> there's nice nixos module for nextcloud that doesn't use docker
<yourfate> hmm
<eyJhb> Is there any good way, to run X script, and then rebuild?
<{^_^}> [nixpkgs] @AndersonTorres opened pull request #84345 → sound-of-sorting: 2015-07-21 -> 2017-12-23 → https://git.io/JvNsi
johnjay has joined #nixos
lsix1 has joined #nixos
inkbottle has quit [Quit: Konversation terminated!]
<yourfate> oooh, it seems it can even automagically configure nginx
<yourfate> which I can just tell to do the letsencrypt for it
<yourfate> nice
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84346 → duplicity: 0.8.11.1596 -> 0.8.12.1612 → https://git.io/JvNsQ
waleee-cl has joined #nixos
lsix1 has quit [Ping timeout: 265 seconds]
cosimone has quit [Remote host closed the connection]
levdub has joined #nixos
cosimone has joined #nixos
levdub has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84347 → eventstore: 5.0.7 -> 5.0.8 → https://git.io/JvNsj
cosimone has quit [Quit: Terminated!]
eof has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @aanderse opened pull request #84348 → musikcube: init at 0.83.0 → https://git.io/JvNGT
mallox has joined #nixos
<{^_^}> [nixpkgs] @misuzu closed pull request #77479 → nixos/docker-containers: daemonize docker run and handle restarts by docker → https://git.io/Jvffr
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84349 → pantheon.elementary-calendar: 5.0.3 -> 5.0.4 → https://git.io/JvNGm
gxt has quit [Ping timeout: 240 seconds]
knupfer has quit [Client Quit]
knupfer has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
gxt has joined #nixos
<{^_^}> [nixpkgs] @bandresen opened pull request #84350 → babashka: 0.0.78 -> 0.0.79 → https://git.io/JvNGC
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mlatus[m]> how to do `import` when pure-eval option is on?
o1lo01ol1o has joined #nixos
<bqv[m]> same way you always do
<bqv[m]> just don't use absolute paths
<bqv[m]> and make sure the thing you're importing is in scope
<bqv[m]> how do i access "config" from a shell.nix?
<gchristensen> with pure-eval you must start with a builtins.fetch*
<{^_^}> [nixpkgs] @svanderburg merged pull request #82118 → androidenv: update generated expressions → https://git.io/Jvomt
<{^_^}> [nixpkgs] @svanderburg pushed 10 commits to master: https://git.io/JvNGV
bvdw has joined #nixos
<mlatus[m]> grhristensen: even the path is already in nix store?
<mlatus[m]> * gchristensen: even the path is already in nix store?
<gchristensen> yes
<gchristensen> with pure-eval, Nix must know how to go from nothing
<bqv[m]> is pure-eval not the same as restricted mode?
<gchristensen> it isn't the same :) restricted mode is less strict
<mlatus[m]> kind of weired..
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84351 → pantheon.elementary-camera: 1.0.5 -> 1.0.6 → https://git.io/JvNG6
<bqv[m]> right
jakobrs has joined #nixos
<jakobrs> Do I need to do anything to get bittorrent/transmission-gtk to work on nixos? seeding specifically
<mlatus[m]> When provided, this is the expected hash of the file at the path. Evaluation will fail if the hash is incorrect, and providing a hash allows builtins.path to be used even when the pure-eval nix config option is on.
<gchristensen> for example, this works: nix-instantiate --option restrict-eval true -E '(import <nixpkgs> {}).hello' -I nixpkgs=/nix/store/04ck4nckra6933g5r0ffy1m452zvh4ij-nixos-20.03beta874.b0c285807d6/nixos
<mlatus[m]> this is doc of builtins.path
<mlatus[m]> but can't figure out how
<jakobrs> I figure I might need to open a port in the firewall?
<Orbstheorem> Hi o/ How can I have an attrset run a function upon lookup? I would like to access a set like so: `foo.bar`, and have a function evaluated with argument `bar` (since at the time of writing the function I don't know the argument domain). I'm doubting this is possible (since it would break `with foo; ...`), but I'm not sure ^^
<jakobrs> oh nvm it seems to be working now
nomeata has joined #nixos
<bqv[m]> you could test that by setting networking.firewall.enable = false; temporarily
<bqv[m]> gchristensen: is there a route to the nixos configuration from pkgs?
<gchristensen> no, nixpkgs doesn't really know about NixOS
jbrock has joined #nixos
<bqv[m]> is there any other way i can access "nixos-rebuild" from pkgs?
<bqv[m]> the package doesn't seem to be exposed through pkgs
<gchristensen> heh, yeah, I don't know :/
<bqv[m]> hmm, ok, ty anyway
romildo has joined #nixos
<gchristensen> mlatus[m]: this works for me: nix-instantiate --option pure-eval true --eval -E 'builtins.path { path = ./test.nix; sha256 = "4d1024a134b9ea6fbf122c8c59262886478085dbbaefe1391c6838c6bf8c685f"; }'
<romildo> How can set attribute names be listed in a derivation, for debugging purpose?
knupfer has quit [Quit: knupfer]
<gchristensen> > builtins.attrNames pkgs.hello
knupfer has joined #nixos
<{^_^}> [ "__ignoreNulls" "all" "args" "buildInputs" "builder" "configureFlags" "depsBuildBuild" "depsBuildBuildPropagated" "depsBuildTarget" "depsBuildTargetPropagated" "depsHostHost" "depsHostHostPropagated...
knupfer has quit [Client Quit]
knupfer has joined #nixos
cybrian has joined #nixos
<mlatus[m]> so import are only allowed on result of fetch* : https://github.com/NixOS/nix/commit/d4dcffd64349bb52ad5f1b184bee5cc7c2be73b4
opthomasprime has quit [Remote host closed the connection]
tjg1 has quit [Quit: i sincerely apologise for any civil disobedience caused]
<bqv[m]> surely it's allowed on anything that's within the pure scope
<benny> now that hydra is being very slow to advance the unstable channel I'm convinced to switch to 20.03 and then just pull the few packages where I want the latest from unstable
chagra has quit [Quit: WeeChat 2.7.1]
<{^_^}> [nixpkgs] @bandresen opened pull request #84354 → clj-kondo: 2020.03.20 -> 2020.04.05 → https://git.io/JvNZs
cybrian has quit [Ping timeout: 265 seconds]
chagra has joined #nixos
captjakk has joined #nixos
greizgh has quit [Quit: greizgh]
greizgh has joined #nixos
zupo has joined #nixos
CMCDragonkai1 has quit [Quit: CMCDragonkai1]
chagra has quit [Ping timeout: 265 seconds]
captjakk has quit [Ping timeout: 264 seconds]
chagra has joined #nixos
<{^_^}> [nixpkgs] @JakeStanger opened pull request #84355 → rofi-mpd: 2.0.1 -> 2.2.0 → https://git.io/JvNZX
<{^_^}> [nixpkgs] @flokli pushed to master « nixos/rxe: fix option description »: https://git.io/JvNZy
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84356 → pantheon.elementary-code: 3.3.0 -> 3.4.0 → https://git.io/JvNZb
<{^_^}> [nixpkgs] @FRidh merged pull request #84328 → coq_8_11: 8.11.0 → 8.11.1 → https://git.io/JvNYY
<{^_^}> [nixpkgs] @FRidh pushed commit from @vbgl to master « coq_8_11: 8.11.0 → 8.11.1 »: https://git.io/JvNZA
<{^_^}> [nixpkgs] @FRidh merged pull request #84325 → k3s: init at 1.17.3+k3s1 → https://git.io/JvNYf
<{^_^}> [nixpkgs] @FRidh pushed commit from @euank to master « k3s: init at 1.17.3+k3s1 »: https://git.io/JvNZh
<{^_^}> [nixpkgs] @FRidh merged pull request #84288 → flutter: 1.12.13+hotfix.8 -> 1.12.13+hotfix.9 + fixes → https://git.io/JvbNZ
<{^_^}> [nixpkgs] @FRidh pushed commit from @babariviere to master « flutter: update channels + fix dev channel »: https://git.io/JvNnJ
bhipple has joined #nixos
<{^_^}> [nixpkgs] @FRidh merged pull request #84205 → hcxtools: 5.3.0 -> 6.0.1 → https://git.io/JvbmA
<{^_^}> [nixpkgs] @FRidh pushed commit from @dywedir to master « hcxtools: 5.3.0 -> 6.0.1 »: https://git.io/JvNnq
ambroisie has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @FRidh merged pull request #84237 → easysnap: 2019-02-17 -> 2020-04-04 → https://git.io/Jvbzk
<{^_^}> [nixpkgs] @FRidh pushed commit from @sjau to master « easysnap: 2019-02-17 -> 2020-04-04 »: https://git.io/JvNnm
<{^_^}> [nixpkgs] @FRidh merged pull request #84151 → brave: 1.5.115 -> 1.5.123 → https://git.io/JvF6Y
<{^_^}> [nixpkgs] @FRidh pushed commit from @JeffLabonte to master « brave: 1.5.115 -> 1.5.123 »: https://git.io/JvNnO
<benny> FRidh: I'm bandresen on GH, can I ask ofborg to build the package myself in the future?
cjpbirkbeck has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<benny> etu: thanks, I can't :P
<gchristensen> you can actually, ofborg automatically builds every PR for aarch64-linux and x86_64-linux if you follothe "attributename: commit message" format
hmpffff has quit [Quit: nchrrrr…]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84357 → pantheon.elementary-shortcut-overlay: 1.1.0 -> 1.1.1 → https://git.io/JvNn4
NieDzejkob has quit [Ping timeout: 256 seconds]
morgrimm has joined #nixos
nomeata has quit [Quit: Client exiting]
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Thra11 has joined #nixos
Supersonic112 is now known as Supersonic
<gchristensen> ah then it probably would have started them, not sure
chpatrick has quit [Quit: Connection closed for inactivity]
morgrimm has quit [Ping timeout: 240 seconds]
<ij> I think someone answered this a couple of years ago, but I forgot...
<ij> why can't xorriso find the files that I want to include in my nixos iso when building it? I added it with isoImage = { contents = [ {source = "/home/addable-file"; target = "/home/addable-file"; } ] };
<ij> xorriso : FAILURE : Cannot determine attributes of source file '/home/images/test-file' : No such file or directory
<ij> /home/images is rwxr-xr-x
<gchristensen> your source there is justa string, you need to actually pass a path: source = /home/addable-file
<gchristensen> as a string, the Nix build is isolated and sandboxed and can't access anything but paths that were provided
<ij> it's a huge file, can I move it to /nix/store? dirty, but making isos is a dirty business
<MichaelRaskin> And passing it as a path copies the file into the Nix store where the build can access it
<ij> it's a smaller copy of my /home
<ij> as a giant, encrypted loop-mountable file
<MichaelRaskin> If you pass a path without quotes, it will be copied to the store automatically and the path to the copy passed to the actual build command
<ij> hm, fine... I'll try that
erictapen has quit [Ping timeout: 256 seconds]
<chloekek> The Nix installer does not work when run as root. So I would create a new user, run the installation script, and then delete that user. Does deleting that user cause problems with Nix later on?
<Orbstheorem> Does anybody have a nix expression for `isPrefixOf`?
<{^_^}> [nixpkgs] @bhipple merged pull request #84281 → kmon: init at 1.0.0 → https://git.io/Jvbdg
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JvNnM
<MichaelRaskin> Orbstheorem: lib has hasPrefix
erictapen has joined #nixos
<Orbstheorem> MichaelRaskin: thank you ^^
<Orbstheorem> I was looking in lib.strings x)
<chloekek> Nevermind, I will skip the installation script, since it does some other things I don’t like.
lsix1 has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84358 → debootstrap: 1.0.119 -> 1.0.123 → https://git.io/JvNnH
<ij> MichaelRaskin, works indeed
NieDzejkob has joined #nixos
hmpffff has joined #nixos
<bqv[m]> urgh, restricted mode means my server's config doesn't even build at the moment
ambroisie has joined #nixos
mallox has quit [Quit: WeeChat 2.7.1]
mallox has joined #nixos
chagra has quit [Ping timeout: 256 seconds]
mallox has quit [Client Quit]
<kraem> MichaelRaskin: regarding passing a file as a path or string; if passing the file as a string isn't saving it in the nix-store, can one read secrets with strings (and not save them in the nix-store), or is the value of the varaibles saved in the nix-store either way?
chagra has joined #nixos
<MichaelRaskin> Derivations are saved in the Nix store
<{^_^}> [nixpkgs] @ryantm merged pull request #84322 → yad: 5.0 -> 6.0 → https://git.io/JvNqr
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JvNcR
<MichaelRaskin> So whatever is available in the build is world-readable
chagra_ has joined #nixos
<kraem> ok thanks
jakobrs has quit [Ping timeout: 256 seconds]
<bqv[m]> so i do a somewhat extraordinarily hacky thing on one of my machines to only add to haproxy ssl certificats that already exist on disk, to get around the fact that half the time the acme module doesn't even generate them in time so the configuration fails to run. Anyone got any ideas on a smarter way to do that?
<jluttine> "stack new myproject" fails: error: attribute 'ghc843' missing, at (string):1:43
chagra has quit [Ping timeout: 258 seconds]
<jluttine> i'm in "nix-shell -p stack"
ambroisie has quit [Ping timeout: 265 seconds]
<jluttine> or what is the correct way of creating a haskell project in nixos.. i'm new to haskell.
<clever> jluttine: personally, i just avoid stack and `cabal new-build` like the modern plague :P
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84359 → pantheon.elementary-calculator: 1.5.4 -> 1.5.5 → https://git.io/JvNcX
<clever> jluttine: use pkgs.haskellPackages.callCabal2nix and plain old `cabal build` (via `runHaskell Setup.hs build`)
<munksgaard> I would like to install elm-format through npm, so I have a shell.nix with `buildInputs = [ nodejs-12_x ]` but after running npm install elm-format within, it seems like the installed elm-format links to libgmp, which it cannot find, not even if I add gmp to the buildInputs. Any idea what could be wrong?
<clever> jluttine: this for example, returns a set containing all haskell packages, plus 2 extra
<jluttine> clever: cabal is broken too.. `nix-shell -p haskellPackages.cabal` fails
<clever> jluttine: haskellPackages.cabal is the cabal library, not the cabal binary
<clever> jluttine: you want cabal-install
<bqv[m]> nix being case-sensitive is the most frustrating thing. looking at the code you'd think security.acme.preliminarySelfSigned was an option
<bqv[m]> guess what? that last S shouldn't be capital
<jluttine> clever: ok. i guess there aren't really instructions for this in any nixos docs
<bqv[m]> could anyone write a quick PR to make an alias with more healthy capitalization? every time I try and figure out how aliases work I break things
<clever> jluttine: the haskell stuff would be in the nixpkgs docs, not the nixos docs
<clever> jluttine: i also prefer doing everything with a shell.nix, and just ignore nix-env
<jluttine> clever: yes, i don't use nix-env
<clever> munksgaard: is npm building elm-format, or downloading a pre-made .so file?
<munksgaard> clever: I don't think it's downloading a .so file, it's trying to link to one. Or did I misunderstand your question?
<munksgaard> It may be that it's downloading a binary
<munksgaard> without building it
<clever> munksgaard: youll need to patchelf the binary after npm downloads it
levdub has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84360 → elisa: 19.12.3 -> 20.03.90 → https://git.io/JvNcN
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
<munksgaard> clever: Okay, I'm not sure how that works. `patchelf --add-needed libgmp.so.10 /path/to/elm-format` didn't seem to do much
<clever> munksgaard: its already in the DT_NEEDED field, you must set the rpath
CptCaptain has quit [Ping timeout: 265 seconds]
levdub has quit [Ping timeout: 256 seconds]
<munksgaard> clever: `patchelf --set-rpath /nix/store/h5j89q8sf64079zgwqg4fqmw7hfzq43z-gmp-6.2.0/lib /path/to/elm-format` doesn't seem to do much of anything either
<{^_^}> [nixpkgs] @jtojnar pushed to master « nixos/gdm: fix startup »: https://git.io/JvNch
<clever> munksgaard: what does `file /path/to/elm-format` report?
eof has joined #nixos
<munksgaard> clever: /home/munksgaard/src/willoughby/node_modules/elm-format/unpacked_bin/elm-format: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=06441a32d74fc8606356e1827a9c110515847e94, stripped
<clever> munksgaard: you must also fix the interpreter, again with patchelf
fenedor has joined #nixos
<clever> $ cat $NIX_CC/nix-support/dynamic-linker
<clever> /nix/store/qb6k4hp7gk331x9fydw0w7qj4dv09bwz-glibc-2.27/lib/ld-linux-x86-64.so.2
<clever> munksgaard: this env var tells you where it is
<clever> munksgaard: so, you want to add `--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker)` to the cmd
fendor has quit [Ping timeout: 265 seconds]
<munksgaard> clever: That seemed to do something. `file` now points to the new interpreter, though ldd still can't seem to find libgmp. However, trying to run the executable gives this error: /home/munksgaard/src/willoughby/node_modules/elm-format/unpacked_bin/elm-format: error while loading shared libraries: libgmp.so.10: wrong ELF class: ELFCLASS32
<exarkun> upgraded to nixos/20.03 two days ago. minetest is broken now, https://gist.github.com/exarkun/c7602319b74ee1f7e0368ea3c1785422 - anyone know anything about that
<clever> munksgaard: you gave it a 32bit gmp, not a 64bit gmp
philr has quit [Ping timeout: 256 seconds]
<clever> /nix/store/h5j89q8sf64079zgwqg4fqmw7hfzq43z-gmp-6.2.0/lib/libgmp.so.10.4.0: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, not stripped
<clever> munksgaard: file confirms that
<munksgaard> Aha. I found the gmp file by doing `find /nix/store -name '*gmp.so.10'` and taking the first one, so it would make sense that I was unlucky... Any better way to find the correct version than just trying the different ones that pop up?
<clever> munksgaard: ask nix for it, `nix-build '<nixpkgs>' -A gmp`
logand has joined #nixos
immae has quit [Quit: WeeChat 2.4]
work_ has joined #nixos
<munksgaard> clever: That makes sense.
morgrimm has joined #nixos
reallymemorable has joined #nixos
<munksgaard> clever: It works!
<munksgaard> clever: Thanks :)
<clever> munksgaard: when ran like that, nix will default to the same arch that nix-build itself was compiled with
<clever> munksgaard: you may also want to use a shell.nix file with a shellHook, to patch things, since youll need to repeat that every time npm re-downloads the binary
<munksgaard> clever: That sounds like a very good idea.
sogatori has quit [Remote host closed the connection]
<logand> is there a way to set user home dir to readable instead of 0700?
ambroisie has joined #nixos
<yourfate> what is the normal place to put webroots in nixos? on my arch the websites were in /usr/share/nginx/html/
<clever> munksgaard: this one is a bit complex, but the selected area will run `yarn install`, then overwrite several of the pre-compiled binaries with symlinks to pre-patched ones nix provides
<logand> yourfate: in nix store
<jluttine> ok.. i still don't understand how do i create a new haskell project.. i guess i would like to use stack as that has first-class support for nix
<clever> yourfate: my prefered method is to point `services.nginx.virtualHosts.<name>.root` to a derivation, probably pkgs.runCommand, so everything is in the nix store
CptCaptain has joined #nixos
<clever> jluttine: lines 5 and 6 load a machotool.cabal and a macho.cabal into nix, then you can just `nix-build -A machotool` to build it, or `nix-shell -A machotool.env` to get a shell with the deps
shibboleth has joined #nixos
<jluttine> clever: hmm.. i need to crete these cabal files first i guess
<clever> jluttine: `cabal init` can automate that i believe
<yourfate> clever: so I'd have to create a package for that site?
<clever> yourfate: yeah
<jluttine> clever: yeah, and for that i need a nix shell with ghc and cabal-install..
<clever> jluttine: yeah, i would use `nix-shell -p ghc cabal-install` for that first run
<jluttine> clever: hmm! now this looks promising, got the compiler running, yey! thanks!
romildo has quit [Quit: Leaving]
<morgrimm> nix-shell is so fuckin cool - I'm tempted to try and slide nix in at work to make local dev envs/CI builds less flaky
<clever> morgrimm: do it!
<morgrimm> I have to figure out a good solution for npm/python package reproducing, though. I haven't looked into any abstractions nixpkgs has for that
<morgrimm> But we're a python/react shop, so that part pretty much makes or breaks it
<chloekek> Ah, I found a solution. I can just install Nix in daemon mode as root by inserting this line into the installation script: sed -i 's/\[ \$EUID -eq 0 \]/false/' "$unpack"/*/install-multi-user
<chloekek> It disables the root check and everything works. :)
<munksgaard> clever: Thanks a lot
immae has joined #nixos
<clever> chloekek: the problem, is that nix needs to modify the $HOME for a non-root user, and things may start to malfunction down the road if you bypass it
captjakk has joined #nixos
ambroisie has quit [Ping timeout: 256 seconds]
<morgrimm> i.e. Pulling all python packages from our company twine/npm repos, etc. I don't want to have to manually override all python package derivations we need from nixpkgs :/
learnday20 has joined #nixos
<clever> morgrimm: i think there is stuff in place, to take a requirements.txt and auto-generate the nix to do that
<learnday20> I am trying to put xmonad.nix in /etc/nixos/configuration.nix file and its saying error: syntax error, unexpected WITH, at /etc/nixos/configuration.nix:163:2 what do i need to do? thank you!
<clever> learnday20: what is the code around line 163?
<chloekek> clever: Ideally I would have a minimal setup suitable to nix copy into, and run nix-collect-garbage from time to time
<chloekek> No channels or profiles or anything user-specific.
<{^_^}> [nixpkgs] @offlinehacker closed pull request #83851 → whirlpool-gui: init at 0.10.1 → https://git.io/Jv53F
<clever> chloekek: yeah, then youll want to delete the channels after the install is done, though, nix itself must be in roots profile, or nix will try to delete nix
<munksgaard> clever: Is there a way to use that `nix-build` think within a --pure shell? It's complaining that $NIX_PATH isn't set.
<clever> munksgaard: i would just just run nix-build outside of the nix-shell
liminal18 has joined #nixos
<munksgaard> clever: But then I can't put it into the shellHook, right?
<clever> munksgaard: you can already build things in the shellHook
<clever> munksgaard: patchelf --set-rpath ${gmp}/lib, will have nix build gmp, and insert the path for you
<munksgaard> clever: I see
<learnday20> hello clever: code on ln163 starts with with lib;
<learnday20> xmonad = pkgs.xmonad-with-packages.override {
<learnday20> cfg = config.services.xserver.windowManager.xmonad;
<learnday20> inherit (lib) mkOption mkIf optionals literalExample;
<learnday20> let
<learnday20> ghcWithPackages = cfg.haskellPackages.ghcWithPackages;
<learnday20> packages = self: cfg.extraPackages self ++
<learnday20> optionals cfg.enableContribAndExtras
<learnday20> [ self.xmonad-contrib self.xmonad-extras ]; I don't want to put the entire thing here.
<clever> learnday20: can you put the whole file into a pastebin, its hard to see what exactly is wrong here
<learnday20> clever: ok, heres the link, https://pastebin.com/J0S2Y3vn thank you! I am still learning nix expression and language
<clever> learnday20: the error says you have a problem on line 163, but that pastebin is only 95 lines long, where is 163?
<{^_^}> [nixpkgs] @bhipple merged pull request #84130 → treewide: quoted urls for RFC45, only the rebuilds → https://git.io/JvFE8
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JvNC6
mallox has joined #nixos
<monokrome> has anyone got accurate power reporting to work w/ Purism laptops?
<monokrome> like, whether charging or not
<clever> learnday20: is the pastebin xmonad.nix or configuration.nix ?
zebrag has joined #nixos
evertedsphere has quit [Ping timeout: 264 seconds]
<learnday20> clever: sorry it took me few minutes due to my not knowing, it is xmonad.nix i pasted, here is my configuration.nix with line 163, https://pastebin.com/ySpVvFab
<clever> learnday20: yep, line 163 is the problem
<clever> learnday20: line 7 is the start of an attribute set, which must only contain `key = expression;` pairs
<clever> learnday20: line 163, `with lib;` is not a `key = expression;` pair
<{^_^}> [nixpkgs] @dominikh opened pull request #84361 → luminance-hdr: use Qt5's mkDerivation → https://git.io/JvNWv
ym555 has joined #nixos
<morgrimm> Is there ever a reason to use raw derivations over the wrappers for most derivations?
<morgrimm> Like, I'm basically pulling src from GH and then copying it into $out, so I'm considering runCommand - but then, do I lose being able to set meta properties, test phases, etc if need be?
<morgrimm> I tried mkDerivation, but setting builtInputs/buildPhase still expected the default builder to run, which isn't what I need
<clever> morgrimm: the attrset that runCommand takes, can accept meta and other stuff
<clever> morgrimm: and it can still run phases as well
<learnday20> clever: ok, thanks for explaining that. so how can I add the xmonad.nix into configuration.nix as key = expression pairs?
<clever> morgrimm: here, i use runCommand, i set patches, and then i run patchPhase to apply everything in patches
<clever> learnday20: add `./xmonad.nix` to the imports list, and nixos will merge it in for you
gustavderdrache has joined #nixos
FRidh2 has joined #nixos
chagra has joined #nixos
<morgrimm> Ahh, okay
FRidh has quit [Ping timeout: 265 seconds]
ddellacosta has joined #nixos
<morgrimm> is the cmd passed to runCommand the build instructions?
<clever> morgrimm: yeah
<mallox> hi, how do I add a file to firefox's nix store path via configuration.nix: /nix/store/r80765q5pirwxy7q2nc45cm7p455i83z-firefox-unwrapped-74.0/lib/firefox/defaults? Thanks!
<morgrimm> Beauty :)
<morgrimm> Thanks clever
chagra_ has quit [Ping timeout: 260 seconds]
logzet has joined #nixos
ym555 has quit [Ping timeout: 256 seconds]
<learnday20> hi clever: I added './xmonad.nix' in the import list and tried nixos-rebuild switch and it still gave me error on line 164 with the With, do i need to remove with lib? thank you
o1lo01ol1o has quit [Remote host closed the connection]
cole-h has joined #nixos
<morgrimm> clever: using runCommand, is it still advised to use buildInputs/propogatedBuildInputs if my package depends on others? coreutils included?
ym555 has joined #nixos
<{^_^}> [nixpkgs] @flokli pushed to master « Revert "nixos/hardened: build sandbox incompatible with namespaces" »: https://git.io/JvNWz
<clever> morgrimm: propogatedBuildInputs only works right if you run the fixupPhase, buildInputs works normally
never_released_ has joined #nixos
o1lo01ol1o has joined #nixos
never_released has quit [Ping timeout: 260 seconds]
<morgrimm> Alright - so if I depend on cp being available for example (although it seems coreutils already are with runCommand), should I still specify coreutils in the buildInputs?
<{^_^}> [nixpkgs] @veprbl opened pull request #84362 → python3Packages.matplotlib: 3.1.3 -> 3.2.1, and various cleanups → https://git.io/JvNWV
<clever> morgrimm: cp is part of the stdenv, and will always be available
<{^_^}> [nixpkgs] @AndersonTorres opened pull request #84363 → [WIP] {help wanted} twolame: 2017-09-27 -> 0.4.0 → https://git.io/JvNW6
<morgrimm> is that only for wrappers of derivation? I initially tried writing a raw derivation, and I had to make sure coreutils was in there
val75 has joined #nixos
<morgrimm> Or I guess, it's for any derivation that's part of the stdenv
val75 has quit [Remote host closed the connection]
lsix1 has quit [Ping timeout: 265 seconds]
o1lo01ol1o has quit [Ping timeout: 260 seconds]
CptCaptain has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @Ma27 pushed to master « mautrix-whatsapp: 2020-03-26 -> 2020-04-02 »: https://git.io/JvNWH
Rusty1 has joined #nixos
reallymemorable has quit [Quit: reallymemorable]
<Shell> is there a way I can find out why the nixos-unstable channel is 9 days old?
<clever> Shell: click on the `hydra job for tests` for unstable, under https://status.nixos.org/
<clever> error: while querying the derivation named 'k3s':
<clever> evaluation aborted with the following error message: 'Illegal use of <nixpkgs> in Nixpkgs.'
<{^_^}> [nixpkgs] @vcunat pushed to staging-20.03 « Merge #84273: gnutls: 3.6.12 -> 3.6.13 [security] »: https://git.io/JvNWj
<simpson> Shell: evaluation aborted with the following error message: 'Illegal use of <nixpkgs> in Nixpkgs.'
<simpson> Yeesh, such IRC lag. Basically everything clever said.
<clever> [clever@amd-nixos:~/apps/nixpkgs-hasura]$ head pkgs/applications/networking/cluster/k3s/default.nix
<clever> with import <nixpkgs> {};
<clever> wut??
o1lo01ol1o has joined #nixos
Rusty1 has quit [Read error: Connection reset by peer]
<clever> Shell: that would be the problem
ym555 has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @Ma27 pushed to release-20.03 « mautrix-whatsapp: 2020-03-26 -> 2020-04-02 »: https://git.io/JvNlU
magnetophon has quit [Read error: Connection reset by peer]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/f601ab37c2f (from 11 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
ddellacosta has quit [Ping timeout: 256 seconds]
KeiraT has quit [Remote host closed the connection]
reallymemorable has joined #nixos
leotaku has quit [Ping timeout: 264 seconds]
Amit[m] has joined #nixos
CptCaptain has joined #nixos
Rusty1 has joined #nixos
zupo has joined #nixos
<morgrimm> If you need to link a binary to make it available in the env when building, how would I do that? Does the build env for a derivation have access to the profile's etc/bin directory somehow?
ym555 has joined #nixos
cosimone has joined #nixos
chagra has quit [Ping timeout: 258 seconds]
<morgrimm> er, make it available *after* building
KeiraT has joined #nixos
chagra has joined #nixos
leotaku has joined #nixos
captjakk has quit [Ping timeout: 260 seconds]
arjen-jonathan has quit [Ping timeout: 260 seconds]
<arianvp> It's really annoying that the nix installer conflates Daemon mode with Multi-User mode
<Izorkin> aanderse: the last version of php-fpm doesn't work for me. Result ls -lah - srw-rw---- 1 root root 0 апр 5 19:03 test-01.sock
<arianvp> I want to install nix as root on server so I can use ssh-ng but the installer aborts
nschoe has joined #nixos
<arianvp> When I want to enable nix-daemon mode in instsller
<arianvp> ;/
<arianvp> Using nix-daemon when there is just a single root user is still useful
<clever> arianvp: you can always manually run the nix-daemon after you install it
morgrimm has quit [Ping timeout: 260 seconds]
evertedsphere has joined #nixos
fenedor is now known as fendor
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84364 → pantheon.elementary-files: 4.4.1 -> 4.4.2 → https://git.io/JvNlX
magnetophon has joined #nixos
<evertedsphere> hello! first time here
<evertedsphere> i have some sort of declarative nixops configuration that pins my system-wide nixpkgs
<evertedsphere> i'd like to refer to the root path of the repo from within the nix files that it consists of
markus1189 has quit [Ping timeout: 256 seconds]
<evertedsphere> something like <my-system-config/wallpaper.jpg> or whatever
markus1189 has joined #nixos
<evertedsphere> i think just defining something like my-system-config = copyPathToStore ./. and then referring to relative paths as "${my-system-config}/wallpaper.jpg" might work?
<evertedsphere> the other idea i had was putting an extra entry in nix.nixPath but that seemed to only "update" when i rebooted
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84365 → glew: 2.1.0 -> 2.2.0 → https://git.io/JvNlQ
<{^_^}> [nixpkgs] @vcunat pushed to staging-19.09 « Merge #84273: gnutls: 3.6.11.1 -> 3.6.13 [security] »: https://git.io/JvNld
<evertedsphere> and so i could get things being "out of sync" because NIX_PATH or <nixpkgs> referred to an old version of the system config
ym555_ has joined #nixos
ym555 has quit [Ping timeout: 260 seconds]
arjen-jonathan has joined #nixos
ym555_ has quit [Ping timeout: 258 seconds]
<aanderse> Izorkin: with the PR from @etu, or from master?
ym555_ has joined #nixos
<Izorkin> aanderse: I forgot to add settings = { "listen.owner" = "nginx"; ...
<Izorkin> aanderse: planned add no-roootles mode?
<aanderse> Izorkin: ok I'm happy to hear still working!
<aanderse> Izorkin: planned. pr open. need to test more. it doesn't work reliably yet :-\
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84366 → fwts: 20.02.00 -> 20.03.00 → https://git.io/JvN83
<djahandarie> Has any ever hit this issue before?
<djahandarie> darius@darius-laptop:~$ systemctl --user
<djahandarie> Failed to list units: The name org.freedesktop.systemd1 was not provided by any .service files
vika_nezrimaya has joined #nixos
<Izorkin> aanderse: it works correctly for me.
<Izorkin> aanderse: what errors remained?
<{^_^}> [nixpkgs] @Ma27 merged pull request #84296 → hydra: add dep on perlPackages.CatalystPluginSmartURI → https://git.io/JvbxH
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JvN88
erictapen has quit [Ping timeout: 264 seconds]
o1lo01ol_ has joined #nixos
<etu> aanderse: With my PR I'll added tests for php-fpm with nginx as well :)
<etu> aanderse: Which is nice :D
o1lo01ol1o has quit [Ping timeout: 265 seconds]
<aanderse> Izorkin: i haven't looked in a couple months, i can't remember right now
<aanderse> etu: very nice, much like the rest of that PR ^_^
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
<vika_nezrimaya> Hi there! Experimenting with making my NixOS system deployable from flakes, and I have some questions about the "--override-flake" flag. Let's say I have a type == "git" derivation that I want to replace for debugging with a local copy without modifying the flake.nix. How should I write the first argument? The obvious "git+https://gitlab.com/vikanezrimaya/reponame.git" doesn't seem to do anything. Is it only working for github: style
<vika_nezrimaya> flake registry entries?...
asbachb has joined #nixos
CptCaptain has quit [Ping timeout: 265 seconds]
levdub has joined #nixos
<{^_^}> [nixpkgs] @teto pushed to structured-attrs « Use env. for environment variables »: https://git.io/JvN8P
levdub has quit [Ping timeout: 250 seconds]
<Izorkin> aanderse: https://pastebin.com/7KbjxftC my php-fpm fix
<asbachb> Hej. What's up with nixpkgs-unstable? Seems that it wasn't updated since some time.
<evertedsphere> how do i interpolate variables in things i read with builtins.readFile?
<evertedsphere> like if i have a file which contains an "${pkgs.foo}/whatever" and i want to interpolate it as if it were inside a normal "..." or ''...'' block
<vika_nezrimaya> asbachb: if it wasn't updated in some time, it might be a sign that someone commited something that breaks Hydra channel builds. If Hydra fails the job, the unstable channel (or any channel) doesn't advance.
igghibu has joined #nixos
<{^_^}> [nixpkgs] @globin pushed 13 commits to structured-attrs: https://git.io/JvN4v
dingenskirchen has quit [Quit: dingenskirchen]
dingenskirchen has joined #nixos
<vika_nezrimaya> Also might be a sign that people have nothing more to do on self-isolation than push to Nixpkgs, which is good - except Hydra might not have been able to keep up with their pace :3
igghibu has quit [Client Quit]
<vika_nezrimaya> asbachb: I see a lot of jobs marked as "queued" in nixpkgs:trunk jobset on hydra.nixos.org, probably people are pushing lots of new cool stuff
<asbachb> vika_nezrimaya: I guess you're talking about this: https://hydra.nixos.org/jobset/nixpkgs/trunk
<vika_nezrimaya> Yep!
<vika_nezrimaya> exactly
<vika_nezrimaya> lots of queued jobs means that people are commiting lots of stuff
<vika_nezrimaya> it's not exactly proportional to stuff commited, one small change in glibc could lead to whole nixpkgs rebuild (but these changes are usually kept in staging to prevent this exact situation from occuring due to mass rebuilds)
<{^_^}> #84325 (by euank, 8 hours ago, merged): k3s: init at 1.17.3+k3s1
<hpfr[m]> the virt-manager package has a build input `spice-gtk ? null`. Do I override it like this? `super.virt-manager.override { spice-gtk = super.spice-gtk; };` When I do that and rebuild NixOS, virt-manager doesn't start compiling, which I expected. and the bug I'm having still appears
<clever> you can also get small 1 line changes, that entirely grind a channel to a halt
<vika_nezrimaya> clever: k3s is in Nixpkgs now?! YAY
<clever> vika_nezrimaya: k3s entirely broke all unstable channels
<vika_nezrimaya> oops
<vika_nezrimaya> why so
<clever> vika_nezrimaya: so no user will actually see k3s!
<clever> evaluation aborted with the following error message: 'Illegal use of <nixpkgs> in Nixpkgs.'
<asbachb> clever: But it got merged today? From my understanding the last nixpkgs-unstable update was 8 days before?
<clever> asbachb: it may not be the problem that has been going for the last 8 days, but it is one of the problems in the latest eval
<clever> basically, it was the fastest thing to fail, 2 other failures are still pending a retry
<evertedsphere> how long is it usually betweeen nixos-unstable updates
<clever> asbachb: and it does look like its also a very new failure, it wasnt in any of the previous fails, tarball used to be green
<evertedsphere> is there a well-defined release frequency?
<clever> evertedsphere: whenever all of the tests in https://hydra.nixos.org/job/nixos/trunk-combined/tested#tabs-constituents go green
hmpffff_ has joined #nixos
<evertedsphere> i see.
<evertedsphere> how do i run a script with a /usr/bin/env nix-shell shebang from a systemd user unit?
<evertedsphere> do i need to, like, manually set up the unit's PATH or something
<bqv[m]> Loosely defined: a day or two
<hpfr[m]> here's the derivation https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/virtualization/virt-manager/default.nix I can't get it to recompile with spice-gtk
<bqv[m]> Why use a nix shell if its in systemd
<bqv[m]> Just have what you need in scope
<clever> evertedsphere: i would just import the default.nix properly, and let it build when you nixos-rebuild
<vika_nezrimaya> evertedsphere: I'd recommend you using home-manager, it's an integrated solution
<evertedsphere> well, /usr/bin/env bash doesn't work either
<evertedsphere> i am using home-manager
<vika_nezrimaya> clever: bqv[m]: it's systemd-user, nixos-rebuild isn't relevant
<aanderse> Izorkin: i understand. phpfpm is documented to work with systemd sockets so I'll try to get that working properly still. if that can't work your solution is good still.
<evertedsphere> this is, like, a script being called from the home-manager polybar module
<vika_nezrimaya> then why do you use nix-shell there?
<vika_nezrimaya> you can just set up the PATH in Environment or hardcode paths to nix store using ${package} constructs
<evertedsphere> just because i don't want any of the script's dependencies in my user env if i don't need them. but like i said i can't make it execute with /usr/bin/env bash either
<evertedsphere> ah
hmpffff has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @hedning opened pull request #84367 → gtk3: 3.24.14 -> 3.24.17 → https://git.io/JvN4B
<evertedsphere> wait can i do ${pkgs.foo} even if foo is not installed?
<vika_nezrimaya> yep!
<evertedsphere> wil lit automatically build the foo store path and everything for me
<evertedsphere> oh wild
<clever> evertedsphere: nix will automatically download foo for you
<vika_nezrimaya> mmhm! but it won't pollute your env unless you explicitly add it to home.packages
liminal18 has quit [Quit: Leaving]
<evertedsphere> so what's the right way to just execute this systemd-user script with bash
<evertedsphere> should i change it to a nix thing and use ${pkgs.bash} or something
<evertedsphere> like #! /usr/bin/env ${pkgs.bash} (or is it in coreutils? idk)
orivej has joined #nixos
_e has quit [Quit: WeeChat 2.7.1]
<clever> evertedsphere: that would turn into `#!/usr/bin/env /nix/store/hash-bash/`
<vika_nezrimaya> #!${pkgs.bash}/bin/bash
<vika_nezrimaya> like this :3
<clever> evertedsphere: which makes no sense at all, your running env on a dir
<evertedsphere> i would actually like some form of nix variable interpolation in these shell scripts, like i don't want to write everything in inline ''...'' blocks if i can help it
<evertedsphere> i see, my bad
<vika_nezrimaya> evertedsphere: you can!
<clever> > stdenv.shell
<{^_^}> "/nix/store/ffli6m23501dkiznwlkf6n4xvrj02snr-bash-4.4-p23/bin/bash"
<clever> vika_nezrimaya: this also exists
<clever> > stdenv.shell
<vika_nezrimaya> Use @variable@ blocks to use placeholders
<{^_^}> "/nix/store/ffli6m23501dkiznwlkf6n4xvrj02snr-bash-4.4-p23/bin/bash"
<clever> > "#!${stdenv.shell}"
<{^_^}> "#!/nix/store/ffli6m23501dkiznwlkf6n4xvrj02snr-bash-4.4-p23/bin/bash"
<clever> evertedsphere: and now its a #!
<vika_nezrimaya> and then use substituteAll (I think so, use Nixpkgs manual for help)
<evertedsphere> so something like, er. #! @pkgs.bash@/bin/bash ...?
<vika_nezrimaya> just bash
<vika_nezrimaya> and then
<vika_nezrimaya> process the script using a Nix expression that takes your template as an input
<clever> evertedsphere: you can also use `#!/usr/bin/env bash` and then run patchShebangs
<clever> patchShebangs will look for anything using env, and patch them to use an absolute path instead
<vika_nezrimaya> I wish there was a version of patchShebangs that patched every single /bin/something call
<evertedsphere> here's the deal. i have something like
<evertedsphere> ''<lines> foo = ${pkgs.my-scripts}/polybar/foo.sh <lines>''
cybrian has joined #nixos
<evertedsphere> and foo.sh contains the actual shebang
<evertedsphere> so how do i do the patching
<clever> evertedsphere: pkgs.runCommand "name" { buildInputs = []; } ''
<clever> evertedsphere: mkdir -pv $out/bin ; cp ${./foo.sh} $out/bin/foo ; patchShebangs $out/bin
<evertedsphere> and i have to do something like that for every single script i want to refer to. huh.
<clever> evertedsphere: you can copy several scripts in a single runCommand
<evertedsphere> can't i just somehow make home-manager's systemd units "see" nix-shell
<evertedsphere> if so, i don't have to go through all this i think
<clever> evertedsphere: or you can write a nix function, that takes the name of something, and calls runCommand, inserting ${something}s everywhere
<clever> evertedsphere: f = name: path: pkgs.runCommand name {} mkdir -pv $out/bin ; cp ${path} $out/bin/${name} ; patchShebangs $out/bin'';
<clever> evertedsphere: then do `f "foo" ./foo.sh`
<evertedsphere> (aside: i removed all the channels from my system, and made a fully-pinned-everything nixops setup that i use to manage my system now, which is a lot of fun)
<evertedsphere> wait are you the clever from not-os
<clever> yes
<evertedsphere> :o
klntsky has quit [Ping timeout: 240 seconds]
erictapen has joined #nixos
logzet has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
cybrian has quit [Ping timeout: 265 seconds]
klntsky has joined #nixos
logzet has joined #nixos
CptCaptain has joined #nixos
<hpfr[m]> i'm getting an error trying usb redirection with virt-manager `g-exec-error-quark: Could not redirect [Device] at 1-24: Failed to execute child process "spice-client-glib-usb-acl-helper" (No such file or directory)`. That seems like nix has something to do with virt-manager not finding a usbredir dependency. Can you guys use USB redirection with virt-manager? Or does anyone know a way to fix this?
<evertedsphere> clever: is there an alternative way to run patchShebangs on a whole directory of scripts at once so i can just call ${pkgs.patched-scripts}/bin/foo.sh
<vika_nezrimaya> clever: btw I also usually use stdenv.shell
o1lo01ol_ has quit [Remote host closed the connection]
<clever> evertedsphere: `patchShebangs $out/bin` will patch everything in $out/bin
<vika_nezrimaya> evertedsphere: are you running from a NixOS checkout too? :3
<evertedsphere> i currently have ` maschinen-scripts = pkgs.copyPathToStore ../scripts;
<vika_nezrimaya> I'm sometimes dabbling in NixOS development so I basically have to run from a checkout
<evertedsphere> in nixpkgs.config.packageOverrides
<clever> evertedsphere: paths are copied automatically, you can just do maschinen-scripts = ../scripts;
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84368 → freetds: 1.1.6 -> 1.1.26 → https://git.io/JvN4b
<evertedsphere> no, vika_nezrimaya, i'm just pinned to a releases.nixos.org/nixos/<...> thing. not grownup enough to be hacking on nixos yet haha
<clever> evertedsphere: pkgs.runCommand "scripts" {} "mkdir $out ; cp -r ${../scripts} $out/bin ; patchShebangs $out/bin"
<evertedsphere> clever: right, i think i just like how it makes it clear what the store action is but if that's the preferred style i'll do that instead fro mnow on
<asbachb> Is there a graph of hydra load/queued items over time?
<evertedsphere> clever: can i put that in packageOverrides?
<clever> evertedsphere: yep, just assign it to some attr
<vika_nezrimaya> asbachb: I never saw something like this but it's possible, since the data is public
<evertedsphere> neat, and then i can just run ${pkgs.some-attr}/bin/scriptname.sh?
<infinisil> clever: Note that stdenv.shell isn't correct when cross compiling
<infinisil> There's pkgs.runtimeShell though
<vika_nezrimaya> clever: wow, this scripts one liner clever
<infinisil> > pkgs.runtimeShell
<{^_^}> "/nix/store/ffli6m23501dkiznwlkf6n4xvrj02snr-bash-4.4-p23/bin/bash"
<clever> infinisil: ahh, yeah
<vika_nezrimaya> s/clever$/is clever/
<{^_^}> [nixpkgs] @cleverca22 opened pull request #84369 → k3s: fix https://hydra.nixos.org/build/116132269https://git.io/JvNBU
<clever> Shell: and that will fix it ^
<evertedsphere> oh wow, infinisil, i've been learning a lot from your nixos config
<infinisil> Glad to hear :D
morgrimm has joined #nixos
<bhipple> infinisil: any tips on https://github.com/Infinisil/all-hies/issues/55 ?
<{^_^}> Infinisil/all-hies#55 (by bhipple, 58 minutes ago, open): Support GHC 8.8.3
<vika_nezrimaya> In the meanwhile I'm discovering some downsides of flakes - since they don't allow for arguments or ANY impurities, everything should be in a flake. Including secrets
<infinisil> bhipple: 8.8.3 isn't supported by HIE itself, so no way all-hies can support it
numkem has joined #nixos
<evertedsphere> uhh
<vika_nezrimaya> well, that's actually a great opportunity to separate my NixOS configuration into modules and machine definitions
<evertedsphere> sed: couldn't open temporary file /nix/store/h6aw6fjdb05ai023wyb9vmwzsnykwng3-maschinen-scripts/4kzkb3ba296mgl35c91i0cmdzqlbc577-scripts/polybar/sedda48ug: Permission denied
<evertedsphere> it patches the /bin/sh right and then dies with this
<clever> evertedsphere: oh right, you need to insert a `chmod -R +w $out` in there
<clever> evertedsphere: the `cp -r` preserved the read-only flag, so it doesnt have permission to patch things
<evertedsphere> ah i see
<bhipple> infinisil: oh I see, so if I have a project that's using ghc 8.8.3, just no HIE then?
<bhipple> Ryan and I just moved nixpkgs-update to 8.8.3 :'(
<infinisil> Pretty much yeah, would have to make a PR to HIE to add support
<numkem> Hi, I'm currently building a package for AdGuardHome and when it's building I'm getting this error: -binutils-2.31.1/bin/ld: cannot find -lz
<bhipple> It looks like there's a lot of work to do to get all-hies to support the latest HIE as well, too?
<clever> numkem: add zlib to buildInputs
<infinisil> And then update all-hies (though that's a bit of a problem too, see https://github.com/Infinisil/all-hies/issues/52)
<{^_^}> Infinisil/all-hies#52 (by poscat0x04, 3 weeks ago, open): Update to 1.2
<evertedsphere> err. i think that cp -r ${../scripts} $out/bin has to be ${../scripts}/* or else i get a hashed subdirectory lol
<clever> evertedsphere: if $out/bin doesnt exist, it will rename the dir as it copies
<bhipple> I guess it's back to https://github.com/jacktasia/dumb-jump again :D
<clever> evertedsphere: but if $out/bin does exist, it will keep the hashed name, as a child of bin
<evertedsphere> right, i was using $out instead of $out/bin
<numkem> clever: that did it thank you. Was looking for a lib and had lzo in, wrong lib
<clever> evertedsphere: then youll want to drop the mkdir
<evertedsphere> oh right
<evertedsphere> so now i can use nix-shell in the scripts that are getting passed through patchShebangs, right?
<clever> evertedsphere: its better to just patch them fully, and not use nix-shell at runtime
<{^_^}> [nixpkgs] @AndersonTorres opened pull request #84370 → [WIP] {help wanted} calibre: 4.12.0 -> 4.13.0 → https://git.io/JvNBC
<clever> evertedsphere: https://github.com/cleverca22/nixos-configs/blob/master/util.nix#L19-L23 is a very simple example
ddellacosta has joined #nixos
<evertedsphere> wait does patchShebangs not recurse into subdirs
<clever> evertedsphere: it does not recurse, you must point it to the dir the scripts are in
<evertedsphere> i see
<vika_nezrimaya> clever: while you're here && if it is on-topic enough to ask you a question about not-os: how to build it? fails with error: attribute 'enable' missing, at /home/vika/Projects/nixpkgs/nixos/modules/system/boot/kernel.nix:196:13
learnday20 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84371 → fldigi: 4.1.09 -> 4.1.11 → https://git.io/JvNBa
<vika_nezrimaya> if !ontopic then redirect-to proper-channel ;3
<evertedsphere> apparently patchShebangs refuses to touch my nix-shell script
<asbachb> Is there any information how hydra queue is being processed?
<clever> vika_nezrimaya: looks like it last worked on march 16th, and has been failing hard since then
<evertedsphere> i guess i should learn to do it the correct way then
<evertedsphere> and not use nix-shell at runtime
<clever> vika_nezrimaya: https://hydra.angeldsis.com/eval/1319865#tabs-inputs this page tells you which revision of nixpkgs last worked
<vika_nezrimaya> ok that's enough info to do a bisect I guess
<vika_nezrimaya> also cool domain
<clever> vika_nezrimaya: and this tells you the first rev that failed
<vika_nezrimaya> ok so no need to do a bisect
<clever> vika_nezrimaya: its configured to check nixpkgs master every 10 minutes, so that will be a pretty narrow range
<clever> vika_nezrimaya: it can also generate a diff of nixpkgs, for that range
<clever> Merge pull request #80114 from rnhmjoj/initrd
<clever> nixos/boot: add option to disable initrd
<clever>
<{^_^}> https://github.com/NixOS/nixpkgs/pull/80114 (by rnhmjoj, 7 weeks ago, merged): nixos/boot: add option to disable initrd
<vika_nezrimaya> and it also can make coffee
<vika_nezrimaya> right?
endformationage has joined #nixos
<evertedsphere> clever: is it idiomatic to have large shell scripts as multiline strings in nix files
<clever> vika_nezrimaya: looks like a new option got added to nixos/modules/system/boot/kernel.nix, and not-os doesnt support it
<evertedsphere> and not readFileWithInterpolationMagically path/to/file
<clever> evertedsphere: thats where substituteAll comes into play, and the @token@ patterns
<numkem> now I'm getting ENOTFOUND with anything related to nodejs during a build. Had the same problem yesterday with yarn. Google doesn't come up with much regarding nix, it seems to behave somewhat the same as inside docker
jakobrs has joined #nixos
justan0theruser has quit [Ping timeout: 272 seconds]
<clever> numkem: that happens any time something downloads a pre-compiled ELF, you must patchelf all the things
<evertedsphere> TIL sleep is not a shell builtin
<jakobrs> How do I figure out when a package on nixpkgs master is going to be available in nixos-unstable?
<numkem> clever: even npm? the command it's trying to do is npm --prefix client ci
<jakobrs> In this case, I'm thinking about Linux 5.6
<numkem> clever: or it's downloading a binary package
<morgrimm> Is there a way to virtualize NixOS that allowed proper screen scaling?
<jakobrs> Which was added 4 days ago
<clever> numkem: npm sometimes downloads binaries along with the JS
<numkem> clever: it's saying I don't have network connectivity
<clever> numkem: use `strace -f -e trace=execve ....` to see what its trying to run
<morgrimm> I'm running it in virtualbox with the vbox guest option enabled, but it's not adjusting the screen size, enabling seamless mode, etc.
asheshambasta has joined #nixos
<clever> jakobrs: when all of the tests in https://hydra.nixos.org/job/nixos/trunk-combined/tested#tabs-constituents turn green, nixos-unstable will update
jumper149 has joined #nixos
<jakobrs> clever: ty
<asbachb> Is there a reason why https://hydra.nixos.org/machines there're idling maschines while the queue is full?
<davidak[m]> DigitalKiwi thanks for the information. have you found out for what this is used?
<morgrimm> also, is there a good config structure recommended for really separate machines? for example, I have my nixos config for all my personal machines - but I have some package additions and stuff on my work machine that HAS to stay in our corp GH instance
<clever> asbachb: dont count the machines with a line thru the name
<evertedsphere> asbachb: kinda offtopic but do you speak german
<jakobrs> This is actually kind of cool: I can see new tests being finished whenever I reload the page
<clever> asbachb: also, are the idle machines of the same cpu arch?
<evertedsphere> would you say "Maschinen" to refer to a bunch of computers/servers informally
<DigitalKiwi> davidak[m]: kind of not really...like, it's usually used for console cables to cisco routers afaict...but why in this installation there were so many...idk
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84372 → flrig: 1.3.49 -> 1.3.50 → https://git.io/JvNB9
<vika_nezrimaya> clever: there are two ways in which it can be fixed. Either I vendor the NixOS kernel.nix and modify it so it won't include the option or I introduce a dummy option that would be probably always true
<vika_nezrimaya> Which one is preferred?
<clever> vika_nezrimaya: i'm already editing it to add the dummy option
<vika_nezrimaya> ok, should I wait for you to push it, then try again? :3
<asbachb> clever: e.g. t2a, t4b should be able to do x86_64-linux if I get it right.
<evertedsphere> clever: config.packageOverrides = { maschinen-scripts =
<evertedsphere> pkgs.runCommand "maschinen-scripts" { xinput = pkgs.xorg.xinput; } ''cp -r ${../scripts} $out; chmod -R +w $out; patchShebangs $out; substituteAll $out/polybar-hackspeed.sh'';
<evertedsphere> err shit i didnt realise there was a newline in there
<davidak[m]> DigitalKiwi yeah, some hardware needs non-standard console cables
<vika_nezrimaya> I'm really interested in new ways to build operating systems with Nix aside from NixOS and its modules
<evertedsphere> but doing that gives me `/nix/store/bd3xj2p79zrqkz9xr8daq6752avvv90f-stdenv-linux/setup: line 739: : No such file or directory`
<evertedsphere> patchShebangs succeeds but substituteAll i think fails
<morgrimm> Could I theoretically build a work flake that takes my personal flake as an input and overrides/overlays/adds the stuff that I need on the work machine?
<morgrimm> if I need to keep them truly separate
<rnhmjoj> clever: what's up? did my PR cause some issue?
magnetophon has quit [Ping timeout: 265 seconds]
<clever> evertedsphere: do you have an @xinput@ in your script?
<evertedsphere> yes
<clever> rnhmjoj: the `with import <nixpkgs> {};` breaks the channel: evaluation aborted with the following error message: 'Illegal use of <nixpkgs> in Nixpkgs.'
justan0theruser has joined #nixos
jakobrs has quit [Quit: WeeChat 2.7.1]
ambroisie has joined #nixos
<rnhmjoj> i meant PR #80114, that you linked before
<{^_^}> https://github.com/NixOS/nixpkgs/pull/80114 (by rnhmjoj, 7 weeks ago, merged): nixos/boot: add option to disable initrd
<{^_^}> [nixpkgs] @Ma27 pushed to master « bandwhich: 0.12.0 -> 0.13.0 »: https://git.io/JvNBh
<clever> rnhmjoj: oh, that PR
<clever> rnhmjoj: it breaks not-os, which is reusing kernel.nix outside of nixos
<clever> rnhmjoj: https://github.com/cleverca22/not-os/pull/11 should fix it
<{^_^}> cleverca22/not-os#11 (by cleverca22, 4 minutes ago, open): add a dummy enable to make kernel.nix happy
jakobrs has joined #nixos
<clever> rnhmjoj: i'm mixing a custom stage-1.nix with the nixos kernel.nix, so i can see how you would never predict such failures
<jakobrs> Can I make nixos use a package from nixpkgs master before it gets into the channel?
<vika_nezrimaya> clever: I see a new branch! trying to build it
<clever> ,unstable jakobrs
<jakobrs> More unstable than nixos-unstable
<clever> jakobrs: you can also point it to a revision of nixpkgs when doing the above
<jakobrs> Can I use "master" as a revision?
<rnhmjoj> clever: ah, i didn't know about not-os, pretty cool
<vika_nezrimaya> clever: it's compiliiiing
* vika_nezrimaya happy :3
<cole-h> jakobrs: You can, but the hash will change often
<jakobrs> sure
<jakobrs> Would fetchTarball work then? not that it's a good idea
<clever> jakobrs: and it could break at any time with no warning
<clever> jakobrs: yeah, fetchTarball would work there
<jakobrs> clever: I like to live dangerously
<{^_^}> [nixpkgs] @mpolden opened pull request #84373 → boringtun: 0.2.0 -> 0.3.0 → https://git.io/JvNRI
Rusty1 has quit [Remote host closed the connection]
<numkem> clever: I get empty outputs for each child processes... It seems to be common on nix to have no internet connection when using node, still digging through nixpkgs' issues
<jakobrs> Umm
<jakobrs> I forgot that I have to compile the kernel myself if I follow master
cr4y1 has quit [Remote host closed the connection]
<clever> jakobrs: and you may need to recompile every time you run nixos-rebuild, because master may have changed
<jakobrs> yeah...
ambroisie has quit [Ping timeout: 256 seconds]
<clever> jakobrs: but if you pick a single rev of nixpkgs, you only have to build once
<jakobrs> Is there a way to "select" the latest build that has succeeded on hydra?
<clever> jakobrs: read hydra, pick a rev, and paste that into the nix code
<jakobrs> Alternatively, can I use a store path directly instead of a derivation
<clever> jakobrs: otherwise, use a channel, the channels only update when things pass
<evertedsphere> clever: i do have an @xinput@ in my script, what do you think might be the case
<{^_^}> [nixpkgs] @etu merged pull request #83896 → PHP: Make the default package more sane [v3] → https://git.io/Jv59z
<{^_^}> [nixpkgs] @etu pushed 35 commits to master: https://git.io/JvNRZ
<etu> BOOM!
<{^_^}> Channel nixos-20.03 advanced to https://github.com/NixOS/nixpkgs/commit/7c9e1ecdf5a (from 18 hours ago, history: https://channels.nix.gsc.io/nixos-20.03)
magnetophon has joined #nixos
<clever> evertedsphere: does it give an error, or do nothing?
zebrag has quit [Quit: Konversation terminated!]
<evertedsphere> clever: the build fails with /nix/store/bd3xj2p79zrqkz9xr8daq6752avvv90f-stdenv-linux/setup: line 739: : No such file or directory
<evertedsphere> right after shebangs are patched
<clever> evertedsphere: it helps if you say so, you made it sound like the @xinput@ wasnt being replaced
drakonis has joined #nixos
<clever> evertedsphere: i forgot, substituteAll takes 2 params, the input path and output path
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84374 → gl2ps: 1.4.0 -> 1.4.1 → https://git.io/JvNRl
<evertedsphere> ohh lol
<clever> evertedsphere: substituteAllInPlace is a variant that doesnt do that
zebrag has joined #nixos
<{^_^}> [nixpkgs] @Ma27 pushed to release-20.03 « bandwhich: 0.12.0 -> 0.13.0 »: https://git.io/JvNRw
cr4y1 has joined #nixos
GrimSleepless has quit [Ping timeout: 268 seconds]
pbb has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
pbb has joined #nixos
domogled has quit [Quit: domogled]
<evertedsphere> can i just use @pkgs@ in a script without having to manually pass every single package to runCommand
<kraem> i want to test out PR #84303. i've checked out the commit in my nixpkgs clone. how would I build all of my system against it?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/84303 (by emilazy, 16 hours ago, open): zfs: Linux 5.6 compatibility
<jakobrs> Is there a way to turn a nix store path into a derivation?
<jakobrs> so that it can be used in configuration.nix
<cole-h> kraem: Add `-I nixpkgs=local/checkout/path` to your nixos-rebuild or whatever command, maybe?
<DigitalKiwi> what cole-h said
<kraem> ah i've only done that with nix-build. didn't know nixos-rebuild takes that argument. cole-h++
<{^_^}> cole-h's karma got increased to 16
<cole-h> I think all nix-* commands accept it
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84375 → facter: 3.14.8 -> 3.14.9 → https://git.io/JvNR5
<evertedsphere> erm. if i have "everything" in my system pinned and i depend upon pkgs.coreutils in a derivation why is it downloading and compiling coreutils from scratch
<evertedsphere> maschinen-scripts = pkgs.runCommand "maschinen-scripts" { xinput = pkgs.xorg.xinput; gawk = pkgs.gawk; coreutils = pkgs.coreutils; } ''
<evertedsphere> and then some stuff
<evertedsphere> why is it not using a binary cache or something
<clever> evertedsphere: maybe you just hadnt downloaded them before?
<cole-h> If it's compiling, you might have overlayed some part of it?
jakobrs has quit [Ping timeout: 265 seconds]
<evertedsphere> weird, i'm pretty sure i had a store path that contained, like, /bin/sleep and such
<clever> evertedsphere: ls -l /run/current-system/sw/bin/sleep
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
knupfer1 has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84376 → flyway: 6.2.4 -> 6.3.2 → https://git.io/JvN0f
<evertedsphere> $ ls -la $(which sleep)
<evertedsphere> lrwxrwxrwx 1 root root 68 Jan 1 1970 /run/current-system/sw/bin/sleep -> /nix/store/wx0wdgzlpgxjcviggd0pkkbxd0bdf6b8-coreutils-8.31/bin/sleep
<clever> evertedsphere: can you pastebin the whole nix file?
cybrian has joined #nixos
<evertedsphere> i can point you to a github thing i guess
knupfer has quit [Ping timeout: 260 seconds]
knupfer1 is now known as knupfer
reallymemorable has quit [Quit: reallymemorable]
reallymemorable has joined #nixos
<numkem> why would npm woulnd't be able to have an internet connection during nix-build? Works just fine in nix-shell as well
<{^_^}> [nixpkgs] @flokli merged pull request #81864 → firefox: mark as broken on 32-bit buildPlatform → https://git.io/JvVjP
<{^_^}> [nixpkgs] @flokli pushed 2 commits to master: https://git.io/JvN0L
<clever> numkem: npm wants to download stuff while building, thats what yarn2nix and friends solve
knupfer has quit [Client Quit]
<clever> evertedsphere: line 9 doesnt fully do what you want, it changes the nixpkgs used by nixos, but it doesnt change the nixos modules used by nixos
knupfer1 has joined #nixos
<clever> evertedsphere: which can lead to weird bugs, because the services and packages are out of sync
<evertedsphere> i see, i've always feared something like that
<{^_^}> [nixpkgs] @flokli pushed commit from @volth to release-20.03 « firefox: mark as broken on 32-bit buildPlatform »: https://git.io/JvN0q
<evertedsphere> i only began writing nontrivial nix like 4 days ago haha
<evertedsphere> how would i fix that?
<hpfr[m]> is there a way to manually add polkit `.policy` files in nixos configuration?
<numkem> clever: is it possible to take the output of node2nix and merge it with a stdenv build? I assume the idea is to have eveyrthing already preinstalled so npm doesn't have to do anything when it's executed
<clever> evertedsphere: its better to leave nixpkgs.pkgs as-is, and let it come from whatever nixpkgs you got nixpkgs/nixos/default.nix from
knupfer1 is now known as knupfer
<clever> evertedsphere: just delete lines 5 and 9
<evertedsphere> idk if this is relevant but i've removed all channels from my system
<clever> numkem: ive not used node2nix much, only yarn2nix
markus1189 has quit [Ping timeout: 256 seconds]
<evertedsphere> wait but how do i "pin everything" then
<clever> evertedsphere: you still have to tell nixos-rebuild which nixpkgs to get nixpkgs/nixos/default.nix from
<evertedsphere> i would like to avoid using any sort of system nixpkgs
<numkem> clever: assuming they are similar it would be possible?
<evertedsphere> i don't nixos-rebuild
<evertedsphere> i use nixops deploy
<evertedsphere> exclusively
<evertedsphere> my /etc/nixos is empty (i've been thinking about putting in some dummy file with impossible asserts in there to ensure nixos-rebuild fails loudly like i think i saw in infinisil's config)
<evertedsphere> ha, thanks
zebrag has quit [Ping timeout: 240 seconds]
cybrian has quit [Ping timeout: 256 seconds]
inkbottle has joined #nixos
<clever> evertedsphere: and that is your entry-point and pin
<clever> evertedsphere: then `nixops deploy -I nixpkgs=...` or `nixops modify deployment.nix -I nixpkgs=...`
<clever> evertedsphere: if your not using those, it will just use whatever $NIX_PATH pointed <nixpkgs> to
<clever> evertedsphere: by default, nixos-rebuild uses <nixos-config> to find configuration.nix, this line remaps it to a file that causes errors, so it never even looks in /etc/nixos
<clever> evertedsphere: and the line right after that, maps <nixpkgs> to whatever nixpkgs was used to build the current nixos
<bhipple> Using NixOps to deploy localhost is an interesting idea; what's the primary motivation?
<evertedsphere> bhipple: mostly learning nixops, tbh, but also just having some sort of super-declarative config
mehlon has joined #nixos
<evertedsphere> oh i see
<evertedsphere> so NIX_PATH can point to something that is out of sync with what i actually think <nixpkgs> points to
<evertedsphere> because it's an old version
<{^_^}> [nixpkgs] @aanderse opened pull request #84377 → Tomcat → https://git.io/JvN0B
CptCaptain has quit [Ping timeout: 265 seconds]
kenran has joined #nixos
<mdash> steam seems to be broken in unstable >:-[
<drakonis> broken how?
<clever> mdash: there goes my plans to update everything, lol
<drakonis> what kind of broken is that?
<drakonis> run steam on flatpak
<mdash> drakonis: 404s on libvulkan1 deb
<drakonis> oh i see
<drakonis> i heard something about valve updating the steam installer
asheshambasta has quit [Ping timeout: 265 seconds]
zaeph1 has joined #nixos
<evertedsphere> clever: btw i got the whole patching thing to work out and the script runs fine now, thank you so much! clever++
<{^_^}> clever's karma got increased to 376
<evertedsphere> i've learned a lot in like the 1 hour i've been here lol
<mdash> drakonis: looks like master has been updated at least
markus1189 has joined #nixos
zaeph has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84378 → gpsprune: 19.2 -> 20 → https://git.io/JvN0S
<kraem> this builds but i'm not sure if this is the right way to do it: https://github.com/kraem/nixpkgs/commit/c2f0d0624a14f702c3761b2e4160e73262f667c1
is_null has joined #nixos
<clever> kraem: about the only other way to do it, would be to conditionally add a .patch file to the patches list
zeta_0 has joined #nixos
<clever> kraem: pkgs/os-specific/linux/usbip/default.nix: patches = lib.optionals (lib.versionAtLeast "5.4" kernel.version) [
<zeta_0> why is the 1st line of this default.nix throwing a syntax error? https://dpaste.org/G7hn
<etu> zeta_0: - in name I guess
<zeta_0> does it have to be in a let in expression?
<clever> zeta_0: you can only put a `key = value;` inside a let block or a set
<etu> ah
<mehlon> could you use a pastebin that allows tor connections?
<mehlon> for example https://paste.debian.net/
eoli3n__ has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84379 → gnucash: 3.8b -> 3.9 → https://git.io/JvNEU
<zeta_0> so the 1st two lines would be placed in the `let` part and the rest of the code needs to place in the `in` part of the `let in` expression? https://dpaste.org/jFb4
zaeph1 is now known as zaeph
pbb has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<kraem> clever: alright, i actually had to add `else '''';`, didn't look very good
zupo has joined #nixos
<clever> > lib.optionalString true "foo"
<{^_^}> "foo"
<clever> > lib.optionalString false "foo"
<{^_^}> ""
<clever> kraem: this helper handles the empty-string case
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
<kraem> ah, i've worked with that one before. totally forgot about it. thanks clever++
<{^_^}> clever's karma got increased to 377
<zeta_0> clever: i think this is correct, the error went away? https://dpaste.org/TVz5
<clever> zeta_0: absolutely nothing in that references the cabal2nix-file variable, so you can just delete line 2
mehlon has quit [Remote host closed the connection]
kenran has quit [Ping timeout: 265 seconds]
mehlon has joined #nixos
linarcx has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @grahamc merged pull request #84369 → k3s: fix https://hydra.nixos.org/build/116132269https://git.io/JvNBU
<{^_^}> [nixpkgs] @grahamc pushed 2 commits to master: https://git.io/JvNEW
<evertedsphere> btw i think i tried calling callCabal2Nix from some sort of haskell package overrides thing and it... didnt exist? but callHackage did
<{^_^}> [nixpkgs] @grahamc pushed to revert-84369-fix-k3s « Revert "k3s: fix https://hydra.nixos.org/build/116132269" »: https://git.io/JvNEl
<evertedsphere> very confusing
<clever> evertedsphere: how did you run it?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84380 → pantheon.granite: 5.3.0 -> 5.3.1 → https://git.io/JvNE4
linarcx has joined #nixos
<{^_^}> [nixpkgs] @grahamc opened pull request #84381 → Revert "k3s: fix https://hydra.nixos.org/build/116132269" → https://git.io/JvNER
<zeta_0> but, i need that line of code to import that screened.nix file, that i'm using for cabal2nix into default.nix, i was just trying to get rid of the syntax errors
<evertedsphere> tried doing hnew.callCabal2Nix, pkgs.callCabal2Nix, nothing worked
<clever> zeta_0: then reference the variable somewhere
<clever> > haskellPackages.callCabal2Nix
<clever> > haskellPackages.callCabal2nix
<evertedsphere> err.
thetet has joined #nixos
<clever> > true
<{^_^}> true
<clever> evertedsphere: weird, the bot didnt print it, but your casing is off, its nix, not Nix
<{^_^}> attribute 'callCabal2Nix' missing, at (string):293:1
<{^_^}> <LAMBDA>
<clever> infinisil: out of order execution!!! lol
eoli3n__ has joined #nixos
<mehlon> that's functional programming baby!
knupfer has quit [Quit: knupfer]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
knupfer has joined #nixos
<{^_^}> [nixpkgs] @nh2 opened pull request #84382 → openblas: Add `singleThreaded` option. Off by default. → https://git.io/JvNEg
<clever> evertedsphere: try tab completing haskellPackages.callCabal in nix repl
growpotkin has joined #nixos
<zeta_0> clever: i'm not sure what you mean by that? here's what i have so far: https://dpaste.org/Na1u
<evertedsphere> erm. haskellPackages is apparently not a thing, but i can do this:
<evertedsphere> nix-repl> haskellPackages
<evertedsphere> error: undefined variable 'haskellPackages' at (string):1:1
<evertedsphere> nix-repl> (import <nixpkgs> {}).haskellPackages.
<evertedsphere> nix-repl> :t (import <nixpkgs> {}).haskellPackages a set
<numkem> how do you test new options that you define? nixos-rebuild switch -I <pathtonixpkgs>?
<evertedsphere> and then tabbing does nothing
<clever> evertedsphere: `nix repl '<nixpkgs>'`
<clever> evertedsphere: then `haskellPackages.callCabal<tab><tab>`
<evertedsphere> oh huh i get it now
<clever> zeta_0: add cabal2nix-file somewhere, like in the buildInputs list
<clever> zeta_0: oh, line 4 sorta does that now
<evertedsphere> isn't the tool itself called cabal2ni- oh. derp.
<clever> evertedsphere: callCabal2nix will run cabal2nix for you, then run callPackage on the resulting file, using IFD
<clever> ,ifd evertedsphere
<{^_^}> evertedsphere: import-from-derivation (IFD) is when you evaluate nix from a derivation result, for example `import (pkgs.writeText "n" "1 + 1")` will evaluate to 2. This is sometimes problematic because it requires evaluating some, building some, and then evaluating the build result. It has been described as "such a nice footgun."
<clever> evertedsphere: its sort of like template haskell
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/182f229ba7c (from 8 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<evertedsphere> i've ... heard *of* ifd but never actually used it consciously or recognised it being used in the wild
reallymemorable has quit [Quit: reallymemorable]
<clever> evertedsphere: using it within nixpkgs isnt allowed, because it harms the performance of `nix-env -i` and such, but your free to use it within your own stuff, and nixpkgs does contain code to help with it (like callCabal2nix)
<zeta_0> clever: ok, the errors went away so i think this is correct, see line 7: https://dpaste.org/LMDX
zupo has joined #nixos
levdub has joined #nixos
<evertedsphere> i see
magnetophon has quit [Ping timeout: 265 seconds]
<evertedsphere> so there's always a way around it?
<clever> evertedsphere: you can also just run cabal2nix yourself, any time the cabal file changes, and then use callPackage
<{^_^}> [nixpkgs] @lheckemann pushed 8 commits to structured-attrs: https://git.io/JvNEH
<evertedsphere> that's what i do currently. kinda annoying
<clever> evertedsphere: and callCabal2nix solves that anoyance entirely!
immae has quit [Quit: WeeChat 2.4]
asbachb has quit [Remote host closed the connection]
levdub has quit [Ping timeout: 265 seconds]
FRidh has joined #nixos
FRidh2 has quit [Ping timeout: 265 seconds]
thetet has quit [Quit: Leaving.]
FRidh has quit [Client Quit]
<zeta_0> clever: in this generic default.nix file that i use for haskell, do i need to reference cabal2nix_file in a `in` part somewhere else in the file as well? no syntax errors are being thrown, and i have nested `let in` expressions, so i'm not sure where cabal2nix_file would need to be placed? https://dpaste.org/c1g0
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84383 → gmsh: 4.5.4 -> 4.5.6 → https://git.io/JvNEN
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
<{^_^}> [nixpkgs] @euank opened pull request #84384 → k3s: remove extra buildInputs → https://git.io/JvNEA
Diogo has quit [Quit: The Lounge - https://thelounge.chat]
<energizer> is there a nix repl command like :p but which will expand \n in strings
Diogo has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84385 → gsm: 1.0.18 -> 1.0.19 → https://git.io/JvNEh
tertl3 has joined #nixos
shafox has quit [Remote host closed the connection]
magnetophon has joined #nixos
immae has joined #nixos
thetet has joined #nixos
<zeta_0> clever: the other default.nix file threw another error: https://dpaste.org/QA10 https://dpaste.org/PS2x
<morgrimm> Are there granular docs on nix/nixpkgs? Like, I've been through the manual, the wiki, the pills - but I can't seem to find out how to just flat out get explicit docs on functions, processes, other stuff
<gchristensen> morgrimm: https://nixos.org/nixpkgs/manual/#chap-functions like this?
<energizer> morgrimm: there is a nix manual, a nixpkgs manual, and a nixos manual https://nixos.org/learn.html
<evertedsphere> isn't there that one site that has a searchbar that you can filter stuff with
<evertedsphere> with things like boot.* options
thetet has quit [Client Quit]
<energizer> i almost feel like the whole above-the-fold of nixos.org/learn should be just "THERE ARE SEPARATE MANUALS FOR EACH OF THESE"
<sephii> I have 2 channels configured on my system: nixos (points to nixos-19.09) and unstable (points to nixos-unstable, used only for specific packages). Now when I installed packages in a non-declarative way (eg. `$ nix-env -i foobar`), it seems to automatically pick up the unstable one (I guess because it has a more recent version). Is there a way to not use unstable by default?
<morgrimm> gchristensen: For example, if I wanted to figure out what the meta attr does in a derivation, I either look at existing expressions in nixpkgs, or like
<gchristensen> energizer: send a PR? :D and cc @garb\as
<evertedsphere> that's a 404 gchristensen
<morgrimm> hunt it down in that page in lang-specific parts
<evertedsphere> did you type that url from memory
<gchristensen> yeah
<evertedsphere> hackerman
<gchristensen> hehe
<{^_^}> [nixpkgs] @numkem opened pull request #84386 → AdGuardHome: init at 0.101.0 → https://git.io/JvNu3
ottidmes has joined #nixos
<zeta_0> so where do i need to place mkDerivation in this default.nix file? i'm confused: https://dpaste.org/v8Qs
o1lo01ol1o has joined #nixos
<energizer> i have a multiline string in nix and i want to write it into a file, how do i do it? i tried `echo ${mystr} > file` but i think that expanded incorrectly
<evertedsphere> can i add my own nixos-level config options that the global `config` record will be populated with
<morgrimm> As another example, build phase attributes, and other builder attributes - the manual has a list of them, but they don't go any detail about the unpacking phase, or any others - just buildPhase, and adding another phase
<evertedsphere> say i wanted to be able to do {config,...}: ... someFunction config.myEmail
<gchristensen> energizer: one way is to use passAsFile ... mkDerivation { passAsFile = [ "mystring" ]; mystring = mystr; buildPhase = '' cat $mystringPath > file ''; }
thetet has joined #nixos
<morgrimm> The manual seems to have just enough to teach the topic at hand, which is awesome, but is the intent to go read existing derivations to learn anything more advanced, or?
<ottidmes> evertedsphere: sure, thats just creating yourself some options, all other config is populated through options too
<gchristensen> morgrimm: I think it is just hard to document it all, especially when things aren't 100% documented
<gchristensen> morgrimm: I often use search.nix.gsc.io to learn about things
domogled has joined #nixos
<energizer> gchristensen: thanks
gustavderdrache has quit [Quit: Leaving.]
<evertedsphere> ottidmes: how does one actually do that?
<morgrimm> Like for example, I'm trying to hunt down how to install an executable shell script from src into the profile's bin
<morgrimm> There's some wiki articles about packaging/wrapping, but they each again only have enough specific info for their article topic
<morgrimm> `install` seems to be the command they're using to install the binary for the user's env
<eyJhb> Where can I put a writeScript, so that it is available in my path? Something dead simple
<gchristensen> writeScriptBin so the script goes in to $out/bin/$name
<gchristensen> and then you'll need to put that in like, environment.systemPackages or whatever
<ottidmes> evertedsphere: Well, you can look at any of the modules found in NixOS by looking at github or your own checkout/snapshot, these are some of my own modules: https://github.com/msteen/nixcfg-shared/tree/master/modules
evertedsphere has quit [Remote host closed the connection]
<theduke[m]> so, [this pr](https://github.com/NixOS/nixpkgs/pull/82447) was merged over three weeks ago, but rustc in unstable is still `1.41`. What am I missing here?
<{^_^}> #82447 (by alyssais, 3 weeks ago, merged): rustc: 1.41.0 -> 1.42.0
eoli3n__ has quit [Ping timeout: 265 seconds]
<cole-h> theduke[m]: It was merged to staging
<morgrimm> gchristensen: and where would I find info on syntax/args for writeScriptBin? Searching hound is a good way to see examples, but
<morgrimm> Ah, manual
thetet has quit [Quit: Leaving.]
<gchristensen> that is how I would do it, or find the source of the function like "writeScriptBin ="
<energizer> i'm trying mkShell, and i want to inspect some of the outs, how can i find their path? normally nix-build prints the path, but nix-shell doesn't do that
<zeta_0> ok, so i add mkDerivation as an argument, now it's throwing another error? https://dpaste.org/Rx1R https://dpaste.org/wJzA
<gchristensen> zeta_0: you don't need to have mkDerivation anywhere in there
mehlon has quit [Quit: Leaving]
<morgrimm> and in this case, writeScriptBin is a wrapper like runCommand - but what do I do if I need to cp the source AND install a script?
<theduke[m]> cole-h: ah, so when/how is staging promoted to unstable? is there document somewhere describing how the nixpkgs update/build/release process works?
<eyJhb> `error: The option value `environment.systemPackages.[definition 5-entry 65]' in `/etc/nixos/configuration.nix' is not of type `package'.`
<{^_^}> rfcs#26 (by vcunat, 2 years ago, merged): staging workflow
<gchristensen> theduke[m]: ^
<eyJhb> When I use writeScriptBin inside my systempackages
<theduke[m]> thanks!
<gchristensen> eyJhb: did you use enough (..)'s?
<ottidmes> eyJhb: forgot an option, like the config { }?
<ottidmes> * argument
<zeta_0> gchristensen: ok, if i remove mkDerivation, it throws the error i had before: called without required argument mkDerivation? https://dpaste.org/B6p6
<{^_^}> [nixpkgs] @kraem opened pull request #84387 → facetimehd: update src to build with linux >= 5.6 → https://git.io/JvNua
WilliButz has quit [Remote host closed the connection]
WilliButz has joined #nixos
<kraem> gchristensen: 👆, if you have time :)
<ottidmes> zeta_0: that's about the arguments, which would be override or callPackage related, in this case you should be using callPackage rather than just importing and giving it an emtpy attrset
<gchristensen> kraem: would you like to add yourself as a maintainer?
<kraem> gchristensen: i was just about to ask if you wanted me to
<zeta_0> that default.nix file was working fine, but as soon as i tried to import a cabal2nix file into default.nix, that's when it started throwing all these errors
<gchristensen> please!
<sephii> When using `nix-env -qa`, is there a way to see from which channel a specific derivation comes from?
<ottidmes> zeta_0: cabal2nix-file = pkgs.callPackage ./screened.nix {};
<kraem> gchristensen: will do. do you have time to test the PR?
<gchristensen> kraem: I don't have a mac to test it with :)
<gchristensen> but happy to merge it
Rusty1 has joined #nixos
thetet has joined #nixos
<kraem> sure, just want to make sure i didn't make any severe mistake. can't add reviewers, guess the tests has to pass?
<gchristensen> I'll merge once it passes ofborg
<gchristensen> thanks!
thetet has quit [Client Quit]
<{^_^}> [nixpkgs] @danielfullmer opened pull request #84388 → searx: 0.15.0 -> 0.16.0 → https://git.io/JvNuH
<zeta_0> ottidmes: ok, after making that change it threw another error: https://dpaste.org/KGNL https://dpaste.org/JeQh
<kraem> np :)
<zeta_0> dam, i keep getting a chain of errors
<ottidmes> zeta_0: ah, that one was kinda obvious and I was almost expecting it
<gchristensen> zeta_0: take a few seconds and read that error and think carefully about what is on line 2 and 4?
reallymemorable has joined #nixos
<{^_^}> [nixpkgs] @basvandijk merged pull request #81024 → llvmPackages: rectify URLs → https://git.io/JvEpc
<{^_^}> [nixpkgs] @basvandijk pushed 2 commits to staging: https://git.io/JvNuN
<ottidmes> Alright, I will refrain from answering then, almost did, but that defeats the point gchristensen wants to make.
lsix1 has joined #nixos
<zeta_0> line 2 has pkgs, and line 4 has nixpkgs
<zeta_0> i'm not a nix expert so please some have patience, thanks
<gchristensen> where does "pkgs" come from?
<zeta_0> gchristensen: i usually import nixpkgs then use pkgs.foo to install nix packages
<gchristensen> cool, how do you usually import nixpkgs?
<{^_^}> [nixpkgs] @etu opened pull request #84389 → php: 7.2.28 -> 7.2.29, 7.3.15 -> 7.3.16, 7.4.3 -> 7.4.4 → https://git.io/JvNzL
<{^_^}> [nixpkgs] @IvarWithoutBones opened pull request #84390 → hactool: init at 1.3.2 → https://git.io/JvNzt
<zeta_0> gchristensen: ok, i fixed it: https://dpaste.org/VUQZ
<zeta_0> gchristensen: do i still need: with import <nixpkgs> { }; ?
Rusty1 has quit [Remote host closed the connection]
<gchristensen> nice! well, try it: delete that `with import...` bit and see what errros you find, and if you can fix them
<zeta_0> gchristensen: yup, it needs to be there as well, ok, i'll try testing out this default.nix file with nix-shell again
<gchristensen> cool
<gchristensen> but also, it might be good for you to delete it and see if you can fix the errors
<{^_^}> [nixpkgs] @ryantm merged pull request #84342 → distgen: 1.4 -> 1.5 → https://git.io/JvNsJ
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JvNzC
<zeta_0> gchristensen: ok, it doesn't look like there's any syntax errors in the default.nix file, but when i ran nix-shell --show-trace, again, it threw this error? https://dpaste.org/jtL4
<gchristensen> paste your .nix file?
mexisme has joined #nixos
<zeta_0> gchristensen: https://dpaste.org/c1R8
<gchristensen> paste your screened.nix ?
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
<zeta_0> gchristensen: https://dpaste.org/thV7
<eyJhb> gchristensen: I did not put enough ()
<zeta_0> gchristensen: i cloned darcs using: darcs clone --lazy http://darcs.net/screened , then i used cabal2nix with the cloned screened.cabal file with screened.nix
<zeta_0> gchristensen: i ran: cabal2nix . > screened.nix , so i don't think that's what's causing the error
hmpffff has joined #nixos
<zeta_0> gchristensen: also, here's the instructions that i'm using: http://darcs.net/Development/GettingStarted
<kraem> gchristensen: added myself to maintainers and ofborg tests passed ✔
<gchristensen> thanks, kraem!
<{^_^}> [nixpkgs] @grahamc merged pull request #84387 → facetimehd: update src to build with linux >= 5.6 → https://git.io/JvNua
<{^_^}> [nixpkgs] @grahamc pushed 2 commits to master: https://git.io/JvNzD
<zeta_0> gchristensen: i'm using a nix-shell for this because darcs.env in default.nix comes with all the dependencies that i need to build darcs
tilpner has left #nixos [#nixos]
<eyJhb> what is the best way to run a script at boot, that handles luksOpen of a exnernal drive?
<morgrimm> Can you not set it up as a luks device in the initrd settings?
<zeta_0> maybe instead of cloning that darcs screened repository, i need to run cabal get darcs instead, at this point i have no idea?
hmpffff_ has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84392 → haproxy: 2.1.3 -> 2.1.4 → https://git.io/JvNz9
<ottidmes> eyJhb: I use a systemd service that starts before local-fs.target
<eyJhb> ottidmes: link?
<gchristensen> a package I'm trying to build is erroring with "k8s.io/client-go@v12.0.0+incompatible: invalid version: +incompatible suffix not allowed: module contains a go.mod file, so semantic import versioning is required" now. anyone know what i need to do to make it build again? :/
<eyJhb> Also, does \n work in ''test\n''+"something"
<eyJhb> > ''test\n''+"something"
<{^_^}> "test\\nsomething"
<eyJhb> Nope, guess not
<ottidmes> eyJhb: not sure if you use case overlaps, since I need it relatively early, but I will gist it
<ottidmes> ,escape
<{^_^}> ottidmes: Did you mean escape"?
<{^_^}> " double quote: \" backslash: \\ bash curly bois: \${} newline: \n tab: \t "
aleph- has quit [Read error: Connection reset by peer]
<ottidmes> ,escape''
<{^_^}> '' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zeta_0> gchristensen: so did you figure out why that error is being thrown?
opthomasprime has joined #nixos
aleph- has joined #nixos
<ottidmes> > ''test''\n''+"something"
<{^_^}> "test\nsomething"
abathur has quit [Quit: abathur]
opthomasprime has left #nixos [#nixos]
zupo has joined #nixos
<morgrimm> Out of curiosity, anyone know if there's a big difference between running makeWrapper vs just symlinking something from $src to $out/bin?
<gchristensen> zeta_0: no, sorry, I had to get back to another task
<morgrimm> Like, is one more correct within the ecosystem/>
<morgrimm> ?*
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84393 → groovy: 3.0.0 -> 3.0.2 → https://git.io/JvNgf
arjen-jonathan has quit [Ping timeout: 256 seconds]
aleph- has quit [Read error: Connection reset by peer]
aleph- has joined #nixos
<ottidmes> eyJhb: This is what I am using for some of my backup disks: https://gist.github.com/msteen/1d49accb64fb7800c7f917480dd74609
<bqv[m]> morgrimm: well, if you copy it to $out and then wrap it there, nix can gc $src
myr463 has quit [Quit: User disconnected.]
<bqv[m]> at a guess
<morgrimm> So, here's the thing then
<morgrimm> I need $src to exist
<morgrimm> it's got all the supporting scripts, shell completions, etc.
<morgrimm> I'm guessing that's the incorrect way to do it
<theduke[m]> soo, what's the best way to handle dynamic library dependencies with `nix-shell`?
<theduke[m]> Eg I have something that needs `libfontconfig.so.1`. But adding `fontconfig.dev` as a dependency in `shell.nix` does not seem to make libfontconfig.so available in the shell, eg by adding the path to `LD_LIBRARY_PATH`
<zeta_0> gchristensen: it's ok, thanks for helping me out for a bit
<gchristensen> yep! good luck!
<eyJhb> ottidmes, gchristensen: if I `scriptFixxmod = (pkgs.writeScriptBin "fixxmod" "#!/bin/sh\n" + xmodSetup);` in my let, and then use it in my system packages, I get the same error as before :(
<bqv[m]> morgrimm: iirc the healthy thing to do is to copy from $src to $out, but i think i just do that out of habit, i'm not sure where i saw precedent
<bqv[m]> anyone else who cares feel free to correct me
pbb has joined #nixos
<morgrimm> Like, I'm trying to package up asdf-vm, a version manager
<eyJhb> ottidmes: seems to do what I want, needs a little editing :D
<morgrimm> and it's basically just a bunch of shell scripts shimming, and zsh/fish scripts to source it
zupo has quit [Ping timeout: 256 seconds]
<bqv[m]> theduke: that's because you're using fontconfig.dev, not fontconfig.lib
<{^_^}> [nixpkgs] @IvarWithoutBones closed pull request #84390 → hactool: init at 1.3.2 → https://git.io/JvNzt
<morgrimm> so I need the fish file to exist to source from my fish config - I've been doing that by passing it to my fish nix config and just sourcing ${mypkgs.asdf-vm}/asdf.fish
<manveru> morgrimm: if you link to $src, that src can't be garbage-collected... OTOH your output will be smaller i guess :)
<eyJhb> More (), damn it
ambroisie has joined #nixos
<morgrimm> and then wrapping the asdf binary to $out/bin
<manveru> also referencing $src outside the unpackPhase isn't needed, it'll be in the current directory in the build/install phases
<zeta_0> does anyone else here understand this error? https://dpaste.org/Dpix https://dpaste.org/NcU7 https://dpaste.org/mdSa
<manveru> i'd still copy it over, not much point in symlinking
<morgrimm> where would I copy it over to though?
<morgrimm> just... anywhere in $out?
<zeta_0> i'm going to take a quick break, i'll come back in a couple of minutes to see if anyone has responded
<bqv[m]> you can put whatever you like in $out
<bqv[m]> and then put the relevant things in $out/bin, etc.
<manveru> jup
<manveru> maybe take a look at the broot package, it does similar things i think
<theduke[m]> bqv: ah, didn't know `.lib` was a thing. but is that expected to alter LD_LIBRARY_PATH? doesn't seem to be the case
<morgrimm> so I could just, reserve $out/.asdf
<morgrimm> and then wrap the binary from that into $out/bin
<bqv[m]> theduke: echo $NIX_LDFLAGS
fsmnarmosta[m] has joined #nixos
logzet has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<zeta_0> clever: i'm using the darcs.env option in my default.nix like you recommended a while back, but i keep getting a bunch of errors thrown? https://dpaste.org/d03i
<morgrimm> Apparently there are utils to install the shell completionl
<morgrimm> shell completions* for fish
<bqv[m]> zeta_0: have you read the error?
chloekek has quit [Ping timeout: 256 seconds]
<bqv[m]> morgrimm: probably! but for the record there's nothing wrong with leaving stuff lying around in the root of $out. It has no significance to nix. only $out/{bin,libexec,etc,share,lib,include} etc do
<zeta_0> bqv[m]: yes, it tells me that i need mkDerivation as an argument in buildInput, so after i place it there, another error gets thrown? https://dpaste.org/m6fZ
<zeta_0> bqv[m]: one's default.nix, the other is screened.nix
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84394 → hopper: 4.5.21 -> 4.5.22 → https://git.io/JvNgz
<zeta_0> error: cannot coerce a function into a string, what does `coerce` mean in this context?
<manveru> > "${a: 1}"
<{^_^}> cannot coerce a function to a string, at (string):293:2
<bqv[m]> it means nix is assuming that you've given it a string, so it's trying to turn what you gave it into a string. as it happens, what you've given it is not something it knows how to coerce (turn into) a string (functions aren't very string-y) so it's throwing it back to you because it's not right
shibboleth has quit [Quit: shibboleth]
zupo has joined #nixos
Pwnna has joined #nixos
<Pwnna> > It is important to note that due to how development mode is implemented on Nix it is not possible to have multiple packages simultaneously in development mode.
<{^_^}> error: syntax error, unexpected IN, expecting ')', at (string):293:140
<Pwnna> does this mean i cannot enter multiple nix-shells simultaneously of 2 different projects?
<Pwnna> or does this mean i cannot ever have more than 2 projects in development mode
<{^_^}> [nixpkgs] @rycee opened pull request #84395 → documentation: minor spelling and stylistic fixes → https://git.io/JvNg1
<{^_^}> [nixpkgs] @rycee closed pull request #84262 → [20.03] documentation: minor spelling and stylistic fixes → https://git.io/JvbSZ
<zeta_0> manveru bqv[m] , i'm assuming it has to do with the buildInputs in the default.nix file, because i haven't changed: make-package-set.nix(where the error is being thrown): https://dpaste.org/Qdqh
cetjs2 has left #nixos ["Leaving"]
fendor has quit [Read error: Connection reset by peer]
<fsmnarmosta[m]> Is there a reason as to why there is both a hicolor_icon_theme and a hicolor-icon-theme?
lsix1 has quit [Ping timeout: 265 seconds]
<simpson> Pwnna: Multiple packages simulataneously in development mode within one single nix-shell context, I think. You can have multiple nix-shells open in multiple directories.
<Pwnna> ok
<zeta_0> manveru bqv[m] , there is no syntax errors being thrown, so it must be a logic error, somewhere in the buildInputs section, at this point i have no idea
<manveru> zeta_0: sometimes it's a function you didn't pass all arguments to, remember that all attributes in your derivation are turned into strings so they are available as environment variables later
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84396 → hwloc: 2.1.0 -> 2.2.0 → https://git.io/JvNgN
levdub has joined #nixos
fusion809 has quit [Remote host closed the connection]
levdub has quit [Ping timeout: 240 seconds]
<zeta_0> manveru: my default.nix file was working fine, but i needed to import a cabal2file, so i added this piece of code, which is causing the error: https://dpaste.org/cLtv
<zeta_0> into the default.nix file
<Pwnna> what's the sqlite3 binary package called in nix
<Pwnna> the one where i can get a sqlite3 shell
<andi-> sqlite :)
<manveru> ,locate bin sqlite
<manveru> ,locate bin sqlite3
<Pwnna> $ nix-env -qaP sqlite3
<Pwnna> error: selector 'sqlite3' matches no derivations
<manveru> there's sqlite and sqliteInteractive
<manveru> `nix search sqlite` :)
<{^_^}> Found in packages: sqlite.bin, sqlite_3_30.bin, sqlite-interactive.bin, sqlite-replication.bin
<{^_^}> Found in packages: tcl, sqliteman, sqlite-web, sqlite.bin, createrepo_c, sqlitebrowser, sqlite-analyzer, sqlite_3_30.bin, lispPackages.sqlite, sqlite-interactive.bin, sqlite-replication.bin
<Pwnna> ah ok
<Pwnna> Also, is it a good idea to pin to the release-20.03 branch in my default.nix file?
<Pwnna> maybe a bit more stability than unstable?
<Pwnna> not that I have an issue
<manveru> i always pin the commit
<manveru> `niv` is really handy for that
<Pwnna> i want to be somewhat up to date but not always on the cutting edge if that makes sense
opthomasprime has joined #nixos
<{^_^}> [nixpkgs] @rycee pushed commit from @r-ryantm to master « gpsprune: 19.2 -> 20 »: https://git.io/JvN2u
<bqv[m]> in the nicest phraseage possible, i think you might be a help vampire
<{^_^}> [nixpkgs] @rycee closed pull request #84378 → gpsprune: 19.2 -> 20 → https://git.io/JvN0S
<zeta_0> the biggest problem that i have with nix is it's error messages, they are very cryptic and don't always tell you what exactly is causing the errors
<{^_^}> [nixpkgs] @ggreif opened pull request #84397 → llvmPackages_latest: switch to llvmPackages_10 → https://git.io/JvN22
<bqv[m]> have you tried reading them :p they're honestly very descriptive
<zeta_0> bqv[m]: lol, is nix started to go mainstream or what, nix's error messages are horrible, that's why i have to come here to ask questions
<zeta_0> they tell you more or less where the errors are at, but they don't tell you why
<manveru> :)
opthomasprime has quit [Remote host closed the connection]
<manveru> i think they're looking for help
<bqv[m]> last error you posted, canot coerce a function to a string, it tells you what line it is, what it's trying to do, and leaves it to you to fix it. there's no more detail because for nix to have more detail would mean it could fix your code for you, and it's not psychic
<bqv[m]> error before that, mkDerivation not passed as an input, the problem is literally what it says
<zeta_0> manveru: i would contribute, but right now i'm contributing to darcs and xmonad, so i don't want to spread myself to thin
<{^_^}> [nixpkgs] @AndersonTorres opened pull request #84398 → cherrytree: 0.39.0 -> 0.39.1 → https://git.io/JvN2M
<bqv[m]> having tried a pretty considerable number of languages, the errors in nix are plenty fine in my opinion
<bqv[m]> the only problem i've had is when the error tells me there's a problem at <unknown-file>, but that's a fringe case
<zeta_0> bqv[m]: but when i pass mkDerivation as an input to buildInputs, it throws another error, i keep running in circles here
<zeta_0> i'm sorry for complaining about nix(it's a good tool), i'm just frustrated right now
markus1189 has quit [Ping timeout: 256 seconds]
<bqv[m]> have you tried googling this? have you tried looking at other examples of the sort of thing you're trying to do? have you tried just fiddling with a few things to see what happens?
<bqv[m]> the reason i mention being a help vampire, is that it seems like you're just throwing your problem at us with very little effort on your part, and that can be frustrating for us
<bqv[m]> i noticed gavin trying to teach you how to troubleshoot manually earlier, but you've simply come back with another set of problem that leaves us somewhat flabbergasted
<simpson> It can be both; Nix can be tricky *and* also Nix's error messages are not completely uninformative.
<zeta_0> i'm sorry if i come across as a help vampire, sometimes instead of staying stuck trying to fix an error for hours and hours, i just come here to ask questions, it saves me lot of time
<bqv[m]> true
<{^_^}> [nixpkgs] @leo60228 opened pull request #84399 → efivar: cherry-pick UCS-2 fixes → https://git.io/JvN2N
nschoe has quit [Read error: Connection timed out]
mallox has quit [Quit: WeeChat 2.7.1]
nschoe has joined #nixos
markus1189 has joined #nixos
skorpy2009 has quit [Remote host closed the connection]
<zeta_0> bqv[m]: i already search online, but this is the only thing that i could find that's similar to my issue, and it doesn't help very much: https://github.com/NixOS/nixpkgs/issues/29539
<{^_^}> #29539 (by ghost, 2 years ago, closed): gogs.nix reports "cannot coerce null to a string" with 17.09
magnus1 has joined #nixos
<{^_^}> [nixpkgs] @numkem opened pull request #84400 → nomad: 0.10.2 -> 0.10.5 → https://git.io/JvNaU
magnus1 is now known as skorpy2009
<zeta_0> that article on help-vampires is funny, it makes me feel guilty for asking too many questions here
<{^_^}> [nixpkgs] @doronbehar opened pull request #84401 → gnuradio: 3.7.13.4 -> 3.7.14.0 & more → https://git.io/JvNak
peanutbutter144 has quit [Ping timeout: 265 seconds]
peanutbutter144 has joined #nixos
markus1189 has quit [Ping timeout: 265 seconds]
knupfer has quit [Ping timeout: 260 seconds]
markus1189 has joined #nixos
<bqv[m]> pkgs.callPackage ./screened.nix {};
<bqv[m]> replace this with pkgs.haskellPackages.callPackage ./screened.nix {};
__monty__ has quit [Quit: leaving]
<bqv[m]> i'll explain how i determined that's your problem.
<bqv[m]> https://dpaste.org/PSfJ#L4 this is your file. i have no idea how haskell instrumentation in nix works, but i searched the nixpkgs repo for "setupHaskellDepends"
thetet has joined #nixos
<bqv[m]> i noticed that callPackage there isn't pkgs.callPackages, but self.callPackage
<bqv[m]> and in that scenario, self, is pkgs.haskellPackages
<{^_^}> [nixpkgs] @numkem opened pull request #84402 → consul: 1.6.2 -> 1.7.2 → https://git.io/JvNa0
<bqv[m]> without a shred of knowledge of what you're trying to do or how haskell works in nix, and a few minutes of searching and a vague understanding of your error, i worked out what was going wrong
<bqv[m]> the point is, this is something you should learn to do
<{^_^}> [nixpkgs] @ggreif closed pull request #84397 → llvmPackages_latest: switch to llvmPackages_10 → https://git.io/JvN22
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84403 → joker: 0.14.2 -> 0.15.0 → https://git.io/JvNag
nschoe has quit [Read error: Connection timed out]
nschoe has joined #nixos
<zeta_0> bqv[m]: thanks, and i apologize for being a help vampire, i eventually need to set some time aside to focus more on nix, right now all of my time and effort is going into haskell, a lot of the things that i've learned with haskell aren't helping my understanding of nix
<bqv[m]> :)
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84404 → jruby: 9.2.11.0 -> 9.2.11.1 → https://git.io/JvNaA
<cole-h> It's OK to ask for help. It's better if you ask for help with an explanation of what you think should be happening, what you've tried, etc.
linarcx has quit [Ping timeout: 258 seconds]
<zeta_0> please don't burn me at the stake for being a help vampire, i'm just joking, that article made me laugh and feel guilty at the same time, lol
<zeta_0> cole-h: ok, understood
<simpson> Wait, that's your first time seeing that article? I'm surprised. I feel like this is not the first time that this (meta-)conversation has happened.
tek[m] has joined #nixos
chagra has quit [Ping timeout: 260 seconds]
<{^_^}> Channel nixos-20.03 advanced to https://github.com/NixOS/nixpkgs/commit/182f229ba7c (from 11 hours ago, history: https://channels.nix.gsc.io/nixos-20.03)
<cole-h> Is this the slash7 article?
<simpson> Yeah.
mekeor has joined #nixos
<zeta_0> simpson: gchristensen and infinisil sent me a different article a while back, but i can't remember what it was about, that was months ago
<simpson> I read the Nix error proposal. I like the readability aspects a lot, but I'm not sure how it would have helped in this particular situation.
<cole-h> :P I remember trying to help someone here and then a user who shall rename unnamed sent me that article (had never seen it before myself)
snicket has quit [Ping timeout: 240 seconds]
maddo has quit [Quit: See ya]
chagra has joined #nixos
<bqv[m]> i only first saw it a few days ago in another community, i'm so glad this phenomenon has a name now, it's been common for decades
<zeta_0> anyways, i have to run a quick errand, i'll be back in a couple of minutes(i forgot what the irc command is to notify the chat room that i'm taking a break)
<bqv[m]> you're looking for /away
tghume_ has joined #nixos
<cole-h> (Which doesn't usually notify everybody because most people filter that out)
wirew0rm has quit [Remote host closed the connection]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
johnny5 has joined #nixos
Thra11 has quit [Ping timeout: 258 seconds]
tghume has quit [Ping timeout: 246 seconds]
wirew0rm has joined #nixos
<zeta_0> oh cool, thanks and it's nice to have access to people that are way smarter than me, i feel like i've learned so much more in these past few months with an irc connection, than when i was learning by myself off the internet, anyways, i'll be back in a while
johnnyfive has quit [Ping timeout: 260 seconds]
felixfoertsch23 has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
felixfoertsch has quit [Ping timeout: 260 seconds]
felixfoertsch23 is now known as felixfoertsch
justan0theruser has quit [Ping timeout: 265 seconds]
thetet has quit [Quit: Leaving.]
<{^_^}> [nixpkgs] @ashkitten opened pull request #84405 → dolphinEmuMaster: 5.0-11608 -> 5.0-11824 → https://git.io/JvNVt
<bqv[m]> nix is building 4000 derivations :| that's what i get for not rebuilding this machine for a few months
<tek[m]> I'm trying to install obelisk (https://github.com/obsidiansystems/obelisk/blob/master/default.nix) and the dependency `x509-validation` loops infinitely in the `test` phase, apparently polling `/dev/*random` and getting `EINVAL`. can somebody explain this? is this a sandbox issue? obelisk appears to be supplying its own dependencies, since I can install that dep manually without this issue.
<{^_^}> [nixpkgs] @jtojnar pushed to master « nixos: try to fix channel eval »: https://git.io/JvNVO
<immae> bqv[m]: I sympathize, I spent the weekend upgrading a whole (quite big) cluster from 19.03 to 19.09 and then unstable...
<{^_^}> [nixpkgs] @pbogdan opened pull request #84406 → nixos/manual: fix build → https://git.io/JvNVs
cybrian has joined #nixos
<tek[m]> in the linked `default.nix`, there is a list of overlays, where I tried adding an override for `x509-validation` using `dontCheck`, but the attribute appears not to be read at all
<tek[m]> * in the linked `default.nix`, there is a list of overlays, where I tried adding an override for `x509-validation` using `dontCheck`, but the overridden attribute appears not to be read at all
<{^_^}> [nixpkgs] @jtojnar merged pull request #84406 → nixos/manual: fix build → https://git.io/JvNVs
<{^_^}> [nixpkgs] @jtojnar pushed 0 commits to master: https://git.io/JvNVc
slack1256 has joined #nixos
<bqv[m]> tek: you could try building without the sandbox, see if that helps, you might be right
cybrian has quit [Ping timeout: 256 seconds]
drakonis has quit [Quit: WeeChat 2.7.1]
<bqv[m]> immae: i'm just trying to merge my machine configs, but that means switching this system to flakes *and* upgrading it from the config i last built possibly last year at this point
johnjay has quit [Ping timeout: 250 seconds]
<bqv[m]> tek: the ordering might matter. if something used x509-validation before your overlay, it wouldn't have any effect
justan0theruser has joined #nixos
<bqv[m]> I would still try building with the sandbox off, as a diagnostic
morgrimm has quit [Ping timeout: 265 seconds]
<tek[m]> bqv: how do I deactivate it?
bqv has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<cole-h> `--option sandbox off` should do it, I believe
morgrimm has joined #nixos
<tek[m]> thanks
johnjay has joined #nixos
<tek[m]> seems not to make a difference
bqv has quit [Remote host closed the connection]
<bqv[m]> sorry, i was lagging. the server my homeserver is running on has decided it wants to compile qemu
<tek[m]> I think it's the irc bridge, mine is lagging as well
sshow_ has joined #nixos
sshow has quit [Ping timeout: 258 seconds]
morgrimm has quit [Ping timeout: 265 seconds]
o1lo01ol1o has quit [Ping timeout: 256 seconds]
drakonis has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84407 → khard: 0.15.1 -> 0.16.0 → https://git.io/JvNVw
learnday20 has joined #nixos
<{^_^}> [nixpkgs] @michalrus opened pull request #84408 → ly: 0.2.1 -> 0.5.0 → https://git.io/JvNVK
philr has joined #nixos
johnjay has quit [Ping timeout: 256 seconds]
Naptra has quit [Ping timeout: 260 seconds]
<bqv[m]> no it was definitely me. my server was almost unresponsive and i crashed my pc :')
liminal18 has joined #nixos
<liminal18> hey folks: Do I have to use callPackage in order for a nix file to be be a types.package?
<liminal18> I'm trying to import only the mongo 4v package into my configuration.nix with out resorting to using unstable.
cosimone_ has joined #nixos
cosimone has quit [Ping timeout: 260 seconds]
anirrudh has joined #nixos
<bqv[m]> yes
anirrudh has quit [Remote host closed the connection]
<bqv[m]> types.package in that situation is the derivation, and the nix file is a function that returns a derivation
<AmandaC> So... darcs being marked broken has broken hydra's packaging
zeenk has joined #nixos
<liminal18> @bqv does my configuration.nix has access to callPackage though? it does not seem to.
captjakk has joined #nixos
tghume has joined #nixos
<bqv[m]> liminal18: it does - pkgs.callPackage
<bqv[m]> (as well as the numerous language-specific versions)
<liminal18> ok cool so can I go pkgs.callPackage on this: https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/nosql/mongodb/v4_0.nix
tghume_ has quit [Ping timeout: 256 seconds]
<liminal18> or is that already a package and I need to somehow get the result of that?
<bqv[m]> absofruitly
<bqv[m]> uh hold up
<bqv[m]> not sure what Security or CoreFoundation are meant to be
<bqv[m]> eh, try it
<liminal18> ok doing it
zeenk has quit [Quit: Konversation terminated!]
<liminal18> called with out requirement sasl
johnjay has joined #nixos
<tek[m]> so, the x509-validation problem was fixed by updating the EFI firmware
<tek[m]> apparently, the rdrand interface of Ryzens is buggy
morgrimm has joined #nixos
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/0bb35152be8 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<immae> Hello there, I just identified a bug that will make a potentially big breakage in certificates when migrating from 19.09 to 20.03, and I think that should at least be mentionned somewhere in the release note: https://github.com/NixOS/nixpkgs/issues/84409 (the current notes just say "we migrated from simp_le to lego, everything should work flawlessly"), who should I poke in the PR to have it properly
<{^_^}> #84409 (by immae, 1 minute ago, open): Change of acme certificate from simp_le to lego breaks workflow
<immae> handled?
<cole-h> worldofpeace: ^
<liminal18> how would I pass pkgs to a function expecting sasl, and other pkgs?
<liminal18> in javascript this would be the spread operator ...pkgs in nix can I do something like that?
mbrgm_ has joined #nixos
learnday20 has quit [Quit: Leaving]
<ottidmes> liminal18: that is what callPackage does for you
<bqv[m]> the problem is that i don't think that file is expecting to be callPackage'd
mbrgm_ is now known as mbrgm
mbrgm has quit [Ping timeout: 260 seconds]
<morgrimm> Alright, I'm a little confused about the differences between installing a derivation with nix-env vs just building it. Via nix-build, $out becomes the generated store path, correct? So I did a quick test and flat out replaced $out - and when I installed the derivation with nix-env, it replaced my ~/.nix-profile
<liminal18> bq it is not it's a function that accepts some packages and then uses callPackage
<morgrimm> As expected
<liminal18> so it should be import /mongo/v4_0.nix {...pkgs}
<morgrimm> But, if I copy my entire source to $out, and then makeWrapper $out/bin/whatever $out/bin/whatever
<liminal18> or something like that
<morgrimm> the output of building the derivation with nix-build is different than the outcome of installing it with nix-env
<morgrimm> i.e installing it somehow brings the bin in it, but only that (i assume due to the makeWrapper), but checking the store path of the build shows the entire source in there like I thought
erictapen has quit [Ping timeout: 240 seconds]
<bqv[m]> liminal18: you could always call it with (pkgs // { extra1 = blah; extra2 = blah; }), but i feel like there'll be a better solution to what you want to do
<ottidmes> liminal18: but really, doing that is callPackage, is literally saying give me all function arguments, and take out of pkgs those function arguments
erictapen has joined #nixos
<morgrimm> What doesn't make sense is how my nix-profile link was replaced when I flat out just echoed a string to $out, but copying the whole source into it resulted in a the path for my package and the profile store path being different
reallymemorable has quit [Quit: reallymemorable]
kaliumxyz has joined #nixos
<liminal18> ok the problem seems to be I am missing pkgs.sasl actually
<ottidmes> liminal18: if it is a mac specific thing and you are not on mac (or should I say darwin), then you can just assign null to them
<liminal18> ok it is building
<liminal18> ottidmes: thaks
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
<ottidmes> stdenv.lib.optionals stdenv.isDarwin [ Security CoreFoundation cctools ]; seems like sasl is needed though
aw has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace closed pull request #84380 → pantheon.granite: 5.3.0 -> 5.3.1 → https://git.io/JvNE4
levdub has joined #nixos
spacefrogg has joined #nixos
<liminal18> yeah not sure what it is though
<{^_^}> [nixpkgs] @worldofpeace closed pull request #84351 → pantheon.elementary-camera: 1.0.5 -> 1.0.6 → https://git.io/JvNG6
<liminal18> anyways I'm out of disk space
<{^_^}> [nixpkgs] @worldofpeace closed pull request #84356 → pantheon.elementary-code: 3.3.0 -> 3.4.0 → https://git.io/JvNZb
<{^_^}> [nixpkgs] @worldofpeace closed pull request #84357 → pantheon.elementary-shortcut-overlay: 1.1.0 -> 1.1.1 → https://git.io/JvNn4
<{^_^}> [nixpkgs] @worldofpeace closed pull request #84359 → pantheon.elementary-calculator: 1.5.4 -> 1.5.5 → https://git.io/JvNcX
<{^_^}> [nixpkgs] @worldofpeace closed pull request #84364 → pantheon.elementary-files: 4.4.1 -> 4.4.2 → https://git.io/JvNlX
<ottidmes> liminal18: mongodb = callPackage ../servers/nosql/mongodb { sasl = cyrus_sasl; };
<ottidmes> liminal18: so that is where you would get sasl from
<liminal18> ok got it
<liminal18> unfortunately running low on disk space so I guess I need to add expand whatever partition nix/store is on
<{^_^}> [nixpkgs] @worldofpeace closed pull request #84349 → pantheon.elementary-calendar: 5.0.3 -> 5.0.4 → https://git.io/JvNGm
<ottidmes> liminal18: or GC if possible
<liminal18> ottidms GC is probably it I'll try to figure out where sasl is coming from usully
tertl3 has quit [Quit: Connection closed for inactivity]
<ottidmes> liminal18: its coming from where I just mentioned cyrus_sasl, that is straight from top-level/all-packages.nix where mongodb is defined
<liminal18> ottidms ok cool thanks
crusader1 has quit [Quit: WeeChat 2.6]
vika_nezrimaya has quit [Ping timeout: 250 seconds]
plutes has quit [Ping timeout: 240 seconds]
hmpffff_ has joined #nixos
kaliumxyz has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84410 → intel-graphics-compiler: 1.0.3151 -> 1.0.3627 → https://git.io/JvNr3