43 lines
1.3 KiB
Nix
43 lines
1.3 KiB
Nix
{
|
|
|
|
inputs = {
|
|
# TODO(jwall): Pinning this to a fixed version of lua on darwin for now.
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=22.05-beta";
|
|
darwin.url = "github:lnl7/nix-darwin";
|
|
darwin.inputs.nixpkgs.follows = "nixpkgs";
|
|
runwhen.url = "github:zaphar/runwhen?ref=v0.0.5";
|
|
durnitisp.url = "github:zaphar/durnitisp";
|
|
rust-overlay = {
|
|
url = "github:oxalica/rust-overlay";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
jj.url = "github:martinvonz/jj";
|
|
};
|
|
|
|
outputs = {self, nixpkgs, darwin, runwhen, durnitisp, rust-overlay, jj }:
|
|
let
|
|
forSystem = (system:
|
|
let
|
|
pkgs = import nixpkgs { inherit system; };
|
|
in
|
|
darwin.lib.darwinSystem rec {
|
|
inherit system;
|
|
modules = [
|
|
./darwin-configuration.nix
|
|
];
|
|
inputs = {
|
|
runwhen = runwhen.defaultPackage."${system}";
|
|
durnitisp = durnitisp.defaultPackage."${system}";
|
|
rust-overlay = rust-overlay.overlay;
|
|
#TODO(jwall): when the libtexpdf issue is fixed we can stop doing this
|
|
sile = pkgs.sile.overrideAttrs(oldAttrs: { doCheck = false; });
|
|
jj = jj.defaultPackage."${system}";
|
|
};
|
|
});
|
|
in
|
|
{
|
|
darwinConfigurations."jeremys-mbp" = forSystem "aarch64-darwin";
|
|
darwinConfigurations."jeremys-mbpx86" = forSystem "x86_64-darwin";
|
|
};
|
|
}
|