-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
32 lines (28 loc) · 951 Bytes
/
flake.nix
File metadata and controls
32 lines (28 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
description = "Equaliser macOS app devshell";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs = {nixpkgs, ...}: let
systems = ["aarch64-darwin"];
in {
devShells = nixpkgs.lib.genAttrs systems (system: let
pkgs = import nixpkgs {inherit system;};
in {
default = pkgs.mkShellNoCC {
name = "equaliser-devshell";
packages = with pkgs; [
librsvg # SVG to PNG conversion (rsvg-convert)
gh # GitHub CLI for releases
create-dmg # DMG creation for app distribution
];
shellHook = ''
# Use system Xcode toolchain (append to preserve existing PATH)
export DEVELOPER_DIR="/Applications/Xcode.app/Contents/Developer"
export PATH="$PATH:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin"
export PATH="$PATH:/usr/bin"
'';
};
});
};
}