mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-08 16:31:28 +03:00
nix: Add aarch64-darwin package and devshell (#108)
Enable building and developing using nix on aarch64-darwin
This commit is contained in:
22
.github/workflows/cachix.yml
vendored
22
.github/workflows/cachix.yml
vendored
@@ -3,8 +3,14 @@ name: Binary Cache
|
|||||||
on: [push, pull_request, workflow_dispatch]
|
on: [push, pull_request, workflow_dispatch]
|
||||||
jobs:
|
jobs:
|
||||||
nix:
|
nix:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os:
|
||||||
|
- ubuntu-latest
|
||||||
|
- macos-latest
|
||||||
|
- macos-14
|
||||||
name: "Build"
|
name: "Build"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -20,5 +26,15 @@ jobs:
|
|||||||
name: lan-mouse
|
name: lan-mouse
|
||||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||||
|
|
||||||
- name: Build lan-mouse
|
- name: Build lan-mouse (x86_64-linux)
|
||||||
run: nix build --print-build-logs
|
if: matrix.os == 'ubuntu-latest'
|
||||||
|
run: nix build --print-build-logs --show-trace .#packages.x86_64-linux.lan-mouse
|
||||||
|
|
||||||
|
- name: Build lan-mouse (x86_64-darwin)
|
||||||
|
if: matrix.os == 'macos-latest'
|
||||||
|
run: nix build --print-build-logs --show-trace .#packages.x86_64-darwin.lan-mouse
|
||||||
|
|
||||||
|
- name: Build lan-mouse (aarch64-darwin)
|
||||||
|
if: matrix.os == 'macos-14'
|
||||||
|
run: nix build --print-build-logs --show-trace .#packages.aarch64-darwin.lan-mouse
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
}: let
|
}: let
|
||||||
inherit (nixpkgs) lib;
|
inherit (nixpkgs) lib;
|
||||||
genSystems = lib.genAttrs [
|
genSystems = lib.genAttrs [
|
||||||
|
"aarch64-darwin"
|
||||||
|
"x86_64-darwin"
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
];
|
];
|
||||||
pkgsFor = system:
|
pkgsFor = system:
|
||||||
@@ -49,6 +51,8 @@
|
|||||||
gtk4
|
gtk4
|
||||||
libadwaita
|
libadwaita
|
||||||
xorg.libXtst
|
xorg.libXtst
|
||||||
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
|
darwin.apple_sdk_11_0.frameworks.CoreGraphics
|
||||||
];
|
];
|
||||||
|
|
||||||
RUST_SRC_PATH = "${rust}/lib/rustlib/src/rust/library";
|
RUST_SRC_PATH = "${rust}/lib/rustlib/src/rust/library";
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ rustPlatform.buildRustPackage {
|
|||||||
gtk4
|
gtk4
|
||||||
libadwaita
|
libadwaita
|
||||||
xorg.libXtst
|
xorg.libXtst
|
||||||
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
|
darwin.apple_sdk_11_0.frameworks.CoreGraphics
|
||||||
];
|
];
|
||||||
|
|
||||||
src = builtins.path {
|
src = builtins.path {
|
||||||
|
|||||||
Reference in New Issue
Block a user