1
0

Initial commit

This commit is contained in:
Presenter
2023-11-27 14:08:54 +01:00
commit 61700da006
5 changed files with 202 additions and 0 deletions

42
flake.nix Normal file
View File

@@ -0,0 +1,42 @@
{
description = "TAURI demo devshell";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/23.05";
rust-overlay.url = "github:oxalica/rust-overlay";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, rust-overlay, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs {
inherit system overlays;
};
in
with pkgs;
{
devShells.default = mkShell {
buildInputs = [
# Required MacOS frameworks:
darwin.apple_sdk.frameworks.Cocoa
darwin.apple_sdk.frameworks.Foundation
darwin.apple_sdk.frameworks.WebKit
# Probably not required MacOS frameworks:
# darwin.apple_sdk.frameworks.AppKit
# darwin.apple_sdk.frameworks.CoreFoundation
# darwin.apple_sdk.frameworks.CoreServices
# darwin.apple_sdk.frameworks.Security
nodejs
openssl
pkg-config
rust-bin.stable.latest.default
nixpkgs-fmt
];
};
}
);
}