chore(nix): add cargo-tauri

This commit is contained in:
Alice Carroll
2024-08-30 18:04:41 +03:00
parent bf4f06e4e5
commit 61a6ca571f
3 changed files with 90 additions and 11 deletions

View File

@@ -1,15 +1,27 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
# TODO: switch to nixpkgs-unstable when this commit is there
nixpkgs.url = "github:nixos/nixpkgs/69f3b4defe91949a97ca751ada931525d391e0fc";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs = inputs@{ nixpkgs, flake-parts, ... }:
outputs =
inputs@{ nixpkgs, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = nixpkgs.lib.platforms.all;
perSystem = { pkgs, ... }: {
devShells.default =
pkgs.mkShell { packages = [ pkgs.bun pkgs.nodejs ]; };
# TODO: Package LA using Nix
};
perSystem =
{ pkgs, ... }:
let
cargo-tauri = pkgs.callPackage ./nix/cargo-tauri.nix { };
in
{
devShells.default = pkgs.mkShell {
packages = [
pkgs.bun
pkgs.nodejs
cargo-tauri
];
};
# TODO: Package LA using Nix
};
};
}