<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JL1G4
<donofrio>
qyliss, if I have to rebuil wondering if all I need is "nix-shell -p pianobar --option substitute false" to make pianobar working in nix?
<qyliss>
donofrio: I don't know for sure, because I'm not sure what caused it to start working
<astylian>
qyliss, I have try nix-env -iA pkgsi686Linux.libgcc and I got 'Not found'
<qyliss>
,libraries astylian
<{^_^}>
astylian: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
mbrgm_ has joined #nixos
mbrgm has quit [Ping timeout: 258 seconds]
mbrgm_ is now known as mbrgm
<astylian>
qyliss, I am counting hours on using NixOS, so please forgive my ignorance
<qyliss>
np :)
<qyliss>
surprisingly many people wanting help tonight for Christmas Eve!
<qyliss>
:)
<pushqrdx>
many people are having digital chritmas lol
<qyliss>
good point!
<astylian>
hahaha, Merry Christmas :)
<astylian>
qyliss, can you point any good tutorial or example for my case?
<qyliss>
I don't know what your case is!
<qyliss>
what are you trying to do?
<pushqrdx>
astylian what is the problem your facing, if it's an with understanding i might be able to help
<pushqrdx>
nix can be a bit confusing at first with what is what
<astylian>
the whole target is to run an old arm-gcc arm-gdb on nixos
<pushqrdx>
that aside do you understand why people don't say don't use nix-env and use nix-shell etc?
<astylian>
I have manage to do it at arch linux before a while, and for that the lib32-gcc-libs was needed. Now I am trying to install lib32-gcc-libs on nixos
<pushqrdx>
people say*
<astylian>
actually I would like to do it through nix-shell
supersandro2000 has quit [Disconnected by services]
supersandro2000 has joined #nixos
<astylian>
why? can you explain?
<pushqrdx>
well, even though nix-env is the foundation nixos is built upon, and it is what powers both nixos's generations as well as your user (or home) generations, ie
<pushqrdx>
you can install packages through nix-env just fine, but the problem you're gonna face eventually is that you'll find yourself hitting the same issues as if you're using a normal distro
<pushqrdx>
the power of nix is in creating separate build environments and making it super easy to go into multiple ones with completely different environments without clashing
<pushqrdx>
same goes with builds, as swapping even fundemental packages is rather easy in a non breaking manner
<pushqrdx>
but to utilize this you need to use nix-shell, because it uses the nix-store to craft the environment you specify either through the command line
<pushqrdx>
or through shell/default.nix and puts you in a shell that has all the correct PATH and env vars for you to start hacking
<pushqrdx>
easiest way to drop into a shell with the stuff you need is running `nix-shell -p foo bar baz` where foo bar baz are the package names your discovered either through
<pushqrdx>
<pushqrdx>
2. visiting the nixos website packages and searching for the package you want
<pushqrdx>
1. nix search <package name>
pushqrdx has quit [Remote host closed the connection]
pushqrdx has joined #nixos
<pushqrdx>
sorry what was the last thing i sent because i crashed my irc client lol
<astylian>
2. visiting the nixos website packages and searching for the package you want
<{^_^}>
[nixpkgs] @cdepillabout merged pull request #107395 → haskellPackages.apecs-physics: fix build on darwin → https://git.io/JL1Zl
<{^_^}>
[nixpkgs] @cdepillabout pushed 2 commits to haskell-updates: https://git.io/JL1Z4
<pushqrdx>
but you probably don't want to specify your environment that way each time you want to drop into a shell for working on your project
<pushqrdx>
it would be annoying to run nix-shell -p packages everytime
<astylian>
I see, so I need to have the shell/default.nix and run that
<pushqrdx>
so you can take those packages and add them to a shell.nix files in the project you're working on
<pushqrdx>
where you replace cmake pkgconfig with the native builders your use, ninja etc (make is available there by default you don't need to specify it)
<pushqrdx>
and place your library deps in the buildInputs array
<pushqrdx>
whitespace separated
<pushqrdx>
and run nix-shell in that folder
<pushqrdx>
now you are in shell with all the stuff you want to build or fiddle around with a project
<astylian>
I see
<astylian>
thats a really nice, small and clean example :)
<omnipotententity>
Does anyone know how to get the git revision of a tag? I have a package that wants to use it in the configuration stage (to tag the executable with it at build time). I was advised that it might be possible to get this information using an updateScript, but I've been unable to figure it out.
<NemesisD>
does anyone know much about the python build support in nix? i'm trying to debug a derivation that uses buildPythonApplication. that fails on setuptoolsBuildPhase which sets a variable @pythonInterpreter@ but its unclear to me how to add dependencies to that interpreter
<NemesisD>
if poetry requires any changes on the project being built my guess is that it isn't supported. it's a pretty old school python project (CHIRP). it even uses pygtk which is apparently getting deprecated
<energizer>
poetry2nix requires a pyproject.toml but you can make it yourself, it doesn't have to be done in the upstream repo. the way to fix a broken dependency (with poetry2nix or otherwise) is often something like .overridePythonAttrs(old: {propagatedBuildInputs = old.propagatedBuildInputs ++ [newthing];}) (but see the link for detail)
iqubic has joined #nixos
<iqubic>
Hey, so this might be a strange request, but I'm wondering if someone could help me get a nix-shell setup so that I can write some J code.
<NemesisD>
energizer: yeah i'm digging through that doc. the thing is, the pygtk dependency is actually already in propagatedBuildInputs. however it seems in a recent version of the code, a new source file was added that imports gtk and this fails on *compilation*
<NemesisD>
so i suspect it would run with gtk just fine but when it runs nix_run_setup it's providing an interpreter with just the stdlib installed
<omnipotententity>
infinisil, sorry about the delay getting back with you. I have a package that wants to query git for the revision of the code being compiled. In context, because this is an executable that can be used to do online contribution to a public computation, the git revision is checked as an easy sanity verification, so I can't simply omit or fake this data. I can override this by simply specifying a variable and doing some minor
<omnipotententity>
CMake patches. But I wanted to make updating easy and automated.
joesventek has joined #nixos
<omnipotententity>
Currently, I'm compiling against the master branch's head, so I have the revision handy, but once the contribution system goes public, I'd like to go back to tagged releases, and that means having to look up the revision from the tag.
<omnipotententity>
The patch just removes the logic in the CMake file to use git to determine the revision and instructs it to use the variable instead.
nikivi has joined #nixos
<bqv>
You can fake the git binary instead
<bqv>
But thats dirtier
<infinisil>
omnipotententity: I think passing `leaveDotGit = true` to `fetchFromGitHub` should work here. Then you should be able to use `git rev-parse @` within the build
<bqv>
Or that
<omnipotententity>
I was advised that this wasn't a preferred method, but I am not sure why? Is it fine in your opinion?
<infinisil>
bqv: The problem here is that the git revision can't be gotten from a tag itself
<bqv>
O
<infinisil>
I think it's unavoidable here because of this ^
<omnipotententity>
Alright! I'll just do that then. Makes my life way easier as well.
<omnipotententity>
:)
<infinisil>
The `leaveDotGit` option is a bit brittle, because dot git directories aren't inherently pure
<infinisil>
So fetchgit (the function fetchFromGitHub uses underneath if that option is enabled) does some special trimming of dot git to make it (hopefully) pure
jmeredith has quit [Quit: Connection closed for inactivity]
xcmw has joined #nixos
<omnipotententity>
Ok, that context is definitely useful
<omnipotententity>
Thanks again :)
dada_da has joined #nixos
da_dada has quit [Ping timeout: 260 seconds]
tff^ has quit []
bqv has quit [Quit: WeeChat 3.0]
<omnipotententity>
This is slightly puzzling to me, I'm now getting that leaveDotGit is an unexpected argument to fetchFromGitHub
bqv has joined #nixos
<omnipotententity>
Specifying fetchSubmodules = true; magically makes it work
kalbasit has quit [Remote host closed the connection]
kalbasit has joined #nixos
<iqubic>
So, how can I get a nix-shell for doing J programming?
astylian has quit [Remote host closed the connection]
<simpson>
iqubic: Which packages are you having trouble with? We don't have a J subsystem (or J specialists, AFAIK) so you may have to ask a more specific question.
astylian has joined #nixos
astylian has quit [Read error: Connection reset by peer]
astylian_ has joined #nixos
<iqubic>
I suppose really all I need is a nix-shell with the package J in scope.
<Gaelan>
nix-shell -p <whatever the j package is called> should do it
<iqubic>
However, the main issue is that I don't know if this package will be making folders in $HOME.
<Gaelan>
the nix-shell command itself won't make any folders in $HOME. I have no idea if j will when you run it.
<infinisil>
omnipotententity: Ohh yeah, sorry. I think you want to use `fetchgit` directly instead, then you don't need to do the fetchSubmodules passing
<infinisil>
Though I guess you'll have to pass the url directly then
<infinisil>
Eh, whatever works
<omnipotententity>
Instead I filed a bug report against fetchFromGitHub, and I'm writing a short patch.
<iqubic>
Also, I want to know if this package installs the required executables, like jconsole for me.
<simpson>
iqubic: You could answer both of these questions for yourself. For the former, recall that nix-shell itself will not alter your $HOME, so you can `nix-shell -p j` and then `unset HOME` and see if anything breaks or complains.
<iqubic>
I will.
<simpson>
For the latter, instantiate the shell and you'll see a path like /nix/store/pwrzpvk8gh4np2pd26g0lrwrniz152kc-j-901 which you can examine. And yes, it's got jconsole.
astylian has joined #nixos
<iqubic>
I see. That's good to know.
<Gaelan>
On another note: I've got an RPi Zero W that's supposed to connect to wifi on boot. It doesn't, but "sudo systemctl start wpa_supplicant" after boot succeeds
astylian has quit [Remote host closed the connection]
<siraben>
What's the idiomatic way to produce a wrapper script in $out/bin?
<siraben>
suppose I want to run commands A;B;C; in a script at $out/bin/run
<qyliss>
I'd do cat with a heredoc
<qyliss>
in installPhase
<qyliss>
cat >$out/bin/run <<EOF
<qyliss>
(assuming makeWrapper won't do the job)
<siraben>
ah makeWrapper won't work because I don't have an executable already produced
<siraben>
but something like a system image instead, I need $out/bin/run to run qemu on the image
<qyliss>
alternatively, if you don't mind a wrapper derivation (which can be annoying because of passing through meta and stuff), you can use writeShellScriptBin
<bqv>
colemickens: put the expr in the flake, not the command line. Or use builtins.getFlake
addcninblue has joined #nixos
<{^_^}>
[nixos-status] @rail opened pull request #4 → Remove HowOldIs link → https://git.io/JL18K
<donofrio_>
Merry Christmas everyone
<colemickens>
bqv: -_- do you know how to use getFlake? it wants a set? I would've expected it to take anything that would normally come on the left side of the '#': "/some/flake/ref#..."
<colemickens>
bqv: also, its not important, you can just ignore this, I found a different much simpler way of doing what I was after
waleee-cl has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 10 commits to staging-next: https://git.io/JL1BJ
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 11 commits to staging: https://git.io/JL1BU
gueorgui has quit [Ping timeout: 256 seconds]
gueorgui has joined #nixos
palo1 has joined #nixos
palo has quit [Ping timeout: 240 seconds]
palo1 is now known as palo
ransom_ has joined #nixos
ransom_ has quit [Client Quit]
<omnipotententity>
potentially stupid question, when you're debugging a derivation, what's the best way generally to go poking around to check your whether or not assumptions about the file layout and structure within the derivation is as you expect it to be? Can you just open a shell at a particular point?
fiddlerwoaroof has quit [Remote host closed the connection]
ransom_ has joined #nixos
stoile has quit [Ping timeout: 256 seconds]
inf has joined #nixos
ransom_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
noudle has joined #nixos
veleiro` has quit [Ping timeout: 264 seconds]
ashkitten has quit [Quit: WeeChat 3.0]
qwerty has joined #nixos
stoile has joined #nixos
ransom_ has joined #nixos
bn_work has quit [Quit: Connection closed for inactivity]
<edef>
omnipotententity: nix-shell and then invoking genericBuild is often helpful
<edef>
omnipotententity: but launch nix-shell in a dir you don't care about
<edef>
omnipotententity: like, just run `nix-shell '<nixpkgs>' -A hello` or similar, and run genericBuild in the shell you get
ezioedithore has quit [Quit: ZNC 1.8.1 - https://znc.in]
ezioedithore has joined #nixos
ezioedithore has left #nixos [#nixos]
sangoma has joined #nixos
<{^_^}>
[nixpkgs] @andir opened pull request #107563 → code-minimap: init at 0.4.3 → https://git.io/JL1gK
berberman has joined #nixos
berberman_ has quit [Ping timeout: 272 seconds]
astylian has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @flokli opened pull request #107572 → nixos/systemd: provide libidn2 for systemd-resolved → https://git.io/JL1iY
<eeva>
flokli: I'll test your branch as well
<eeva>
ronny: not aware of nixos config as a container (I actually don't know how much sense it makes). For the rpi4 sdcard, you can look at the nixos-generators project, it has two targets for aarch64: “sd-aarch64-installer” and “sd-aarch64”
davidv7 has quit [Remote host closed the connection]
vidbina has quit [Ping timeout: 246 seconds]
davidv7 has joined #nixos
davidv7 has quit [Remote host closed the connection]
davidv7 has joined #nixos
davidv7 has quit [Remote host closed the connection]
ericsagnes has quit [Ping timeout: 260 seconds]
kenran has joined #nixos
Dotz0cat has joined #nixos
Dotz0cat_ has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @magnetophon opened pull request #107577 → stochas: init at 1.3.4 → https://git.io/JL1XD
ericsagnes has joined #nixos
ece has quit [Ping timeout: 240 seconds]
urkk has quit [Remote host closed the connection]
cantstanya has quit [Ping timeout: 240 seconds]
cantstanya has joined #nixos
sss2 has joined #nixos
donofrio has quit [Remote host closed the connection]
LilleCarl has joined #nixos
arinov has joined #nixos
<arinov>
how to fix utf-8 in konsole? shows ????? instead of symbols for non-latin letters
<arinov>
in filesystem ls
<arinov>
in vim everything is fine
<sphalerite>
arinov: vim in the same terminal as ls?
abathur has quit [Quit: abathur]
arinov has quit [Ping timeout: 246 seconds]
rb2k has joined #nixos
<hyper_ch>
on pretty new unstable small my systemd automounts don't work anymore :(
pax-12 has joined #nixos
<pax-12>
How do I create an overlay for steam
kim0 has quit [Quit: Connection closed for inactivity]
ManiacOfMadness has joined #nixos
ManiacOfMadness` has quit [Ping timeout: 256 seconds]
xcmw has joined #nixos
<pax-12>
also nvidia drivers fail to build on nixos-rebuild switch with error: error: build of '/nix/store/ifz4s87ccir7p5z4r7jwbxvb8bdpnhm6-nixos-system-nixos-box-21.03pre259605.57a787c9fa9.drv' failed
fendor_ has joined #nixos
philr has quit [Ping timeout: 240 seconds]
palo has quit [Quit: WeeChat 2.9]
fendor has quit [Ping timeout: 246 seconds]
palo has joined #nixos
<{^_^}>
[nixpkgs] @ewok opened pull request #107579 → xkb-switch-i3: init at 1.8.1 → https://git.io/JL1MZ
<simpson>
fuzzypixelz: For example, suppose I wanted a nix-shell with jq, and I wanted to test out a specific nixpkgs commit. (The commit I'm using isn't special, other than that I had this tarball downloaded.) Then:
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JL1Hc
<simpson>
So this gives a simple and direct way to go from a desired nixpkgs commit to a custom temporary shell with the desired packages. You can then make it more permanent however you like, like with nix-env or shell.nix.
<fuzzypixelz>
simpson: I can also specify a nix expression right?
<simpson>
fuzzypixelz: This package doesn't work unless it's installed system-wide? I'm a little doubtful, but if that's the case, then it only requires a bit more work.
<red[evilred]>
Yeah, in 5m
<red[evilred]>
But someone will need to commit it
<red[evilred]>
I don't have commit rights
<red[evilred]>
It works in nix-shell
<red[evilred]>
I think fuzzy Jay doesn't want to run niz-shell every time or pollute a user env
<simpson>
But they want to run nixos-rebuild every time?
<red[evilred]>
I do that any time install new software
<red[evilred]>
I do it every password change tio
<red[evilred]>
Too
<fuzzypixelz>
I actually don't have a user env, I just have everything in configuration.nix
<fuzzypixelz>
at least _I think_ I don't have a user profile
<fuzzypixelz>
Right? If I never envoke nix-env (which I never did for the entire month I had nixos) I shouldn't have a user env?
<simpson>
Well, an empty user environment.
<fuzzypixelz>
the way the user env and the "system config" interact is so weird to me
<simpson>
Anyway, the main idea is to summon a nixpkgs of your choosing in the middle of your NixOS configuration. This can generally be done anywhere, so you can have your custom nixpkgs and then use just the one package from it.
<simpson>
Oh, sure. The intent is that the system administrator will set up a central minimal Nix daemon which works and has a decent nixpkgs, but it's up to individual users to choose/write the Nix expressions that they want to use in their personal environments.
<simpson>
Which can make single-user setups seem somewhat complicated. In truth, they're just a degenerate (but valid) configuration of a multi-user system.
<fuzzypixelz>
but they can surely conflict right? Right now I have minecraft from stable 20.09 declared in the system-wide packages, and I'm about to install it from unstable in my env
<red[evilred]>
How around one insert that into configuration.nix
<fuzzypixelz>
of course the path to my own minecraft version will (probably) have priority over the system wide one, but still?
<simpson>
Should be fine. Why would they? There might be a shadowing issue, where you can only access your user-installed package instead of the system package.
<red[evilred]>
Such that it would only affect that package
<red[evilred]>
Been called into the family thing, another 20-30 before I can raise a pr
rajivr has quit [Quit: Connection closed for inactivity]
<fuzzypixelz>
I can specify a channel in configuration.nix?
<simpson>
red[evilred]: You just do it. Instead of `nixpkgs = import nixball { inherit system; };` you'd write, say, `myAwesomePinnedNixpkgs = import nixball { inherit system; };`
<red[evilred]>
I'll poke you after I submit it and you can test it for me :)
<fuzzypixelz>
red[evilred]: no worries, I can always use the jifty nix-shell
<fuzzypixelz>
:)
<simpson>
fuzzypixelz: Channels are a convenience mechanism so that you don't have to directly pin nixpkgs versions and instead get reasonably automatic updates.
<red[evilred]>
simpson (IRC) then in your packages you'd specify nixpkgs.foo and myawesome.bar?
<simpson>
red[evilred]: Yeah.
<fuzzypixelz>
simpson: sorry that went over my head ... in my configuration.nix there is just a "environment.systemPackages = with pkgs; [ python3 #long list of packages ]"
ransom_ has joined #nixos
<Nickli>
followed the wiki how to setup MPD but it seems like mpc and ncmpcpp can't connect
<fuzzypixelz>
I'm using the provided emplate :|
<simpson>
fuzzypixelz: The `with` keyword has harmed you, then. `with pkgs; [ python3 ]` probably means `[ pkgs.python3 ]`.
<simpson>
Nickli: Firewall?
<Nickli>
firewall on 127.0.0.1?
orivej has joined #nixos
<simpson>
It's a common thing to check. Have you done your typical routine for networking debugging? netstat, etc.?
<Nickli>
could firewall even interfer on the same computer?
<simpson>
Yes, although you're right that it's probably not the culprit.
<fuzzypixelz>
simpson: what about the syntax `{ config, pkgs, ... }:` ? it's in the top of my file, I suppose i imports the stable nixpkgs?
<Nickli>
on second thought, it seemed odd that it didn't update it's db of music
<simpson>
fuzzypixelz: That syntax effectively declares a NixOS module. The NixOS module system will handle filling those out; `pkgs` will be the nixpkgs that you've set up with nixos-rebuild.
<fuzzypixelz>
simpson: isn't there a built in nixball for the latest nixos-unstable?
<fuzzypixelz>
I'm not sure how to adpat the example you linked me because I don't know which tarball I need to get
jonringer has joined #nixos
<simpson>
https://status.nixos.org maps channels to commits in a way that generally ensures that you won't get a broken commit.
<simpson>
(You can also use branch names, but IIUC there is no branch which corresponds to the most recently built unstable.)
sikorsp2 has joined #nixos
<fuzzypixelz>
simpson: what do they correspond to then?
fendor_ is now known as fendor
<simpson>
The unstable channels come from the `master` branch, but our Hydra CI system actually tries to build and test some common packages before it will update the channel.
<fuzzypixelz>
simpson: I don't mind that, what is the branch name I need for `master` then?
sikorsp2 has quit [Quit: Leaving]
<simpson>
`master`. As in, $ nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/master.tar.gz -p minecraft
<simpson>
Sorry, I guess I only typed that to myself and not to IRC.
<fuzzypixelz>
alrighty thank you
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 28 commits to staging-next: https://git.io/JL1Qu
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 29 commits to staging: https://git.io/JL1Qz
sangoma has quit [Ping timeout: 264 seconds]
ransom_ has quit [Read error: Connection reset by peer]
<{^_^}>
[mobile-nixos] @samueldr pushed 2 commits to master: https://git.io/JL17u
berberman has joined #nixos
berberman_ has quit [Ping timeout: 260 seconds]
astylian has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage2nix: update configuration file for ghc-8.10.3 »: https://git.io/JL17a
<red[evilred]>
Question: I'm cherry-picking a series of patches to backport minecraft
<red[evilred]>
one of them in the middle is a "treewide change"
<red[evilred]>
so it's going to affect multiple files which have nothing to do with what I'm backporting
<red[evilred]>
how does one go about dealing with this?
<red[evilred]>
(since patches after that are not going to apply after that one would assume)
<Thra11>
red[evilred]: Is the treewide change 'necessary' for things to work? Have you tried skipping it? Do you get any conflicts from subsequent commits, and if so, are they difficult to fix?
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « haskell-ListLike: patch to fix the build with ghc-8.10.3 »: https://git.io/JL17D
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JL179
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JL17p
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage2nix: update list of broken builds to fix evaluation on Hydra »: https://git.io/JL17j
<red[evilred]>
I've not tried - but it's a simple gnome2 -> pango translation
<red[evilred]>
I guess in theory I can just do the translation on that single file as a single patch that I do myself
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JL15J
fuzzypixelz has quit [Ping timeout: 260 seconds]
<red[evilred]>
In theory that treewide change will never get backported - right?
<esotericnonsense>
does anyone use network namespacing with nixos e.g. for VPN purposes and have an example configuration I can look at before I dive in?
<esotericnonsense>
e.g. the standard wireguard setup of having ethernet/wifi in netns "physical"
<Thra11>
red[evilred]: Probably not, so I'd just skip it. I doubt you'll get any conflicts, but if you do they should be trivial to fix.
<red[evilred]>
okay
<red[evilred]>
thank
<red[evilred]>
lemme give it a shot and see what happens
<{^_^}>
[nixpkgs] @peti pushed 21 commits to haskell-updates: https://git.io/JL15Y
<{^_^}>
[nixpkgs] @peti pushed 12 commits to haskell-updates: https://git.io/JL15S
<antifuchs>
when building nixos systems in a flake, is there a way to pass arguments from the `nixpkgs.lib.nixosSystem` function to the modules? I would love to pass some input arguments down
nicoo has joined #nixos
domogled has quit [Quit: domogled]
pax-12 has joined #nixos
<pax-12>
steam keeps complaining about libstdc++.so.6 not existing, how do I fix this?
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JL1db
<{^_^}>
[cabal2nix] @peti pushed to master « Add a name mapping for geos_c. »: https://git.io/JL1dp
pushqrdx has joined #nixos
<pushqrdx>
can i override meson locally in a package, (i am sure i can) but how xD
<pushqrdx>
i want to remove the propagated gcc dependency, i used to do that in an overlay however that was fucked up because it caused my whole system to rebuild everything from scratch
<{^_^}>
[cabal2nix] @peti pushed 0 commits to refs/tags/v2.15.6: https://git.io/JL1Fq
<pushqrdx>
here's the solution, in buildInputs instead of just specifying meson, i did (meson.overrideAttrs (oldAttrs: { depsHostHostPropagated = [ ]; }))
<{^_^}>
[nixpkgs] @SuperSandro2000 merged pull request #107584 → epkowa: add support for 'Perfection V37/V370' scanners → https://git.io/JL1Sq
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed commit from @nek0 to master « epkowa: add support for 'Perfection V37/V370' scanners (#107584) »: https://git.io/JL1Fn
<{^_^}>
[nixpkgs] @peti opened pull request #107593 → Update Haskell package set (plus other fixes) → https://git.io/JL1FC
kenran has quit [Quit: leaving]
rb2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rb2k has joined #nixos
<{^_^}>
[nixpkgs] @ehmry opened pull request #107594 → Synchronize llvmPackages with the cross-stdenv LLVM input → https://git.io/JL1FE
edude03 has joined #nixos
<rawtaz>
i wish all Nix developers (and users) a merry christmas etc, cuz you're awesome
MarcWeber has joined #nixos
MarcWeber has quit [Client Quit]
MarcWeber has joined #nixos
MarcWebe1 has joined #nixos
gustavderdrache has quit [Quit: Leaving.]
<MarcWebe1>
What is the most simple way to ge ta nix shell with all biuldinputs of a package (without building the package) ?
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JL1FM
<edude03>
I wanted to hop in and see what I can do to get nix working on Big Sur, or what the current status is. Seems like it doesn't work but the state of the tickets make me think it should.
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JL1FD
<supersandro2000>
edude03: unstable has some work on it. Don't know if it is done yet.
meh` has joined #nixos
<edude03>
supersandro2000: thanks, it seems like it's not as I've tried making a branch with all the patches from thefloweringash
<edude03>
* supersandro2000: thanks, it seems like it's not as I've tried making a branch with all the patches from thefloweringash & LNL7 and I can't get hello to build
<edude03>
But I'm not sure what's wrong or what can be done. I'd like to help but honestly I don't understand how the bootstrap process works on osx
growpotkin has joined #nixos
littlebenlittle has quit [Ping timeout: 264 seconds]
<red[evilred]>
yeah - it looks broken from where I sit
<red[evilred]>
(and I can't fully test it remotely - going to mark it WIP until I can get in front of a NixOS workstation
<red[evilred]>
)
<red[evilred]>
(use '--show-trace' to show detailed location information)
<red[evilred]>
error: anonymous function at /home/red/projects/nixpkgs/pkgs/games/minecraft/default.nix:1:1 called without required argument 'copyDesktopItems', at /home/red/projects/nixpkgs/lib/customisation.nix:69:16
<red[evilred]>
this
<red[evilred]>
I'll have to get back to this in a bit
<red[evilred]>
:-/
<V>
--show-trace is the bane of my life
rb2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<V>
half the time it shows me nothing useful
<V>
(although that's usually because I was foolish enough to use overlays)
davidv7 has joined #nixos
sangoma has quit [Quit: WeeChat 2.9]
<{^_^}>
[nixpkgs] @ehmry closed pull request #107594 → Synchronize llvmPackages with the cross-stdenv LLVM input → https://git.io/JL1FE
<{^_^}>
[nixpkgs] @ehmry reopened pull request #107594 → Synchronize llvmPackages with the cross-stdenv LLVM input → https://git.io/JL1FE
rb2k has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<pushqrdx>
merlin04 nope that will never work, you'd have to wrap or patch the binary elf, because binaries have they paths hardcoded
<pushqrdx>
nix has some convenience functions around that though
<merlin04>
Is there an example of wrapping it I can look at?
<merlin04>
I only have a few apps that would work this way so it wouldn't be too big of an issue
<V>
merlin04: it's fairly trivial to get them to work, just use patchelf or fshuserenv
<V>
fhsuserenv*
<V>
you can also try running it under steam-run, which basically runs it under an fhsuserenv with sane defaults
<pushqrdx>
basically steam-run is when you really don't want to give any effort running something and would just want it to run as if it's on a normal linux filesystem
<pushqrdx>
aside from that you'll find yourself in one of these situations (80% it's already there in the nix repos, 10% if not in the nix repos someone has an overlay for it, the rest you'll relatively easily build it from source by copy-pasting any similar package's derivation with slight edits)
<pushqrdx>
if it's a binary, then patchelf or steam-run
<acab_chatter>
hey, new nixOS user here, just curious after setting up nixOS and tor-browser-bundle-bin package it produces a desktop file outside of my $XDG_DATA_DIRS so Gnome (i went with the "recommended" DE just for trying out) doesn't see it
rb2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
puffnfresh has quit [Quit: killed]
<acab_chatter>
i know i can just make a symlink in ~/.local/share/applications (though there is no /usr/share/applications ??) but i'm just curious why that is the case as i see the tor-browser-bundle-bin manifest uses a "makeDesktopItem" function which seems to be a nixOS builtin
puffnfresh has joined #nixos
<acab_chatter>
so is it a problem with the tor browser package? with my configuration?
xcmw has joined #nixos
<pushqrdx>
acab_chatter most likely the tor package, but just for the sake of it did you restart your session?
<ar>
acab_chatter: /run/current-system/sw/share/applications is what on typical distros you see in /usr/share/applications, that's manages by Nix and other nixos utilities
<acab_chatter>
oh, it just occurred to me that for XDG_DATA_DIRS to be updated i need to log out and in again?
<pushqrdx>
yeah relogin
<acab_chatter>
yes indeed that worked thanks a lot pushqrdx, and thanks ar for the additional information :)
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JL1hQ
seku has quit [Quit: Connection closed]
<acab_chatter>
re: /run/current-system/sw/ <-- it's briefly referenced in the manual (chapter 51) but i think it could be more explicit for newcomers like me that a lot of stuff is in there
o1lo01ol1o has joined #nixos
<acab_chatter>
maybe a small chapter with a high-level overview of NixOS system and how it differs from other distros (apart from the package manager itself) ?
philr has joined #nixos
acarrico has quit [Ping timeout: 256 seconds]
<ar>
acab_chatter: mind you, you should almost never need to manually touch stuff in /run/current-system
<bbigras>
Anyone else has problems with the broadcom wifi driver on unstable?
acarrico has joined #nixos
<pushqrdx>
acab_chatter maybe not even almost because all of it is symlinked and crafted automatically for you by your nix configuration on boot
<pushqrdx>
you don't fiddle with any system state yourself because that would break the purpose of nix, which easy reiterations and rollbacks
Dr8128 has quit [Ping timeout: 246 seconds]
<astylian>
Hi, how can I run a package from my local /nix/store using nix-shell?
<astylian>
(its something I have packaged manually)
<pushqrdx>
astylian what do you mean using? nix-shell isn't anything special it's just bash with the correct env vars set for you
__monty__ has quit [Quit: leaving]
<astylian>
pushqrdx, I have packaged something manually, and I want to use it inside a nix-shell
<pushqrdx>
if the package is already built and installed into the store you can ls /nix/store | grep <package name> for it and directly run /bin/<package> if it's there
<pushqrdx>
astylian but did you install it? what did you do to "package" it, because getting a nix shell doesn't mean it's installed
<astylian>
pushqrdx, I have used nix-build to build it. So it just exist in my /nix/store
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JL1jt
<acab_chatter>
re: /run/current-system/ i understand we're not supposed to touch it, i just thought as a newcomer it was confusing for me that i did not understand where the stuff was from reading the manual :)
<acab_chatter>
(this is just an outsiders perspective for what it's worth)
o1lo01ol1o has quit [Remote host closed the connection]
<pushqrdx>
astylian oh nix-build will result in ./result/bin look for it there you can run stuff directly from ./result if you want
aswanson has joined #nixos
<pushqrdx>
nix-build doesn't install the package though, so it won't be available in your path to directly run, if you want to install a nix-build result into your environment you can run nix-env -i ./result
rb2k has joined #nixos
<{^_^}>
[nixpkgs] @pkern opened pull request #107604 → nixos/exim: Make queue runner interval configurable and reduce it to 5m by default → https://git.io/JL1js
<pushqrdx>
but better make sure it's working correctly first by just running it from the ./result directory
<astylian>
pushqrdx, is it any way to use it inside nix-shell like 'nix-shell -p mypakage' ?
<madonius[m]>
o/
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
meh` has quit [Ping timeout: 240 seconds]
xcmw has joined #nixos
fendor has quit [Remote host closed the connection]
<pushqrdx>
astylian if you have it installed yeah
<astylian>
pushqrdx, if I run 'nix-env -i ./result' will it make it permanent?
noudle has quit []
rb2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lopsided98 has left #nixos [#nixos]
lopsided98 has joined #nixos
Rusty1 has joined #nixos
acarrico has quit [Ping timeout: 240 seconds]
iMatejC has quit [Quit: WeeChat 2.9]
iMatejC has joined #nixos
fuzzypixelz has left #nixos [#nixos]
acab_chatter has quit [Remote host closed the connection]
acab_chatter has joined #nixos
bitmapper has quit [Quit: Connection closed for inactivity]
acarrico has joined #nixos
<pushqrdx>
astylian if by permanent you mean installed to your profile then yes, but you can always remove it by nix-env -e mypackage
<pushqrdx>
or even rollback your profile if you broke something
cole-h has joined #nixos
<astylian>
pushqrdx, ok, thx I see
ransom_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]