!9IQChSjwSHXPPWTa:lix.systems

Lix

1118 Members
Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms304 Servers

Load older messages


SenderMessageTime
17 Feb 2026
@opeik:matrix.orgopeik *

it's busted?

error: flake 'flake:nixpkgs' does not provide attribute 'packages.aarch64-darwin.default' or 'defaultPackage.aarch64-darwin'

the flake.nix definitely has nixpkgs:

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; # Nix unstable packages.
    flake-utils.url = "github:numtide/flake-utils"; # Nix flake utility functions.
  };
02:26:10
@ian-h-chamberlain:matrix.orgian-h-chamberlain what does your shebang look like? it seems like you might be missing the #package selectors? 16:31:07
@yimi4:matrix.orgyimi set a profile picture.22:04:02
18 Feb 2026
@admin:rungmc.devVitriolic 👾 joined the room.02:04:03
@opeik:matrix.orgopeik

exactly the same as yours:

#!/usr/bin/env -S nix shell nixpkgs#hello nixpkgs#cowsay -c bash
hello | cowsay
02:37:12
@opeik:matrix.orgopeik *

the same as your example above:

#!/usr/bin/env -S nix shell nixpkgs#hello nixpkgs#cowsay -c bash
hello | cowsay
02:37:58
@ian-h-chamberlain:matrix.orgian-h-chamberlain

huh, maybe some quirk of macos Lix then? the nix-on-droid example worked with Lix 2.93.3 for me but my Mac with Lix 2.93.3 is also giving me a similar error

§ /tmp/test.sh
path '/tmp/test.sh' does not contain a 'flake.nix', searching up
error: could not find a flake.nix file 

also reading the manpage it seems like -S shouldn't even be needed on Darwin but is probably more portable with it. but with or without, seems to want a flake.nix file which afaik shouldn't be necessary with a fully qualified flake ref like github:nixos/nixpkgs that I was trying

06:15:26
@ian-h-chamberlain:matrix.orgian-h-chamberlain I'll try this on nixos when I have a chance then probably search for / file an issue since it seems inconsistent and I think ought to work without the fancy nix-shell parsing mentioned further up 06:22:14
@splurged:matrix.orgsplurged changed their profile picture.09:31:42
@kspatlas:tchncs.deKSP Atlas joined the room.09:57:56

There are no newer messages yet.


Back to Room ListRoom Version: 10