iclanzan has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @aanderse opened pull request #81940 → nixos/mysql: add config and plugin options → https://git.io/JvwyG
<omnipotententit4>
How do I get a reviewer assigned to a PR? I @ed the guy, and he said lgtm, but it's not flagged as a review in github, and I can't seem to assign or request a reviewer.
<omnipotententit4>
On previous requests, reviewers were autopopulated on the sidebar.
<bqv[m]>
i suggested nix-shell because it would mean you could have a shell with exclusively the unstable nixpkgs stuff, it's probably a bad idea to mix modules from different versions of nixpkgs
<bqv[m]>
change the <nixpkgs> at the top to <unstable> for potentially better luck
<zeta_0>
bqv[m]: i have other unstable pkgs in my home.nix as well, that work fine, so i have no idea why this untsable.elm2nix pkg is not working correctly
<omnipotententit4>
zeta_0: you're definitely having an issue with a version mismatch between newer and older versions of the same elm file.
<omnipotententit4>
So you have an older version of this file that's being called by a newer version of something.
claudiii has quit [Quit: Connection closed for inactivity]
vykook has quit [Ping timeout: 240 seconds]
<zeta_0>
omnipotententit4: i deleted everything and started the elm2nix instructions from scratch before installing unstable.elm2nix(replacing elm2nix), so i have no idea why this mismatch is occurring, isn't nix supposed to automatically fix something like this?
exfalso has quit [Ping timeout: 240 seconds]
jonten has joined #nixos
<bqv[m]>
don't add elm2nix to your home-manager config, i think that's gonna end in pain
<bqv[m]>
you can likely get away with just doing `nix-shell '<unstable>' -p elm2nix`, and using that shell to generate your nix
<omnipotententit4>
zeta_0: to answer your direct question, I'm not sure. Obviously nix language is just a bunch of interpreted scripts, so if things get into places where they shouldn't be, by intention or accident, there's no really a way to determine that programmatically.
<omnipotententit4>
So I don't know how it happened, or whether or not it's a bug.
mbrgm_ has joined #nixos
reallymemorable has quit [Quit: reallymemorable]
mbrgm has quit [Ping timeout: 256 seconds]
mbrgm_ is now known as mbrgm
<{^_^}>
[nixpkgs] @volth opened pull request #81941 → tests/kubernetes: remove unreferenced variable and import from inexisting file → https://git.io/Jvwyz
<zeta_0>
omnipotententit4: the elm2nix github instructions says that elm2nix is still experimental, so that might be why i am getting the error, i have no idea
<omnipotententit4>
No, even if it's experimental it ought to be packaged correctly.
<omnipotententit4>
the nix shell thing works over here btw.
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<bqv[m]>
did you say you had unstable as a channel already?
<omnipotententit4>
Can you tell me what the output of `sudo nix-channel --list` is?
<bqv[m]>
this: `nix-channel --add https://nixos.org/channels/nixpkgs-unstable unstable` will do what it's asking, assuming it's not in the output of what omnipotententity just asked
<zeta_0>
bqv[m]: 'yes, here's what i have in my home.nix:
<zeta_0>
unstable = import <nixos-unstable> {};
<bqv[m]>
ah. my bad. so, when i said <unstable> in that command earlier, replace that with <nixos-unstable> and it should work fine
<zeta_0>
omnipotententit4: when i run the command as a my zeta usr it returns nothing, but as root it returns this: https://hastebin.com/uzopipiqev.cs
vykook has quit [Ping timeout: 265 seconds]
<omnipotententit4>
Right, then use <nixos-unstable> like @bqv said
<omnipotententit4>
is there anyway I can clear my nix search cache btw?
maddo has quit [Quit: See ya]
<zeta_0>
cool, it works, i am going to try following those instructions elm2nix again, i'll let you guys know if i was able to get it to work
<bqv[m]>
👌
lovesegfault has joined #nixos
<bqv[m]>
the search cache updates periodically, i thought. you can always use -u to force update it right?
<omnipotententit4>
It will update the cache, but it will not remove stale entries
<ajs124>
I'm trying to do some cross compilation right now. Am I mistaken in thinking that dependencies likes bison, flex or nasm should always be native?
<clever>
ajs124: yeah, those should be native
<clever>
ajs124: though nasm is a grey zone, it needs to run on host, but target the target
<ajs124>
ok, good. So someone™ should fix that treewide?
<clever>
ajs124: it tends to get caught when somebody tries to cross-compile something and 30 things break
<clever>
ajs124: but it would save time if things where written right
<ajs124>
I'm trying to cross compile OVMF right now
<cole-h>
Anybody else having issues with anything that wants to access `cache.nixos.org` hanging?
vykook has joined #nixos
<cole-h>
`strace nix-shell -p dolphin` gives me a seemingly endless loop of `read(2)`s
vykook has quit [Ping timeout: 240 seconds]
<lovesegfault>
Hi everyone :)
wildtrees has quit [Quit: Leaving]
<cole-h>
o/
<lovesegfault>
If I have a dir `users/` with many subdirs, `users/{lovesegfault,cole-h,clever,...}` each with a `default.nix` containing only `{ config, lib, pkgs }: { users.users.${name} = {...}; }` can I from my system configuration import all of them?
<lovesegfault>
clever: I can put that in `imports = []`?
<lovesegfault>
or do I just `//` that in the {}
<clever>
lovesegfault: youll need to map over it, and append each filename to the dir
<lovesegfault>
Oh, I see
<clever>
,callPackage zeta_0
<{^_^}>
zeta_0: 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 {}'`
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JvwSM
<clever>
zeta_0: the error does not appear to be coming from the default.nix you pasted
<lovesegfault>
my war on NIX_PATH continues
rardiol has quit [Ping timeout: 240 seconds]
<cole-h>
Why am I getting "download thread waiting for 100 ms" when I do `nix-shell -p dolphin -vvvv`?
<clever>
cole-h: because you cranked the verbosity up enough to see debug within the http area
<clever>
cole-h: what if you use -vvv ?
<cole-h>
Well, yes, but why is that happening? It seems to hang on `starting download of <stuff>.narinfo` where <stuff> changes upon every invocation
<bqv[m]>
random keys in a mkDerivation that aren't keywords are just passed through as environment variables, right?
<clever>
bqv[m]: all keys are passed on
rardiol has joined #nixos
<bqv[m]>
excellent
<clever>
bqv[m]: buildInputs doesnt do much at the nix layer, and just becomes an env var for the shell code in stdenv to handle
sogatori has quit [Read error: Connection reset by peer]
<bqv[m]>
cool, ty
<zeta_0>
clever: in my home.nix i initially installed elm2nix which threw an elm version mismatch error, so in order to fix the error i replaced elm2nix with unstable.elm2nix(i already have unstable and stable channels setup in my home.nix), but this caused this other error that i just paste binned, one of the other programmers told me that it is still trying to use things from the older elm2nix version, at this point i have
<zeta_0>
not clue
<cole-h>
clever: and if I strace it, I get a whole lot of `read(7, "TLSR\0\0\0......"..., 32768)` spam
<clever>
cole-h: that looks like nix-shell talking to nix-daemon
myskran has joined #nixos
<clever>
cole-h: what happens if you try just `nix-build '<nixpkgs>' -A dolphin` ?
vykook has quit [Ping timeout: 255 seconds]
<cole-h>
The same thing, unfortunately
<clever>
cole-h: try an strace on that, as root
<clever>
zeta_0: the error says that fetchElmDeps wants a certain param, try adding that param to the default.nix?
<cole-h>
clever: It worked... What kind of trickery is this?
<cole-h>
clever++
<{^_^}>
clever's karma got increased to 342
<clever>
cole-h: either its random network problems that resolved themself, or something is broken with non-root nix
<cole-h>
Man...
dansho has joined #nixos
<zeta_0>
clever: so i don't have to repeat myself, here is the #nixos log of one of the other programmers that was helping me a while ago https://logs.nix.samueldr.com/nixos/2020-03-07#;omnipotententit4
vykook has joined #nixos
<clever>
cole-h: if you remove the result symlink, and `nix-store --delete /nix/store/hash-dolphin` you can purge it from your store, and then try again without root
<clever>
zeta_0: then your nixpkgs is too old, and is expecting the older style
<cole-h>
clever: @_@ Guess it must have been a network issue...
ilios1 has joined #nixos
<zeta_0>
clever: i already ran: nix-channel --update, as root in order to update all the channels, and i already ran nixos-rebuild switch --upgrade, so what else do i need to do to upgrade/upgrade nixpkgs?
<clever>
zeta_0: what does `nix-channel --list` report?
<samueldr>
ajs124: I also tried to refactor the way OVMF was being built, so it might be less work
<samueldr>
the plan was (and might be in the future) to build more than the minimum we do for qemu
<samueldr>
mainly, the tianocore build for raspberry pi
<ajs124>
samueldr: I'm subscribed to that PR now, so if you ever get around to working on that again, I'll probably at least be able to review and test it.
<ajs124>
For now, I'm sticking with ovmf built on aarch64 for aarch64, though.
vykook has quit [Ping timeout: 256 seconds]
<zeta_0>
clever: in this particular default.nix file? because i already have: unstable = import <nixos-unstable> {}; in my home.nix configuration
<clever>
zeta_0: line 1 wants a path to nixpkgs, not a pkgs set, so you must either change line 1 to <nixos-unstable> or you must `import /path/to/default.nix { nixpkgs = <nixos-unstable>; }`
<zeta_0>
clever: i can pastebin my entire home.nix file if you want to tak a look at it?
<clever>
zeta_0: when using nix-shell or nix-build, you must `--arg nixpkgs '<nixos-unstable>'`
<clever>
zeta_0: or edit line 1
<clever>
2020-03-06 21:50:24 < clever> zeta_0: line 1 wants a path to nixpkgs, not a pkgs set, so you must either change line 1 to <nixos-unstable> or you must `import /path/to/default.nix { nixpkgs = <nixos-unstable>; }`
<zeta_0>
clever: ok i changed line 1 of the default.nix: { nixpkgs ? <nixos-unstable>
<zeta_0>
clever: at least it's now somewhat working, thanks for the help
<zeta_0>
clever++
<{^_^}>
clever's karma got increased to 343
vykook has joined #nixos
<zeta_0>
clever: i wanted to try out elm because it's a functional language that is similar to haskell, but compiles to javascript, so it can easily be run on a web browser
<zeta_0>
yesod is one of the few haskell web development books. i'm guessing it uses the dsl's to generate the javascript code underneath/implicitly, which is then ran on the web browser. so basically the html/css/javascript is embedded in the haskell files, then generated by the dsl's, if i understand correctly
<rajivr___>
what is the right way to create a directory with a specified set of permissions from NixOS module?
<zeta_0>
clever: i am having a hard time landing a remote haskell position, that is why i am now putting a lot more effort into javascript(way more jobs), if they don't let me use haskell maybe they'll let my use something like elm
drakonis_ has quit [Ping timeout: 272 seconds]
reallymemorable has joined #nixos
<infinisil>
rajivr___: Is it a systemd service module?
<infinisil>
rajivr___: Or can you give some more context?
<hexa->
rajivr___: systemd tmpfiles?
<zeta_0>
clever: apologies for blabbering away, i better let you get back to work, thanks again for the help
<rajivr___>
That's correct. I want to be able to create `.gnupg` directory outside of home-manager and set its permission to `0700`. Is there a canonical NixOS way of doing it?
reallymemorable has quit [Quit: reallymemorable]
myskran has quit [Ping timeout: 255 seconds]
<infinisil>
rajivr___: Oh I see. NixOS doesn't have anything convenient for that, because controlling arbitrary paths isn't really Nix's strongsuit
<infinisil>
rajivr___: But you can hack around it by using e.g. systemd.tmpfiles.rules as hexa- suggested
<rajivr___>
Thanks hexa- and infinisil for the pointer. I'll investigate systemd.tmpfiles.rules.
<lovesegfault>
you also link those overlays into the system
<lovesegfault>
is it okay if:
<lovesegfault>
1. I have frobnicate.nix instead of frobnicate/default.nix in the overlays folder?
<softinio[m]>
clever: infinisil thank you both
<lovesegfault>
2. I have .nix files in overlays that _aren't_ overlays
felixfoertsch has joined #nixos
felixfoertsch23 has quit [Ping timeout: 255 seconds]
<lovesegfault>
Eh, how do I get the first elem of a list?
vykook has joined #nixos
<cole-h>
> a = [ "a" "b" "c" ]
<{^_^}>
a defined
<cole-h>
> builtins.head a
<{^_^}>
"a"
<lovesegfault>
:D
<cole-h>
Alternatively:
<cole-h>
> builtins.elemAt a 0
<{^_^}>
"a"
<cole-h>
(useful if you need an arbitrary index)
<{^_^}>
[nixpkgs] @JeffLabonte closed pull request #81937 → [19.09] Backport protonvpn cli ng version 2.2.2 → https://git.io/JvwDz
marusich has joined #nixos
<lovesegfault>
I think I know too much Nix
<lovesegfault>
I'm starting to write evil stuff
<{^_^}>
[nixpkgs] @JeffLabonte opened pull request #81952 → [19.09] backport protonvpn cli ng → https://git.io/JvwQ3
cole-h has quit [Quit: WeeChat 2.7.1]
<jackdk>
lovesegfault: good, good, let the nix flow through you
<clever>
lovesegfault: for nixos overlays, you just need to populate nixpkgs.overlays with a list of functions, how you get them doesnt matter
<clever>
lovesegfault: for <nixpkgs-overlays> it needs a certain format, and i was using foo/default.nix, so foo/other-files.nix would be grouped in a foo/ dir
<lovesegfault>
and then nixpkgs.overlays = (import ../overlays {inherit lib; });
<jlv>
clever: I'm trying to redirect the root domain to www, so I can't cname. For some reason, this is the first time I'm hearing about an ALIAS record, but it looks like a CNAME for the root domain?
<clever>
jlv: route53 supports alias's, which basically behave like a cname, but arent visible to the outside
<Ashy>
has anyone got execsnoop or any of the other bpf tools working on nixos?
<clever>
lovesegfault: you are running traceVal on map (which prims primop) and returns map
<lovesegfault>
duh
<lovesegfault>
thx
<clever>
lovesegfault: then you run that returned map, on the function, and overlayFiles
<jlv>
clever: I see. Looks like ALIAS is a "fake" record for the root domain. That makes more sense. If I can fake CNAME the root domain, that sounds like a better solution than handling the redirect myself in NGINX.
<lovesegfault>
clever: you know those Nix config options that look like this foo.*.bar, foo.*.bazz, ...
<lovesegfault>
can I do this foo.myFoo = { bar = ...; bazz = ...; }; etc
<clever>
lovesegfault: submodules
<clever>
lovesegfault: yes
<lovesegfault>
Ah, that's what they are called
<clever>
lovesegfault: check iscsi-boot.nix in nixos-configs
<lovesegfault>
can I set something for all foo's?
<clever>
lovesegfault: not really
<lovesegfault>
:(
<clever>
lovesegfault: enless you modify the submodule maybe, check iscsi-boot.nix
vykook has joined #nixos
* lovesegfault
loogs
<lovesegfault>
s/gs/ks/
<clever>
lovesegfault: the submodule can set a config= for each sub-module, and if you begin adding your own options like i did, then you can also add your own config= .....
<lovesegfault>
I've been thinking about doing this
<lovesegfault>
but I've been lazy
<lovesegfault>
I guess it's time I bite the bullet
orivej has joined #nixos
gila has quit [Ping timeout: 240 seconds]
<pie_[bnc]>
is there a c++ ide on nixos that just works?
<clever>
pie_[bnc]: it also has special handling for several languages, but ive not really bothered configuring them, the c++ stuff magically comes to life if i run vim under nix-shell
<Ashy>
i'm an old vim diehard (and spacemacs now) but the intellij ide's are pretty amazing
<jlv>
clever: Looks like AWS Route 53 doesn't support aliases from the root domain to a subdomain, only to specific AWS resources. I'm back to adding multiple domain names, but I don't see anything in the documentation about `resources.route53`.
<Ashy>
especially if you just want to load up a codebase and get immideatily into it without spending a week getting your tooling perfect
<pie_[bnc]>
Ashy: clion odesnt ahve a free version afaict
<pie_[bnc]>
clever: i cant vim :I or emacs :I
<pie_[bnc]>
i need something less guru-y
<clever>
pie_[bnc]: last time i used it, eclipse was pretty nice
<Ashy>
pie_[bnc]: there's a free 30 day trial, that gets you 30 days to figure something out
<pie_[bnc]>
ah
<Ashy>
looks like it's $8.90usd/month for individuals if you want to extend it for a short while after that too
<Ashy>
i feel pretty dirty for shilling nonfree software rgiht now btw but the idea tools are really good
<colemickens>
Hm, seems like a lot, and/or seems like you're still mid-process. `./misc/home/*` still exists, but seems like you'd meant to move it, maybe?
<lovesegfault>
colemickens: yeah, it's not ready :D
<lovesegfault>
I cp'd it to `users/bemeurer`
<lovesegfault>
and now I'll start chopping that
<lovesegfault>
wanted to keep the originals in-tree for now
<colemickens>
(I don't believe in multi-user linux)
<lovesegfault>
colemickens: I'm doing this (also) as a PoC for my company's data centers
<colemickens>
I have a home-manager WIP somewhere too, it might even just be in master. idk, hasn't popped up enough to get me to switch.
<colemickens>
Ah, I see, makes sense.
<lovesegfault>
that's also why I put so much work into r13y and overlay eaze
<colemickens>
pssh, just put them on flakes.
<colemickens>
(I kid, of course)
cidkid has quit [Ping timeout: 256 seconds]
<colemickens>
Sounds like a fun write-up or small presentation when it's all said and done.
vykook has quit [Ping timeout: 260 seconds]
<colemickens>
And/or you could do a flakes prototype eventually too, to demonstrate some of the niceties of its concepts
<lovesegfault>
Yeah, the idea here is recreating flakes with niv and magic
<colemickens>
I tried to use nix but afaict it only works with github/git?
<colemickens>
niv*
<lovesegfault>
yes
<lovesegfault>
but nixpkgs and home-manager are on github so I don't mind
<lovesegfault>
your actual repo can be anywhere
<colemickens>
Yeah, I needed the same update functionality for the overlay so I have a very fun update script that I just re-used for various types of pinning.
ghasshee has quit [Ping timeout: 256 seconds]
<lovesegfault>
I saw that :P
<colemickens>
I want to spin off a Rust tool that just does that single thing, but supports lots of repos/repo-types. I think it could have some use-cases.
<colemickens>
I'd contribute to niv but I don't want to write Haskell :S
<lovesegfault>
maybe, I'd use that just so I don't need ghc in my system closure
vykook has joined #nixos
* colemickens
nods and looks at cachix too
<lovesegfault>
With all my recent work I'm down to 130 lines of bash
<lovesegfault>
pretty happy with that
<cole-h>
colemickens: If you do start work on that Rust tool, ping me and I'll contribute here and there ;^)
nexgen has quit [Remote host closed the connection]
nexgen has joined #nixos
<hyperfekt>
lovesegfault: definitely not. the module system uses each type's merge function instead of just overriding.
<lovesegfault>
hyperfekt: Ah, I see
koleesch has joined #nixos
<koleesch>
hello
<koleesch>
i've a penabled wacom stylus. but i can't install it on gnome
<koleesch>
could someone help me?
gila has joined #nixos
Soo_Slow has joined #nixos
<hyperfekt>
colemickens, cole-h: i'm currently building the tool you're looking for. it's in haskell but that shouldn't matter because you can extend it with new non-haskell update scripts
ixxie has joined #nixos
gila has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @Ma27 pushed commit from @bhipple to release-20.03 « tree-sitter: 0.15.7 -> 0.16.4 »: https://git.io/JvrvH
wavirc22 has quit [Read error: Connection reset by peer]
jboyens has joined #nixos
wavirc22_ has joined #nixos
<jboyens>
Hello. I'm attempting to get a nix-shell with a specific version of patchelf (unstable.patchelfUnstable), but when I run `nix-shell -p unstable.patchelfUnstable` I get patchelf 0.9 NOT patchelf 0.10 as I expect. I also tried to exclude the store path with `--exclude` but that didn't work either and I'm out of ideas.
<infinisil>
> patchelf.version
<{^_^}>
attribute 'version' missing, at (string):288:1
<{^_^}>
[nixpkgs] @edef1c opened pull request #81966 → git-codereview: init at 2020-01-15 → https://git.io/JvrTO
<{^_^}>
[nixpkgs] @Ma27 opened pull request #81967 → brutespray: init at 1.6.6 → https://git.io/JvrTw
<infinisil>
> patchelf.name
<{^_^}>
"patchelf-0.9"
<infinisil>
jboyens: Apparently master doesn't have 0.10
<jboyens>
Right, it's in the unstable channel as patchelfUnstable
<jboyens>
Double unstable.
<infinisil>
Ah
<jboyens>
But it's the only version that works against go executables
<infinisil>
Oh yeah so `nix-shell -p` already enters a stdenv with the default patchelf
<colemickens>
-_- isn't that ancient
<infinisil>
jboyens: You could use the new (and potentially changing) `nix run unstable.patchelfUnstable`
<jboyens>
Is there a system or package that, much like nix-shell, would drop me into an environment that attempts to match the LSB standard? I've got an opensource, but complex system that is actively resisting running under NixOS.
<infinisil>
jboyens: There's pkgs.buildFHSUserEnv which you can use to package such programs
<genesis>
but it use chrootenv
<{^_^}>
[nix] @mayl closed pull request #3388 → Assertion syntax in error in the manual? → https://git.io/JvrkX
<ToxicFrog>
hexa-: the timer that's meant to periodically refresh ACME certificates fires once, but since the renew services are set to "remain after exit" they are considered "still running" and the timer never restarts.
<{^_^}>
[nixpkgs] @hedning pushed 0 commits to pull/81785/head: https://git.io/JvrOZ
<edef>
i can strongly recommend having actual merges if you maintain a long-term fork
<edef>
my /etc/nixos has nixpkgs as a subtree periodically merged from upstream and it's my favourite setup yet
<kenji>
Hello! Can someone help me with Packaging a PyPi Package? I have the Problem that when I put Dependencies in buildInputs it is missing it while running, and when I put it in propagatedbuildInputs, it doesn't want to build, because it says the Dependencies are missing.
<ToxicFrog>
Ok, it looks like the dependencies it can't find maybe never existed there, and they're part of the source tree and should have been loaded from there
<ToxicFrog>
And they used to be!
<ToxicFrog>
But now they aren't for some reason
<ToxicFrog>
Perhaps mavenix changed in a backwards-compatiblity-breaking way?
<ToxicFrog>
No, it's still using the same version of mavenix...
<ToxicFrog>
It's using the same mavenix, the same airsonic...why has the build broken?!
<{^_^}>
[nixpkgs] @Infinisil pushed 2 commits to release-20.03: https://git.io/JvrZn
zupo has joined #nixos
<ToxicFrog>
Oh. I see. The URLs in /nix/store/pc2hrpy0nj7qqwymw3kz8akj8snpa8ri-natpmp-0.1.jar.drv are...very wrong, and the local path points to a temporary directory that existed only when I originally ran mavenix and has long since been cleaned up
be7a has joined #nixos
<be7a>
Hi, i want to submit my first package and CONTRIBUTING.md that every package should have a maintainer. Should i just add myself to the maintainer list and add the commit to the pr?
<mrCyborg>
be7a: You could create a commit called "maintainers: add be7a" and then a commit which adds the new package which you a maintainer. Then make a PR with both commits in it.
<MarcWeber>
ryzen vega graphics what is recommended graphic driver ? amdgpu_pro -> requires older xorg which master does no longer have. Trynig to suspend causes X to crash when waking up for whatever reason.
exfalso has quit [Ping timeout: 255 seconds]
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
myskran has joined #nixos
Rusty1 has joined #nixos
abathur has joined #nixos
myskran has quit [Ping timeout: 255 seconds]
boxscape has joined #nixos
kenran has quit [Ping timeout: 260 seconds]
<evanjs>
Well, I’m lost. infinisil, I saw #81938 but I thought du-dust, erm, was already named that? Or why might I have been installing it as `du-dust`, already?
<infinisil>
evanjs: The attribute was du-dust already
<infinisil>
But not the derivation name
<infinisil>
nix-env -iA is based on attribute name
<infinisil>
nix-env -i is based on derivation name
gila has joined #nixos
leotaku_ has quit [Ping timeout: 258 seconds]
werner291 has quit [Remote host closed the connection]
<evanjs>
infinisil: okay thank you, that makes sense. Also didn’t realize GH won’t (index?/) let you search files like all-packages.nix from the repo search dialog. Only showed the derivation name `du-dust` so was really confused
tollb has left #nixos [#nixos]
gila has quit [Ping timeout: 256 seconds]
<infinisil>
Oh that reminds me, I need to backport tha
<infinisil>
t
<evanjs>
I’m familiar with nix getting weird on me from names, anyway. Eg `nixpkgs.”@angular/cli”`... which still causes me issues.. both with nix-env and nixos-rebuild
nexgen has joined #nixos
nexgen has quit [Remote host closed the connection]
<evanjs>
Speaking of which, any rule of thumb you can recommend when backporting? Like just go with my gut if I think it’s a really big change, or? (eg wasn’t sure I needed to backport #81083 as its not a security update, nor does it seem major)
<infinisil>
evanjs: Hm usually backport is only needed for security and other fixes, but as long as there aren't any breaking changes it should be okay to backport
<infinisil>
E.g. the linux kernel updates get always backported, one of the reasons is probably that new versions are always backwards compatible (for user-space at least)
<evanjs>
infinisil: okay that makes sense. Needed vs okay is what I was stuck on. Especially after seeing “provide a good reason for doing this”. In this case it’s a leaf package so that puts it more into the “not needed (in this case) but it’s just a single package so whatever”
<infinisil>
Yeah that sounds fine imo
<{^_^}>
[nixpkgs] @primeos opened pull request #81975 → chromium: Update the VA-API patch (fix #81909) → https://git.io/JvrWk
<infinisil>
Though personally I wouldn't do it still :P
<{^_^}>
[nixpkgs] @0xbe7a opened pull request #81976 → sia-ui: init at 1.4.3 → https://git.io/JvrWL
ghutzriop_ has joined #nixos
ghutzriop has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @Infinisil pushed to release-20.03 « du-dust: Change derivation name from dust to du-dust »: https://git.io/JvrWm
butterthebuddha has joined #nixos
<{^_^}>
[nixpkgs] @bhipple opened pull request #81977 → prometheus-wireguard-exporter: upgrade cargo fetcher and cargoSha256 → https://git.io/JvrWc
Jackneill has quit [Read error: Connection reset by peer]
Jackneill has joined #nixos
<evanjs>
infinisil: ah alright. That does help lol. Now if it was something like #73225 that got left behind, I’d most certainly feel that would be good to backport lol
<evanjs>
Otherwise, erm, well, I wasn’t able to install it lol
ryantm has quit [Remote host closed the connection]
<evanjs>
Still want to figure out why it’s prompting when it’s running in a non-interactive terminal, though, as the docs/issue comments from related changes seem to say it shouldn’t...
<{^_^}>
[nixpkgs] @bhipple opened pull request #81979 → intecture-auth: upgrade cargo fetcher and cargoSha256 → https://git.io/JvrWa
exfalso has joined #nixos
<evanjs>
Oh right! Totally different question, but do we have an approach for “fetch restricted” items in nixpkgs? I can’t recall what the JDKs do off the top of my head, but is there any way to make expressions for packages that require registration?
<maddo>
this might've been described in the manual, I've not had the time to study it as a whole yet
brandonhamilton has joined #nixos
brandonhamilton has quit [Client Quit]
werner291 has joined #nixos
gila has joined #nixos
<evanjs>
Hrm blah I guess my biggest concern with requireFile is “but can I store said files in my repo?” Otherwise, as the NixOs wiki page on Java mentions, it’s not very (pure) nix friendly 😕
<infinisil>
evanjs: People can do `.overrideAttrs (old: { src = ./path/to/local/file; })`
bhipple has joined #nixos
vidbina has joined #nixos
<evanjs>
infinisil: right I noticed that, just got paranoid about like "So if I want to use this, is it okay no save the appImage on my repo so my other configs can use it?" Assuming no
<evanjs>
*okay to save
<infinisil>
As long as you don't publish your repo it should be fine
<infinisil>
(or make sure to not publish that file)
gustavderdrache has joined #nixos
pleeplop has left #nixos ["User left"]
<evanjs>
infinisil: that's what I figured. alright, work computer only, it is :P
<boogiewoogie[m]>
hey, I'm trying override my neovim's version to 0.5.0 (to try out the builtin lsp support), by defining an overlay: https://hastebin.com/igenocumop.js
<boogiewoogie[m]>
this didn't change the version though, which makes sense after checking the expression and not finding a version attribute. I can't identify a way to change the version from the expression. what to do?
<{^_^}>
[nixpkgs] @bhipple opened pull request #81984 → gitAndTools.git-dit: mark as broken → https://git.io/Jvr8i
dckc has quit [Quit: ZNC 1.6.6+deb1ubuntu0.2 - http://znc.in]
maxdevjs has joined #nixos
dckc has joined #nixos
<infinisil>
boogiewoogie[m]: Where are you using neovim for the system to depend on it? The overlay looks fine (minus the missing sha256), but you'd get an error for that if it was evaluated at all
gila has quit [Read error: Connection reset by peer]
gila has joined #nixos
<boogiewoogie[m]>
infinisil: I'm just listing it in my systemPackages. (added the sha256)
jakobrs has joined #nixos
zupo has joined #nixos
v88m has joined #nixos
tomberek has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @bhipple opened pull request #81987 → gir-rs: upgrade cargo fetcher and cargoSha256 → https://git.io/Jvr4I
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sshow>
how do I search for a package by name using one of the CLI's?
<{^_^}>
[nixpkgs] @bhipple opened pull request #81988 → ripasso-cursive: upgrade cargo fetcher and cargoSha256 → https://git.io/Jvr4n
puck has quit [Quit: nya]
<jakobrs>
sshow: nix-env -qa <pattern>
puck has joined #nixos
<jakobrs>
pattern must match the *whole* name of the package, I believe. Example: nix-env -qa '.*zip.*'
<{^_^}>
[nixpkgs] @ymeister opened pull request #81989 → alsaequal: init at 0.6 → https://git.io/Jvr48
<immae>
sshow: you can also try "nix search foo" which is more fuzzy
<jakobrs>
Is there a function in nixpkgs that converts the string "UnsupportedSystem" into "UNSUPPORTED_SYSTEM"?
<jakobrs>
and similar
gila has quit [Ping timeout: 256 seconds]
sigtrm has joined #nixos
<manveru>
jakobrs: something like `lib.concatStrings (lib.imap (i: c: let l = lib.toUpper c; in if i != 1 && l == c then "_${c}" else l) (lib.stringToCharacters s))`
<manveru>
where `s` is your input string
<manveru>
it's not super efficient and probably there are a bunch of edge-cases it doesn't handle... but i'll leave that to you :)
<jakobrs>
ty
<jakobrs>
I think I'll just hard-code it instead though
<jakobrs>
It's only three strings and the intent will be clearer that way
<{^_^}>
[nixpkgs] @eraserhd closed pull request #81901 → gerbil: add wrapper to set GERBIL_HOME → https://git.io/Jvw0K
blaggacao has quit [Read error: Connection reset by peer]
fusion809 has quit [Quit: Leaving]
blaggacao has joined #nixos
vykook has quit [Ping timeout: 240 seconds]
vidbina has quit [Ping timeout: 258 seconds]
<pie_[bnc]>
when I pass --target sometarget to cmake I get 'CMake Error: The source directory "/build/pyside-setup-fef1bfb/build/dumpcodemodel" does not exist.'
<pie_[bnc]>
IDK why its expecting specific directories
<pie_[bnc]>
does anyone know the proper way to tell cmake to only build a specific target?
<Thra11>
Is serving a php application from a nixos-container with its own IP address feasible?
<boogiewoogie[m]>
infinisil: yep, it does. turns out I had to define the overlay for neovim-unwrapped instead of neovim, since the version is defined there. unfortunately, the build then fails due to cmake not finding `LibLUV` (see https://github.com/NixOS/nixpkgs/issues/64400) :(
<{^_^}>
#64400 (by rvolosatovs, 34 weeks ago, closed): Missing LibLUV dependency for most recent neovim versions
<jlv67>
In NixOps, anyone know to get the ip address of an ec2 instance, during configuration? I'm trying to direct multiple domains to one machine using `resources.route53RecordSets`, but I need to enter the target ip address. Of course, I don't know the target ip address of the machine until it is created by NixOps.
nwops has joined #nixos
jakobrs has left #nixos ["WeeChat 2.7.1"]
zupo has joined #nixos
zupo has quit [Client Quit]
<{^_^}>
[nixpkgs] @ymeister opened pull request #82003 → alsaequal: init at 0.6 → https://git.io/JvrEW
b has joined #nixos
vidbina has quit [Ping timeout: 255 seconds]
zupo has joined #nixos
ris has quit [Ping timeout: 256 seconds]
dm9 has joined #nixos
<boogiewoogie[m]>
is there a (nice/canonical) way I can use both `overrideAttrs` and `override` in an overlay?
<cole-h>
`(pkg.override { var = true; }).overrideAttrs (old: { version = "1.2.3."; })` is what I usually reach for
<cole-h>
Note the parens around the pkg.override
ddellacosta has joined #nixos
<boogiewoogie[m]>
ah, gotcha. thanks! :)
jgeerds has joined #nixos
<sshow>
hwo can I pass function arguments to a file I'm referencing with `nix-instantiate myfile.nix` ? The function in the file expects { config, nixpgs }, but I don't know how to inject them
blaggacao has quit [Read error: Connection reset by peer]
blaggacao has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bqv[m]>
Thanks nixos, for teaching me that the right way to package an electron app is to find a replacement that doesn't use electron and not package that app
<{^_^}>
[nixpkgs] @veprbl pushed 4 commits to release-20.03: https://git.io/JvrEy
<charukiewicz>
I'm trying to run switch-to-configuration on an EC2 instance I deployed a while ago, but I just bumped to and am building with nixos-20.03 and I'm getting the following GRUB error: grub-install: error: cannot find a GRUB drive for /dev/xvda. Check your device.map.
<charukiewicz>
Is this an issue with 20.03 not being ready for AWS?
<sshow>
slack1256: tyvm <3
<slack1256>
bqv[m]: Been there, done that.
<slack1256>
sshow: I hate to say this because myself were told it multiple times, but the man page is helpful...
<sshow>
slack1256: I saw it right after you told me. I even read it. But obviously, not good enough. I was probably looking for something other than `--arg` ;)
<acowley>
If a derivation specifies a `builder = ...` script, how can I run the usual build phases in a nix-shell?
zeta_0 has joined #nixos
<acowley>
I don't actually care about the phases, I just want to run the build script in a nix-shell so I can try to fix an issue occuring, I think, during the install phase.
<acowley>
LnL: Yeah, that's why I tried to back away from that. I just want to run the builder in nix-shell. It's an adaptation of the gcc builder as I try to build libgccjit.
<LnL>
running $builder $args might kind of work
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
helozjisky has quit [Remote host closed the connection]
<acowley>
It's a frustrating situation because the gcc build is fairly complicated, so these sub-projects that are intended to build alongside it end up inheriting an overly-complex build. Same with clang-related toolls.
helozjisky has joined #nixos
orivej has joined #nixos
<acowley>
That printed some unreadable chars but then didn't do anything helpful
<sshow>
I'm trying to name a users.extraUsers entry based on a variable. Using the "new" syntax, it tells me to `users.extraUsers = { newuser = {}; };`, but I want to use a variable containing the username, instead of `newuser`.
blaggacao has quit [Ping timeout: 265 seconds]
abathur has quit [Ping timeout: 256 seconds]
<sshow>
something like `users.extraUsers = { $username = {}; };`
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
o1lo01ol1o has joined #nixos
abathur has joined #nixos
gila has joined #nixos
<Profpatsch>
srk: If they require it, they will get it :)
dm9 has quit [Quit: WeeChat 2.7.1]
o1lo01ol1o has quit [Ping timeout: 258 seconds]
<sshow>
awesome, I found it: `users.extraUsers = { ${username} = { systemUser = true; }; }`
nexgen has quit [Remote host closed the connection]
<jakobrs>
While writing PR #81990, I noticed that the indentation for the relevant error messages is messed up. Should I fix the indentation in the PR, or just leave it?
<lovesegfault>
if I have a NixOS submodule like users.users.foobar; can I use `imports = []` within it? ie. is it okay to `users.users.foobar = { imports = [ ../roles/dev ]; };`?
helozjisky has quit [Remote host closed the connection]
philr has joined #nixos
zupo has joined #nixos
gila has quit [Ping timeout: 240 seconds]
helozjisky has joined #nixos
leothrix has joined #nixos
claudiii has quit [Quit: Connection closed for inactivity]
<locallycompact>
Hi, I'm trying to build graphql-engine server (hasura) on nixos with cabal, I have `nix-shell -p zlib postgresql` and I'm getting the error:
<locallycompact>
<command line>: can't load .so/.DLL for: libz.so (libz.so: cannot open shared object file: No such file or directory)
blaggacao has quit [Read error: Connection reset by peer]
<jlv>
Does anyone know how to host a ec2 instance on a root domain with NixOps? I made an issue for the problem: https://github.com/NixOS/nixops/issues/1246, but does anyone know a workaround?
choward has quit [Quit: Ping timeout (120 seconds)]
xelxebar_ has quit [Ping timeout: 240 seconds]
choward has joined #nixos
helozjisky has quit [Remote host closed the connection]
naivesheep has joined #nixos
helozjisky has joined #nixos
butterthebuddha has quit [Client Quit]
xelxebar has joined #nixos
shibboleth has quit [Quit: shibboleth]
vidbina has quit [Read error: Connection reset by peer]
maddo has quit [Quit: See ya]
<jlv>
I think I could work around it with `resources.route53RecordSets`, if I could get the ip address of the ec2 instance, but I don't see how to do that.