andi- changed the topic of #nixos to: NixOS stable: 19.09 \o/ https://discourse.nixos.org/t/nixos-19-09-release/4306/2 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon ... nixcon videos: https://tinyurl.com/nixcon2019 || For best support,
cosimone_ has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #79131 → python3Packages.pandas: disable invalid tests → https://git.io/Jvsag
<{^_^}> [nixpkgs] @jonringer pushed to master « python3Packages.pandas: disable invalid tests »: https://git.io/JvsVp
<{^_^}> [nixpkgs] @jonringer merged pull request #78901 → dwarf-fortress-packages.dwarf-fortress_0_47_01: init → https://git.io/JvOSL
<{^_^}> [nixpkgs] @jonringer pushed 3 commits to master: https://git.io/JvsVj
cosimone has quit [Ping timeout: 265 seconds]
cr4y1 has quit [Quit: Leaving]
epl692 has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
epl692 has joined #nixos
epl692 has quit [Client Quit]
cosimone_ has quit [Quit: Quit.]
shibboleth has quit [Quit: shibboleth]
epl692 has joined #nixos
epl692 has quit [Client Quit]
epl692 has joined #nixos
sigmundv__ has quit [Ping timeout: 268 seconds]
ddellacosta has joined #nixos
wavirc22 has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @Kristian-Brucaj opened pull request #79136 → fusee-interfacee-tk: init at V1.0.0 → https://git.io/JvswE
o1lo01ol1o has quit [Remote host closed the connection]
flameslicer has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
fendor has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @Kristian-Brucaj closed pull request #79136 → fusee-interfacee-tk: init at V1.0.0 → https://git.io/JvswE
o1lo01ol1o has quit [Ping timeout: 265 seconds]
o1lo01ol1o has joined #nixos
gkmngrgn has joined #nixos
<{^_^}> [nixpkgs] @Kristian-Brucaj opened pull request #79137 → fusee-interfacee-tk: init at V1.0.0 → https://git.io/JvswP
<{^_^}> [nixpkgs] @masaeedu opened pull request #79138 → gitAndTools.git-interactive-rebase-tool: remove patch → https://git.io/JvswD
drakonis1 has quit [Quit: WeeChat 2.6]
erictapen has quit [Ping timeout: 240 seconds]
erictapen has joined #nixos
mbrgm_ has joined #nixos
mbrgm has quit [Ping timeout: 272 seconds]
mbrgm_ is now known as mbrgm
<xelxebar> What kind of archives (e.g. tar.bz2, tar.gz, tar.xz etc) back binary cache installs?
<bhipple> I believe it's tar.xz
<xelxebar> Thanks. Is there an easy way to browse cache.nixos.org?
<clever> not really
<bhipple> Not that I'm aware of; it's somewhat opaque and requires knowing the hash of what you're looking for
<clever> your meant to eval a nix expr from nixpkgs, to compute what path you want
<clever> and then query cache.nixos.org to see if it has that path
<xelxebar> Fair enough. I think my question is actually broader, then.
<gchristensen> ah?
<bhipple> Intuitive, you can think of nix as a "source based package manager with efficient binary substitutes". You always query it with enough information that it could compile everything from src if it had to, but then the binary cache steps in making substitutions for packages it already has.
<bhipple> Intuitively*
o1lo01ol1o has quit [Remote host closed the connection]
<bhipple> thus the binary cache is optimized for machines querying it with perfect information, rather than humans browsing it in an FTP server style looking for things to download
<xelxebar> On what variables is tar deterministic? I am working with an upstream package that's having problems with their source tarball getting rebuilt from presumably identical contents but the resulting tarball hashes differently
<bhipple> Funny you say that, just today I was studying this for another PR on deterministic tars: https://reproducible-builds.org/docs/archives/
<clever> xelxebar: cache.nixos.org ises nar files, not tar files
<clever> nar just lacks things that can be a problem, like timestamps and uid, or the write bit, stuff nix doesnt allow in /nix/store
<clever> and nar requires that all files in a dir be sorted by name
<bhipple> (PR in question was https://github.com/NixOS/nixpkgs/pull/78501, btw, which has a reproducible tar invocation in it)
<{^_^}> #78501 (by bhipple, 1 week ago, open): fetchcargo: use flat tar.gz file for vendored src instead of recursive hash dir
<clever> time tar --sort=name --mtime='@1' --owner=0 --group=0 --numeric-owner -c * $extraArgs | $compressCommand > $out/tarball/$fileName.tar${extension}
<evanjs> *ptar? :P
<bhipple> clever: ah thanks for that, good to see another example in nix itself using the same set of arguments to validate my searching on reproducible-builds
<clever> thats used to generate a tar file, containing the entire closure of a store path
<evanjs> awe not the same as pxz
<clever> and then you can unpack the tar to / and boot
<clever> bhipple: nix also has a repeat option in nix.conf, to make it repeat every build N more times
<clever> bhipple: and if the builds produced different results, nix throws out all results and considers it a failure
<bhipple> Yeah I've just run a whole bunch of `nix-build --check` cmds to battle test this
<clever> bhipple: --check only repeats a single thing, while --repeat 1, would check every single dependency as well
<bhipple> Ah, good to know. I find usually when I'm doing this I'm looking for reproducibility in one specific package that I "know" is "wrong", e.g. picking one off https://r13y.com/ to debug, so usually --check gets me there. The --repeat thing is cool though
<xelxebar> clever: Beautiful. That actually answers my question as well.
<clever> xelxebar: you can also set `repeat = 1` in nix.conf, and then it will just always repeat every build
<clever> then you start running into nixos-rebuild issues, and discovering reproducability problems in places you wherent looking, lol
is_null has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @aanderse opened pull request #79139 → kdevelop: 5.4.6 -> 5.5.0 → https://git.io/Jvsro
gkmngrgn has quit [Ping timeout: 265 seconds]
qubasa_ has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JvsrP
qubasa has quit [Ping timeout: 268 seconds]
kleisli has quit [Remote host closed the connection]
i077 has joined #nixos
kleisli has joined #nixos
aveltras has quit [Quit: Connection closed for inactivity]
i077 has quit [Client Quit]
i077 has joined #nixos
<{^_^}> [nixpkgs] @marsam pushed commit from @wmertens to nodejs-stable-12.14.1 « nodejs-12_x: 12.13.1 -> 12.14.1 »: https://git.io/JvsrF
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
<i077> Hi, I was hoping someone here could help me out with a problem I'm having with making a derivation for a simple electron wrapper app
tertl3 has joined #nixos
<i077> here's a gist with my derivation: https://gist.github.com/i077/7c7f486f26acfe85d21bb378a0b58f25
jluttine has quit [Ping timeout: 265 seconds]
<clever> i077: how does it fail? what happens if you use ${electron}/bin/electron instead of trying to patchelf the one they ship?
<i077> When I build and run the binary (todoist), strace tells me that the program can't find 'libpulse.so.0', but I'm adding libpulseaudio to the rpath
<i077> clever: haven't tried that yet
<clever> i077: if a .so file shipped with this package opens pulse, that .so must have the rpath fixed also
<clever> i077: so you may need to --set-rpath every .so in the package
<clever> lddtree shows that better
<i077> clever: ah, thanks. there are two .so's in the src i believe, let me try to patch those
<i077> do i need to set the interpreter as well as the rpath for the .so's?
<clever> nope
<i077> im running `patchelf --print-needed` on each of the .so's and i don't see libpulse on any of them
<i077> clever: also, where would i tell the derivation to use ${electron}/bin/electron?
<clever> i077: just use `cat <<EOF > $out/bin/todoist` to generate a shell script, that will run ${electron}/bin/electron on the directory with the package.json
<clever> then the pre-patched electron in nixpkgs will load the JS, and you can just delete all of the ELF files
<i077> oh, im using a .deb as the source
<clever> that .deb contains both js and elf files
<clever> you could delete the elf, and reuse the ones from pkgs.electron
<i077> okay, so i'd just replace the patchelfs in the installPhase with creating a shell script via cat
<clever> yeah
<i077> then use ${electron}/bin/electron to run that script?
<clever> the script would run electron, on the js
jluttine has joined #nixos
iyzsong has joined #nixos
<i077> still confused on where to actually call ${electron}/bin/electron
<i077> i'm looking at etcher's derivation in nixpkgs for an example
<clever> i'll grab an example...
<i077> thank you
h0m1 has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @thefloweringash opened pull request #79141 → nixos/tests/openstack-image: add stdenv to image for nixos-rebuild → https://git.io/JvsoV
<clever> ${rawapp}/share/daedalus is a directory with a package.json file
<clever> writeScriptBin is a helper to create a "package" with only a $out/bin/daedalus-frontend
<clever> you can do the same with cat
h0m1 has joined #nixos
<i077> ahh, okay
<kandinski> o/
<{^_^}> [nixpkgs] @marsam merged pull request #79094 → nodejs: v12.13.1 -> v12.14.1 → https://git.io/Jvslo
<{^_^}> [nixpkgs] @marsam pushed 2 commits to release-19.09: https://git.io/Jvsoi
<kandinski> do youse remember, I'm pretty sure we discussed it here, of a recent lannguage where return is not a statement but a variable?
<{^_^}> [nixpkgs] @marsam pushed 0 commits to nodejs-stable-12.14.1: https://git.io/JvsoP
<kandinski> functions will return whatever was last assigned to the name "return"
<clever> kandinski: haskell sort of does that, though it looks more like a function called return, which sets it
<clever> kandinski: and behind the scenes c sort of does that, the return value is just whatever was last put into a given register, which can lead to fun bugs if you forget the return statement
<kandinski> yeah, but return is pure for monads, IIRC
<clever> but that register is also overwritten by any other thing you call
<kandinski> no, I'm talking about an imperative language
<kandinski> and I'm talking about an explicit design feature
<kandinski> grumble
<kandinski> it was very similar to the "defer" mechanism in golang
<i077> im gonna change the src to be the actual git repo instead of the deb, i think that makes things easier for me
<kandinski> in the sense that both set up a list of things to do when the function has ended
erictapen has quit [Ping timeout: 265 seconds]
drakonis1 has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #76823 → station: fix missing icon → https://git.io/Jexzz
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JvsoN
mDuff has joined #nixos
domenkozar[m] has joined #nixos
<domenkozar[m]> lovesegfault: https://github.com/NixOS/nix/pull/2622
<{^_^}> nix#2622 (by Mic92, 1 year ago, open): nix build: print built derivation paths (cachix support/nix-build compatibility)
<lassulus> I would like that
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/JvsK8
<{^_^}> [nixpkgs] @dtzWill merged pull request #79113 → heimer: 1.13.1 -> 1.15.0 → https://git.io/Jvszq
flameslicer has joined #nixos
Flambe has joined #nixos
Flambe has quit [Client Quit]
<{^_^}> [nixpkgs] @marsam merged pull request #79138 → gitAndTools.git-interactive-rebase-tool: remove patch → https://git.io/JvswD
<{^_^}> [nixpkgs] @marsam pushed 3 commits to master: https://git.io/JvsKg
<{^_^}> [nixpkgs] @marsam merged pull request #79134 → protobuf3_11: 3.11.1 -> 3.11.3 → https://git.io/JvsVO
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvsK2
gustavderdrache has quit [Quit: Leaving.]
<lovesegfault> domenkozar[m]: Yeah, I saw that, thanks :)
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
dansho has joined #nixos
<xavierzwirtz[m]> is there a way to use globs for mkDerivation`s src attribute?
alex`` has quit [Quit: WeeChat 2.7]
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
alex` has joined #nixos
alex` is now known as Guest33331
alexherbo2 has joined #nixos
<i077> clever: managed to get past the ENOENT errors, now i'm onto JS errors: cannot find module 'electron-window-state'
<xavierzwirtz[m]> I have a very large repo that it would be best to take a slice of, instead of passing in ./. to mkDerivation.src
<clever> xavierzwirtz[m]: lib.cleanSourceWith
<clever> i077: if your using the github source, you may need to "compile" it first
<clever> javascript aint as simple as it used to be, lol
<i077> ill take a look at the makefile then
<xavierzwirtz[m]> clever: perfect, thank you
<clever> i077: reusing the pre-compiled js in the .deb is sometimes simpler
<i077> hmm
<i077> okay, so if i have the deb, what would i pass to electron
<clever> i077: find the directory with the package.json file
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
<clever> i077: and pass it that
<clever> i077: its usually the same directory the original ELF binary was in
aw has joined #nixos
<clever> if no args are given, it defaults to that dir
<i077> the binary is in $src/opt/Todoist/, but no package.json
spacefrogg has joined #nixos
<clever> i077: try giving electron that dir anyways, and see what happens
mir100 has quit [Ping timeout: 240 seconds]
sb0 has joined #nixos
<i077> clever: electron complains that i'm giving it a directory
<clever> i077: what files are in that directory?
andi- has quit [Remote host closed the connection]
<i077> actually, let me give you a tree
Guest33331 has quit [Ping timeout: 268 seconds]
alexherbo2 has quit [Ping timeout: 268 seconds]
<clever> i077: i think app.asar is the target you want
<clever> i077: thats a special type of compressed archive that electron uses
<i077> ah, let me try that
<clever> i077: though, it could also be resources.pak? not sure entirely
andi- has joined #nixos
<i077> oh no, i just realized i forgot to append '/bin/electron' after ${electron}
<clever> ah
<clever> that would definitely explain the error
<i077> but using the directory after fixing that still didnt work, trying app.asar now
<i077> it works! (but with a menu bar)
<i077> when i used steam-run there was no menu bar
<i077> oh uh nvm, i just tried it again and it turns out there is a menu bar either way lmao
dansho has quit [Ping timeout: 268 seconds]
<i077> no wait, i had to quit the app first, running it with steam-run didn't produce a menu bar. i think it appears bc im using the electron package to run the app?
<clever> not sure
mir100 has joined #nixos
<i077> yeah, this is probably off-topic now anyways. thank you so much for the help!
<clever> yep
<{^_^}> [nixpkgs] @veprbl merged pull request #78775 → geant4: 10.5.1 -> 10.6.0 → https://git.io/JvYAy
<{^_^}> [nixpkgs] @veprbl pushed commit from @OmnipotentEntity to master « geant4: 10.5.1 -> 10.6.0 (#78775) »: https://git.io/JvsPv
<{^_^}> [nixpkgs] @worldofpeace merged pull request #78543 → nixos/dnscrypt-proxy2: init → https://git.io/Jvq7e
<{^_^}> [nixpkgs] @worldofpeace pushed 5 commits to master: https://git.io/JvsPL
ericsagnes has quit [Ping timeout: 272 seconds]
<i077> im still curious though, when i to try to run the ELF in the deb, why does it skip over libpulseaudio's lib/ when looking for libpulse.so.0?
<clever> i077: if its dynamically loading it using dlopen, it will never obey the RPATH
<clever> i077: then you have to get ugly, and use LD_LIBRARY_PATH
<i077> but i see it going through the RPATH when i run it through strace
<i077> it goes through every other path
<clever> i077: which arch is the binary for?
<i077> x86-64
<clever> i077: if you play with LD_DEBUG, you can make ld.so print stuff as it searches
<i077> this is the last 25 ENOENTs i get: https://pastebin.com/BD9VL0bC
<i077> i'll look thru that
<{^_^}> [nixpkgs] @bignaux opened pull request #79142 → pfsshell: init at unstable-2020-01-10 → https://git.io/JvsPR
shah^ has joined #nixos
<genesis> :)
jmeredith has joined #nixos
<xavierzwirtz[m]> Is there a trick to getting nixpkgs.trace to output when using nix-build?
<i077> okay, im using LD_DEBUG=libs, and when it looks for libpulse, the search path does not have libpulseaudio or udev in it
<xavierzwirtz[m]> I might just be falling afoul of nix being lazy
<i077> despite me telling patchelf to put those in there. here's my derivation now: https://gist.github.com/i077/7c7f486f26acfe85d21bb378a0b58f25
<clever> i077: does it say which thing needs pulse?
ericsagnes has joined #nixos
<i077> no, but let me change LD_DEBUG to "all" and grep for libpulse
<i077> ah, so it does say "dynamically loaded by <outPath>/opt/Todoist/todoist", but it still searches through its RPATH
<clever> i077: try LD_LIBRARY_PATH anyways, just to see what happens
<i077> should i set that to libpulseaudio's lib path?
<i077> and just that path?
<clever> yeah
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
Dagger has quit [Quit: Quitting]
<i077> okay, looks like that worked (although it crashed trying to find libudev, let me add that)
kvda has joined #nixos
kvda has joined #nixos
<kvda> Is aws-cli from stable broken for anyone else?
<i077> yep, just added those two paths (libpulseaudio and udev) to LD_LIBRARY_PATH and the app opens just fine
<i077> theyre clearly in my call to makeLibraryPath, so i dont know what to make of this
Dagger2 has joined #nixos
flameslicer has quit [Ping timeout: 265 seconds]
growpotkin has joined #nixos
drakonis1 has quit [Quit: WeeChat 2.6]
bhipple has quit [Remote host closed the connection]
<i077> does anyone have any ideas for how to make ld find these two libraries?
ddellacosta has quit [Ping timeout: 268 seconds]
buckley310 has quit [Quit: The Lounge - https://thelounge.chat]
growpotkin has quit [Ping timeout: 260 seconds]
buckley310 has joined #nixos
kvda has quit [Ping timeout: 268 seconds]
kvda has joined #nixos
chagra_ has joined #nixos
domogled has quit [Quit: domogled]
chagra has quit [Ping timeout: 268 seconds]
phreedom has quit [Ping timeout: 240 seconds]
phreedom has joined #nixos
<wedens[m]> why not use LD_LIBRARY_PATH if it works?
<i077> because i cant think of a reason why this wouldnt work
<i077> those paths are just straight up not there and i dont get it
<i077> i guess i could export LD_LIBRARY_PATH but that seems like a not-great hack
<wedens[m]> makeWrapper $out/bin/xxx --prefix LD_LIBRARY_PATH : ...
<wedens[m]> pretty common way to do that
<clever> i077: if your already generating a shell script with cat, no real need to use makeWrapper though
<i077> ive gone back to using patchelf
<i077> though i guess i could write a shell script to export LD_LIBRARY_
<{^_^}> [nixpkgs] @Frostman opened pull request #79145 → editorconfig-checker: 2.0.2 -> 2.0.3 → https://git.io/Jvs15
<i077> ...PATH and then exec the ELF
<clever> i077: thats exactly what makeWrapper and wrapProgram do
<i077> right
nixy37 has quit [Quit: The Lounge - https://thelounge.chat]
nixy37 has joined #nixos
<i077> alright, using makeWrapper works i suppose, but those omissions still confuse me
<i077> thanks for the help again clever and wedens
Acou_Bass has quit [Ping timeout: 265 seconds]
kvda has quit [Ping timeout: 260 seconds]
kvda has joined #nixos
Acou_Bass has joined #nixos
lovesegfault has quit [Quit: WeeChat 2.7]
i077 has quit [Quit: WeeChat 2.7]
elenapan has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @dtzWill opened pull request #79146 → texlive: fix build broken by poppler update → https://git.io/JvsMY
* genesis is writing wiki documentation about playstation2 :)
Acou_Bass has quit [Quit: ZNC 1.7.4 - https://znc.in]
gerschtli has quit [Quit: WeeChat 2.6]
gerschtli has joined #nixos
mac10688 has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @Ma27 pushed to master « i3status-rust: 0.12.0 -> 0.13.0 »: https://git.io/JvsME
anohigisavay has quit [Quit: Konversation terminated!]
dingenskirchen has quit [Quit: dingenskirchen]
dingenskirchen1 has joined #nixos
dingenskirchen1 is now known as dingenskirchen
monadplus has joined #nixos
kleisli has quit [Ping timeout: 265 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rauno has quit [Remote host closed the connection]
lovesegfault has joined #nixos
<lovesegfault> I have the following in a multiline string: FOO='${BAR[@]}'
<lovesegfault> How can I escape '${}?
<clever> ,escape''
<{^_^}> '' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
<lovesegfault> clever: Wait, so ''${} -> '${}?
<lovesegfault> I though ''${} -> ${}
<lovesegfault> I need ??? -> '${}
<clever> > '' foo '''${ bar ''
<{^_^}> error: syntax error, unexpected $end, expecting IND_STR or DOLLAR_CURLY or IND_STRING_CLOSE, at (string):278:1
<lovesegfault> '''''${} -> ''${} which is what I had tried
<clever> > '' foo ' ''${ bar ''
<{^_^}> "foo ' ${ bar "
<clever> yeah, thats tricky
<lovesegfault> Can't add the space
<clever> > '' foo ''''${ bar ''
<{^_^}> error: syntax error, unexpected $end, expecting IND_STR or DOLLAR_CURLY or IND_STRING_CLOSE, at (string):278:1
<lovesegfault> lol
<lovesegfault> it's impossibru
<clever> how about this:
<clever> ,escape"
<{^_^}> " double quote: \" backslash: \\ bash curly bois: \${} newline: \n tab: \t "
<clever> > '' foo ${"'\${FOO}"} bar ''
<{^_^}> "foo '${FOO} bar "
<clever> now its not in a ''string''
* lovesegfault tries
palo1 has joined #nixos
rauno has joined #nixos
<lovesegfault> that... broke everything
* lovesegfault tries again
<lovesegfault> nvm
<lovesegfault> the brain genius here edited the wrong file
<clever> heh
<lovesegfault> clever: here's the actual line, inside of a '' ''
<lovesegfault> typeset -g POWERLEVEL9K_VCS_CONTENT_EXPANSION='${${P9K_CONTENT/⇣* ⇡/⇣⇡}// }'
palo1 is now known as palo
palo has quit [Ping timeout: 265 seconds]
<clever> lovesegfault: you could also put it into a .sh file, and then just `source ${./foo.sh}`
<clever> and then nix never parses the string
tomberek has quit [Ping timeout: 268 seconds]
<lovesegfault> clever: Yeah... but that's a lil' cursed
<lovesegfault> less cursed than w/e escaping I'll need to do though
<{^_^}> [nixpkgs] @Ma27 merged pull request #79108 → mpv: use waf from distribution and wafHook helper → https://git.io/Jvs0P
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JvsMx
Chiliparrot has joined #nixos
lord| has quit [Read error: Connection reset by peer]
lord| has joined #nixos
Chiliparrot has quit [Ping timeout: 268 seconds]
lovesegfault has quit [Quit: WeeChat 2.7]
<{^_^}> [nixpkgs] @lheckemann merged pull request #79020 → wimboot: Init at 2.6.0 → https://git.io/Jv37d
<{^_^}> [nixpkgs] @lheckemann pushed 2 commits to master: https://git.io/JvsDR
zupo has joined #nixos
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/c544d8a3fc1 (from 5 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
hyper_ch2 has joined #nixos
<{^_^}> [nixpkgs] @LnL7 opened pull request #79147 → prometheus-xmpp-alerts: fix evaluation → https://git.io/JvsDX
hyper_ch2 has quit [Remote host closed the connection]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ixxie has joined #nixos
alexherbo2 has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
cust0dian has quit [Ping timeout: 260 seconds]
bvdw has joined #nixos
chagra_ has quit [Ping timeout: 268 seconds]
Guest33331 has joined #nixos
m0rphism has joined #nixos
ixxie has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @bkchr opened pull request #79148 → rustc: 1.40.0 -> 1.41.0 → https://git.io/Jvsyu
Chiliparrot has joined #nixos
sb0 has quit [Quit: Leaving]
Jackneill has joined #nixos
tertl3 has quit [Quit: Connection closed for inactivity]
zupo has joined #nixos
cust0dian has joined #nixos
chagra_ has joined #nixos
<{^_^}> [nixpkgs] @jojosch opened pull request #79149 → dbeaver: 6.3.3 -> 6.3.4 → https://git.io/Jvsyx
hyper_ch2 has joined #nixos
Guest33331 is now known as alex``
Tucky has joined #nixos
chloekek has joined #nixos
<{^_^}> [nixpkgs] @vbgl merged pull request #78697 → ocamlPackages.mlgmpidl: 1.2.11 → 1.2.12 → https://git.io/JvYfC
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @vbgl pushed to master « ocamlPackages.mlgmpidl: 1.2.11 → 1.2.12 »: https://git.io/JvsSq
<{^_^}> [nixpkgs] @vbgl closed pull request #78617 → ocamlPackages.mlgmpidl: 1.2.11 -> 1.2.12 → https://git.io/Jvmo7
gagbo has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #79121 → dwarf-fortress: Update themes, add themes update script → https://git.io/JvsgH
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JvsSM
<{^_^}> [cabal2nix] @peti merged pull request #438 → Fix unsafe concatenation of $LD_LIBRARY_PATH → https://git.io/JexW7
<{^_^}> [cabal2nix] @peti pushed 2 commits to master: https://git.io/JvsS7
<{^_^}> [cabal2nix] @peti closed pull request #435 → Fix pandoc-placetable failure due to dependency on pandoc at setup → https://git.io/JeovW
zupo has joined #nixos
civodul has joined #nixos
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/c544d8a3fc1 (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
orivej has joined #nixos
smatting has joined #nixos
jbgi has joined #nixos
ok2`- has joined #nixos
ok2` has quit [Ping timeout: 268 seconds]
ok2`- is now known as ok2`
__monty__ has joined #nixos
zupo has quit [Ping timeout: 252 seconds]
zupo has joined #nixos
fendor has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
__Sander__ has joined #nixos
thc202 has joined #nixos
hyper_ch2 has joined #nixos
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @Ma27 merged pull request #79147 → prometheus-xmpp-alerts: fix evaluation → https://git.io/JvsDX
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/Jvs9x
ok2` has quit [Ping timeout: 255 seconds]
ok2`- has joined #nixos
ok2`- is now known as ok2`
iyzsong has quit [Ping timeout: 265 seconds]
iyzsong-x has joined #nixos
Shoubit has joined #nixos
v88m has quit [Read error: Connection reset by peer]
v88m has joined #nixos
psyanticy has joined #nixos
v88m has quit [Ping timeout: 265 seconds]
ng0 has joined #nixos
ng0 has quit [Changing host]
ng0 has joined #nixos
<{^_^}> [nixpkgs] @vbgl opened pull request #79151 → ocamlPackages.apron: 2016-01-25 → 0.9.12 → https://git.io/JvsQ4
<{^_^}> [nixpkgs] @romildo opened pull request #79152 → theme-jade1: 1.5 -> 1.6 → https://git.io/JvsQg
<{^_^}> [nixpkgs] @mmahut merged pull request #79114 → lyx: 2.3.0 -> 2.3.4 → https://git.io/Jvszc
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/JvsQX
cfricke has joined #nixos
wolfshappen has joined #nixos
<{^_^}> Channel nixos-19.09 advanced to https://github.com/NixOS/nixpkgs/commit/ea553d8c67c (from 20 hours ago, history: https://channels.nix.gsc.io/nixos-19.09)
astk has joined #nixos
<astk> im building my first project with nix, and so far have managed to deploy a hello world haskell exe to an AWS using nix-copy-closure
<astk> i gave the argument to nix-copy-closure to place the exes in ./results, but i cant find this on my AWS instance
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Raito_Bezarius> Stupid question, but how can I create a directory as some user in /etc/nixos/configuration.nix?
<Raito_Bezarius> Should I just wrap it into a derivation?
astk has quit [Ping timeout: 260 seconds]
<dminuoso> Raito_Bezarius: What directory do you want to create, exactly?
<dminuoso> Raito_Bezarius: Can you explain the context?
astk has joined #nixos
<Raito_Bezarius> dminuoso: I'm setting up a new user to be used for rsync over SSH and I want some directory to exist already
zupo has joined #nixos
<Raito_Bezarius> basically, I have some web user, I want that in $home/root exists
<Raito_Bezarius> I set up the user through users.users.…
<Raito_Bezarius> I also have NGINX which is going to serve $home/root
<Raito_Bezarius> So I have some permissions stuff to perform
o1lo01ol1o has joined #nixos
<astk> one of the exes it should have copied is called "hello" but when i write "which hello" it finds nothing
<astk> did the nix-copy-closure just set up an environment but not actually copy the exes?
<Raito_Bezarius> dminuoso: so basically, all I want is to create a directory with some determined permissions, I guess I can use activationScripts for this but I'm unsure
<Raito_Bezarius> (that looks somewhat dirty)
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cfricke has quit [Ping timeout: 265 seconds]
<dminuoso> Raito_Bezarius: The canonical way would be to use a systemd service.
astk has quit [Ping timeout: 260 seconds]
cfricke has joined #nixos
tpanum has quit [Ping timeout: 265 seconds]
tpanum has joined #nixos
<{^_^}> [nixpkgs] @turboMaCk opened pull request #79153 → elmPackages.elm-analyse: 0.16.4 -> 0.16.5 → https://git.io/Jvs72
<Raito_Bezarius> dminuoso: Alright, I guess I'll resort to this
<dminuoso> Raito_Bezarius: Using ExecStart, of course.
jbgi has quit [Quit: WeeChat 2.6]
<Raito_Bezarius> Do you know under which user userActivationScript run?
<Raito_Bezarius> Sounds like it could solve my issue
arjen-jonathan has joined #nixos
astk has joined #nixos
<astk> the online examples of nix-copy-closure use it to deploy an exe from the nix store
<astk> does this mean i have to upload my exe to there before i can download it to the remote machine?
wolfshappen has quit [Quit: bye]
<{^_^}> [nixpkgs] @guibou opened pull request #79154 → pyopengl: fix runtime failure with 3.1.4 → https://git.io/Jvs71
hyper_ch2 has quit [Remote host closed the connection]
astk has quit [Ping timeout: 260 seconds]
benedikt93 has quit [Quit: benedikt93]
wavirc22 has joined #nixos
benedikt93 has joined #nixos
sigmundv__ has joined #nixos
cosimone has joined #nixos
captn3m0- has joined #nixos
captn3m0 has quit [Ping timeout: 265 seconds]
sb0 has joined #nixos
Makaveli7 has joined #nixos
<LinuxHackerman> dminuoso: Raito_Bezarius: for just creating a directory or similar, systemd-tmpfiles is usually a more convenient way
<dminuoso> LinuxHackerman: A webroot for an nginx more than likely needs to persist. :(
<LinuxHackerman> tmpfiles is a bit of a misnomer in that respect
<LinuxHackerman> just that it's created by tmpfiles doesn't mean it won't persist
sigmundv__ has quit [Remote host closed the connection]
dansho has joined #nixos
sigmundv has joined #nixos
cfricke has quit [Quit: WeeChat 2.7]
sb0 has quit [Quit: Leaving]
<Raito_Bezarius> Oh
<Raito_Bezarius> You sold me on tmpfiles
<Raito_Bezarius> I wanted something with nobrain security
<Raito_Bezarius> In terms of permissions
klntsky has quit [Remote host closed the connection]
<dminuoso> LinuxHackerman: systemd has such fuzzy and bad naming all across...
<dminuoso> Like "description" of systemd units is not a description at all.
klntsky has joined #nixos
mananamenos has joined #nixos
<mananamenos> hi, how do i make my nixos system preserve my .bashrc configuration for every nix-shell?
Shoubit has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @arnoldfarkas closed pull request #78700 → pythonPackages.property-cached: init at 1.6.3 → https://git.io/JvYfB
<{^_^}> [nixpkgs] @arnoldfarkas closed pull request #78699 → pythonPackages.thriftpy2: init at 0.4.10 → https://git.io/JvYf4
<{^_^}> [nixpkgs] @arnoldfarkas closed pull request #78698 → pythonPackages.dash-daq: init at 0.3.3 → https://git.io/JvYfW
<{^_^}> [nixpkgs] @arnoldfarkas closed pull request #78695 → pythonPackages.xmlrunner: init at 1.7.7 → https://git.io/JvYfn
<{^_^}> [nixpkgs] @arnoldfarkas closed pull request #78694 → pythonPackages.vertica-python: init at 0.10.2 → https://git.io/JvYfY
<{^_^}> [nixpkgs] @arnoldfarkas closed pull request #78693 → pythonPackages.untangle: init at 1.1.1 → https://git.io/JvYfm
<{^_^}> [nixpkgs] @arnoldfarkas closed pull request #78690 → pythonPackages.sqlitedict: init at 1.6.0 → https://git.io/JvYfI
<{^_^}> [nixpkgs] @arnoldfarkas closed pull request #78689 → pythonPackages.sphinx-autodoc-annotation: init at 1.0-1 → https://git.io/JvYfk
<{^_^}> [nixpkgs] @arnoldfarkas closed pull request #78688 → pythonPackages.spavro: init at 1.1.22 → https://git.io/JvYfT
<{^_^}> [nixpkgs] @arnoldfarkas closed pull request #78687 → pythonPackages.sanic-auth: init at 0.2.0 → https://git.io/JvYff
<{^_^}> [nixpkgs] @arnoldfarkas closed pull request #78686 → pythonPackages.redo: init at 2.0.3 → https://git.io/JvYfe
Shoubit has joined #nixos
<{^_^}> [nixpkgs] @arnoldfarkas closed pull request #78685 → pythonPackages.python-pam: init at 1.8.4 → https://git.io/JvYvj
<{^_^}> [nixpkgs] @arnoldfarkas closed pull request #78684 → pythonPackages.python-highcharts: init at 0.4.2 → https://git.io/JvYvQ
<{^_^}> [nixpkgs] @arnoldfarkas closed pull request #78683 → pythonPackages.pytest-memprof: init at 0.2.0 → https://git.io/JvYvH
<{^_^}> [nixpkgs] @arnoldfarkas closed pull request #78682 → pythonPackages.pypattyrn: init at 1.2 → https://git.io/JvYvD
<{^_^}> [nixpkgs] @arnoldfarkas closed pull request #78679 → pythonPackages.pdfrw: init at 0.4 → https://git.io/JvYv6
<{^_^}> [nixpkgs] @arnoldfarkas closed pull request #78678 → pythonPackages.nbconflux: init at 0.7.0 → https://git.io/JvYvr
<{^_^}> [nixpkgs] @arnoldfarkas closed pull request #78677 → pythonPackages.mimesis: init at 3.3.0 → https://git.io/JvYva
<{^_^}> [nixpkgs] @arnoldfarkas closed pull request #78676 → pythonPackages.inotify: init at 0.2.10 → https://git.io/JvYv0
<{^_^}> [nixpkgs] @arnoldfarkas closed pull request #78674 → pythonPackages.flower: init at 0.9.3 → https://git.io/JvYvc
<{^_^}> [nixpkgs] @arnoldfarkas closed pull request #78673 → pythonPackages.commentjson: init at 0.8.2 → https://git.io/JvYvY
<{^_^}> [nixpkgs] @arnoldfarkas closed pull request #78252 → pythonPackages.cpplint: init at 1.4.5 → https://git.io/JvLEa
<{^_^}> [nixpkgs] @arnoldfarkas closed pull request #78251 → pythonPackages.doxypypy: init at 0.8.8.6 → https://git.io/JvLEz
<{^_^}> [nixpkgs] @arnoldfarkas closed pull request #78249 → pythonPackages.fastavro: init at 0.22.9 → https://git.io/JvLER
<multun> wow
<multun> how unusual
lukash|away is now known as lukash
wolfshappen has joined #nixos
iyzsong-x has quit [Quit: ZNC 1.7.1 - https://znc.in]
iyzsong has joined #nixos
<Shoubit> I'm getting an error "/nix/store/<hash>-update-users-groups.pl: out of free UIDs or GIDs" which means Avahi fails without an associated user. Anyone familiar with this?
<Shoubit> (Upgrading from 19.03 to 19.09)
kleisli has joined #nixos
<LnL> nixos-rebuild boot or switch?
<Shoubit> switch
<Shoubit> Let me try boot too
<LnL> for major upgrades like this I would recommend boot + a reboot
sbetrium has joined #nixos
<Shoubit> Yeah "boot" seemingly worked so I'll give a reboot a try now. Thanks!
Shoubit has quit [Quit: Leaving]
aveltras has joined #nixos
<LnL> certain things can behave strange if they are not restarted between major versions
sepiabrown has joined #nixos
hyper_ch2 has joined #nixos
sepiabrown has quit [Client Quit]
Shoubit has joined #nixos
lc has quit [Remote host closed the connection]
locallycompact has joined #nixos
<{^_^}> [nixpkgs] @Ma27 merged pull request #79117 → ktimetracker: init at 5.0.1 → https://git.io/Jvsgt
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JvsF1
<{^_^}> [nixpkgs] @rkrzr opened pull request #79155 → icepeak: init at 0.7.0 → https://git.io/JvsFF
dansho has quit [Ping timeout: 265 seconds]
zaeph has quit [Ping timeout: 240 seconds]
dansho has joined #nixos
zaeph has joined #nixos
rsoeldner_ has joined #nixos
rsoeldner has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @mmahut merged pull request #78749 → qesteidutil: remove → https://git.io/JvYMS
<{^_^}> [nixpkgs] @mmahut pushed 3 commits to master: https://git.io/Jvsbn
Rusty1 has joined #nixos
erictapen has joined #nixos
karantan has joined #nixos
<karantan> From the docs: https://nixos.org/nixos/options.html#services.mysql I've added the following config:
<karantan> but when I try to `mysql -u foo foo` I get permission denied (ERROR 1698 (28000): Access denied for user 'foo'@'localhost')
<karantan> am I doing something wrong?
<{^_^}> [nixpkgs] @dawidsowa closed pull request #67616 → ariang: init at 1.1.3 → https://git.io/fjxkw
boegel has joined #nixos
sbetrium has quit [Quit: sbetrium]
aswanson has joined #nixos
<{^_^}> [nixpkgs] @Ma27 merged pull request #79129 → oraclejdk8: remove dead code → https://git.io/Jvsa4
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JvsN1
drakonis1 has joined #nixos
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
Makaveli7 has quit [Quit: WeeChat 2.7]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @peterhoeg merged pull request #78958 → xca: 2.1.2 -> 2.2.1 → https://git.io/Jv33T
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/JvsAG
<{^_^}> [nixpkgs] @peterhoeg merged pull request #78734 → appdaemon: 3.0.5 -> 4.0.1 → https://git.io/JvYaN
<{^_^}> [nixpkgs] @peterhoeg pushed 3 commits to master: https://git.io/JvsAZ
aloysius has joined #nixos
aloysius is now known as Guest7978
Guest7978 has quit [Client Quit]
karetsu has joined #nixos
Palpares has quit [Remote host closed the connection]
ramses_ has joined #nixos
Palpares has joined #nixos
<ramses_> Hey guys, is it possible with nix to assert that a file is present in the nixos config root without copying this file to the nix store? I know that I can reference the path, but then it automatically gets copied into the store...
<{^_^}> [nixpkgs] @mpoquet opened pull request #79156 → simgrid: 3.24 -> 3.25 → https://git.io/JvsAu
<ramses_> Like, I'd like to get an error on rebuild when said file is not there (in a subdirectory of /etc/nixos), but I don't want it to end up in the nix store
<{^_^}> [nixpkgs] @vcunat pushed 6 commits to release-19.09: https://git.io/JvsA2
<gchristensen> what is the file?
<karetsu> ramses_: yes, I did this for openvpn - I didn't want the root stuff going into store
<ramses_> An ssh private key file that I copy to /run at activation time
inkbottle has joined #nixos
<clever> ramses_: `toString ./foo.key` will give you the absolute path, rather then the path of the copy in the store
zebrag has quit [Ping timeout: 265 seconds]
<clever> ramses_: i believe it should still fail if the key isnt there
<ramses_> clever: that's what I do, but it doesn't give an error if the file is missing...
<ramses_> It puts the path in the script, whether the file is there or not
<clever> ramses_: ah, then you want builtins.pathExists
<clever> and throw an error when it doesnt
ddellacosta has joined #nixos
<ramses_> clever: trying that! What's the clean way to abort the build process with an error message? I use "abort <msg>"?
<clever> ramses_: for nixos itself, there is a special option assertions
<clever> :tabe ~/nixpkgs/nixos/modules/system/boot/loader/grub/grub.nix
<clever> assertions = [ [ assertion = !cfg.zfsSupport || cfg.version == 2; message = "Only GRUB version 2 provides ZFS support"; } ...
<clever> ramses_: the advantage that this option has, is that nixos can eval the entire system, an report multiple errors at once
<clever> so fixing things wont turn into a game of whack-a-mole
<ramses_> clever: awesome, this seems to work very well!
<ramses_> A bit tricky though, since it seems that mentioning the path of the missing file in the error message, might by itself cause the file to be copied to the nix store
<clever> ramses_: toString prevents the copy
<ramses_> clever: yes, that's what I did, but if ever we forget about this, it might still end up there
<clever> yeah
<gchristensen> ramses_: this is a tricky thing, because evaluation may happen on a machine which is not on the machine which will actually run your config
<ramses_> gchristensen: I am aware. I made this behaviour optional for this reason. But I don't currently see a better alternative to avoid having private keys in the nix store..
<gchristensen> I understand
<gchristensen> you could make a wrapper around nixos-rebuild which checks for you?
<ramses_> Whether the file is there?
<gchristensen> yeah
aswanson has quit [Quit: WeeChat 2.6]
aswanson has joined #nixos
<ramses_> In our current workflow, we rarely build the system on another machine than the one that will run it. However, our machines are deployed in remote places to which we cannot easily access, so avoiding the key not being in place is way higher on my list of priorities. If someone accidentally switches into a config without the key, we might lose
<ramses_> access to the remote server
noogie has quit [Ping timeout: 260 seconds]
<qyliss> ramses_: #78640 might be of interest
<{^_^}> https://github.com/NixOS/nixpkgs/pull/78640 (by Infinisil, 6 days ago, open): Add `types.secretPath`
erictapen has quit [Ping timeout: 265 seconds]
dsx has quit [Quit: dsx]
<{^_^}> [nixpkgs] @peterhoeg opened pull request #79158 → dxx-rebirth: 0.59.100 -> 0.59.20200202 → https://git.io/JvsxL
Chiliparrot has quit [Ping timeout: 265 seconds]
growpotkin has joined #nixos
Chiliparrot has joined #nixos
<{^_^}> [nix] @edolstra pushed 3 commits to flakes: https://git.io/JvsxG
<{^_^}> [nixpkgs] @bennofs merged pull request #78553 → liquibase: 3.6.2 -> 3.8.5 → https://git.io/Jvq5D
<{^_^}> [nixpkgs] @bennofs pushed to master « liquibase: 3.6.2 -> 3.8.5 »: https://git.io/Jvsxu
cosimone has quit [Quit: Terminated!]
<karetsu> is there a 'better' way of trying to set up a nix-shell for python things that aren't in nixpkgs than having a bazillion fetchPypi declarations? It really feels like I'm fighting against what should be simple
v88m has joined #nixos
Henson has joined #nixos
cosimone has joined #nixos
<dminuoso> karetsu: I gave up and just use the plain python virtual environments
<dminuoso> karetsu: So my nixshell is a simple: (pkgs.python35.buildEnv.override { extraLibs = [ pkgs.python35Packages.virtualenv ]; }).env
<dminuoso> nixos has a tendency to expose how nasty and shitty software is packaged.
<karetsu> it just feels wrong having a virtualenv and a requirements.txt when coming from cabal which is much nicer
hmemcpy has joined #nixos
<hmemcpy> Hi all! I'm building a docker image based on `nixos/nix` to use in vscode as a devcontainer for Haskell (wrote about it here https://hmemcpy.com/2020/02/setting-up-a-haskell-development-environment-in-minutes-in-vscode/)
<hmemcpy> This requires creating an additional user in the image, `vscode`, so that Visual Studio can remotely connect to it.
<hmemcpy> The problem, I noticed, that once the image is up, if I try to run any nix commands in it, I get:
<hmemcpy> ```bash-5.0$ nix verifyerror: opening lock file '/nix/var/nix/db/big-lock': Permission deniedbash-5.0$ whoamivscode```
<hmemcpy> (erm, I forgot this isn't discord) :)
<hmemcpy> Do I need to set special permissions on this new user to make nix available to it? Sorry, little new to it all...
<dminuoso> Ive been trying to install hmatrix in cabal v2-* using a shell.nix. However, the nixos package liblapack provides a static library liblapack.a while hmatrix appears to expect a shared library.
gustavderdrache has joined #nixos
dsx has joined #nixos
nolan_d has joined #nixos
drakonis1 has quit [Ping timeout: 265 seconds]
wavirc22 has quit [Ping timeout: 268 seconds]
benedikt93 has quit [Quit: benedikt93]
benedikt93 has joined #nixos
<benedikt93> Hi all, a nixos-rebuild switch just failed for me with an error along the lines of "activation script snippet 'nix' failed". Is there any place I can look for logs of what actually happened? The nixos-rebuild output wasn't any more conclusive than that... Thanks!
waleee-cl has joined #nixos
opthomasprime has joined #nixos
dansho has quit [Remote host closed the connection]
dansho has joined #nixos
<nolan_d> Hey, wondering if NixOS would be a good fit for this project? At work, we need to ship a ready-made VM containing our own tooling but also various standard binaries and libraries. We want to support atomic upgrades and a single version for everything--our shipped code, dependencies, etc.
<nolan_d> So essentially I need a base installation, with our own Java/Elixir codebases bundled in as services, and on-prem customers need to be able to perform atomic upgrades between known states. I'd like to avoid Docker containers, since our service has several, and I don't want potential version mismatches between individual containers.
<gustavderdrache> you can build docker containers with nix from a single derivation - that's what i do for some projects at $WORK
<gustavderdrache> *single expression
<nolan_d> Anyhow, seems like what we'd want to do is package our product as a derevation including our own code plus pinned versions of system dependencies, but I don't know how hard it is to package that into a pre-built image a customer can download, or how hard it is to push upgrades out to customers. I'm also running Fedora on my desktop, though I did install nix. How hard is it to build custom VM images with the nix tool?
hmemcpy has quit [Remote host closed the connection]
<gustavderdrache> https://github.com/nix-community/nixos-generators there's a tool for it
<gustavderdrache> i think there's also a way to build OVA/OVF files but i forget where that is
<nolan_d> Oh nice.
c0c0 has joined #nixos
ng0_ has joined #nixos
ng0_ has joined #nixos
<nolan_d> So there's a lot of terminology here and I'm a bit overwhelmed. If we want to package our product, should I be looking into how to create a channel? If so, can channels depend on other channels? Like, if our on-prem code needs an ffmpeg installation, can we depend on Nixos' ffmpeg package from its main channel?
<nolan_d> And can channels be private, or otherwise not publically available?
ng0 has quit [Ping timeout: 240 seconds]
<gustavderdrache> i've never worked with channels, so i'll wait for someone more knowledgeable to handle that part
<gustavderdrache> but basically you can package your project using just a single file that can be passed to `nix-build` since the artifact is going to be a VM image or similar
<nolan_d> Hmm, yeah, just want to make sure we aren't exposing source code to customers.
<gustavderdrache> if you want to do that, you'll have to do it very explicitly :P
cust0dian has quit [Remote host closed the connection]
<gustavderdrache> nix derivations are pretty strict about what does and does not make it into a build artifact
<simpson> nolan_d: ...But you're on-prem?
cust0dian has joined #nixos
<nolan_d> Eventually, yes. Not quite yet.
<Shoubit> nolan_d, a "channel" is essentially just a convenient way of referring to a specific set of Nixpkgs and as such obtaining the list of installable packages with some guarantees like tests have passed. You don't have to use it at all, you can simply use Nixpkgs pinning, and it can even be stored locally (but most people just grab them straight from Github using helper functions like fetchTarball)
<simpson> Well, your choices are (a) give your code to your customers, or (b) don't give your code to your customers.
__Sander__ has quit [Quit: Konversation terminated!]
<Shoubit> (e.g. afaik the "nixos-" channels have tests, "nixpkgs-" channels don't)
<nolan_d> Or c) precompile all your artifacts so implementation isn't immediately available, and make decompiling an explicit license violation. That's what I'm aiming for here.
Kritnich has quit [Quit: Bye bye.]
<nolan_d> Shoubit: Ah, so I can reference packages/versions cross-channel?
<Shoubit> As in from several channels? Yeah. Though you'll most likely just use Nixpkgs pinning (just a specific revision of the Nixpkgs repository) and a binary cache for anything that isn't in cache.nixos.org so you can avoid rebuilding stuff
<Shoubit> The reason you'll be better off with pinning is that using nix-channels introduces state to your system, because channels change and you need to make sure to run nix-channel --update all the time to match it. Instead you can just make sure every dev has the same revision of Nixpkgs declaratively with pinning.
<nolan_d> Gotcha. What's the best way to build a system like this? I imagine what I want is to build a minimal chroot, add in my dependencies until it works when I'm chrooted in, then package that up.
<monadplus> [NixOS] How do you set up your kb layout in order to write unicode characters like math symbols ? I tried to set up it a couple of times with no results...
mDuff has quit [Ping timeout: 265 seconds]
<monadplus> I tried services.xserver.extraLayouts but I wasn't unable to make it work..
chagra_ has quit [Ping timeout: 272 seconds]
Tucky has quit [Quit: WeeChat 2.7]
chagra_ has joined #nixos
rogue_koder has joined #nixos
<Taneb> Got a weird issue
<Taneb> "warning: executing SQLite statement 'delete from NARs where ((present = 0 and timestamp < ?) or (present = 1 and timestamp < ?))': database disk image is malformed (in '/root/.cache/nix/binary-cache-v6.sqlite')"
<Taneb> And I can't seem to use a binary cache
<clever> Taneb: rm /root/.cache/nix/binary-cache-v6.sqlite*
<clever> Taneb: nix will re-create that cache when its missing
<Taneb> clever: thanks, that fixed it
<{^_^}> [nixpkgs] @bjornfor pushed to master « opencc: fix build »: https://git.io/Jvsh7
<Taneb> clever++
<{^_^}> clever's karma got increased to 316
kraem has quit [Quit: outta here]
<Yaniel> is there a good reference for packaging stuff as a system service?
<dminuoso> Yaniel: What do you mean, exactly?
<Yaniel> would be nice to have https://github.com/medusalix/xow available as simply "services.xow.enable = true;"
<dminuoso> Yaniel: I see. Look into systemd.services in your `man configuration.nix`
domogled has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
<dminuoso> Yaniel: Ideally you'd write a separte nixos module for xow.
<Yaniel> examples of that?
<Yaniel> writing a package for it seems like it should be quite straightforward at least
<dminuoso> Famous last words.
<dminuoso> But indeed, it seems fairly simple.
<Yaniel> I mean I am maintaining a much more complex package already :D
<{^_^}> #76185 (by pmiddend, 6 weeks ago, open): xow: init at 0.2
<Yaniel> oh, nice
<Yaniel> and it's even on the radar of the developer, excellent
drakonis has joined #nixos
<{^_^}> [nixpkgs] @jojosch opened pull request #79159 → mariadb: mytop add "clear" to PATH → https://git.io/Jvsjs
chagra has joined #nixos
domogled has quit [Quit: domogled]
chagra_ has quit [Ping timeout: 265 seconds]
<aveltras> what would be the reason to have an error like "error: undefined variable 'next-gtk-webkit'" when rebuilding my configuration while nix search find it ? nixos.next-gtk-webkit (next-gtk-webkit) Infinitely extensible web-browser (user interface only)
c0c0 has quit [Quit: WeeChat 2.6]
karantan has joined #nixos
<{^_^}> [nixpkgs] @a1mac opened pull request #79160 → maintainers: add almac → https://git.io/Jvsj4
<srhb> aveltras: Differing versions of nixpkgs, probably
<srhb> See 417d6354c8d6f895a1b39d2eb06d26ba405fdf1c
<{^_^}> [nixpkgs] @bcdarwin opened pull request #79161 → octave: build without qscintilla by default → https://git.io/JvsjE
<aveltras> srhb: isn't the nix search utility searching in the same channels than those available via nixos-rebuild ?
zupo has joined #nixos
<srhb> aveltras: I would assume that nix search uses whatever's on NIX_PATH
<srhb> aveltras: But I think the question is slightly misguided (perhaps?) -- I mean, the user running the command may impact the channels available.
ixxie has joined #nixos
<srhb> aveltras: Aside from the upgrade mechanism in nixos-rebuild, it too should look up <nixpkgs>
cqc has left #nixos [#nixos]
<karantan> ok I think I found the problem. In https://github.com/NixOS/nixpkgs/pull/68353 it says "requires the
<karantan> username to exist on the host system" so I think I also need to add that mysql user (in the above case "foo" user) to the system.
<{^_^}> #68353 (by Scriptkiddi, 21 weeks ago, open): nixos/mysql: add authentication option
<aveltras> srhb: must be sth like that then, i'll try to installe the "next" package instead, thanks
<srhb> aveltras: Since you're having channel mismatches, maybe you'll want to compare your user's channels vs. those of root too, because it's bound to cause confusion again :)
<aveltras> the nix-channels --list doesn't return anything when not run as sudo
<aveltras> and only "nixos https://nixos.org/channels/nixos-unstable" when sudoing
<srhb> aveltras: Then I am equally surprised.
ixxie has quit [Read error: Connection reset by peer]
ixxie has joined #nixos
<aveltras> here(s the content of NIX_PATH, not sure everything's normal
<srhb> aveltras: Maybe it's just been a while since you did nix search --update-cache ?
<aveltras> srhb: clearing the cache fixed it :)
<srhb> Ah, there we go.
<aveltras> thanks
ng0_ is now known as ng0
permissionshelp has joined #nixos
<permissionshelp> I'm having issues with a docker container for application development that mounts a volume. My co-workers using ubuntu aren't having a problem. Is this because in Ubuntu the user id/group ids are something like `1000:1000` whereas in nix they are `1000:100`? Has anyone dealt with this issue?
<evanjs> Closing out most of my open PRs now. Woo! Just wonder if #78420 is ready to merge
<{^_^}> https://github.com/NixOS/nixpkgs/pull/78420 (by evanjs, 1 week ago, open): gitkraken: 6.4.1 -> 6.5.0
Kritnich has joined #nixos
<{^_^}> [nixpkgs] @mmahut closed pull request #79160 → maintainers: add almac → https://git.io/Jvsj4
ddellacosta has quit [Ping timeout: 272 seconds]
<srhb> permissionshelp: Quite likely, if group 100 doesn't have read/write/whatever's missing for you.
<srhb> permissionshelp: But the userid in the container is usually configurable.
<srhb> permissionshelp: (It's sadly not very portable if you rely on external things a the host and container side need to match)
<{^_^}> [nixpkgs] @misuzu opened pull request #79162 → nixos/systemd: add `systemd.sleep.extraConfig` config option → https://git.io/JvsjA
ddellacosta has joined #nixos
nikivi has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
nikivi has joined #nixos
<{^_^}> [nixpkgs] @chrislf opened pull request #79163 → Wq maintainers chrislintonford → https://git.io/JvGeT
<permissionshelp> srhb: So I guess I need to make my teams docker containers take user id and user group id?
ddellacosta has quit [Ping timeout: 268 seconds]
<gustavderdrache> macos also allocates completely different uid/gid for users than most linux systems do, so it's better to parameterize it
<gustavderdrache> (i've had to do this workaround at $WORK for our docker-based projects)
<permissionshelp> We also have a windows user too. Not sure what to do there.
ddellacosta has joined #nixos
<gustavderdrache> for stuff we've scripted, i've left off the --uid and --gid flags for `docker run` and that seems to do fine
<srhb> permissionshelp: Or just alter ownership on the host side
growpotkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
<permissionshelp> srhb: I tried that, but then inside the container couldn't see the contents.
<srhb> permissionshelp: What did you try exactly?
<permissionshelp> I tried `chown myuser:users sharedfolder` which let me access it locally but then docker couldn't see it. I know this is wrong but I'm not sure why exactly.
leotaku has quit [Ping timeout: 265 seconds]
<srhb> permissionshelp: You should match the uid/gid to the process _inside_ the container
erictapen has joined #nixos
noudle has joined #nixos
<srhb> permissionshelp: The names on your system has no bearing on what's going on.
growpotkin has joined #nixos
<aveltras> what's the easiest way to replace a file in a package ? i'm on nixos unstable right now and i'd like to use nixops with containers which seems impossible because of a bug (https://github.com/NixOS/nixpkgs/issues/72407). I'd like to rollback this commit only https://github.com/NixOS/nixpkgs/pull/67332/files#diff-de8d44b6decd56e2faadb52ff18e2eba
<{^_^}> #72407 (by adrianparvino, 13 weeks ago, open): nixops: containers are incompatible with unstable nixos-container.pl
orivej has quit [Ping timeout: 265 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chloekek has quit [Quit: WeeChat 2.6]
<karetsu> building caffe2 is a chore, is there no way we could have cuda stuff pre-built?
<gchristensen> I think there is concern around licenses
<gchristensen> it is definitely a chore, though :/
WinchellsM has joined #nixos
<WinchellsM> Is it possible to pass a file path as an argument to a nix function? Say the file path is `file_path`. Then can I just make it an argument to my function and, in the function body's `preConfigure` do something like `cp ${file_path} copy_of_file`?
<karetsu> ah yes, I forget about allowUnfree -_-
leotaku has joined #nixos
<gchristensen> karetsu: mind if I PM?
<karetsu> go ahead
<clever> WinchellsM: yeah, just make sure to not quote the path
<WinchellsM> clever: Ok nice
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramses_ has quit [Remote host closed the connection]
permissionshelp has quit [Ping timeout: 260 seconds]
arjen-jonathan has quit [Ping timeout: 265 seconds]
sigmundv has quit [Ping timeout: 265 seconds]
shafox has joined #nixos
<AmandaC> Is there any way from another process/terminal to see what a nix-build is currently working on?
<{^_^}> [nixpkgs] @misuzu opened pull request #79164 → linux: Enable NVME_HWMON → https://git.io/JvGvm
<AmandaC> I'm trying to make an arm32 image for my raspberry pi3, and it's been going since last night, appears to be compiling something?
<AmandaC> ... it's compiling gcc? O.
<aveltras> shafox: you can see here https://howoldis.herokuapp.com/ what commit the channel you're following points to
<clever> AmandaC: the simplest answer is to just `ls -ltrh /tmp/` and look at the names in the nix-build dirs
<AmandaC> yup, it's buildin gcc it seems. I'd have thought there'd be cached images for that already.
<clever> AmandaC: cross or native?
<AmandaC> cross
<clever> not sure, the 32bit stuff isnt covered much by hydra
<AmandaC> ah
<AmandaC> I'm curious if the qemu-user route will die for a 32-bit image, as it does for a 64-bit one
<aveltras> shafox: latest ghc might not be in the top level packages expressions
<AmandaC> ( OOM's generating the FS image )
<AmandaC> Rather, the fs image generator claims it's out of memory repeatedly, and half the files nessary for an image are missing
<{^_^}> [nix] @edolstra pushed to flakes « Install headers in the correct location »: https://git.io/JvGvl
<{^_^}> [hydra] @edolstra pushed 6 commits to flake: https://git.io/JvGvB
erictapen has quit [Ping timeout: 265 seconds]
elenapan has joined #nixos
<WinchellsM> clever: If the file path argument to my function is `file_path ? null`, is there a way to check if the file_path is null in preConfigure?
<{^_^}> [nixpkgs] @flokli merged pull request #79141 → nixos/tests/openstack-image: add stdenv to image for nixos-rebuild → https://git.io/JvsoV
<{^_^}> [nixpkgs] @flokli pushed 3 commits to master: https://git.io/JvGvE
<clever> WinchellsM: ${lib.optionalString (file_path != null) "echo ${file_path"}
<WinchellsM> `if [ -f ${file_path}]; then ..`
<WinchellsM> oh, that looks more correct
<clever> optionalString takes a bool and a string
<clever> if the bool is false, it will use "" instead of the string you gave it
<WinchellsM> Yeah that's perfect
<shafox> aveltras, I have pasted the git link for the ghc-8.8.x
<aveltras> shafox: ghc 8.8 is in the haskell.compilers namespace
<aveltras> shafox: you can try nix-env -iA haskell.compiler.ghc882 -f '<nixpkgs>'
endformationage has joined #nixos
erasmas has joined #nixos
waleee-cl has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @jonringer merged pull request #79090 → python3Packages.tablib: 0.12.1 -> 1.0.0 → https://git.io/JvsCb
<{^_^}> [nixpkgs] @jonringer pushed to master « python3Packages.tablib: 0.12.1 -> 1.0.0 »: https://git.io/JvGv1
opthomasprime has left #nixos [#nixos]
Jackneill has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @sikmir opened pull request #79165 → xournalpp: 1.0.16 -> 1.0.17 → https://git.io/JvGvQ
<{^_^}> [nixpkgs] @wucke13 opened pull request #79166 → paraview: add wrapQtAppsHook → https://git.io/JvGvb
Guest68037 has left #nixos ["User left"]
karetsu has quit [Quit: WeeChat 2.6]
<{^_^}> [hydra] @edolstra pushed 2 commits to flake: https://git.io/JvGvx
karetsu has joined #nixos
<{^_^}> [nixos-org-configurations] @edolstra pushed 5 commits to master: https://git.io/JvGvj
<{^_^}> [nixpkgs] @i077 opened pull request #79167 → todoist-electron: init at 1.19 → https://git.io/JvGfT
cosimone has quit [Quit: Terminated!]
chloekek has joined #nixos
<{^_^}> [nixpkgs] @Ma27 merged pull request #79149 → dbeaver: 6.3.3 -> 6.3.4 → https://git.io/Jvsyx
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JvGfq
phreedom has quit [Ping timeout: 240 seconds]
phreedom_ has joined #nixos
<{^_^}> [nixpkgs] @ajs124 opened pull request #79168 → gnustep/base: replace libbfd with binutils-unwrapped → https://git.io/JvGfY
pikajude has quit [Quit: ZNC 1.7.5 - https://znc.in]
pikajude has joined #nixos
ravndal has quit [Quit: WeeChat 2.7]
gagbo has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @jonringer merged pull request #79146 → texlive: fix build broken by poppler update → https://git.io/JvsMY
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JvGf8
<{^_^}> [nix] @edolstra pushed to flakes « Update flake.lock »: https://git.io/JvGfE
<{^_^}> [nixpkgs] @jonringer merged pull request #78939 → openrazer: 2.6.0 -> 2.7.0 → https://git.io/JvOAp
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JvGfz
zupo has joined #nixos
<{^_^}> [nixpkgs] @OmnipotentEntity opened pull request #79169 → arviz: 0.5.1 -> 0.6.1 → https://git.io/JvGfw
knupfer has joined #nixos
karetsu has quit [Quit: WeeChat 2.6]
karetsu has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #78859 → elementary-planner: init at 2.1.1 → https://git.io/JvOry
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @dtzWill to master « elementary-planner: init at 2.1.1 (#78859) »: https://git.io/JvGfb
<{^_^}> [nixpkgs] @lsix opened pull request #79171 → gettext: refactor and split in multiple packages → https://git.io/JvGfA
<{^_^}> [nixpkgs] @rnhmjoj opened pull request #79172 → qutebrowser: 1.9.0 -> 1.10.0 → https://git.io/JvGfx
<{^_^}> [nixpkgs] @chkno opened pull request #79173 → nerdfonts: 2.0.0 -> 2.1.0 → https://git.io/JvGfp
WinchellsM has quit [Quit: Lost terminal]
<{^_^}> [nixpkgs] @jonringer merged pull request #79152 → theme-jade1: 1.5 -> 1.6 → https://git.io/JvsQg
<{^_^}> [nixpkgs] @jonringer pushed commit from @romildo to master « theme-jade1: 1.5 -> 1.6 »: https://git.io/JvGfh
wildtrees has joined #nixos
shibboleth has joined #nixos
<{^_^}> [nixpkgs] @kalbasit closed pull request #79133 → go_1_12: 1.12.15 -> 1.12.16, 1.13.6 -> 1.13.7 (security) → https://git.io/Jvsa5
<{^_^}> [nixpkgs] @jonringer merged pull request #79145 → editorconfig-checker: 2.0.2 -> 2.0.3 → https://git.io/Jvs15
<{^_^}> [nixpkgs] @jonringer pushed commit from @Frostman to master « editorconfig-checker: 2.0.2 -> 2.0.3 »: https://git.io/JvGJv
rogue_koder_ has joined #nixos
Baughn has quit [Quit: ZNC 1.6.2+deb1 - http://znc.in]
<{^_^}> [nixpkgs] @cstich opened pull request #79174 → julia: 1.1 -> 1.3 → https://git.io/JvGJU
rogue_koder has quit [Ping timeout: 265 seconds]
<{^_^}> [nixos-org-configurations] @LnL7 opened pull request #98 → alertmanager: reduce alerts for flipping systemd states → https://git.io/JvGJY
drewr has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @jonringer merged pull request #79156 → simgrid: 3.24 -> 3.25 → https://git.io/JvsAu
<{^_^}> [nixpkgs] @jonringer pushed commit from @mpoquet to master « simgrid: 3.24 -> 3.25 »: https://git.io/JvGJG
domogled has joined #nixos
waleee-cl has joined #nixos
sigmundv has joined #nixos
arjen-jonathan has joined #nixos
fusion809 has joined #nixos
<{^_^}> [nixpkgs] @flokli merged pull request #78960 → nixos/ldap: remove redundant configuration options → https://git.io/Jv3sa
<{^_^}> [nixpkgs] @flokli pushed 3 commits to master: https://git.io/JvGJ4
fusion809 has quit [Remote host closed the connection]
xelxebar_ has joined #nixos
xelxebar has quit [Ping timeout: 240 seconds]
smatting has quit [Ping timeout: 268 seconds]
karetsu has quit [Quit: WeeChat 2.6]
karetsu has joined #nixos
virus_dave has joined #nixos
o1lo01ol1o has quit [Ping timeout: 240 seconds]
<virus_dave> Yet another QQ for y'all.
<virus_dave> i'm trying to define a fixed-output package that gets deployed on both osx and nixos. One of the outputs is a wrapper script, which ends up getting shebang-patched differently on the two platforms depending due to the different bash packages on each
<virus_dave> how is this typically handled? a platform-specific FOD hash seems pretty obvious, but also seems a little weird. Is there a different way people do this?
<clever> virus_dave: anything with a runtime dependency (such as on a shell) must not be fixed-output
<clever> virus_dave: you want to split it into 2 pieces, the fixed-output half that works on any platform, and then a non-fixed half that is platform specific
karetsu has quit [Client Quit]
karetsu has joined #nixos
karetsu has quit [Client Quit]
karetsu has joined #nixos
<virus_dave> oh man, really? that sounds even worse than having platform-specific hashes :(
karetsu has quit [Client Quit]
karetsu has joined #nixos
<gustavderdrache> think of it this way: it separates the integrity of the input (the script to patch) from the platform-specific post-processing that happens
<shapr> silly question, are there nix packages for installing proprietary tools like the Xilinx backend toolchain?
<gustavderdrache> if you combine the two, you'd have to update the hash every time, say, the bash derivation's hash changed in the nix store
<virus_dave> gustavderdrache: yeah, that was why i was asking. OK, knee-jerk recoiling aside, this might not be so bad. Something like a wrapper derivation which isn't FOD but does the patching, which takes as buildInput the unpatched, FOD derivation.
<gustavderdrache> tbqh i like the split, because it means that nix can cache the input separately and it's faster to work on downloaded sources when you're working on a derivation
<gustavderdrache> but the mental model does take some getting used to
<gustavderdrache> if your input is an archive or a file you can get from online, you can just tweak `mkDerivation` to not invoke configure/make and go straight to the patching phase
karetsu has quit [Client Quit]
<virus_dave> ^ yeah that doesn't map so cleanly into what i'm trying to do, but i get your point
karetsu has joined #nixos
<virus_dave> (i think)
<gustavderdrache> what's the input, if you don't mind my asking?
<gustavderdrache> is it downloaded or from another derivation?
<virus_dave> FOO sources from github -> patched sources -> artificial nix derivation -> invoke SBT on the patched FOO sources (** this normally produces some shell scripts, which are currently patched **)
ddellacosta has quit [Quit: WeeChat 2.2]
<gustavderdrache> hmmm... wouldn't that just be fetchFromGithub and a patch phase in mkDerivation?
<gustavderdrache> or are there some extra details in between those arrows?
<gustavderdrache> this patches as part of its build
<{^_^}> [nixpkgs] @jonringer merged pull request #79139 → kdevelop: 5.4.6 -> 5.5.0 → https://git.io/Jvsro
<{^_^}> [nixpkgs] @jonringer pushed 3 commits to master: https://git.io/JvGJx
<virus_dave> sure, but the build is what's producing the bash wrapper scripts, and the result of that build is what absolutely needs to be FOD due to $REASONS.
<gustavderdrache> ah
<gustavderdrache> fair enough
<virus_dave> ^^ that's almost exactly what i'm doing now
<virus_dave> except with FOD hashes on the package
<gustavderdrache> cool, just making sure i understood the context
<gustavderdrache> it does sound like you'll want to daisy-chain the derivations, then
<virus_dave> so i think i can make this one not-patch, then wrap it with another, non-FOD which does the patching perhaps
<virus_dave> :thumbsup:
<gustavderdrache> the `src` attribute can be another derivation, so it won't even be too difficult
<gustavderdrache> let fixedOutput = mkDerivation { ... }; patched = mkDerivation { src = fixedoutput; ... }
<virus_dave> yup, looks like what i want
<virus_dave> thanks!
<gustavderdrache> good luck! :)
judson has joined #nixos
m15k has joined #nixos
<m15k> Hi. Any idea how to `fetchFromGitlab` via ssh?
<clever> m15k: you want either pkgs.fetchgitprivate (which was deleted) or builtins.fetchGit
zebrag has joined #nixos
<dashkal> I've got a hybrid intel/nvidia laptop. I can get glx working with intel, or with the nvidia (via bumblebee), but never both. (a) Is it possible to get glx working on the intel with a bumblebee setup, or (b) would it just work to start my window manager with optirun and effectively put everything on the nvidia? Nvidia Prime doesn't seem to support my two extra monitors setup.
inkbottle has quit [Ping timeout: 265 seconds]
<AmandaC> m15k: what clever said. fetchFromFoo is to standardise around common export interfaces for websiteslike github/gitlab -- they don't even use git
<{^_^}> [nixpkgs] @lsix merged pull request #79161 → octave: build without qscintilla by default → https://git.io/JvsjE
<{^_^}> [nixpkgs] @lsix pushed 2 commits to master: https://git.io/JvGUt
<m15k> AmandaC: I see. It's just some syntactic sugar.
<AmandaC> ( I assume that's their purpose anyway. So that if one day Github/Gitlab/etc randomly decide to change the interface for such things, it's nota massive rewrite )
ixxie has quit [Ping timeout: 268 seconds]
<AmandaC> And it's easier on bandwidth since its not getting the entire history of the project
<AmandaC> not really sugar. more a utility function
<m15k> k. I'll check `fetchGit`.
<m15k> Thanks!
knupfer has quit [Remote host closed the connection]
karetsu has quit [Quit: WeeChat 2.6]
knupfer has joined #nixos
cosimone has joined #nixos
shibboleth has quit [Quit: shibboleth]
<evanjs> Is there a good approach to making kernel images with initramfs support from a NixOS host? Trying to fit a step that does so into our CI (Jenkins) which is running on NixOS but unsure where to start
rogue_koder_ has quit [Ping timeout: 265 seconds]
zupo has joined #nixos
<ajs124> evanjs: what exactly are you trying to do? You can build linuxPackages.kernel to get a bzImage?
Baughn has joined #nixos
adamtkh has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @ajs124 opened pull request #79175 → sogo: init at 4.3.0 → https://git.io/JvGUE
adamtkh has joined #nixos
scoates has left #nixos ["WeeChat 2.5"]
<{^_^}> [nixpkgs] @worldofpeace opened pull request #79176 → xorg.libXft: add color emoji rendering support → https://git.io/JvGU6
<evanjs> ajs124: I'm trying to take a kernel, build a module on top of it, and produce an initramfs with said module in it
<ajs124> why not integrate the module into the kernel?
<evanjs> Though, if the driver on nixos works fine, that might be a better route. Coworker said he tried the staging version of rtl8188eu (which is what's in the nixpkgs tree) and it didn't work with AP mode, but I havenb't tested on NixOS
kleisli has quit [Ping timeout: 268 seconds]
<evanjs> Yeah that's what I was thinking
<evanjs> Just availableKernelModules or whatever the equivalent is for initramfs
<evanjs> *initrd? Not sure haha
<ajs124> boot.initrd.availableKernelModules
<clever> evanjs: you want boot.kernelPackages and boot.initrd.availableKernelModules
<clever> evanjs: oh, and...
<clever> boot.extraModulePackages
<clever> amd-wg.nix: boot.extraModulePackages = [ config.boot.kernelPackages.wireguard ];
<clever> amd-nixos.nix: #extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
<evanjs> hrm alright. Wondering how I can fit this into CI (Jenkins pipeline in this case). End target is a non NixOS system
<clever> evanjs: and you can use `boot.kernelPackages = pkgs.linuxPackages.extend (self: super: { foo = self.callPackage ./foo.nix {}; });` to add a new thing in
<clever> evanjs: you can use nix-build to compile fragments of a configuration.nix as well
* clever grabs example...
<evanjs> clever: ah okay sweet I was already grabbing my override from one of my musnix configs so I'll just affix it to that
cosimone has quit [Quit: Quit.]
<clever> evanjs: line 171 loads nixos.nix as a configuration file, and line 210 is a reference to the initrd of it
karantan has joined #nixos
<clever> evanjs: this lets me (cross) compile an initrd for the rpi, and then copy it to an sd card to boot under my custom firmware
kraem has joined #nixos
orivej has joined #nixos
Palpares has quit [Remote host closed the connection]
Palpares has joined #nixos
arjen-jonathan has quit [Ping timeout: 265 seconds]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
<ajs124> Any ideas why the libbfd.so in pkgs.libbfd is different from the one in pkgs.binutils-unwrapped?
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/a7d55dd3b7e (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
psyanticy has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @srhb opened pull request #79178 → ceph: 14.2.6 -> 14.2.7 → https://git.io/JvGUN
pikajude has quit [Quit: ZNC 1.7.5 - https://znc.in]
pikajude has joined #nixos
<Orbstheorem> How do I get a compiler for a different architecture using nixpkgs ?
ddellacosta has joined #nixos
<evanjs> Orbstheorem: have you found pkgsCross yet?
<Orbstheorem> (Not an stdenv, just a standalone compiler toolchain.)
<evanjs> as mentioned here https://nixos.wiki/wiki/Cross_Compiling
<evanjs> not sure about just the toolchain vs stdenv
pikajude has quit [Ping timeout: 265 seconds]
<clever> Orbstheorem: you can just aim nix-shell at such a derivation and leave the body empty, if you only want its toolchain
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/JvGTq
<{^_^}> [nixpkgs] @matthewbauer merged pull request #79168 → gnustep/base: replace libbfd with binutils-unwrapped → https://git.io/JvGfY
worldofpeace has quit [*.net *.split]
tomberek[m] has quit [*.net *.split]
psiperator[m] has quit [*.net *.split]
fabiomen10[m] has quit [*.net *.split]
PlayfulCuriosity has quit [*.net *.split]
eeyun[m] has quit [*.net *.split]
the_pumpkin_man[ has quit [*.net *.split]
rihardsk[m] has quit [*.net *.split]
alan[m]1 has quit [*.net *.split]
Victor[m]2 has quit [*.net *.split]
ilya-fedin has quit [*.net *.split]
gsals[m] has quit [*.net *.split]
arcnmx has quit [*.net *.split]
goibhniu has quit [*.net *.split]
sylvie[m] has quit [*.net *.split]
Ericson2314 has quit [*.net *.split]
jtojnar has quit [*.net *.split]
haslersn has quit [*.net *.split]
cocreature has quit [*.net *.split]
alexherbo28 has joined #nixos
cust0dian has quit [Quit: WeeChat 2.7]
<Orbstheorem> pkgsCross <3
<Orbstheorem> What's the difference between the *-embedded version of the attribute? (e.g. pkgsCross.riscv64 and pkgsCross.riscv64-embedded)
shah^ has quit [Ping timeout: 240 seconds]
alex`` has quit [Ping timeout: 265 seconds]
alexherbo2 has quit [Ping timeout: 265 seconds]
alexherbo28 is now known as alexherbo2
shah^ has joined #nixos
sondr3 has joined #nixos
alex`` has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<clever> Orbstheorem: i think the embedded ones lack glibc
<clever> Orbstheorem: and the non-embedded ones, expect a linux kernel and glibc
<Orbstheorem> Oh, okay ^^
<Orbstheorem> Thanks !
<clever> embedded may use newlib for a libc
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<evanjs> clever: speaking of which... any idea how/if there are any decent docs on overriding the libc used?
<{^_^}> [nixpkgs] @worldofpeace merged pull request #78945 → singularity-tools: fix buildImage → https://git.io/Jv3fn
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JvGTg
<clever> evanjs: https://github.com/NixOS/nixpkgs/pull/72657 sort of has an example
<{^_^}> #72657 (by cleverca22, 13 weeks ago, merged): Initial implementation of vc4 cross-compile
<clever> evanjs: this adds the vc4 binutils/gcc/newlib
the_pumpkin_man[ has joined #nixos
PlayfulCuriosity has joined #nixos
Victor[m]2 has joined #nixos
worldofpeace has joined #nixos
tomberek[m] has joined #nixos
psiperator[m] has joined #nixos
sylvie[m] has joined #nixos
goibhniu has joined #nixos
haslersn has joined #nixos
ilya-fedin has joined #nixos
jtojnar has joined #nixos
Ericson2314 has joined #nixos
rihardsk[m] has joined #nixos
fabiomen10[m] has joined #nixos
arcnmx has joined #nixos
eeyun[m] has joined #nixos
gsals[m] has joined #nixos
cocreature has joined #nixos
alan[m]1 has joined #nixos
xelxebar_ has quit [Remote host closed the connection]
xelxebar has joined #nixos
<{^_^}> [nixpkgs] @samueldr closed pull request #77999 → Cross nixos aarch64 2018 08 05 → https://git.io/Jvkgk
<evanjs> hrm. alright, wasn't sure how much effort would be involved in simply requiring an app to use e.g. a different libc, and nothing else. thinking back to #38552 ...
<{^_^}> https://github.com/NixOS/nixpkgs/issues/38552 (by veprbl, 1 year ago, open): How to override the default compiler
<{^_^}> [nixpkgs] @kalbasit merged pull request #78991 → go_1_13: 1.13.6 -> 1.13.7, go_1_12: 1.12.15 -> 1.12.16 → https://git.io/Jv3oz
<{^_^}> [nixpkgs] @kalbasit pushed 3 commits to master: https://git.io/JvGTw
<evanjs> like... I can't just override the platform's libc, right..?
<clever> evanjs: there is also the musl "cross compile" target
o1lo01ol1o has quit [Remote host closed the connection]
<clever> pkgsCross.musl64
<evanjs> clever: which, if used, there is an option in busybox (which is what I was trying to compile with uclibc) specifically for musl
<{^_^}> [mobile-nixos] @samueldr opened pull request #76 → asus-dumo: kernel 5.3.0 -> 5.5.0 → https://git.io/JvGTi
<evanjs> *looking through all-packages* ... wait... `else if name == "uclibc" then targetPackages.uclibcCross or uclibcCross`
arjen-jonathan has joined #nixos
<clever> evanjs: thats from the platform set, passed to crossSystem i think
<evanjs> clever: yeah, quickly realized it wasn't like pkgsCross :<
<evanjs> not like I need to cross compile atm anyway
kleisli has joined #nixos
orivej has quit [Ping timeout: 265 seconds]
monadplus has quit [Remote host closed the connection]
monadplus has joined #nixos
worldofpeace_ has joined #nixos
worldofpeace_ has quit [Client Quit]
<{^_^}> [nixpkgs] @markuskowa merged pull request #79111 → fldigi: update fltk dependency to 1.4 → https://git.io/Jvsud
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/JvGTA
worldofpeace_ has joined #nixos
worldofpeace_ has quit [Client Quit]
brano543 has joined #nixos
lord| has quit [Quit: https://i.imgur.com/xacQ09F.mp4]
o1lo01ol1o has joined #nixos
lord| has joined #nixos
<brano543> Hell, I am new to Nix and still trying to learn. I am not on Nix-os and I am trying to write configuration.nix file which creates a postgresql. I have second derivation which creates a extension for postgresql. My trouble is that every time I try to link the output of extension I get permission denied to create symlink. Could anybody help me? This
<brano543> is how my configuration.nix looks like and it fails on this line ln -sfn ${pkgs.mapnik-german-l10n}/extension/* ${postgresql}/share/postgresql/extension. https://pastebin.com/nw06Y3mr
mgdm has joined #nixos
<{^_^}> [nixpkgs] @chkno opened pull request #79179 → nawk: 20121220 -> 20200131 → https://git.io/JvGkJ
<clever> brano543: you can only ever create files in $out, not your inputs
<brano543> clever: so how do I place the extension files to postgresql install directory then?
<clever> brano543: you dont
<clever> brano543: you use the services.postgresql.extraPlugins option in nixos
<clever> brano543: that will automatically call pkgs.postgresql.withPackages, and give it a list of plugins
<clever> brano543: .withPackages will then create a new derivation, that symlinks all of the chosen extensions together, and tells postgresql to look there
<brano543> clever: I have also tried to do this inside withPackages, but it seems configuration.nix doesn't see anything I defined in an overlay. postgresql = pkgs.postgresql_12.withPackages (ps: with ps; [ postgis mapnik-german-l10n ]); this line fails he doesn't know mapnik
<clever> brano543: the postgresql module calls .withPackages for you, so stacking it like that may fail
<{^_^}> [nixpkgs] @chkno opened pull request #79181 → seabios: Update src URL → https://git.io/JvGkm
shibboleth has joined #nixos
elenapan has quit [Ping timeout: 272 seconds]
<brano543> clever: The reason I am asking is that I have followed this tutorial https://unix.stackexchange.com/questions/523454/nixos-use-services-on-non-nixos-os-eventually-with-only-user-rights to generate a systemd service on CentOS. It all works really well, the postgresql.service is working, it is just that my problem doesn't seem to be with generating
<brano543> the service, but passing my own extension. He knows postgis,because that is in nixpkgs repository https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/sql/postgresql/ext/postgis.nix
<brano543> clever: I mean doing this during build of postgresql
<clever> brano543: can you pastebin the code your using, when you try to use services.postgresql.extraPlugins ?
<clever> and what problem its having
<brano543> clever: when you say services.postgresql.extraPlugins you mean I should add extraPlugins option inside systemd.services.postgresql?
<clever> brano543: no, it should be inside services.postgresql
<clever> brano543: services.postgresql is a nixos module, that defines postgresql options, it will then set systemd.services.postgresql options for you
<{^_^}> [nixpkgs] @bignaux opened pull request #79182 → hdl_dump: init at unstable-2019-12-25 → https://git.io/JvGkc
<clever> systemd.services.postgresql the nixos module for systemd, it will then use those options, to auto-generate a postgresql.service file
<brano543> clever: That might only work on NixOS only, I had to tinker around to make it work on my system.
<clever> brano543: can you pastebin your current code?
<brano543> clever: Here is my configuration.nix file https://pastebin.com/nw06Y3mr which builds fine
<brano543> clever: it builds a valid postgresql.service file
<brano543> clever: my problem is that the extension mapnik is build in another directory
<clever> brano543: ahh, your entirely skipping the postgresql module
<brano543> clever: I show you my main nix
<clever> brano543: you might save yourself a lot of work, if you just set options within services.postgresql
<brano543> clever: This is the only way I was able to generate that service https://pastebin.com/4fqJ2sbc.
PlayfulCuriosity has quit [*.net *.split]
fabiomen10[m] has quit [*.net *.split]
tomberek[m] has quit [*.net *.split]
psiperator[m] has quit [*.net *.split]
worldofpeace has quit [*.net *.split]
eeyun[m] has quit [*.net *.split]
rihardsk[m] has quit [*.net *.split]
the_pumpkin_man[ has quit [*.net *.split]
alan[m]1 has quit [*.net *.split]
Victor[m]2 has quit [*.net *.split]
arcnmx has quit [*.net *.split]
gsals[m] has quit [*.net *.split]
ilya-fedin has quit [*.net *.split]
goibhniu has quit [*.net *.split]
haslersn has quit [*.net *.split]
jtojnar has quit [*.net *.split]
Ericson2314 has quit [*.net *.split]
sylvie[m] has quit [*.net *.split]
cocreature has quit [*.net *.split]
<clever> brano543: what happens if you set services.postgresql.enable = true; and then use https://pastebin.com/4fqJ2sbc again?
fresheyeball has joined #nixos
captn3m0 has joined #nixos
captn3m0- has quit [Ping timeout: 265 seconds]
<brano543> clever: he option `systemd.services.postgresql.unitConfig.RequiresMountsFor' has conflicting definitions, in `/home/pandora/.nix-defexpr/channels/nixpkgs/nixos/modules/services/databases/postgresql.nix' and `/app/pandora-import/services/postgresql.nix'
mkenigs has joined #nixos
<clever> brano543: comment that line out in your config, and build again
<brano543> clever: then it builds and generates me postgresql.service file
<clever> brano543: now try setting services.postgresql.extraPlugins and build again
<brano543> clever: inside buildEnv or where?
<clever> brano543: the same place you set services.postgresql.enable
johnw has joined #nixos
<brano543> clever: The option `systemd.services.postgresql.extraPlugins' defined in `/app/pandora-import/services/postgresql.nix' does not exist.
<clever> brano543: i said services.postgresql.extraPlugins not systemd.services.postgresql.extraPlugins
<clever> brano543: services and systemd.services are 2 different things
<brano543> clever: it build the derivation successfully
<clever> brano543: now try deleting everything thats under systemd.services.postgresql and see if it still builds
<brano543> clever: now it complains as it can't evaluate this statement paths = [ eval.config.systemd.units."postgresql.service".unit postgresql ] in default.nix. It says now he doesn't know postgresql.service
<clever> brano543: can you post the rest of the https://pastebin.com/4fqJ2sbc file?
<brano543> This is my default.nix https://pastebin.com/Ayi2jEJs This is my configuration.nix https://pastebin.com/3Yg4Ygr0 This is my postgresql.nix (before I deleted anything) https://pastebin.com/5Naq2Rp9
fenedor has joined #nixos
cosimone has joined #nixos
astk has joined #nixos
PlayfulCuriosity has joined #nixos
tomberek[m] has joined #nixos
worldofpeace has joined #nixos
sylvie[m] has joined #nixos
haslersn has joined #nixos
jtojnar has joined #nixos
rihardsk[m] has joined #nixos
psiperator[m] has joined #nixos
ilya-fedin has joined #nixos
Victor[m]2 has joined #nixos
gsals[m] has joined #nixos
goibhniu has joined #nixos
eeyun[m] has joined #nixos
the_pumpkin_man[ has joined #nixos
fabiomen10[m] has joined #nixos
Ericson2314 has joined #nixos
alan[m]1 has joined #nixos
arcnmx has joined #nixos
cocreature has joined #nixos
<astk> i have a nix project that builds succesfully with cabal but fails with nix-build; https://github.com/astk-hs/hello-nix/blob/master/hello-project/readme.md
<clever> brano543: and what does `nix eval nixpkgs.lib.version ; nix-channel --list` report?
<astk> can anyone help me understand what is wrong with this?
<brano543> clever: "20.03pre206486.a8fc904c7c0"nixpkgs https://nixos.org/channels/nixpkgs-unstable
<brano543> clever: I am on CentOS
<{^_^}> [nixpkgs] @flokli merged pull request #79008 → aerc: 0.3.0 -> unstable-2020-02-01 → https://git.io/Jv3De
<{^_^}> [nixpkgs] @flokli pushed 2 commits to master: https://git.io/JvGkV
fendor has quit [Ping timeout: 248 seconds]
<clever> brano543: is the enable option still set?
astk52 has joined #nixos
<{^_^}> [mobile-nixos] @samueldr merged pull request #76 → asus-dumo: kernel 5.3.0 -> 5.5.0 → https://git.io/JvGTi
<{^_^}> [mobile-nixos] @samueldr pushed 2 commits to master: https://git.io/JvGkr
<{^_^}> [nixpkgs] @Gabriel439 opened pull request #79183 → Change `nix.maxJobs` default to reflect remote builds → https://git.io/JvGko
<brano543> clever: the whole problem is that while on different system than NixOS I can't use the default NixOS module which has all of the options and is defined here https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/databases/postgresql.nix
<m15k> Any hint how to `fetchgit` from a private ssh repo?
<clever> brano543: why cant you use those default options?
<clever> m15k: builtins.fetchGit
mkenigs has quit [Remote host closed the connection]
monadplus has quit [Ping timeout: 265 seconds]
astk has quit [Ping timeout: 260 seconds]
<m15k> I'm a little bit unsure how to setup the private ssh key.
<clever> m15k: builtins.fetchGit just uses whatever keys ssh would use by default
<clever> m15k: so ~/.ssh/ and your ssh agent
<m15k> Yeah. Thats the point :)
<brano543> clever: I don't know how to evaluate that package :D When I do eval = import <nixpkgs/nixos> { }; without my own configuration.nix he says file 'nixos-config' was not found in the Nix search path (add it using $NIX_PATH or -I). That is why I created the file for him
<astk52> ah, it seems to be building the package hello from the store
<clever> brano543: you want import <nixpkgs/nixos> { configuration = ./configuration.nix; }
<astk52> if i change it to have a capital letter then Hello fails with the same error as Word
<astk52> its complaining about not being able to locate the package in the store...
<astk52> why is it trying to get it from there instead of the paths specified?
xelxebar has quit [Remote host closed the connection]
<clever> astk52: when using -A, you must use the keys you defined in here
<clever> astk52: and its case sensitive
<brano543> clever: Okay let's imagine that I would be on NixOS, what would you put inside configuration.nix to build postgresql.service?
xelxebar has joined #nixos
<clever> astk52: and if those packages have a dependency, the dep must have the right casing in its keys
<clever> brano543: services.postgresql.extraPlugins = [ something ]; services.postgresql.enable = true;
<clever> brano543: and your done!
<clever> brano543: that will work even outside of nixos, you just have to combine `import <nixpkgs/nixos> { configuration = ./configuration.nix; }` and the eval.config.systemd.units."postgresql.service".unit your already doing
<clever> brano543: which https://pastebin.com/Ayi2jEJs already did
<brano543> clever: having just those two lines actually builds something too
kleisli has quit [Ping timeout: 268 seconds]
<astk52> clever: but why is it trying to resolve it from the store?
<clever> astk52: what is the exact error it gives?
kleisli has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<astk52> the error starts with; building '/nix/store/
<clever> astk52: and ends with?
<brano543> clever: My only problem now remains that he doesn't see my mapnik derivation which I defined in overlay.
<clever> brano543: you must set nixpkgs.overlays = [ ... ]; in configuration.nix
knupfer has quit [Ping timeout: 265 seconds]
<astk52> and then complains about "this does not look like a tar" and that there is a bad URL
Lears has joined #nixos
<clever> astk52: can you paste the entire error message
<astk52> why is it trying to connect to a URL? its a local build...
Dagger2 is now known as Dagger
drakonis has quit [Quit: WeeChat 2.6]
wildtrees has quit [Remote host closed the connection]
[Leary] has quit [Ping timeout: 268 seconds]
<clever> hello = self.callCabal2nix "hello" ./Hello {};
<clever> astk52: does Hello/hello.cabal exist, with that exact casing?
<clever> astk52: ls -l Hello/hello.cabal
<samueldr> "URL using bad/illegal format or missing URL" is from tar, AFAIUI
<samueldr> possibly due to the double slash in the front
* samueldr needs to double-check
<samueldr> no, disregard what I said
wildtrees has joined #nixos
o1lo01ol1o has joined #nixos
fling has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
<clever> samueldr: callCabal2nix is doing a filterSource to get hello.cabal, and then it fails in a weird way if you had a Hello.cabal
fling has joined #nixos
cosimone has quit [Quit: Quit.]
virus_dave has quit [Quit: virus_dave]
monadplus has joined #nixos
<{^_^}> [nixpkgs] @flokli pushed 2 commits to master: https://git.io/JvGkb
<{^_^}> [nixpkgs] @flokli merged pull request #79164 → linux: Enable NVME_HWMON → https://git.io/JvGvm
astk52 has quit [Ping timeout: 260 seconds]
<brano543> clever: Could you help me figure out the last piece of puzzle. How do I now copy the extension files to psotgresql from mapnik derivation? As you suggested I did add this line services.postgresql.extraPlugins = [ pkgs.postgis pkgs.mapnik-german-l10n ]; in configuration.nix. But still from mapnik derivation he refuses to create the files :( this
<brano543> is how mapnik-german-l10n looks like https://pastebin.com/Lud1QaBv
<clever> brano543: mapnik must create plugins in $out, not ${postgresql}
<clever> brano543: .withPackages will merge the $out of everything you put into extraPlugins
cosimone has joined #nixos
<clever> brano543: `nix-build '<nixpkgs>' -A postgis && ls -l result/` would show how it should look
<das_j> gchristensen: How are build inputs sent to the hydra workers? Does it just do nix-copy-closure?
<clever> das_j: hydra-queue-runner does the closure copy, using a similar protocol
kraem has quit [Quit: outta here]
<das_j> so all inputs are sent from the hydra to the worker, and binary caches are not checked at all?
<clever> brano543: you want the extensions to be installed to $out/share/postgresql/extension
gkmngrgn has joined #nixos
<clever> das_j: one second
<gchristensen> <3 thank you clever
<clever> das_j: the useSubstitutes variable here, is passed over the nix protocol, and controls if the remote machine will useSubstitutes
<clever> das_j: and line 255 sets it to true
<m15k> Do I need to setup ssh keys manually or is it possible via `configuration.nix`?
<das_j> nice! so I'll just configure all builders as substituters for each other
<clever> das_j: why?
<clever> das_j: when a build is done, hydra will copy the product back to itself
<das_j> clever: Our Hydra master is pretty slow compared to the builders
<clever> das_j: so the hydra is your central cache
Henson has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<clever> das_j: have you looked into the S3 config?
<das_j> master has some old RAID, the build nodes run completely diskless
<brano543> clever: hmm it is strange, he install it to $out/share/postgresql/extension,but that is the one inside store for mapnik, I don't see this copied over to resulting directory I am afraid.
<clever> brano543: how are you looking to see if it got copied?
<mgdm> Hello. Not sure if anyone here is familiar with the Tweag jupyterWith stuff, but I'm trying to add a new kernel to it. It works, but for the example I've got this setup script that needs to be run. I'm wondering if I can roll that into the shell.nix, but I can't see how. Code is here: https://github.com/tweag/jupyterWith/compare/master...mgdm:postgres-kernel?expand=1
<brano543> clever: nix-build created result-3 directory
<clever> brano543: it created a result-3 because your -A pointed to a set of many things, not one thing
cosimone has quit [Quit: Quit.]
<clever> brano543: you need to add another attribute to -A to make it more specific
<clever> brano543: for example, nix-build -A services
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> input-output-hk/iohk-ops#352 (by cleverca22, 1 year ago, merged): [DEVOPS-836] configure hydra to upload everything to S3
Jackneill has joined #nixos
<clever> das_j: that configures hydra to upload everything to an S3 bucket, then you can just use https://bucket.awssomething.com as your cache
<clever> das_j: if the build machine has aws secrets, you can also use s3://bucket to keep things private
dansho has quit [Ping timeout: 265 seconds]
<das_j> yeah, but s3 isn't free ;)
<das_j> my in-memory cache is
<clever> das_j: in theory, ssh://big-fat-host could also be used, where s3://bucket was
<brano543> clever: hmm, it is still not in the resulting directory, although I see in nix store under different postgresql file osml10n.control (this should be the resulting file of mapnik derivation). Seems like he created his own copy and didn;t include it to the one I needed.
<clever> das_j: and then your hydra will push everything to another machine
<das_j> oohhh
<das_j> nice
<das_j> now I get it
<das_j> does the s3 thing also remove old evals?
<jared-w> problem: https://github.com/chisui/zsh-nix-shell doesn't support aliases, functions, or basically much else besides environment variables (because they don't propagate through bash -> zsh well)
<clever> das_j: the s3 based hydra has zero garbage collection
<das_j> Andreas Schrägle: weekly reboot for GC?
<clever> das_j: and if you use ssh://big-fat-host, that host wont know what hydra has done recently, and what to keep, so any GC will potentially delete recent things
<jared-w> solution: Gloriously ugly hack involving writeShellScriptBin and exporting a modified path
<das_j> oh
<clever> brano543: if you read the .service file in result, where is it getting the postgresql binary from?
dingenskirchen has quit [Remote host closed the connection]
dingenskirchen has joined #nixos
WinchellsM has joined #nixos
<jared-w> clever: can't you do nix-collect-garbage with a --delete-older-than flag or will that not work?
<WinchellsM> Is there a way I can pass the environment variable `DISPLAY` into a nix-build script?
eacameron has joined #nixos
cosimone has joined #nixos
<WinchellsM> In my `installPhase` I need to launch the program I just compiled on the current DISPLAY in order to auto-generate a file to place in `$out/bin/filename`
<brano543> clever: hallelujah ! the postgresql.service goes to dir which has it copied !
<WinchellsM> When I do this I get an `X11 Display is not available` error since there is no DISPLAY in the pure environment nix-build sets up
<clever> brano543: so everything is already working perfectly
<brano543> clever: so basically inside my configuration.nix I can use all of the options which are defined in https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/databases/postgresql.nix ?
<jared-w> WinchellsM: builtins.getEnv? I think impureEnvVars = ["DISPLAY"]; might be what you're looking for though
<clever> brano543: yeah
<brano543> clever: I have one more question. How do I override now the version to use postgresql_12 instead of default one? Remeber I was using pkgs.postgresql_12.withPackages before.
<clever> jared-w: that only works for fixed-output derivations, and wont actually let you connect to the unix socket
<clever> brano543: services.postgresql.package
Jackneill has quit [Remote host closed the connection]
<jared-w> clever: ah darn. I actually read that it only works for fixed-output derivations and somehow read that part wrong. Whoops
<clever> WinchellsM: it would be more pure to spin up your own X server inside the build, something like Xvnc would be an option
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
virus_dave has joined #nixos
<brano543> clever: Hmm, strange, when I pass services.postgresql.package = [ pkgs.postgresql_12 ]; then he can't evaluate this line https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/databases/postgresql.nix#L12 and says attribute 'withPackages' missing
<clever> brano543: is your overlay changing postgresql_12 ?
<brano543> clever: overlay is not doing anything to postgresql
cidkid has joined #nixos
<clever> brano543: can you put all of the files into a gist? gist.github.com
aveltras has quit [Quit: Connection closed for inactivity]
arjen-jonathan has quit [Ping timeout: 272 seconds]
<genesis> i started https://nixos.wiki/wiki/Playstation2 if people are interesting to get this old linux compat console.
o1lo01ol1o has joined #nixos
zarel has quit [Quit: ZNC 1.7.4 - https://znc.in]
zarel has joined #nixos
<clever> genesis: nice, though i dont have a ps2, only ps3 and snes
jgeerds has joined #nixos
kenjis1 has joined #nixos
<{^_^}> [nixpkgs] @zowoq opened pull request #79184 → fuseoverlayfs: 0.7.5 -> 0.7.5 → https://git.io/JvGI1
<clever> brano543: gist supports putting several files into a single entry
<clever> brano543: that makes it much simpler to read
kleisli has quit [Ping timeout: 268 seconds]
<brano543> clever: okay sorry, let me do that, I have never used this function before :)
<{^_^}> [nixpkgs] @zowoq opened pull request #79185 → crun: 0.11 -> 0.12 → https://git.io/JvGI9
<genesis> clever : now i need my 2 latests PR pfsshell and hdl-dump to be merged if people want to use that doc, but i have complete the necesseray tools to get ready :)
<{^_^}> [nix] @LnL7 opened pull request #3344 → ssh-store: add remote-store and remote-program query params → https://git.io/JvGIQ
kleisli has joined #nixos
<clever> genesis: what about having nix use pfsshell in a derivation, to spit out a pre-made disk image?
<clever> genesis: so you can just dd that to a drive, and your done
<genesis> ? i document the dd tricks
<genesis> i don't understand your remark
<clever> genesis: what i mean, is to automate it so you dont even have to run pfsshell
<{^_^}> [nixpkgs] @dkudriavtsev opened pull request #79186 → ifmetric: init at 0.3 → https://git.io/JvGId
<genesis> clever : yeah i've started to look at nixos.expects to do that ;)
<clever> genesis: just have nix-build always spit out a .img
<alienpirate5> can someone please review my PR?
noudle has quit []
<genesis> clever : no big interest, you initialize once
<clever> brano543: line 6 is using the host nixpkgs, not the niv nixpkgs, which could be a problem
<genesis> you need pfsshell to manipulate partition later, or you use hddmanager on the ps2.
<clever> brano543: change <nixpkgs/nixos> to (sources.nixpkgs + "/nixos") and see if that helps
<{^_^}> [nixpkgs] @drewrisinger opened pull request #79187 → ecos: 2.0.6 -> 2.0.7 → https://git.io/JvGIA
fresheyeball has quit [Quit: WeeChat 2.6]
<brano543> clever: still the same problem
<clever> brano543: can you build with --show-trace, and then pastebin the entire error
<clever> brano543: also, what does `niv show nixpkgs` report?
m15k has quit [Remote host closed the connection]
kvda has joined #nixos
wildtrees has quit [Remote host closed the connection]
wildtrees has joined #nixos
<clever> brano543: oh, theres the problem
<clever> services.postgresql.package = [ pkgs.postgresql_12 ];
<clever> brano543: its not a list type
<clever> brano543: you want services.postgresql.package = pkgs.postgresql_12;
erictapen has joined #nixos
<brano543> clever: God bless you good Sir !
<brano543> clever: You gave me a great starting point. I will tinker around in the next few days. I have just last question. If I ever would need to define my own module, I would just call imports = []; at the beginning of configuration.nix?
<clever> brano543: yep
<brano543> clever: Thank you so much for your time and patience. Have a wonderful day !
<clever> yep
<kvda> Greetings, how do i add local git nixpkgs-channel into nix-channel?
<kvda> I'm attempting to add a new package
<kvda> But want to test locally
brano543 has quit [Remote host closed the connection]
claudiii has joined #nixos
virus_dave has quit [Quit: virus_dave]
ddellacosta has quit [Ping timeout: 268 seconds]
monadplus has quit [Ping timeout: 240 seconds]
<clever> kvda: it doesnt need to be in nix-channel
<clever> kvda: just run nix-build -A package, in the root of the git repo
<{^_^}> [nixpkgs] @sikmir opened pull request #79188 → viking: 1.7 -> 1.8 → https://git.io/JvGLa
<kvda> o i c, thanks clever, is this built globally? Can i use the package name in my project after that step?
<clever> kvda: nix-build will create a result symlink pointing to the result
<clever> kvda: you can then test it with ./result/bin/foo
<kvda> great thanks again, will see how this goes, it's actually a plugin for awscli so will need a bit more work to know where awscli bin is
<kvda> which i'm guessing you declare through the fn params as a dep
<kvda> % nix-build -A awscli-session-manager
<kvda> error: attribute 'awscli-session-manager' in selection path 'awscli-session-manager' not found
<clever> kvda: did you add it to all-packages.nix ?
<kvda> oh ok that's the part i forgot about, i knew from last time there was an index to update
peanutbutter144 has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
drakonis has joined #nixos
peanutbutter144 has joined #nixos
<evanjs> anybody know how I can override options in busybox's config? Like I can pass stuff into extraConfig, but the stuff generated before-hand seems to take precedence, and enableMinimal seems to do too much
<kvda> clever is there a particular way of doing bins in packages? all that is needed is to download the package, unzip and run the install script, which just moves the files in right location
<clever> kvda: any elf binary must be patched with patchelf first
<kvda> elf?
<clever> kvda: linux binaries
dockerandnix has joined #nixos
<kvda> oh, is there a keyword that i can search though package to find an example?
chloekek has quit [Ping timeout: 265 seconds]
<clever> kvda: patchelf
<kvda> easy thanks
Acou_Bass has joined #nixos
<{^_^}> [nixpkgs] @timokau pushed 2 commits to master: https://git.io/JvGLD
<{^_^}> [nixpkgs] @timokau merged pull request #78871 → libcint: init at 3.0.19 → https://git.io/JvOi9
werner291 has joined #nixos
__monty__ has quit [Quit: leaving]
sigmundv has quit [Remote host closed the connection]
amfl has quit [Ping timeout: 265 seconds]
sigmundv has joined #nixos
erictapen has quit [Ping timeout: 268 seconds]
kleisli has quit [Ping timeout: 268 seconds]
gustavderdrache has quit [Quit: Leaving.]
cidkid has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @bkchr opened pull request #79190 → browserpass: Fix usage as Firefox plugin → https://git.io/JvGtZ
sondr3 has quit [Quit: WeeChat 2.7]
shah^ has quit [Ping timeout: 268 seconds]
shah^ has joined #nixos
shah^ has quit [Max SendQ exceeded]
shah^ has joined #nixos
shah^ has quit [Max SendQ exceeded]
shah^ has joined #nixos
shah^ has quit [Max SendQ exceeded]
shah^ has joined #nixos
shah^ has quit [Max SendQ exceeded]
shah^ has joined #nixos
shah^ has quit [Max SendQ exceeded]
shah^ has joined #nixos
shah^ has quit [Max SendQ exceeded]
shah^ has joined #nixos
shah^ has quit [Max SendQ exceeded]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shah^ has joined #nixos
shah^ has quit [Max SendQ exceeded]
shah^ has joined #nixos
shah^ has quit [Max SendQ exceeded]
shah^ has joined #nixos
shah^ has quit [Max SendQ exceeded]
mDuff has joined #nixos
shah^ has joined #nixos
shah^ has quit [Max SendQ exceeded]
shah^ has joined #nixos
shah^ has quit [Max SendQ exceeded]
shah^ has joined #nixos
shah^ has quit [Max SendQ exceeded]
shah^ has joined #nixos
shah^ has quit [Max SendQ exceeded]
shah^ has joined #nixos
shah^ has quit [Max SendQ exceeded]
shah^ has joined #nixos
shah^ has quit [Max SendQ exceeded]
wildtrees has quit [Ping timeout: 265 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
shah^ has joined #nixos
shah^ has quit [Max SendQ exceeded]
shah^ has joined #nixos
wildtrees has joined #nixos
kvda has joined #nixos
wildtrees has quit [Max SendQ exceeded]
shibboleth has quit [Quit: shibboleth]
o1lo01ol1o has joined #nixos
m0rphism has quit [Ping timeout: 268 seconds]
shafox has quit [Remote host closed the connection]
shafox has joined #nixos
ddellacosta has joined #nixos
<{^_^}> [nixpkgs] @dtzWill merged pull request #78185 → nginxMainline: 1.17.3 -> 1.17.8 → https://git.io/JvLLS
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/JvGqm
<{^_^}> [nixpkgs] @dtzWill merged pull request #78155 → zanshin: 2019-07-28 -> 0.5.71 → https://git.io/JvIp6
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/JvGqn
<{^_^}> [nixpkgs] @dtzWill merged pull request #78661 → matrique: move to aliases.nix, not primary attribute name → https://git.io/JvmAS
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/JvGqW
cosimone has quit [Quit: Quit.]
amfl has joined #nixos
ddellacosta has quit [Ping timeout: 265 seconds]
erictapen has joined #nixos
wiml has joined #nixos
kleisli has joined #nixos
werner291 has quit [Quit: werner291]
werner291 has joined #nixos
werner291 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @dtzWill opened pull request #79192 → electron*: refactor 4+ to common expression, add 7, updates → https://git.io/JvGmv
werner291 has joined #nixos