Something went wrong. Try again.
A darwin-compatible alternative to nix-bundle.
nix macos darwin
Something went wrong. Try again.
nix-bundle-darwin flake.nix
699 B · 27 lines
Nix
at main
12345678910111213141516171819202122232425262728{ inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; outputs = { nixpkgs, ... }: let supportedSystems = [ "x86_64-darwin" "aarch64-darwin" # When using llvm-install-name-tool, Linux should work too "x86_64-linux" "aarch64-linux" ]; forAllSystems = nixpkgs.lib.genAttrs supportedSystems; in { packages = forAllSystems (system: { default = import ./default.nix { pkgs = nixpkgs.legacyPackages.${system}; }; }); devShells = forAllSystems (system: { default = import ./shell.nix { pkgs = nixpkgs.legacyPackages.${system}; }; }); };}