<clever>
werner291: what do you get if you eval `idrisPackages.with-packages (with idrisPackages; [ contrib pruviloj ])` under `nix repl '<nixpkgs>'` ?
mbrgm has quit [Ping timeout: 248 seconds]
mbrgm_ is now known as mbrgm
ericsagnes has quit [Ping timeout: 272 seconds]
<infinisil>
jlv: Yeah the nix-instantiate thing isn't 100% accurate sometimes
<infinisil>
There is another way
<jlv>
Looks like the error was with ini to json actually. I'll try another.
<infinisil>
Hehe I see
<clever>
jlv: have you used haskell before?
<werner291>
(1 sec)
<jlv>
clever: I have some haskell experience. I've been using PureScript more recently actually
<clever>
jlv: this will use cabal to parse a .cabal file, then packageToExpr to turn it into a { src = ...; dependencies = ...; } based set, and print it to "output"
Guanin has quit [Remote host closed the connection]
<clever>
jlv: and hnix will properly deal with escaping all strings as it serializes to nix
romatthe has quit [Ping timeout: 264 seconds]
<clever>
no more json middle-man!
<jlv>
Well, I just tried another ini to json converter, and this one outright threw an error. I think it is struggling with lines like `font-1 = unifont:fontformat=truetype:size=8:antialias=false;0`. I think I will just do it manually. This is getting to the point where it is probably more effort to automate.
<jlv>
Thanks for the suggestions though
* infinisil
has a feeling there might be a rather simple awk expression that can go from ini -> nix directly
<infinisil>
s/rather simple/simpler than you'd think/
waleee-cl has quit [Quit: Connection closed for inactivity]
ris has quit [Ping timeout: 244 seconds]
selfsymmetric-mu has joined #nixos
jgt has joined #nixos
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<dansvo>
Hey all! noob here looking for some advice. Trying to package up some software that contains a bunch of hard-coded paths to other pieces of code.
m0rphism has quit [Ping timeout: 245 seconds]
<dansvo>
Wondering what some viable options are. So far I'm thinking either use the patch phase to replace them with store paths, or set up some chroot in the builder that replaces the paths with store links.
jgt has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixpkgs] @tckmn opened pull request #66699 → pry: init at 0.12.2 → https://git.io/fjdEp
werner291 has quit [Ping timeout: 244 seconds]
lord| has quit [Quit: WeeChat 2.5]
<dansvo>
Any derivations in nixpkgs that'd be good references to find strategies for this problem?
<clever>
dansvo: have you looked at libredirect yet?
lord| has joined #nixos
rsa has quit [Ping timeout: 248 seconds]
<gchristensen>
clever: I sort of think maybe libredirect is a big hammer to swing for a noob who is just starting out :)
<gchristensen>
but, perhaps it is the best choice
Rusty1 has joined #nixos
<clever>
gchristensen: libredirect is the first nix bug i ever delt with, before even intalling nixos, lol
<gchristensen>
ah haha
<clever>
in that case, teamspeak is wrapProgram's to libredirect, and chrome was inheriting the redirect preload
<clever>
and chrome hangs silently when you try to libredirect it
<gchristensen>
oh yeah, taktoa[c] and Iwere talking about that a few weeks ago
<gchristensen>
ouch.
<clever>
yep
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjduJ
<clever>
taktoa nerd-sniped me into fixing that bug, which got me into nixos :P
SunWuKung has joined #nixos
<gchristensen>
praise taktoa[c]!
<dansvo>
clever: hadn't encountered it yet, I will take a look.
<clever>
dansvo: the teamspeak client is an example of how its used
<dansvo>
clever: Thanks much, seems like exactly what I need.
<nh2>
infinisil: Can you also have a short look at https://github.com/NixOS/nixpkgs/pull/66490 ? It does no rebuilds so should be uncontroversial, but propagating the info of this change to more people might be useful
<{^_^}>
#66490 (by nh2, 4 days ago, open): zlib: Properly clean up static/shared distinction
<werner291>
OK... I really just can't figure out how to use build-idris-package (am newb). I downloaded this file "https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/idris-modules/vdom.nix", then ran `nix-build vdom.nix`, and it tells me "error: cannot auto-call a function that has an argument without a default value ('build-idris-package')".
<werner291>
*this
<clever>
,callPackage werner291
<{^_^}>
werner291: If a Nix file foo.nix starts with something like `{ stdenv, cmake }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<werner291>
The bot has an FAQ about it?
<clever>
,
<{^_^}>
Special commands: find tell locate expand - Commands sorted by use count, page 0 (use ,<n> to view page <n>): tofu help libraries unstable unfree library declarative escape'' ping overlay escape" pinning howoldis profiling -a ask pr callpackage imperative cache which-channel paste xy exec nixlang++ wololo fancy-uninstall pills stateversion xml botsnack channels haskell home-manager loot stuck pointers tias timer dontask pure-eval runtimedeps cloak
romatthe has joined #nixos
<werner291>
Huh
alex`` has quit [Ping timeout: 244 seconds]
<clever>
thats a list of most things the bot can do
slack1256 has joined #nixos
rsoeldner has quit [Remote host closed the connection]
<werner291>
error: anonymous function at /home/werner/Downloads/vdom.nix:1:1 called without required argument 'build-idris-package'
<werner291>
It seems to want me to do this instead: "nix-build -E '(import <nixpkgs> {}).idrisPackages.callPackage ./vdom.nix {}'"
<manveru>
is there some way to prevent my monitor speakers to be turned on in pulseaudio everytime i resume from suspend?
Neo--- has joined #nixos
Neo---- has quit [Remote host closed the connection]
<manveru>
it somehow doesn't remember the setting :(
abbiya has joined #nixos
abbiya has quit [Read error: Connection reset by peer]
<dasj19>
Hello nixos, I am a very new nixos user and want to customize my configuration.nix with a custom keyboard layout ... the way I did it in ubuntu/debian was to patch a couple of files in /usr/share/X11/xkb/ to have my custom keyboard available in gnome. what is the nix way of doing it?
<cizra>
dasj19: When I wanted to customize my stuff, I modified the Nix package to accept an option. The option then switched the source of the package to a different upstream URL.
<cizra>
dasj19: In your case, why not create a pre-build step that drops your favorite layout into the xkb (or whatever package owns layouts) package?
Ariakenom has joined #nixos
<symphorien>
At this point it seems easier to switch to nixos-unstable
o1lo01ol1o has joined #nixos
<dasj19>
I am using nix-unstable
<cizra>
dasj19: Oh, right, this thing is merged already. Sorry for making noise. However, I still have a suggestion:
<cizra>
OK, then I don't :D but I'm on stable, and for custom packages I'm using overlays.
<dasj19>
cizra: no need to be sorry... I just started with nix... and trying to move from debian unstable to nixos unstable
<dasj19>
so I have a lot to learn
<dasj19>
any input is useful at this point
<cizra>
Overlays are useful if you want to be mostly stable (like me) or have out-of-tree/custom packages.
Neo--- has joined #nixos
lambda-11235 has quit [Quit: Bye]
Neo---- has quit [Ping timeout: 252 seconds]
Neo--- has quit [Remote host closed the connection]
Neo--- has joined #nixos
asymptotically has joined #nixos
sigmundv_ has joined #nixos
<dasj19>
one other thing... anyone knows where I find the latest documentation (for nixos unstable) ?
liberiga has quit [Ping timeout: 260 seconds]
Neo---- has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
Neo--- has quit [Ping timeout: 252 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @SFrijters opened pull request #66712 → pyprof2calltree: move to python-packages → https://git.io/fjdV1
vmandela has left #nixos ["Leaving"]
Neo---- has quit [Read error: Connection reset by peer]
Neo---- has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ThatDocsLady has joined #nixos
<colemickens>
worldofpeace btw, I rebuilt last night with HEAD libdrm/mesa{-glu} and libva seemed to be working. Meant to check with intel-gpu-top but forgot before I fell asleep
Neo---- has quit [Read error: Connection reset by peer]
Neo---- has joined #nixos
orivej has joined #nixos
InfernalFlameZA has joined #nixos
winem_ has quit [Ping timeout: 268 seconds]
Neo---- has quit [Remote host closed the connection]
<Miyu-chan>
Hm. Has anyone set up django + Nix? Turns out that buildPythonPackage's buildCommand doesn't work for it.
vmandela has joined #nixos
<Miyu-chan>
Should I just remove buildPhase?
Neo---- has quit [Read error: Connection reset by peer]
Neo---- has joined #nixos
m0rphism has joined #nixos
<Miyu-chan>
Or should I make a bulidDjangoPackage? idk.
Neo---- has quit [Read error: Connection reset by peer]
Neo---- has joined #nixos
wfranzini has quit [Remote host closed the connection]
waleee-cl has joined #nixos
wfranzini has joined #nixos
InfernalFlameZA has left #nixos ["Leaving"]
kfound has joined #nixos
<Miyu-chan>
Oh, there's also mkPythonDerivation.
<adisbladis>
Miyu-chan: For nixpkgs or private?
<Miyu-chan>
Private.
<Miyu-chan>
OTOH, I'm thinking of patching it into nixpkgs.
<adisbladis>
Then I'd highly suggest pypi2nix/pip2nix
<adisbladis>
If it doesn't have to go into nixpkgs that is
liberiga has joined #nixos
<maralorn>
I have a problem with nixos containers. When I do a system-rebuild my nextcloud container will get reloaded via systemd. My server is kinda weak and the reload triggers a recursive chown and chmod of my quite large nextcloud-data. That takes longer the 90 seconds. So the reload timesout, thus the nixos-rebuild switch fails.
<Miyu-chan>
Oh. Django has a bit different project structure though, right?
<Miyu-chan>
Like, no setup.py, for example.
<adisbladis>
Miyu-chan: Django usually has a manage.py as an entry point, though a project that is redistributed should also have a setup.py or a pyproject.toml
<maralorn>
So in short my question is: Can I set a different reaload timeout for a systemd unit?
<Miyu-chan>
adisbladis: Ah, thanks. I'm not too familiar with Python, much more Django.
<maralorn>
(btw, the recursive chown and chmod is coded in the nextcloud module in nixpkgs and might be considered a bug)
<adisbladis>
maralorn: You can set all systemd options directly if you want to :)
<maralorn>
adisbladis: Yes, but my google-foo is failing me to finde the right option.
<adisbladis>
maralorn: Look up in the service definition what the systemd service is called and then do something like: systemd.services.unbound.serviceConfig.WhatEverySystemdCallsIt = lib.mkForce 180;
<maralorn>
TimeoutSec only applies to Start and Stop of the Service. Not the reload.
<adisbladis>
Unbound was just an example, replace it with your service
<maralorn>
Yeah, I am hanging at the WhatEverSystemdCallsIt part.
Neo---- has quit [Remote host closed the connection]
<Miyu-chan>
Semi-stupid question. Does #!${nix}/bin/nix-shell ${drvPath} work?
<immae>
if drvPath contains a default.nix, then I see no reason why not :p
<maralorn>
adisbladis: Yeah, I just read the systemd source and it really seems to be TimeoutSec. Just wondering why that didn‘t help.
<Miyu-chan>
Not really. You can nix-shell directly to drvs.
<Miyu-chan>
My question is that I'm wondering if a nix-shell shebang works for drv paths specifically.
<Miyu-chan>
And also if that's a good idea. I'm doing it for a systemd service.
<Miyu-chan>
adisbladis: Do you think it's a good idea to make a `buildDjangoProject` and add support for NixOS `WSGI` modules?
<adisbladis>
Miyu-chan: I don't think so. I think they should use either setup.py or PEP518
<Miyu-chan>
Checking PEP518. Thanks.
<adisbladis>
Django shouldn't be any special when it comes to packaging
<adisbladis>
Though I do think that we could benefit from some generic django module base
<adisbladis>
For NixOS modules, but not in the builds themselves
Neo---- has joined #nixos
<Miyu-chan>
Yeah. I'm thinking of fixing that, since there's a lot of hardcoding on my part. And Nix has the advantage of rich information.
<maralorn>
Oh, wow. I think the problem is, that I thought container@cloud is started by the container@.service with container@cloud symlink to it. But nixos doesn‘t symlink but copy to container@cloud. Didn‘t expect that.^^
<Miyu-chan>
You can see an example of this on NixOps. You can either specify a string for a resource, or you can just put the resource itself, and NixOps will handle conversion to string.
Neo--- has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixpkgs] @basvandijk opened pull request #66713 → rustfmt: use the src as defined by the git submodule in rust → https://git.io/fjdwW
<Zer0xp>
Hey, does anyone here use Geek note ?
<tilpner>
Mic92: IIRC you wanted to backport zfs 0.8 to 19.03 after a week of it working well. Did you encounter any issues with it?
<Mic92>
tilpner: No. should be fine to update zfsUnstable.
rsoeldner has joined #nixos
<Mic92>
I would keep `zfs` itself as it is.
Neo---- has quit [Remote host closed the connection]
<Mic92>
tilpner: zfsUnstable is already on 0.8.1
<Mic92>
So just switch to zfsUnstable on stable.
Neo---- has joined #nixos
<tilpner>
Yes, I'm already using that, but that has the wrong intention
<tilpner>
I want my server to be on stable 0.8 zfs, yet now I need to enable unstable
<DigitalKiwi>
for what it's worth I've been using zfsUnstable with native encryption since december without any issues
<tilpner>
So if someone updates zfsUnstable to 0.9-pre, I get all the unstable-ness that comes with it
<tilpner>
And I might not notice until it's too late
v0d1ch has quit [Quit: Connection closed for inactivity]
<maralorn>
tilpner: I feel like one often needs a function like: takeFirstPackageWithBigEnoughVersion "0.8" [ pkgs.zfs pkgs.zfsUnstable unstable.zfs ];
<maralorn>
Of course in your case that wouldn‘t necessarily prevent your problem.
<felixfoertsch>
Hello! I am currently trying to get Bitcoin running on my NixOS installation. I want to use the binaries from bitcoin.org. How can I add custom binaries to the configuration and start them at system start? I couldn't find anything on the manual.
<dminuoso>
felixfoertsch: You'd start by writing a nix derivation for it, and then an appropriate nixos module.
marek has joined #nixos
npmccallum has quit [Quit: npmccallum]
<felixfoertsch>
@dminuoso I found the package on the package library, but it looks like it tries building it from source.
koba1917 has joined #nixos
<dminuoso>
felixfoertsch: That happens if, for some reason, no binary was found in the caches.
<dminuoso>
felixfoertsch: Which software are you using?
<dminuoso>
felixfoertsch: A miner like cgminer?
<felixfoertsch>
@dminuoso Well I'd like to use the official binaries anyway.
<dminuoso>
felixfoertsch: That means writing a nix derivation for it.
koba1917 has quit [Client Quit]
<felixfoertsch>
@dminuoso I have a RasPi and trying to get a Full Node running.
<felixfoertsch>
So just NixOS and Bitcoin for the moment. No mining.
Neo--- has quit [Remote host closed the connection]
<dminuoso>
felixfoertsch: Im not very familiar with bitcoin and the software, was just trying to understand what it is that you are trying to intsall. :)
Neo--- has joined #nixos
<dminuoso>
felixfoertsch: So you are interested in "Bitcoin Core"?
<felixfoertsch>
@dminuoso Oh, okay. So there are binaries on bitcoin.org that I want to download and use.
<felixfoertsch>
On Ubuntu i'd just wget them and put them to /usr/local/bin
<dminuoso>
felixfoertsch: Right. So on nix this is not possible due to how nix is designed.
<dminuoso>
On nixos rather.
<dminuoso>
felixfoertsch: If you check your /usr/ directory you will, for example, notice that its rather.... "empty"
<felixfoertsch>
Now I learned about NixOS and love the declarative thing, so I figured: I'd try it out. :D
<felixfoertsch>
@ivan Okay. This means cloning the nixpkgs repo, right?
<felixfoertsch>
Like written in the manual.
<dminuoso>
I wonder, shouldnt this be in the unstable nixpkgs already?
koba1917 has joined #nixos
<ivan>
felixfoertsch: yes unless you want to use an overlay
<ivan>
I work on nixpkgs so that I can PR things
<dminuoso>
ivan: Couldnt they just add a second channel for nixpkgs unstable, and then pull the package via that channel, instead?
<felixfoertsch>
@ivan I think the one you linked is the wrong one tho. The one I am looking for is from bitcoin.org, not bitcoincore.org. The latter is an altcoin.
<felixfoertsch>
But this whole space is really confusing that's why I would like to stick to the binaries from bitcoin.org.
<dminuoso>
felixfoertsch: From the looks of it, they both provide the same source.
dansvo has quit [Ping timeout: 246 seconds]
<dminuoso>
felixfoertsch: The nix derivation asserts the package is authentic by verifying its SHA hash. This one provides two alternative sources, presumably in case one is not reachable.
<dminuoso>
felixfoertsch: Im convinced that this is the authentic/correct one you are looking for.
<felixfoertsch>
@dminuoso Okay.
<dminuoso>
felixfoertsch: And indeed, you dont need to clone/overlay, you can also add a separate channel.
<felixfoertsch>
So if you are saying it should be in the repo, how would I go installing it then? I think I installed the stable NixOS.
<dminuoso>
felixfoertsch: You just add another channel in parallel. You can selectively pull packages from either channel.
<dminuoso>
felixfoertsch: Then you could install it via ⌜nix-env -Ia nixos-unstable.altcoin.bitcoin⌝, or import the channel in your configuration.nix and then refer to it via that.
<dminuoso>
felixfoertsch: What do you mean by that?
<clever>
felixfoertsch: its definitely not in kernel space
<felixfoertsch>
@dminuoso That these settings are linked to my user and not system-wide.
<dminuoso>
felixfoertsch: I see, so that's a bit of a subtle question.
<dminuoso>
felixfoertsch: You can make it either, if you want.
<felixfoertsch>
My goal is to have bitcoind running as a service on startup.
<dminuoso>
felixfoertsch: So in order to do that, you'd have to write a small nixos module
<dminuoso>
(Since nobody else has done that, apparently)
<felixfoertsch>
So to recap: To get the newest version (0.18.1) I have to modify the package on the unstable channel (bump version). Then install this new package. Then write a module to start this package as a service. Correct?
<felixfoertsch>
Is there a place to read up on modifying packages and writing modules?
<dminuoso>
felixfoertsch: So that second step is not required.
<dminuoso>
felixfoertsch: In its core there are two separate independent tasks.
<dminuoso>
felixfoertsch: The first step is competely optional and its about switching out the versions.
<dminuoso>
felixfoertsch: The second is about installing a systemd unit to run a bitcoin service (and you can configure which exact package that should be)
<colemickens>
They haven't enabled it in meson.build yet, so not sure what to expect...
<yorick>
what's the name of the package that has things like tput and make?
<yorick>
I thought it was stdenv but there's nothing in there
<slabity>
So I have an overlay that I pull in with fetchTarball. How do I get Nix to update the tarball used? There are changes in the overlay that are not getting pulled.
liberiga has quit [Ping timeout: 260 seconds]
<clever>
nix show-config | grep tarball-ttl
<clever>
slabity: if the url hasnt changed, it will take up to 1 hour for it to check for changes
<tilpner>
If you want to force a refetch, you can start nuking things in ~/.cache/nix
<tilpner>
yorick: My nix-index db has no package that contains both
<yorick>
tilpner: sad, I think you get them if you do nix-shell -p --run ghjkl
<slabity>
tilpner: Wouldn't it only check for git changes though?
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fjd66
<tilpner>
I'm not sure, but the initial clone for e.g. nixpkgs can be a difference of hundreds of MB vs <20MB
<tilpner>
If your repo is small, either should be fine
<slabity>
That's fine. The git repos I'm pulling are less than 1MB in size
kleisli has quit [Ping timeout: 246 seconds]
<slabity>
Except maybe the mozilla one...
<{^_^}>
[nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/fjd6y
veske has joined #nixos
veske has quit [Client Quit]
ubert has quit [Quit: Leaving]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage2nix: update list of broken builds to avoid evaluation errors on Hydra »: https://git.io/fjd67
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjd6N
<Miyu-chan>
I already have a nix file that's python3Package.callPackage. Do you think I can call with a new callPackage?
kleisli has joined #nixos
<{^_^}>
[nixpkgs] @emmanuelrosa opened pull request #66721 → brave: fix path to brave in *.desktop file → https://git.io/fjdif
<{^_^}>
[nixpkgs] @mmahut opened pull request #66722 → trezord: adding emultor support (plus test) → https://git.io/fjdiJ
<maralorn>
slabity: fetchGit also uses tarball-ttl. (Which is not apparent from the naming I think.)
<Miyu-chan>
Hm. I was thinking of `callPackage foo.override {}` but dynamic functionArgs needs IFD.
<mbrgm>
anybody runnig nixos on zfs root?
kfound has quit [Ping timeout: 258 seconds]
<{^_^}>
[nixpkgs] @aherrmann opened pull request #66723 → Bazel test shebangs → https://git.io/fjdiT
<mbrgm>
any special measures to take? like acl settings or such?
<maralorn>
slabity: I often use --option tarbal-ttl 0 instead of clearing the cache.
<Miyu-chan>
Methinks callPackage is not "overridable"?
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fjdit
hyper_ch2 has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fjdiO
orivej has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed 5 commits to haskell-updates: https://git.io/fjdiG
johnny101m has quit [Remote host closed the connection]
o1lo01ol1o has quit [Remote host closed the connection]
Ariakenom has quit [Quit: Leaving]
<mbrgm>
I created a user by adding him to users.users..., but in the user's home directory, there's no .nix-profile symlink, no nix-defexpr etc. any ideas how to fix this?
<mbrgm>
it's a plain install from the latest 19.03 minimal installer
o1lo01ol1o has joined #nixos
<symphorien>
mbrgm: iirc it is created on the first login by /etc/profile
Okinan has joined #nixos
orivej has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @aherrmann opened pull request #66724 → bazel: cctools runtime dependency on darwin → https://git.io/fjdiR
<codedmart>
How do I install chromium with vaapi? I tried add `(chromium { vaapi = true; })` to my `environment.systemPackages` in `configuration.nix`.
<codedmart>
Sorry that is `useVaapi` not `vaapi`
trinityhex has joined #nixos
mexisme has joined #nixos
jabranham has quit [Read error: Connection reset by peer]
fusion809 has joined #nixos
mexisme has quit [Ping timeout: 246 seconds]
<codedmart>
Also tried (pkgs.chromium.override { useVaapi = true; })
sigmundv_ has quit [Ping timeout: 248 seconds]
jabranham has joined #nixos
nakkle has quit [Ping timeout: 248 seconds]
<tilpner>
codedmart: useVaapi is only available in nixos-unstable
ng0 has quit [Quit: Alexa, when is the end of world?]
fusion809 has joined #nixos
<{^_^}>
[nixpkgs] @symphorien opened pull request #66728 → rls: tie version to rustc's → https://git.io/fjdPh
ng0 has joined #nixos
werner291 has joined #nixos
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
<exarkun>
does python.buildEnv needlessly extend sys.path? It seems like it makes a python env with all of the necessary symlinks in site-packages and then it adds the site-packages of every python dependency to sys.path, too
pandada8 has quit [Ping timeout: 246 seconds]
werner291 has quit [Client Quit]
<simpson>
Is it needless? Isn't that needed for pkg_resources?
o1lo01ol1o has quit [Remote host closed the connection]
pandada8 has joined #nixos
<exarkun>
simpson: I don't know :(
<exarkun>
It might be inconsistent, too. Python programs are wrapped to get all of the individual site-packages but the python interpreter itself isn't.
<exarkun>
Maybe that's not inconsistent. Maybe that's exactly reflecting the pkg_resources requirement?
judson has joined #nixos
judson__ has joined #nixos
<exarkun>
Since the Python programs all have the pkg_resources-based belt-and-suspenders version checking...
<exarkun>
idk. so many weird pieces.
<exarkun>
I have only written a couple million lines of Python so I probably can't be expected to understand how all of the import stuff works.
<__monty__>
Zing : )
fusion809 has quit [Remote host closed the connection]
<simpson>
No, seriously. I've written a module loader for Python, and I still don't grok PEP 302. I don't know whether doing it again would help, either.
jgt has joined #nixos
fusion809 has joined #nixos
bdesham has joined #nixos
<bdesham>
does Git come with zsh completion scripts? if yes, do I need to specifically enable that when I install Git via Nix? (I'm on Darwin)
<bdesham>
I do have /nix/store/jsv7niyxvfj3zkanlrlr6ww1vj4hkq88-git-2.22.0/share/git/contrib/completion/git-completion.zsh, but I would have expected something to end up in ~/.nix-profile/share/zsh/site-functions
___laika has quit [Ping timeout: 245 seconds]
sudoforge has joined #nixos
vmandela has quit [Quit: Leaving]
Xyliton has joined #nixos
___laika has joined #nixos
<Xyliton>
What might cause `nixos-rebuild switch --upgrade` to run into multiple timeouts when trying to fetch archives from the nixos cache?
<Xyliton>
I've tried restarting it multiple times but I always get timeouts at random points which ultimately errors out of the whole upgrade process
<{^_^}>
[hydra] @edolstra merged pull request #672 → Extend the jobset API response → https://git.io/fjdKi
<maralorn>
Sadly a lot of things? Are you sure it’s not a faulty connection?
<Xyliton>
maralorn: yes, my connection is working just fine. It successfully copies lots of files from the online cache but then decides to choke on some later on
<{^_^}>
[hydra] @edolstra closed pull request #664 → hydra-server: jobsets api endpoint returns more elements → https://git.io/fjyJs
<jollyjester>
ok fixed, i didn't add it to both of the files
<jollyjester>
you guys should probably add a little snippet of unfree software as a hint on the installation manual
<jollyjester>
anyways, thanks
jollyjester has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @matthewbauer closed pull request #66569 → mesa: Put surfaceless last → https://git.io/fj5rb
jlv has joined #nixos
selfsymmetric-pa has quit [Remote host closed the connection]
<jlv>
Say that I have my configuration split into multiple modules, how might I add a package in one of those modules, instead of in a master packages list?
<Xyliton>
maralorn: it is getting even weirder: I can download the files that time out when doing nixos-rebuild through firefox just fine
forgon has quit [Quit: Ceterum censeo Qwerty esse delendam...]
dsiypl4 has quit [Ping timeout: 248 seconds]
Shouou has joined #nixos
<__monty__>
Xyliton: Is that weird though? Browsers are usually more tenacious.
<Xyliton>
__monty__: is it possible to tell nixos-rebuild to not give up so quickly?
<jlv>
Wait, does it just merge the lists if I have import a module with `packages` defined?
<jlv>
That's what it looks like, but I didn't expect that.
o1lo01ol1o has joined #nixos
<__monty__>
Xyliton: I'm not sure my "solution"'s been to just restart nix commands until they finish. That's obviously not ideal but it hasn't bothered me enough to actually find a fix.
o1lo01ol1o has quit [Ping timeout: 272 seconds]
hmpffff has quit [Quit: nchrrrr…]
kleisli has quit [Ping timeout: 268 seconds]
jgt has joined #nixos
Jackneill has quit [Remote host closed the connection]
allodium has quit [Remote host closed the connection]
<averell>
janders223: how do you know, what is the error?
<averell>
(also, postman is packaged, right? and that hash is apparently wrong)
<janders223>
do not know how to unpack source archive /nix/store/yd1hk3la3w6ywx5limallkmjb6is7maa-osx
<janders223>
This is the postman macos app
sebboh has left #nixos ["WeeChat 2.5"]
<nh2>
ryantm: for stuff like https://github.com/NixOS/nixpkgs/pull/66163, should it go into staging or is it my task as a maintainer to switch the PR to master if I think it should also go to master?
<averell>
also as that hash was wrong, maybe you're editing a different file than evaluating or something like that
inkbottle has quit [Ping timeout: 246 seconds]
<janders223>
what is the best way to get the hash? I was told to use `nix-prefetch-url -unpack`
Xyliton has quit [Quit: Lost terminal]
<averell>
,tofu but whatever works
<{^_^}>
but whatever works: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<averell>
well.. :)
<janders223>
That's what I thought
janders223 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @bbigras opened pull request #66730 → starship: init at 0.10.1 → https://git.io/fjdM0
hyperfekt has joined #nixos
pie_ has quit [Ping timeout: 252 seconds]
hyperfekt has quit [Quit: hyperfekt]
hyperfekt has joined #nixos
hyperfekt has left #nixos [#nixos]
hyperfekt has joined #nixos
hyperfekt has left #nixos [#nixos]
orivej has joined #nixos
<symphorien>
janders223: set `name = "foo.tar.bz2"; ` in the fetchurl call
<symphorien>
fetchurl looks at the extension to know how to unpack the source
<symphorien>
so you need to provide the right extension
<janders223>
I actually figured it out…I was an idiot and had two different derivations and was calling the old one and working in the new one
<janders223>
I got it to work as is once I got past my mistake
<symphorien>
:)
___laika has joined #nixos
jgt has quit [Ping timeout: 264 seconds]
MmeQuignon has joined #nixos
<AWizzArd>
How would I install software that I have to download from some web pages? For example Skype. It comes as a .deb file and easily installs under Ubuntu. How could I install such an app under NixOS?
<symphorien>
skipe is in nixpkgs
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<symphorien>
it is not in the search page because it is unfree
<AWizzArd>
{^_^}: I don’t have NixOS installed yet. I am reading first about it before I do the install. This was just one question that came up. Thanks for the link!
<markasoftware>
Where is the unix socket for PostgreSQL?
<markasoftware>
also, how did the devs come to the decision not to have a services.postgresql.databases config option? It seems much more convenient than relying on the initialScript, since the initialScript cannot account for addition or deletion of databases after initial setup.
dsiypl4 has joined #nixos
dasj19 has quit [Quit: dasj19]
jgt has joined #nixos
<srid>
Is there an alternative to `developPackage` (haskell) that supports a multi project cabal source tree? (with `cabal.project` and all ...)
bdesham has left #nixos [#nixos]
<infinisil>
srid: I've used shellFor for that before, but it's not optimal
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<infinisil>
Well use haskellPackages.override with callCabal2nix to get your packages in scope, then shellFor with these new packages
<infinisil>
It's rather manual
waleee-cl has joined #nixos
<infinisil>
I wonder if haskell.nix can do this better, it might
<{^_^}>
[nixpkgs] @pradyuman opened pull request #66733 → postmark-cli: init in nodePackages → https://git.io/fjdDN
orivej has quit [Ping timeout: 246 seconds]
<srid>
I assumed `shellFor` automatically did callcabal2nix?
<clever>
probably
<srid>
it has to, because running `nix-shell` nearly finished running `cabal new-build` and failed at the end (haddock stage)
xantoz has quit [Quit: WeeChat 2.5]
<clever>
srid: are you also using .env ?
xantoz has joined #nixos
<srid>
clever: what's .env? (i don't have that file in the project)
<clever>
something like nix-shell '<nixpkgs>' -A haskellPackages.servant.env
<clever>
i believe shellFor uses that behind the scenes, you could try it also
<infinisil>
clever: Actually it's the other way around, .env uses shellFor
<srid>
wait, i'm actually running `nix-shell -A summoner` (since you have to select a package to build with shellFor). i'm yet to make it work with nix-shell
<clever>
ah, heh
<srid>
sorry, `nix-build -A summoner` (build not shell)
<clever>
can you add all of the nix files to the github repo and link the branch?
<clever>
yeah, looks like we need bcmwl-kernel-source packaged first
<freedan42x>
clever, I can find .deb version. But I am not familiar with .deb files
<clever>
source would be better, like an upstream github
<freedan42x>
btw, I had this like an year ago, it worked, but now it doesn't seem to help `boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];`
<clever>
details like that shouldnt be kept secret :P
<clever>
freedan42x: yep, its working, so now you just configure wireless as normal
<freedan42x>
clever, what do you use for connecting to wifi?
<clever>
freedan42x: networking.wireless.enable = true; and manually create a /etc/wpa_supplicant.conf
<clever>
if using wpa, run `wpa_passphrase networkname password` to generate a config block for the file
zeta_0 has quit [Quit: taking break]
<freedan42x>
clever, I have some troubles with it. Like, if my router reboots, I need to reboot nixos also to get wifi working back
<freedan42x>
had*
<clever>
check the logs and status next time, to see why
<jasom>
freedan42x: should be able to just restart wpa_supplicant to fix that, right?
* jasom
just uses nm though
<freedan42x>
jasom, isn't that annoying each time restart wpa_supplicant?
<clever>
freedan42x: it should reconnect on its own, check the logs to see why it isnt
<jasom>
freedan42x: better than rebooting, no?
Rusty1 has joined #nixos
<jasom>
freedan42x: but see also what clever says
<freedan42x>
yup :)
hmpffff_ has quit [Quit: nchrrrr…]
hmpffff has joined #nixos
hmpffff has quit [Client Quit]
<freedan42x>
clever, created config file, how do I connect?
<clever>
freedan42x: restart wpa_supplicant any time you change the config file
chuenifule has joined #nixos
freedan42x_ has joined #nixos
<freedan42x_>
clever, thank you for the help!
jgt has quit [Ping timeout: 252 seconds]
freedan42x has quit [Ping timeout: 248 seconds]
zeta_0 has joined #nixos
dsiypl4 has quit [Ping timeout: 245 seconds]
zeta_0 has quit [Client Quit]
Soo_Slow has joined #nixos
vesper11 has quit [Ping timeout: 246 seconds]
ng0 has quit [Ping timeout: 260 seconds]
dansvo has joined #nixos
freedan42x_ has quit [Ping timeout: 245 seconds]
rprije has joined #nixos
dansvo has quit [Client Quit]
sheeldotme has joined #nixos
ng0 has joined #nixos
<sheeldotme>
hi, has anyone used go modules with nix? I'm trying to create a new module in nix-shell and I'm getting a few errors: https://0bin.net/paste/yT69a1Qqsr8lx9wF#ov-MqW+vQyYJZhhnIZ4LMG3pbKbYom5M5dvtvlo1O+b
<sheeldotme>
Any idea if I'm going about this the wrong way?