Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanw committed Oct 29, 2023
2 parents 1904758 + bffd79f commit 745331f
Show file tree
Hide file tree
Showing 20 changed files with 164 additions and 167 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
uses: DeterminateSystems/nix-installer-action@v6
- uses: cachix/cachix-action@v12
with:
name: yuanwang-wf
Expand Down
117 changes: 67 additions & 50 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 5 additions & 9 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

inputs = {
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-23.05";
nixpkgs-master.url = "github:nixos/nixpkgs/master";
# https://github.com/NixOS/nixpkgs/pull/257760
ollama-nixpkgs.url = "github:elohmeier/nixpkgs/ollama";
nixpkgs.url = "nixpkgs/nixos-unstable";
nix-darwin = {
url = "github:LnL7/nix-darwin/master";
Expand Down Expand Up @@ -59,18 +62,11 @@
inputs.treefmt-nix.flakeModule
inputs.haskell-flake.flakeModule
];
perSystem = { config, system, pkgs, ... }: {
perSystem = { system, ... }: {
_module.args.pkgs = import inputs.nixpkgs {
inherit system;
overlays = [
(_final: _prev: {
# https://gitlab.freedesktop.org/mesa/mesa/-/issues/8634
mesa = if _prev.stdenv.isDarwin then inputs.nixpkgs-stable.legacyPackages.${_prev.system}.mesa else
inputs.nixpkgs.legacyPackages.${_prev.system}.mesa;
})
];
config = {
allowUnsupportedSystem = true;
allowUnfree = true;
};
};
haskellProjects.default = {
Expand Down
3 changes: 3 additions & 0 deletions garnix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ builds:
- 'packages.aarch64-darwin.asche'
- 'packages.x86_64-linux.yuanw'
- 'packages.x86_64-linux.ci'
- 'packages.aarch64-darwin.ci'
- 'packages.aarch64-darwin.yuanw'
- 'packages.aarch64-darwin.wk01174'
- 'packages.x86_64-linux.wk01174'
include:
- '*.x86_64-linux.*'
Expand Down
Loading

0 comments on commit 745331f

Please sign in to comment.