<bierlingm>
I can't see any history here, so I'll just say hi into the void.:D (I'm not in IRC channels very often...)
* colemickens
also wants a systemd stage-1
meh` has joined #nixos
alexherbo2 has joined #nixos
<abathur>
:)
<bierlingm>
I was just wondering whether anyone might be able to point me to install instructions for nix on macOS 11 versions. I keep getting errors and in the GitHub issues there seems to be no clear solution.
<bierlingm>
I currently have nix and nix-shell installed, each of which are on version 2.3.10.
<bierlingm>
The error I keep getting when trying to enter nix-shell is:
<bierlingm>
```error: getting status of '/Users/moritzbierling/default.nix': No such file or directory```
ahmed_elgabri has quit [Ping timeout: 260 seconds]
Izorkin has joined #nixos
Jd007 has quit [Quit: Jd007]
<colemickens>
bierlingm: that's what I get too
<{^_^}>
[rfc39-record] @grahamc pushed commit from rfc39 to main ยซ Automated team sync results. ยป: https://git.io/JqFFS
<colemickens>
that drops me into a bash shell, for example
<bierlingm>
colemickens Are you also on a machine with that version?
<colemickens>
you can probably leave off the NIX_PATH bit
<colemickens>
bierlingm: no, I'm just pointing out that running `nix-shell` with no args and no `default.nix` or `shell.nix`, will correctly result in that error message.
<bierlingm>
I'm going through all this because I've been trying unsuccessfully to get Holochain installed on my systems for months, which uses nix and nix-shell
trubi has quit [Ping timeout: 264 seconds]
<bierlingm>
So would I have to do some process or create a default.nix file?
<hplar>
supersandro2000 is it late to catch you? any chance of #115265 going through? ... it fixes quite a bit (and i don't believe it breaks anything that was not already broken), [will post question again if i miss you now]
<{^_^}>
yaymukun1: Derivations can install system or user *.service files into $out/lib/systemd/system or $out/lib/systemd/user respectively. On NixOS, such services can be enabled by adding the derivation to the `systemd.packages` option. This also works for all other unit types, not just services.
<infinisil>
Try building the derivation to see where the .service file ends up, it should be in the one mentioned above
<yaymukun1>
so, I've figured out how to get the file placed in /etc/systemd/system/foo.service thanks to your help. But it's still not showing up in `systemctl list-units` and it's not enabled. What gives? >_<
<yaymukun1>
it looks like enabling the gammastep package adds it as a linked-runtime by default, no extra work needed
<yaymukun1>
will trawl through other people's nix files to see if anyone knows how to enable it. but i've seen a lot of people writing their own .service files
<coyotechords>
simpson, oh thanks, I'll look at that
<simpson>
,tofu
<{^_^}>
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>
<dominikh>
packaging question: a program shells out to script
<dominikh>
okay, next attempt. starting point is https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/search/recoll/default.nix โ recoll shells out to various scripts at runtime, some of which are written in perl. these scripts have runtime dependencies on perl modules. these don't work with the current derivation. how would one go about adding these runtime dependencies, so that the perl
<dominikh>
interpreter can find them? e.g. how do I pipe through perlPackages.ImageExifTool?
<coyotechords>
abathur, thank you, in the future what should I search to find things like that?
<srhb>
angerman: Whether or not that's even possible depends what you _have_. Some package? A NixOS system output?
<angerman>
srhb: some drv :(
<s1341_>
hi guys!
<supersandro2000>
hplar: I have a bouncer and check it most of the time back. Checking the PR probably later today.
Jackneill has joined #nixos
<s1341_>
is it possible to have a nix-shell derivation which includes both an fhs (for the host) and crossSystem (for cross-compiling)?
teto has joined #nixos
<srhb>
angerman: I can't think of a generic way right now. In the drv's closure there will likely be a nixpkgs source dir, but deciding what version that is isn't necessarily easy.
<angerman>
srhb: I'll keep digging.
civodul has joined #nixos
lsix has joined #nixos
<angerman>
srhb: I've some drv that fails on bigsur, but should be built against the unstable nixpkgs, ... it just looks like it's pulling in some alternative nixpkgs somewhere.
<srhb>
angerman: When you say some drv, do you literally mean a .drv?
<angerman>
yes.
<srhb>
angerman: Meh. Yeah, traversing its entire tree (nix-store -qR or --tree) is the only thing I can think of.
<bb_>
Hi, I am new to the world of Nix. Experimeting with direnv and nix-shell. I would really like to put stuff like .envrc and shell.nix into a subfolder in the project dir (e.g. Project/.env/) but I dont how to do I load my stuff after
<bb_>
any advice?
<angerman>
srhb: yea. It's a rather nasty issue :D
<srhb>
bb_: First advice: Don't -- at least not to start out with. Trying to fight idioms at the start is going to increase the learning curve tenfold :) Second advice: Just have users invoke nix-shell specifying the actual shell.nix path. From there, you can use shellHook to manipulate what happens.
<bb_>
srhb, thank you for the honest advice. I understand
werner291 has joined #nixos
<Miyu-saki>
angerman: FWIW, you can always use something like `builtins.trace lib.version`
<angerman>
Miyu-saki: if I find the proper attribute, yes :D
<Miyu-saki>
Ah, I think I get what you mean.
<Miyu-saki>
First idea I'd have would be to override stdenv, but that doesn't work because you won't be finding the other nixpkgs anyway.
<Miyu-saki>
I wonder, is there a way to introspect a derivation's dependencies? Not just inputs, but dependencies.
<Miyu-saki>
On that topic, are inputs even a thing in Nix? Or is that a Nixpkgs thing.
<Miyu-saki>
I think the answer is it's a Nixpkgs thing, but it's not structure-less in Nix either.
<Miyu-saki>
angerman: Actually, I do have an idea. Override stdenv on your main nixpkgs to include `passthru.foo = "thisisaveryuniquestring";` and then grep for drvs which don't include that string.
<Miyu-saki>
That at the very least allows you to identify which derivation doesn't belong.
<angerman>
well I *do* know this doesn't have the right nixpgks I want it to have.
<Miyu-saki>
Wait, I'm a bit confused right now. Are you saying your closure's depending on 2 different nixpkgs, or you just want to figure out what nixpkgs an arbitrary derivation has?
<Miyu-saki>
I'm confused about this reply. > 08:35:39 angerman | Miyu-saki: if I find the proper attribute, yes :D
<Miyu-saki>
s1341_: I doubt you can properly. `buildCommand` overrides the default building mechanism. You can try appending `fixupPhase` in the end though.
<Miyu-saki>
That is, `buildCommand = '' ... \n ... \n fixupPhase'' `
<Miyu-saki>
But IMO, that's somewhat hacky, and I'd rather just go with mkDerivation.
<Rovanion>
Just running `nix-build nixos/tests/prometheus-exporters.nix -A driver` doesn't work. I don't see driver declared in login.nix so I guess its something automatically inherited?
<bahamas>
I'm using this line to have ghc in path with that specific package, but ghc doesn't end up in path. what am I doing wrong?
<bahamas>
this is the line `nix-shell --pure -E 'let pkgs = import ./nix/pkgs.nix; in pkgs.ghc.withPackages (_: [pkgs.haskellPackages.openapi3-code-generator])'`
werner291 has quit [Ping timeout: 272 seconds]
werner292 is now known as werner291
Chiliparrot has quit [Ping timeout: 260 seconds]
grw1 has quit [Quit: WeeChat 1.4]
sigmundv_ has joined #nixos
<bahamas>
I figured it out. I needed to use pkgs.mkShell { buildInputs = [ghc] }
<Rovanion>
ploupiboulba[m]: It suggests running `nix repl nixos/tests/prometheus-exporters.nix` which fails due to an unrelated prometheus (bitcoin) exporters test being broken :/
<Rovanion>
But if I remove it I get to what seems like a nix repl.
andoriyu has quit [Ping timeout: 276 seconds]
<Rovanion>
Ah, each test in prometheus-exporters has their own driver. So the attribute path becomes slurm.driver.outPath instead of driver.outPath
bekkvann[m] has joined #nixos
orivej has joined #nixos
griff_ has quit [Quit: griff_]
andoriyu has joined #nixos
dbmikus has joined #nixos
__monty__ has joined #nixos
<p01ar>
aaa
BlessJah_ is now known as BlessJah
dbmikus has quit [Ping timeout: 245 seconds]
CMCDragonkai has quit [Ping timeout: 245 seconds]
philr_ has quit [Ping timeout: 245 seconds]
CMCDragonkai has joined #nixos
philr_ has joined #nixos
WeblordPepe is now known as weblord_ru
neiluj has quit [Remote host closed the connection]
neiluj_ has quit [Remote host closed the connection]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzzโฆ]
avaq_ has quit [Remote host closed the connection]
<sterni>
f00860: what channel are you on?
<sterni>
> go.version
<{^_^}>
"1.15.7"
<f00860>
20.09
strobelight has quit [Remote host closed the connection]
<sterni>
20.09 won't see a 1.16 backport, but unstable has 1.16
avaq has joined #nixos
<f00860>
unstable is even more behind (1.15.7)
<f00860>
(according to search.nixos.org/packages)
<sterni>
that is outdated it seems, I have 1.16 and am on unstable
<f00860>
okay, good to know. I will give it a try
<f00860>
thanks
respawn_ has quit [Quit: Leaving]
lsix has joined #nixos
<everythingTaken>
hey guys, considering trying nixos (former arch user), current voidlinux user. What other selling points other than atomic upgrades, declarative config (which are main two for me)? I am happy with Void, but NixOs seems more robust, maybe more packages? I guess I will have to try it at the end
<everythingTaken>
bigger community too I think
<gchristensen>
those are definitely some big points there
<das_j>
gchristensen: oops only seeing that PR now
<das_j>
yeah but I have no idea how to test this :/
<gchristensen>
you approved it though :P
<das_j>
But I'd also be glad to see the chances of somebody accidentially breaking decl jobsets go down
strobelight has joined #nixos
Milf_37F is now known as CyberKnetsMom
CyberKnetsMom is now known as WeblordPepesMom
WeblordPepesMom is now known as TSnowsMom
FossGuy[m] has joined #nixos
<m0rphism>
I just saw weird behavior in my shell.nix caused by python39.withPackages: All hashes in /nix/store are called `eeeeeeeeeeeeeeeeeeeeeeeeeee`. Is this known/expected?
<SomeoneSerge>
Ughhh, I don't yet have time for a minimal example, but it seems that if I add pkgs.cmake to nativeBuildInputs in buildBazelPackage, then configurePhase tries to run it (and fails because there's no CMakeLists.txt)
Dr8128 has quit [Ping timeout: 264 seconds]
<bennofs>
is there any workaround for "argument list too long" errors when adding many python packages to a shell.nix env?
<bennofs>
ah maybe I should try python withPackages
crenfrow has joined #nixos
ddellacosta has quit [Remote host closed the connection]
moorg_ has left #nixos ["Using Circe, the loveliest of all IRC clients"]
Qwerky has quit [Remote host closed the connection]
teasea has joined #nixos
_Qubasa has joined #nixos
TSnowsMom is now known as WeblordPepe
saschagrunert has quit [Remote host closed the connection]
rj_ has quit [Ping timeout: 268 seconds]
vldn has joined #nixos
<vldn>
does someone use SPSS on NixOS?
rj_ has joined #nixos
<vldn>
i got "JRE libraries are missing or not compatible...."
<vldn>
at running the .bin file
<vldn>
maybe it needs ibm java or sth
hke has quit [Read error: Connection reset by peer]
hke has joined #nixos
xO1 has quit [Quit: leaving]
<simpson>
I don't know about your app in particular, but you'll probably need `nix-shell -p jre` or similar in order to get a JRE.
oxalica has quit [Quit: oxalica]
<afics>
how do I integrate file-roller into the nemo file-manager? On other distros installing both provides the "compression" file context menu in nemo
<s1341_>
sterni: i swapped the runCommand with a stdenv.mkderivation... but that doesn't return the attributes or something? what are the return values of runCommand and mkDerivation
xO1 has joined #nixos
<sterni>
s1341_: what do you mean? both return a derivation
<sterni>
s1341_: runCommand is actually a wrapper around stdenv.mkDerivation
<{^_^}>
[nixpkgs] @SuperSandro2000 opened pull request #116531 โ Remove packages which are no longer required after #116317 in packages that use grpc โ https://github.com/NixOS/nixpkgs/pull/116531
<s1341_>
sterni: on second thought I don't think it has anything to do with the runcommand..
<leex>
I am trying to setup nixos on my x1 nano and I am getting X errors: No devices detexted and no screens found, I am using videoDrivers = ["intel"]; and I am on the 20.09 channel, any idea what's going on here? happy to post both my config and the x.log
<{^_^}>
[nix] @edolstra pushed to master ยซ Merge 'nix flake {info,list-inputs}' into 'nix flake metadata' ยป: https://git.io/Jqp2Y
<exarkun>
what's a good way to boot a nixos system into ... single user mode, I guess? for root password reset. if I have access to the console via ipmi (eg I can edit the boot command line w/ the grub interface)
<colemickens>
exarkun: if you boot install media, mount things, sudo nixos-enter, and then sudo nixos-install --root /, then it's a no-op that will just re-establish the root password for the system.
<colemickens>
maybe we should have a recovery section of the manual or a page on the wiki or some such
g-w1 has joined #nixos
wnklmnn has joined #nixos
h0m1 has joined #nixos
<gchristensen>
anyone have vscode's C/C++ for Visual Studio Code plugin working?
<exarkun>
I added "boot.debug1mounts" to the command line and ran passwd and reset the shell
<exarkun>
then exited, boot continued, and I can log on as root now
<colemickens>
nice
<exarkun>
definitely much easier than supplying the install media via SMB to a private LAN :)
<colemickens>
aha
g-w1 has left #nixos ["bye"]
<leex>
I tried "modesetting" as a driver and that doesn't help either.
<leex>
ah not true :D after a reboot modesetting did it
<gchristensen>
I'm extremely novice at C++. I'm trying to have vscode be able to debug my project. I've added a bunch of paths to the vscode config to find symbols, but it can't find things that are in the C++ stdlib like atomic, math.h, ciso646. I calculated the include path via: (echo $buildInputs; echo $NIX_CFLAGS_COMPILE; echo $NIX_LDFLAGS) | tr ' ' "\n" | grep -v -- "-rpath" | sed -e 's/^-L//' | sort | uniq |
<gchristensen>
jq -R '. + "/**" ' | jq --slurp (I know this is terrible.) What am I missing?
<matthewcroughan_>
simpson: I wanna make node-red into a system service, know anything that would kill my dreams?
<{^_^}>
[nix] @Ma27 opened pull request #4646 โ Fix Nix to properly work with stores using a scoped IPv6 address โ https://github.com/NixOS/nix/pull/4646
<shapr>
What's the nix equivalent of "dpkg -S locate" ?
<shapr>
I want to update my nix-locate listings, but I don't remember the command.
<bb_>
because if I load the nix file directy the alias show up
<bb_>
weird
bitmapper has quit [Quit: Connection closed for inactivity]
<abathur>
I'm not really sure; I guess--if you don't have the alias, and expansion is enabled, and the shell hook definitely runs via direnv, and the alias is available via nix-shell--it might be running in a subshell or a different shell/process for some reason
<abathur>
someone more familiar with direnv may be able to say something smarter :)
<shapr>
How do I track down the problem when I get "marked as broken, refusing to evaluate" ?
<abathur>
bb_: the author says "direnv only deals in env vars; the .envrc is loaded in a bash sub-shell and then direnv dumps and diffs the env, and re-exports it to the target shell"
<abathur>
shapr the derivation is marked as broken, you can see https://nixos.org/manual/nixpkgs/stable/#sec-allow-broken for more on allowing broken packages to build; the build log, assuming it breaks, should make it clearer where the break is
bb_ has quit [Ping timeout: 265 seconds]
<shapr>
It seems the tests fail for a bunch of haskell packages, though I don't know why.
ahmedelgabri has joined #nixos
<kiwi23>
hello :)
<kiwi23>
I'm a total beginnr and i want to make a rust package, but it fails when it wants to use `openssl` in the build
<kiwi23>
i tried adding it to the buildInputs, but that didn't suffice.
<kiwi23>
Could anyone guide me in the right direction?
btdmaster[m] has joined #nixos
crenfrow- has left #nixos ["Using Circe, the loveliest of all IRC clients"]
ddellacosta has quit [Remote host closed the connection]
<oreoking[m]>
wait no
<oreoking[m]>
Its this for wayfire
<oreoking[m]>
meson.build:1:0: ERROR: Meson version is 0.55.1 but project requires >=0.56.0
<kraem>
srhb: thanks
<shla>
I think I installed traceroute from inetutils some time ago using nix-env, now when i'm installing it via environment.systemPackages it says something about the collision, how can I troubleshoot this problem? according to nix-env --query there are no packages installed.
<Miyu-saki>
Something something, you cuold always build it yourself though.
<sterni>
oreoking[m]: yeah, nixpkgs-wayland expects you to use nixos-unstable
<sterni>
oreoking[m]: meson on stable is to old from the looks of the error
<matthewcroughan_>
How does Nix calculate the OutPath hash from the inputs?
davidv7 has quit [Remote host closed the connection]
<matthewcroughan_>
how much compilation needs to occur?
<Miyu-saki>
What do you mean by the latter?
justanotheruser has joined #nixos
<matthewcroughan_>
If I nix eval, with no cache, it doesn't need to compile anything and can somehow magically create the necessary hashes/paths
<matthewcroughan_>
it knows what the output hash in the /nix/store is going to be
<matthewcroughan_>
how?
Baughn has quit [Client Quit]
Baughn has joined #nixos
davidv7 has joined #nixos
<Miyu-saki>
I'm not familiar with the very technicals, but `nix eval` may actually still need to compile. Nixpkgs disallows IFD, so that's not the case though.
<matthewcroughan_>
no compilation needs to occur
<Miyu-saki>
There are 2 parts in a nix build, one is instantiation -- to produce a derivations, the next is building -- to produce build artifacts. When you `nix eval` you're doing the latter, and it's basically a hashed dependency tree. I don't know how they calculate the hash specifically though.
<matthewcroughan_>
Miyu-saki: Latter would mean that you are building something, are you sure about that?
<matthewcroughan_>
Former would mean you are producing derivations.
<Miyu-saki>
s/the next is building/the next is realisation/
<Miyu-saki>
You'll see these terms in Nix 1.0 tools.
<matthewcroughan_>
when I nix eval, I am not compiling/building anything.
<matthewcroughan_>
are you sure?
<Miyu-saki>
`nix-instantiate` and `nix-store --realise`
<Miyu-saki>
Yes, you're not compiling anything when you `nix eval` most of the time.
figgyc has joined #nixos
bakerboy has joined #nixos
<Miyu-saki>
I forgot how to disable local builds.
bakerboy has quit [Remote host closed the connection]
<Miyu-saki>
Eh, /shrug
<Miyu-saki>
But for example, `nix eval '(with import <nixpkgs> {}; pkgs.callPackage (pkgs.fetchFromGitHub {owner = "adrianparvino"; repo = "ASCIIVN"; rev = "master"; sha256 = "17lf0ajkl32l5lf37rddsmkc6cll9k0pc6maac6wn0q2yqwhgw5h";}) {})'`
<Miyu-saki>
Will actually build locally, because it does IFD.
<Miyu-saki>
(import from derivation)
<figgyc>
In flakes how do you specify the branch of a git+ssh url where main is the default branch? I tried repo:main, repo#main, repo/main, and repo?branch=main and none of them work
<{^_^}>
[nixpkgs] @erictapen pushed 2 commits to release-20.09: https://git.io/JqhQe
<Miyu-saki>
I just realized something, seems like IFD cannot be controlled by `max-jobs`?
<lovesegfault>
,locate libstdc++.so.6
<{^_^}>
Found in packages: libgccjit, robomongo, gcc-unwrapped.lib
<drozdziak1>
Do music production plugins (LV2, VST et al.) set any environment variables? I mean, I can probably just make a shell.nix for this, but perhaps it would make sense for them to be enumerable OOTB
<Yaniel>
there are env variables for locating those plugins
<Yaniel>
but AFAIK they don't set any by themselves
<colemickens>
Can NixOS kernel modules live outside of nixpkgs?
<colemickens>
It seems like the ones in nixpkgs exist in a way that can be affected by linuxPackagesFor, and I don't know how to do that out-of-nixpkgs.
<colemickens>
The package naively takes "kernel" which I assume is what linuxPackagesFor is used to fill.
mcornick has quit [Remote host closed the connection]
<Miyu-saki>
colemickens: FWIW, if you're developing this for NixOS, can't you do `callPackage ./foo.nix { kernel = boot.kernelPackages.kernel; }` or something?
<colemickens>
maybe!
<yaymukun1>
I've included a systemd unit using systemd.packages = [ mycustompkg ];. I can see the file where it's supposed to be, but how do I enable it?
<Miyu-saki>
You could use systemd.services.foo.wantedBy = ["multi-user.target"] IIRC
<Miyu-saki>
(If you're not using systemd template)
<yaymukun1>
It is already WantedBy graphical-session.target, which is `active`, yet `foo.service` is inactive.
<yaymukun1>
ooo, importantly, it's a user service
<Miyu-saki>
Oh
<fresheyeball>
how can I escape '' in a bash script?
<lordcirth>
What's the best way to add 3rd party font files? I tried to set fonts.fonts = [ /home/lordcirth/fonts ]; but it's not allowed.
<fresheyeball>
I have it in a multiline string with ''
<yaymukun1>
thank you for the suggestion though. I couldn't have used default.target because it's redshift (gammastep) whihc requires graphical-session.target