supersandro2000 has quit [Disconnected by services]
supersandro2000 has joined #nixos
drangon has quit [Remote host closed the connection]
tarruda has joined #nixos
stree has quit [Quit: Caught exception]
stree has joined #nixos
<energizer>
what am i supposed to have in my `nix-shell --pure` if i want `less` and stuff like that?
<{^_^}>
[nixpkgs] @orivej opened pull request #103650 → sc-controller: unbreak by restoring pygobject3 for python2 → https://git.io/Jkmct
zebrag has quit [Ping timeout: 272 seconds]
lsix1 has quit [Quit: WeeChat 2.9]
dongcarl1 is now known as dongcarl
chkno has quit [Read error: Connection reset by peer]
seku has quit [Quit: Connection closed]
chkno has joined #nixos
zebrag has joined #nixos
<cole-h>
energizer: less is part of busybox
Rusty1 has joined #nixos
<cole-h>
,locate bin less
<{^_^}>
Found in packages: less, busybox
heyitsrama has quit [Remote host closed the connection]
heyitsrama has joined #nixos
Rusty1 has quit [Quit: WeeChat 2.3]
ManiacOfMadness has joined #nixos
litschi has quit [Quit: WeeChat 2.7.1]
litschi has joined #nixos
<samueldr>
no, prefer less than busybox
<samueldr>
busybox is a minimalistic implementation of many tools, which sometimes will lack features
cr4y1 has quit [Ping timeout: 256 seconds]
mbrgm_ has joined #nixos
<aidenholmes>
for installing busybox breaks the ps command
<cirno-999>
,locate bin ls
<{^_^}>
Found in packages: toybox, busybox, coreutils, klibcShrunk, coreutils-full
mbrgm has quit [Ping timeout: 272 seconds]
mbrgm_ is now known as mbrgm
o1lo01ol1o has joined #nixos
supersandro2000 has quit [Disconnected by services]
supersandro2000 has joined #nixos
<samueldr>
here coreutils is to be chosen
<samueldr>
toybox is basically "another busybox"
o1lo01ol1o has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @thefloweringash opened pull request #103651 → musescore: fix unpack on darwin → https://git.io/JkmWQ
<infinisil>
> toybox.meta.description
<{^_^}>
"Lightweight implementation of some Unix command line utilities"
<V>
<gchristensen> some people have the opinion that you're not in too many channels until you have multiple connections to freenode with different nicknames to get around freenode's joined channel limit ← hi
<V>
cirno-999: you can find the channel join limit in the ISUPPORT freenode sends you when you connect
<growpotkin>
Y'all I feel like a dinosaur. I am just learning about flakes. I got my NixOS config using them just fine, I think I have a ton of old crappy overlays and NIXPATH hacks that should get cleaned out now; but one big question I've got now is how to organize my NixOS flake with a Home Manager flake. I have separate git repos for my system config and my user directory, so I assume that means I need
<growpotkin>
separate flakes. Does anybody have an example config they can share with me?
heyitsrama has quit [Remote host closed the connection]
heyitsrama has joined #nixos
<growpotkin>
The example flake posted on the home-manager repo seems like it's rolling the user's config into the system config, which isn't how I've got my files organized now. I had kept home-manager's config file separate because I didn't want to have to rebuild my whole system any time I wanted to change my emacs config or something. Does is make sense to keep them separated still?
<growpotkin>
Okay so lets say I kept them separated, right now my configuration.nix has a hackish `self: super: with super.lib; let eval = import <nixpkgs/nixos/lib/eval-config.nix>; paths = (eval {modules = [(import <nixos-config>)];}).config.nixpkgs.overlays; in fold' (flip extends) (_: super) paths self` bit to compose all of my overlays into `nix` and `home-manger`. I'm imagining I can scrap that now
<growpotkin>
If I do a flake for home-manager by itself do I use this `homeManagerConfiguration` function? Or the `home-manager.nixosModules.home-manager` one that I'm seeing in the home-manager README?
<Henson>
is there a way I can build a NixOS install CD ISO image that includes all of the store paths needed for the install? I created my own CD image, and when I try to install it using only the packages that were present in the installer CD image, it still needs to download things from the internet. I'd like to make an offline install CD if that's possible.
<matthewcroughan_>
colemickens: what happened to your win10vm?
<matthewcroughan_>
Looked good
<matthewcroughan_>
You got rid of it because it wasn't working?
<Henson>
alternatively, is there an easy way to export ALL of the paths in /nix/store? The only way I can see is to do a nix-store --dump and nix-store --restore on all of the paths in a store
Morfio has quit [Quit: This computer has gone to sleep]
Morfio has joined #nixos
sigmundv_ has quit [Ping timeout: 264 seconds]
jonreeve[m] has joined #nixos
cjpbirkb1 has joined #nixos
<jonreeve[m]>
Whenever I start up my system, I get this error: an error occurred in stage 1 of the boot process... and I can press * to ignore it and boot anyway, which will usually work. But what could be causing this, and how can I avoid this error?
cjpbirkbeck has quit [Ping timeout: 260 seconds]
<Henson>
matthewcroughan_: I'd say it looks somewhat similar in that it has curly braces, semi-colons, and stylistically uses indenting, but that might be where the similarities end. The NGINX configuration file looks like a structured way of defining a configuration heirarchy. The Nix language is a lazy functional language that defines variables, functions, and expressions that get evaluated.
<energizer>
jonreeve[m]: sometimes when it cant find a drive by-uuid i get that error
<Henson>
matthewcroughan_: I'm not an expert on NGINX, though, but those are my thoughts based on looking through several long NGINX configuration files.
<jonreeve[m]>
@energizer, ah OK. I'm going to see if I have all the right UUIDs there.
<matthewcroughan_>
awesome Henson
<matthewcroughan_>
thanks for that :D
mikroskeem042 has joined #nixos
<Henson>
matthewcroughan_: Nix's expression language is slightly similar to Haskell in that is uses let blocks to define expressions in a pure way, and provides ways of mapping over data structures, but it's not intended for general computation
mikroskeem042 has quit [Ping timeout: 260 seconds]
h0m2 has joined #nixos
<growpotkin>
zurserm: Wait I needed `hcitool` at one point, let me check where I found it.
h0m1 has quit [Ping timeout: 265 seconds]
nicoo has quit [Ping timeout: 240 seconds]
<growpotkin>
zuserm: it's packaged with `bluez`
jonatanb has joined #nixos
kamid has quit [Quit: WeeChat 2.9]
jonatanb has quit [Ping timeout: 256 seconds]
dbmikus__ has quit [Ping timeout: 264 seconds]
<growpotkin>
zuserm: `hcitool` was deprecated a while back, I stumbled through all of this crap a while ago when I was trying to get a BT keyboard to work. Various tools packaged with `bluez` cover the same features, off the top of my head I believe `btconfig` is the "replacement", but `bluetoothctl` is also very useful.
<growpotkin>
You can do `nix-build '<nixpkgs>' -A bluez; ls result/bin; rm -rf result;` to see all the utilities it provides, there's a ton but the two I mentioned are likely the ones you're looking for.
<growpotkin>
zuserm: Alternatively you could try and build `hcitool` from source, but considering how long ago they dropped support for it, I'd be shocked if it behaved properly.
teto has quit [Ping timeout: 260 seconds]
nicoo has joined #nixos
<lordcirth>
A game I just got requires libkeyutils 1.5. steam-run has 1.4. So does steam-run built from master. What's the best way to get a steam-run with 1.5?
zuserm has joined #nixos
o1lo01ol1o has joined #nixos
<zuserm>
does anyone know how to get services.xserver.xkbOptions = "terminate:ctrl_alt_bksp"; to actually work?
m0rphism has quit [Ping timeout: 258 seconds]
o1lo01ol1o has quit [Ping timeout: 264 seconds]
aidenholmes has quit [Quit: aidenholmes]
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JkmgV
<GrimSleepless>
I was wondering if someone could have a look to my PR https://github.com/NixOS/nixpkgs/pull/103268 . It has been approved by another contributor. Since it is a browser, I feel that it needs to be up-to-date :) Thanks guys!'
<colemickens>
Also, the deriver field doesn't carry the store prefix?
eoli3n has joined #nixos
<jonreeve[m]>
@energizer, looks like my UUIDs are all correct, unless I'm missing something. They're the same as I get with `ls /dev/disk/by-uuid/`. I regenerated the hardware config with nixos-generate-config, but it's the same as the old one.
<typetetris>
I am confused, what is the "official" subreddit for nix again? /r/nix or /r/nixos ?
<eyJhb>
typetetris: I am guessing both are, but one is for nix (package manager/lang), the other for the os
teto has joined #nixos
<typetetris>
there is even /r/nixpkgs ... that might be too much i think ...
cr4y1 has joined #nixos
<eyJhb>
I have switched to the lastest build in master, in nixpkgs using kernel 5.9. But for some reason, my `modinfo batman-adv` shows version 2020.3, instead of 2020.4... Any ideas why?
<sulami>
Hey, I've got a noob question: when packaging something that fetches platform-specific binaries, what's idiomatic pattern to vary the url & sha depending on currentSystem?
<dminuoso>
sulami: if stdenv.isDarwin then ... else ...
<dminuoso>
sulami: take a look at pkgs/development/compilers/ocaml/ber-metaocaml.nix for example
<dminuoso>
sulami: or better example pkgs/development/compilers/openjdk/8.nix
<dminuoso>
(this is just a simple programming problem, really)
<sulami>
thank you!
<sulami>
I've got /a solution/, but it's messy, and I felt it should be a somewhat common problem
<dminuoso>
sulami: Personally Id just make an attrset
<{^_^}>
[nixpkgs] @vbgl pushed to master « ocamlPackages.mstruct: remove at 1.4.0 »: https://git.io/JkYI8
<V>
I don't think it has pow
<V>
or float functoins
<V>
it's not a general purpose language
<urkk>
I only need it for integers
<dminuoso>
V: Id argue that's a argument
<dminuoso>
"You cant possibly need pow for your type of problem" is a bad mindset.
<V>
it's not *my* mindset
<V>
it's what's in the paper, and it's what definitely applies to the language
<urkk>
I can implement it with lists I guess, but I find it curious that is not in nix lang
davidv7_ has joined #nixos
<V>
I've written HTML templating, so I'm certainly not using it in the spirit of the language
<dminuoso>
heh
<fendor>
I think I have asked before, but is it a zoom or nixos bug, when I try to share the screen, I get eventually only a black screen and other users can't see the shared screen anymore
<{^_^}>
value is a float while an integer was expected, at /var/lib/nixbot/nixpkgs/master/repo/lib/lists.nix:303:7
<V>
unsurprising
<urkk>
yeah, is only for integers
<mananamenos>
Hi, I use this file https://www.codepile.net/pile/0oyr0jkZ. Once in the shell, I start emacs from that shell `emacs &`. Inside emacs's eshell i can run command `npx`, `npm` etc. However any emacs extension's call to stuff like `npx whatever` does not work, reporting the message no such file or directory.
<wucke13>
I have a tricky question regarding an autotools build: The build fails while running autreconf with `error: possibly undefined macro: AS_IF`. What could be the reason?
<dminuoso>
wucke13: pkg-config missing?
<wucke13>
dminuoso: Unfortunately not, I have autoreconfHook & pkg-config in the nativeBuildInputs
<dminuoso>
Gotta admit, that's quite a diagnostic
<dminuoso>
"This is *possibly* undefined"
<wucke13>
Yep
<wucke13>
If looked into the ACLOCAL_PATH and it seems that everything is at its place, pkg-config, libtool, ...
<coco>
I upgraded from NixOS 20.03 to 20.09. I'm using i3, and when I reload i3, then volumeicon crashes with the error "The error was 'RenderBadPicture (invalid Picture parameter)" (full output can be seen here: https://gist.github.com/corsinpfister/0c87c08c0729fddb69526400dd1c5c40). I have the same problem with network-manager-applet and blueman-applet, but seafile-applet seems to be fine. I have no idea
<coco>
what the problem is. Any hints?
cfricke has quit [Quit: WeeChat 2.9]
<teto>
how hard would it be to tweak the official nix installer to install unstable instead ?has anyone done it before ?
<{^_^}>
[nixpkgs] @erictapen pushed commit from @chkno to release-20.09 « tor-browser-bundle-bin: Fix extension path. Fixes NoScript. »: https://git.io/JkYCL
<teto>
coco I believe an i3 update was merged recently to fix an i3 issue with the tray. Make sure you have the latest i3
<{^_^}>
[nixpkgs] @erictapen pushed commit from @chkno to release-20.03 « tor-browser-bundle-bin: Fix extension path. Fixes NoScript. »: https://git.io/JkYC4
<{^_^}>
[nixpkgs] @erictapen pushed commit from @xaverdh to release-20.03 « tor-browser-bundle-bin: 10.0.2 -> 10.0.4 »: https://git.io/JkYCX
<{^_^}>
[nixpkgs] @erictapen pushed commit from @xaverdh to release-20.09 « tor-browser-bundle-bin: 10.0.2 -> 10.0.4 »: https://git.io/JkYCQ
<coco>
teto: Oh, indeed. nixos-20.09 is on 14.8.2, while nixos-unstable is on 14.8.3 (with that fix). Newbie question: Can I remain on nixos-20.09 but somehow use i3 from nixos-unstable, or in any other way get i3 14.8.3 in a declarative way?
<dminuoso>
coco: Indeed this suggests that the primary channel is whatever is called `nixos`
<coco>
dminuoso: Yes, just found that source too :-) I guess you're right, default is whichever is named nixos
<dminuoso>
Note, that instead of a channel you can also import nixpkgs via fetchGitHub
<dminuoso>
Either way works
<dminuoso>
That mechanism is probably a bit better, since it lets you declaratively pin the version
<dminuoso>
Rather than relying on some ambient state
D_ has quit [Ping timeout: 240 seconds]
D_ has joined #nixos
<eyJhb>
In what packages are `Please install libavcodec, libavformat, libavutil or disable 'VoIPStream' feature.` located?
mkaito- is now known as mkaito
mkaito has joined #nixos
mkaito has quit [Changing host]
acarrico has joined #nixos
<coco>
dminuoso: Awesome, the version with "let unstable = import <nixos-unstable> {}; in" works :-) What would a minimal example with fetchGitHub look like?
<neothefox>
how do make buildLinux function run make mrproper?
<raboof>
it seems 'pastebinit' (for uploading to pastebin sites from the command-line) is a bit outdated. Is that because everyone has moved on to better alternatives, or is it worth reviving?
<siraben>
I'm thinking of how Haskell/Python/Agda/Coq/OCaml etc. packages were added en masse
<simpson>
They're all different. The biggest question is whether they export a single coherent data set which represents a working snapshot of most packages. Haskell does and Python doesn't, for example.
domogled1 has joined #nixos
domogled has quit [Ping timeout: 260 seconds]
<siraben>
I see.
domogled has joined #nixos
<siraben>
Is there a tool to automatically generate the meta.platforms attribute of a new package?
bitmapper has quit [Quit: Connection closed for inactivity]
<magnetophon>
I have about 60GB in the store, with only 10 days of generations. I have deleted all "result" folders. How can I make more space / how can I find what is taking so much space?
<Jezhehim[m]>
This may be a daft question, but is there any major problem with setting ownership of `/etc/nixos` to my regular user account instead of root?
<Jezhehim[m]>
I'm not clear on the security consequences, though I guess you still need to be root to run `nixos-rebuild switch`
<{^_^}>
[nixpkgs] @mweinelt opened pull request #103714 → festival: init at 2.5.0; python3Packages.phonemizer: init at 2.2.1 → https://git.io/JkYHS
<{^_^}>
[nixpkgs] @kampka opened pull request #103715 → python3: Fix clang / llvm build with optimizations → https://git.io/JkYH9
chour has joined #nixos
<pumpy>
anyone know why the alacritty module config: bell = {animation = "Linear"; color = "#ff0000" duration = 100;}; doesn't work? when i press backspace there's no visible flash. same config on openbsd does tho
<pumpy>
xrdp need any special setting to allow setting window dimension dynamically? i running xfreerdp i3 and /dynamic-resolution the full screen contents aren't wrapped to fit when switching to tiled and the window becomes narrow
fendor__ has joined #nixos
<tru_tru>
c/56
dbmikus__ has quit [Ping timeout: 256 seconds]
<lordcirth>
Jezhehim[m], I have /etc/nixos/flake.nix symlinked to ~/gitRepos/flake-test/flake.nix, which is much the same in practice
fendor_ has quit [Ping timeout: 272 seconds]
tboston has joined #nixos
zie[m] has quit [Quit: Idle for 30+ days]
raghavsood has quit [Remote host closed the connection]
<tnks>
I've got a puzzle. When I run `unset STACK_IN_NIX_SHELL` as my first command in a `nix-shell` interactive session, my session works as I'd expect. When I put it same unsetting in my `shellHook`, things act up. I know Stack+Nix is non-trivial, but I wouldn't expect `shellHook` to do much more than run the command when I enter the shell. So the fact there's any difference in experience confuses me.
<tnks>
I considered that I was accidentally overriding a previous shellHook, but I really don't think that's the case after inspecting environment variables.
sangoma has quit [Ping timeout: 246 seconds]
magnetophon_ has quit [Ping timeout: 240 seconds]
<tnks>
I think I have my puzzle diagnosed... not cured, though. I think it has to do with idempotency, and Stack calling nix-shell inside itself.
eoli3n has quit [Remote host closed the connection]
<tpw_rules>
so i have this proprietary binary library that requires LOCALE_ARCHIVE to be set correctly or some parts of it don't work. i can set that in my shell, but is there a better way to ensure i (and other users) can't forget it? not too sure how the whole mechanism wrks
proofofkeags has joined #nixos
dbmikus__ has joined #nixos
<{^_^}>
[nixpkgs] @ryantm closed pull request #98257 → nixos/activation: fix type for activationScripts and userActivationScripts → https://git.io/JUETr
<jtojnar>
I suspect it is from php itself since it did not rebuild when I called replaceLibxml on it
<pumpy>
using home manager, anyone know why the alacritty module config: bell = {animation = "Linear"; color = "#ff0000" duration = 100;}; doesn't work? when i press backspace there's no visible flash. same config on openbsd does tho
<veleiro>
is there a way to show what build is in progress using nixos-rebuild
<srk>
not really, you can use nix-top to check what's currently building
<jtojnar>
hmm, looks like I can do `pkgs.php.override { libxml2 = pkgs.libxml2-old; })`
<pumpy>
DigitalKiwi ya and i have that configured. and it's working on another OS but not nixos
<cole-h>
Most of which is bindings
Izorkin has quit [Read error: Connection reset by peer]
Izorkin_ is now known as Izorkin
<DigitalKiwi>
(i'm not actually that mad about the config it's just funny juxtaposition)
<DigitalKiwi>
but clearly it should be dhall instead of yaml
alp has quit [Ping timeout: 272 seconds]
<cole-h>
(I don't agree it's a juxtaposition when 172 of those lines are actually valid config and not documentation, and of those 172, just over half are keybindings)
juboba has left #nixos ["ERC (IRC client for Emacs 26.3)"]
wnklmnn has joined #nixos
<DigitalKiwi>
anyway i use alacritty almost exclusively, i like it, and it's nice that it can actually be configured to make a noise now...but it was really dissappointing that it was missing something as important (to me at least) as a bell and the dev was just like nahhh
<pumpy>
ill bet it was UndeadLeech. he's a huge piece of shit
<DigitalKiwi>
at least it wasn't the level of response as the calibre dev to RCE :|
<pumpy>
rude, insulting
<Yaniel>
speaking of which, has anyone managed to convince Dolphin to open alacritty via the "open terminal here" shortcut instead of konsole
<cole-h>
While he may be principled in how he runs the project, I don't think that qualifies calling him a pile of turd.
<cole-h>
(This should probably -> #nixos-chat if we want to go any further)
<Yaniel>
(it definitely should)
<pumpy>
cole-h unprincipled you mean, don't twist my words
<pumpy>
np
<pumpy>
so why isn't nixos bash sending \a?
<pumpy>
if i printf '\a' alacritty runs the visual bell like i expect, but not otherwise
<pumpy>
and on other platforms, hitting backspace on empty prompt sends bell/flashes
<DigitalKiwi>
Yaniel: there seem to be a few plugins that open other terminals
<pumpy>
hm is there any way to get a more raw output of what bash is doing? since 'printf '\a'' does make visual bell im *assuming* it doesn't when i press backspace but who knows maybe it is?
<simpson>
DigitalKiwi: Hm. Now I'm wondering how much effort it would be to have NixOS system tests which check to see whether certain exploits work.
<DigitalKiwi>
i'm not sure if they work though :<
kreisys has joined #nixos
<simpson>
Well, not just in this case. Like, when we do security updates for popular daemons, how do we know that NixOS is no longer vulnerable after the update?
<simpson>
Should I take this to #nixos-security?
kreisys has quit [Client Quit]
chour has quit [Quit: WeeChat 2.9]
kreisys has joined #nixos
<DigitalKiwi>
ah yeah i got it to work :D
<DigitalKiwi>
Yaniel: so to your question; yes
saschagrunert has quit [Quit: Leaving]
<DigitalKiwi>
simpson: man i can't even run my own code half the time on nixos i think we're safe
<simpson>
DigitalKiwi: Ha! FWIW I checked and we do have a couple tests that check for specific CVEs, but nothing that might e.g. set up Metasploit and run a full battery against Apache or whatever.
<DigitalKiwi>
in addition to the hours i spent in the past trying to get qtspim to work :<
<simpson>
Ugh, emulators are the worst. Because their functionality is so non-modular, it's hard to take incremental steps to get them packaged; either everything or nothing works.
<DigitalKiwi>
it segfaults just trying to launch it
<pumpy>
simpson how could they modularize to be easier?
lordcirth has quit [Quit: Leaving]
lordcirth has joined #nixos
<Yaniel>
ahh, mips emulators
<Taneb>
On the vague subject of emulators I would like a version of vbam that has the full GUI
<DigitalKiwi>
Yaniel: ctrl+shift+, go to services, click download services, search for your preferred terminal
<DigitalKiwi>
and if someone hasn't done one just copy one it's just a desktop file
orivej has joined #nixos
<Yaniel>
kinda counterintuitive
<simpson>
pumpy: It's in the nature of emulators to provide a hard thick layer between two computational regimes. It's the sort of thing which doesn't modularize easily, if at all.
<Yaniel>
since it has a generic "Open Terminal here" and you can set the default terminal in system settings
srenatus has joined #nixos
<simpson>
(You can check out nixpkgs' handling of Retroarch for a good example of how we *do* take advantage of modularity when it's available.)
<DigitalKiwi>
Nov 13 18:26:08 mvp-nixos xsession[32442]: file:///nix/store/7gq5g099mfk10mxxa3rs4plib05bn4m3-plasma-desktop-5.18.5/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/Task.qml:285:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
<srenatus>
hey there. I've checked out the nixpkgs repo, changed a package definition's version (wabt), and tried to run `nix-env --option sandbox true -i wabt -f .` (from the nixpkgs checkout). I ended up having an installed new version of the tool in question; but what I had expected is some kind of failure because I hadn't updated the sha256 value. I feel
<srenatus>
like I'm missing something basic about how the shasums with fetchFromGithub work...
<DigitalKiwi>
Yaniel: have you tried ranger
<pumpy>
simpson ya, seems like a tough problem. even if the components of the emu are modular, it's probably lib code and not the binary you're trying to package. for the emu binary itself to be modular, having multiple separate binaries, would make the emu even slower. right?
<simpson>
pumpy: Sort of! There's an analog of Conway's Law for compilers and emulators: They're partially like the host system, partially like the target system. For example, different chips can often have different emulation modules.
<{^_^}>
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. For inserting 52 0's in vim: <esc>52i0<esc>
<judson>
There's also `lib.fakeSha256` which is basically that value.
<lordcirth>
oh, interesting
<judson>
But it's clearer to me what it does. But you have to add lib to your expression.
<DigitalKiwi>
wanna know a trick? you can just replace a few at the beginning with zeros
<lordcirth>
Also true
dada_da has quit [Ping timeout: 256 seconds]
<srenatus>
:D thanks a bunch. that's something to work with. I hadn't thought about the sha being correct for some other version!
<srenatus>
still wondering about the resulting binaries, but I'll go try using a probably-surely-wrong hash instead.
<judson>
I find that particular behavior surprising all the time. It makes sense when you think it through, but I've gotten caught up on it several times.
dada_da has joined #nixos
<judson>
It looks like your version string is getting passed through to the build somehow, so I think that's how you get that version report.
<DigitalKiwi>
are the binaries actually a different version or is it in name only
<judson>
Different Q: What's the state of buildGoModule and overrides?
alp has joined #nixos
<srenatus>
yeah I've tripped over my own feet here. DigitalKiwi: I hadn't checked anything but the reported version (d'oh)
<srenatus>
so, it's fetching stuff. and it failed. thanks again! \o/
<judson>
I've got a bunch of tools in a nix-shell where I've basically c&p'd the original expression, and I'd love to just be updating the version and source.
<judson>
IIUC, too much happens inside of buildGoModule for that to work generally.
<DigitalKiwi>
there are tricks you can do to make sure you don't do it by accident that clever suggested but worldofpeace doesn't like them lol
<judson>
What are the tricks?
<DigitalKiwi>
make the version part of the derivation path name
<veleiro>
where do i find the current system build's nixpkgs commit?
leungbk has joined #nixos
srenatus has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JkOmZ
<srk>
veleiro: possibly with cat $( nix-instantiate --find-file nixpkgs )/.git-revision if it comes from channel
<{^_^}>
[nixpkgs] @peti pushed 470 commits to haskell-updates: https://git.io/JkOmW
jonatanb has joined #nixos
<srk>
> pkgs.lib.version
vandenoever has quit [Read error: Connection reset by peer]
<{^_^}>
"21.03pre-git"
<veleiro>
ah, no. it doesnt. pinned
<veleiro>
I just want to use the linux already on my machine :(
vandenoever has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
redmynk has quit [Ping timeout: 260 seconds]
cjpbirkbeck has joined #nixos
luc65r[m] has joined #nixos
<siraben>
maralorn: Noticed #103359 got merged, nice! Is HLS going to be bumped to 0.6.0?
<__monty__>
judson: The builtin fetchers like fetchTarball always download (excepting fetchUrl?) which is the more surprising gotcha IMO, slows down nix-shells that use them by a lot.
<__monty__>
veleiro: How can you not know the revision if you've pinned nixpkgs? The revision is a prerequisite for pinning.
<__monty__>
DigitalKiwi: That's not pinning though? In two ways, it's master so you wouldn't be pinning anything and it's a channel, so it's not pinning ; p
acowley has quit [Read error: Connection reset by peer]
<stites[m]1>
nevermind! I was just looking for mkForce!
<kalbasit>
What's the best way to create '/tmp' in the image generated with dockerTools.buildLayeredImage?
<clever>
kalbasit: id just use mkdir in the entry-point script
MichaelRaskin has joined #nixos
<kalbasit>
clever: makes sense. Do you recommend the same thing to create and use a user that isn't root?
<pumpy>
why doesn't nixos bash send \a (bell) when pressing backspace? it does on other OS. how can i configure that pls? alacritty isn't making a visual bell flash animation but it does if i enter `printf '\a'` to the terminal prompt manually
<ToxicFrog>
pumpy: I believe that's controlled by readline; what is your readline `bell-style` setting in inputrc?
<clever>
kalbasit: username doesnt really mean much when in docker
<chipb>
in addition to that, there might also be a way it gets filtered at the tty level. perhaps look at stty?
<clever>
pumpy: double-check what `tput bel` says
<clever>
that should print the magic char, and respect what $TERM says
<chipb>
clever: oo. that's er...clever...too.
<clever>
ive found that it rarely beeps for me on nixos
<clever>
kernel issues
<maralorn>
siraben: Yes, hls 0.6.0 will hit master this evening.
sigmundv_ has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @FRidh pushed 356 commits to staging-next: https://git.io/JkOGs
<pumpy>
ToxicFrog i dont have an inputrc file. on my openbsd system that has bash/alacritty working fine with the same config, it does have an inputrc but it only sets editing-mode vi. nothing about bell-style
jonatanb has joined #nixos
<pumpy>
chipb how can i look at stty?
<pumpy>
clever is tput bel a command?
<pumpy>
clever i entered tput bel command and screen flashed like when i enter printf '\a'
<clever>
pumpy: if the screen is flashing, then the tty isnt filtering it
<DigitalKiwi>
nothing happened for me when i did tput bel :(
<clever>
DigitalKiwi: depends on what your terminal emulator is
<clever>
and if your sound driver routes bells into things
<pumpy>
ok think i got it
lsix has quit [Ping timeout: 264 seconds]
<pumpy>
ToxicFrog++ im using home manager so i enabled programs.readline and now there's a inputrc file that includes /etc/inputrc which DOES have set bell-style none. MEH
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/JkOnt
rprije has joined #nixos
zupo has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JkOn0
cosimone has joined #nixos
kamid has joined #nixos
vidbina has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage2nix: disable broken builds to fix evaluation errors on Hydra »: https://git.io/JkOcf
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JkOcq
<pumpy>
DigitalKiwi you have bell working now?
<DigitalKiwi>
no
<Taneb>
I'm trying to install Steam on my laptop and I'm getting an error building '/nix/store/br7dpiiaqx8dlilqlgzx9xdp4aw6dpkb-libsteam-runtime-tools-0-0.deb.drv'... curl: (22) The requested URL returned error: 40
<Taneb>
4
astronavt has quit [Disconnected by services]
<{^_^}>
[nixpkgs] @peti pushed 42 commits to haskell-updates: https://git.io/JkOcR
astronavt_ has joined #nixos
leungbk has quit [Remote host closed the connection]
leungbk` has joined #nixos
astronavt_ has quit [Client Quit]
ambro718 has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed 28 commits to haskell-updates: https://git.io/JkOcb
<cizra>
Help! fprintd-thinkpad no longer works :( I'm supposed to be able to specify services.fprintd.package = pkgs.fprintd-thinkpad; and it'll grab the version that depends on libfprint-thinkpad - but nixos-rebuild switch says "error: attribute 'fprintd-thinkpad' missing". It used to work. What went wrong?
evalexpr has joined #nixos
<cizra>
When I use the overlay from https://github.com/cizra/libfprint-thinkpad-overlay everything works perfectly. It even works perfectly when I copy fresh package/service definitions from nixpkgs master into my overlay. However, nixpkgs shows fprintd-thinkpad package correctly in all-packages.nix, which stymies me to no end.
<DigitalKiwi>
cizra: pkgs.fprintd; instead
chkno has quit [Read error: Connection reset by peer]
chkno has joined #nixos
emacsomancer has quit [Read error: Connection reset by peer]
<DigitalKiwi>
got removed between 20.03 and 20.09 hm
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage2nix: update Haskell package set to Stackage Nightly »: https://git.io/JkOCd
emacsomancer has joined #nixos
<cizra>
DigitalKiwi: hmmm what - I have a Thinkpad and it requires a specific driver.
cole-h has quit [Ping timeout: 260 seconds]
noudle has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/JkOWL
<DigitalKiwi>
presumably it might not be needed anymore
vandenoever has quit [Read error: Connection reset by peer]
vandenoever has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
jonatanb has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<cizra>
How embarrassing, my upstream was set to the wrong repo so I didn't see the removal. Regardless, it doesn't work on my Lenovo P50. What's the plan: live without fingerprints, file a bug, reimplement, or use an overlay?
<DigitalKiwi>
if it were me i'd try to fix it and get it back into nixpkgs, at a minimum file an issue if i couldn't
<catern>
is there a way to disable ~/.config/nixpkgs/config.nix customizations when evaluating a Nix file that contains "import <nixpkgs> {}"? an environment variable perhaps?
<DigitalKiwi>
and in the meantime use an overlay or w/e workaround
jonatanb has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed 0 commits to haskell-updates: https://git.io/JkOlg
<{^_^}>
[nixpkgs] @peti merged pull request #103038 → Update Haskell package set (plus other fixes) → https://git.io/JTj4t
<{^_^}>
gchristensen's karma got increased to 371.9999999999999
<{^_^}>
infinisil's karma got increased to 375
<{^_^}>
simpson's karma got increased to 40
<{^_^}>
samueldr's karma got increased to 295.0000000000003
<{^_^}>
maralorn's karma got increased to 0o6
<{^_^}>
worldofpeace's karma got increased to 258
oxalica1 has joined #nixos
oxalica has quit [Ping timeout: 260 seconds]
oxalica1 is now known as oxalica
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage2nix: No broken packages! For a while ... »: https://git.io/JkOBe
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JkOBf
dbmikus__ has quit [Ping timeout: 272 seconds]
<hexa->
,locate bss_file.c
nocst3r has joined #nixos
<{^_^}>
Couldn't find in any packages
<Henson>
DigitalKiwi: thanks!
<lordcirth>
A game I just got requires libkeyutils 1.5. steam-run has 1.4. So does steam-run built from master. What's the best way to get a steam-run with 1.5?
<vsiddharth>
Hey! I have a flake file where I describe multiple packages which are built with different overlays on nixpkgs. Does anyone know how to describe a different devShell for each package output?
<jared-w>
xvda? Sounds like aws, in which case it's always xvda that's used as the main drive. (I took advantage of that to hack in using cdk to resize the main drive rather than trying to shenanigans multiple drives and get docker to use the second one for volumes/etc)
<jared-w>
(well, "always" is a strong word. It's true in my case when using amazon linux VMs, but that probably doesn't mean a whole lot in your case)
anderslundstedt has quit [Ping timeout: 264 seconds]
anderslundstedt has joined #nixos
nocst3r has quit [Quit: Leaving]
anderslu1dstedt has quit [Ping timeout: 256 seconds]
nocst3r has joined #nixos
jonatanb has joined #nixos
ambro718 has quit [Quit: Konversation terminated!]
wokko has joined #nixos
Claas has joined #nixos
<Claas>
Hi, I'm trying to debug a `nextcloud-client` segmentation fault on nixos-unstable, but I'm struggling to build the package with `enableDebugging`. Any tips?
<Claas>
I tried `nix-build -E 'with import <nixpkgs> {}; enableDebugging nextcloud-client'` but that doesn't work.
<NemesisD>
can nix build one job on multiple builders?
<NemesisD>
i've got a build nix build to do and i'm basically trying to summon every machine i have ssh access to to build it like a spirit bomb
vsiddharth has quit [Quit: ERC (IRC client for Emacs 28.0.50)]
akavel has joined #nixos
zarel has joined #nixos
<akavel>
Hi! With flakes, `nix build` gives me only last 10 lines of failed build; can I somehow get full log?
nocst3r has quit [Quit: Leaving]
<manveru>
akavel: `nix -L build`
<akavel>
manveru: woohoo, cool, thanks! <3
<manveru>
though you'll have to modify one of the files to avoid the cached failure
dbmikus__ has joined #nixos
<akavel>
ohhhh, the logs will show up cached? so it won't rebuild? if yes, that's actually cool! :D
<akavel>
hm, I think (it looks like) it rebuilds; probably because my git repo is dirty
<manveru>
well, it will rebuild if it's a build failure but not if it's an evaluation failure i think
<akavel>
um; what is an evaluation failure?
<manveru>
a syntax error for example
<akavel>
ok, thx
<jbal[m]>
Anyone get .net 5 sdk working with omnisharp yet?
vidbina has joined #nixos
<akavel>
next question: if I built something with cmake, how to make sure the artifacts are visible via pkg-config for another flake?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<akavel>
I seem to remember there was some wrapper in "classic nix", though I don't recall now how it was used; will have to google around, but if someone remembers, I'd be grateful!
o1lo01ol1o has quit [Remote host closed the connection]
chkno has quit [Read error: Connection reset by peer]
vandenoever has quit [Quit: Konversation terminated!]
o1lo01ol1o has joined #nixos
chkno has joined #nixos
<catern>
akavel: you mean a wrapper to automatically create a pkg-config file from a cmake build? or something to make pkg-config files visible to a cmake build? the latter, if you include pkg-config as a dep, it just happens automatically through setup hooks
<catern>
(don't know about the former)
<Claas>
Why does this debug build not work?```console$ nix-build -E 'with import <nixpkgs> {}; enableDebugging nextcloud-client'error: anonymous function at /nix/store/xn1zj88x7j1a85d4rsywlzfyb7sbr9a6-nixos-20.09.1758.3090c650411/nixos/pkgs/applications/networking/nextcloud-client/default.nix:1:1 called with unexpected argument 'stdenv', at
<Claas>
Why does this debug build not work?$ nix-build -E 'with import <nixpkgs> {}; enableDebugging nextcloud-client'error: anonymous function at /nix/store/xn1zj88x7j1a85d4rsywlzfyb7sbr9a6-nixos-20.09.1758.3090c650411/nixos/pkgs/applications/networking/nextcloud-client/default.nix:1:1 called with unexpected argument 'stdenv', at
<akavel>
catern: automatically create pkg-config file from cmake build; hm, maybe it might also happen automatically, but I confused buildInputs and nativeBuildInputs (I always have to read up to re-learn what's the difference)
o1lo01ol1o has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @landakram opened pull request #103748 → chicken: support darwin platform → https://git.io/JkOuS
<akavel>
catern: nah, no auto-magic apparently here, will have to google more
lamoon has joined #nixos
shibboleth has joined #nixos
<lamoon>
Hi, is there any way to append (prepend, actually) text files in /etc/pam.d/? security.pam.services.<name>.text will overwrite the entire file if <name> already exists (without warning, even so)
<akavel>
catern: hm, actually pkg-config files are already built by the cmake project; so for the other one, should I put `pkg-config` in buildInputs/nativeBuildInputs, or some other attribute?
h0m2 has quit [Quit: WeeChat 2.9]
itc-ger has joined #nixos
<itc-ger>
Hi @ll
h0m1 has joined #nixos
<catern>
akavel: definitely either buildInputs or nativeBuildInputs - pkg-config is a binary so probably the latter
<akavel>
catern: hm weird; I added it (to both), but in `nix develop` shell, `pkg-config --list-all` shows me empty output, $PKG_CONFIG_PATH is also unset; I'll try to look into the setup hook
<catern>
akavel: make sure the pkg-config files are in the right place? try adding a dep on something you know has pkg-config files
<catern>
uhhh like... gtk??
<akavel>
catern: good idea, thanks, will try!
o1lo01ol1o has joined #nixos
<akavel>
catern: yep, that gave much more :D hmmm, in $PKG_CONFIG_PATH, all the packages have `-dev` suffix; can that be important? other than that, `lib/pkgconfig` in all of those, and it's present in the one I'm referencing too :/
mananamenos has quit [Ping timeout: 258 seconds]
monokrome has joined #nixos
<catern>
the -dev suffix just indicates that the packages have multiple outputs (-dev containing headers and -lib or something containing libraries, presumably, for gtk) and the pkg-config files are in the -dev output
<catern>
your package doesn't happen to have multiple outputs does it?
<catern>
and... lib/pkgconfig contains a .pc file in your package, right?
<akavel>
no, and yes :D
<catern>
hm from there I'd just look at the pkg-config package and try to run its setup-hook manually and see why it isn't picking up yours
<catern>
the setup-hook is at pkgs/build-support/pkg-config-wrapper/setup-hook.sh
<akavel>
on it, thanks!
<akavel>
by the way, in flakes, how can I find a built flake?
<akavel>
I executed `nix flake list-inputs`
noudle has quit []
<catern>
(can't help with that one, haven't done much with flakes yet myself)
<akavel>
how do I see what's in the input?
<akavel>
maybe someone else knows...?
<akavel>
in "classic nix" I could look into /nix/store/*-foobar/
<akavel>
in flakes, is there a way to translate from `list-inputs` -> path in /nix/store?
zupo has joined #nixos
dbmikus__ has quit [Read error: Connection reset by peer]
litschi has quit [Quit: WeeChat 2.9]
__monty__ has quit [Quit: leaving]
litschi has joined #nixos
<akavel>
hmmmmm, my flake input does not seem to get pulled & built at all I think
<{^_^}>
[nixpkgs] @veprbl pushed commit from @scalavision to master « mill: removing MILL_VERSION variable (#103736) »: https://git.io/JkO22
<akavel>
after I executed `nix build github:foobar...` by hand, it built; but when it's in `inputs.foobar.url = "...the same..."`, and in `{ stdenv, nixpkgs, foobar }`, the `foobar` doesn't show up in env at all
zupo has quit [Ping timeout: 260 seconds]
<akavel>
but it shows ok in `nix flake list-inputs`
<akavel>
wtf
bridge[evilred] has quit [Remote host closed the connection]
bridge[evilred] has joined #nixos
<jasom>
maybe OT here, but I'm wonderng why Nix went with "foo = bar;
<jasom>
maybe OT here, but I'm wonderng why Nix went with "foo = bar;" over "foo = (bar)"
<jasom>
with the parentheses optional when not needed
<infinisil>
jasom: Not sure what's the upside of that
<infinisil>
Oh, you mean to not have ";"`?
<jasom>
infinisil: right; the lists have no token separator, but the sets do. My brain is still not used to that
<infinisil>
Ah so this is about lists then
<infinisil>
For that, I think Nix should've gone with `[ a, b, c ]`, requiring "," to separate list entries
<jasom>
infinisil: Probably my lisp background thinking the exact opposite
<infinisil>
I'm still not sure what you're exactly proposing
<jasom>
From the wiki: [ 1 ./example.bin { hello="world"; }] instead have [ 1 ./example.bin { hello="world" }]
<ToxicFrog>
infinisil: I believe jasom's point is that lists do not require an explicit separator between list elements, but maps require ';'
<jasom>
or { key1="value1" key2="value2" }
<ToxicFrog>
This is inconsistent; why not remove the requirement for ';'
<infinisil>
Ah
<jasom>
obviously values that are function calls would then need parenthesizing, where they do not today
<edef>
,locate libstdc++.so.6
<{^_^}>
Found in packages: robomongo, gcc-unwrapped.lib
<ToxicFrog>
I parenthesize them anyways out of habit
<infinisil>
I think the main inconsistency is the other way around, that lists don't require a separator
<infinisil>
Because lists currently using " " as a separator is ambiguous with function application
<infinisil>
And if attribute sets also don't require a separator, " " can either mean "new list element" "new attribute element" or "function application", depending on context
<akavel>
Hmmmmmm; when I put a github repo in flake `inputs.foobar.url`, the `foobar` then refers to the source, not the resulting build... how do I refere to the *build output* of a flake in another flake?
jonatanb has quit [Remote host closed the connection]
<akavel>
AAAAHHHHAAAAAAAA....... ok, based on https://zimbatm.com/NixFlakes/, I realized I need to pass whole path do dependency flake in a flake that uses is - basically: `buildInputs = [ foobar.packages.x86_64-linux.foobar ]` - in case anybody gets in the same trouble as me....
pushqrdx has quit [Remote host closed the connection]
<akavel>
catern: see ^^^ for future ;)
pushqrdx has joined #nixos
itc-ger has quit [Ping timeout: 260 seconds]
itc-ger has joined #nixos
<catern>
akavel: and that fixed the pkg-config issue? interesting
<akavel>
catern: yep. All was well except just using `foobar` referenced a `/nix/store/....-source/` package
<akavel>
I added `preConfigure = ''echo "DEBUG: ${foobar}"''` to check what's going on
<akavel>
this made me understand I'm getting just the sources
lamoon has quit [Remote host closed the connection]
<akavel>
maybe there's some shorthand like `.out` or something, dunno