mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
36 lines
1002 B
Nix
36 lines
1002 B
Nix
{
|
|
inputs = {
|
|
# TODO: switch to nixpkgs-unstable when 69f3b4defe91949a97ca751ada931525d391e0fc is there
|
|
nixpkgs.url = "github:nixos/nixpkgs/staging";
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
};
|
|
outputs =
|
|
inputs@{ nixpkgs, flake-parts, ... }:
|
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
|
systems = nixpkgs.lib.platforms.all;
|
|
perSystem =
|
|
{ pkgs, lib, ... }:
|
|
let
|
|
cargo-tauri = pkgs.callPackage ./nix/cargo-tauri.nix { };
|
|
in
|
|
{
|
|
devShells.default = pkgs.mkShell {
|
|
packages =
|
|
[
|
|
pkgs.bun
|
|
pkgs.nodejs
|
|
cargo-tauri
|
|
]
|
|
++ lib.optionals pkgs.stdenv.isDarwin (
|
|
[ pkgs.libiconv ]
|
|
++ (with pkgs.darwin.apple_sdk.frameworks; [
|
|
WebKit
|
|
OSAKit
|
|
])
|
|
);
|
|
};
|
|
# TODO: Package LA using Nix
|
|
};
|
|
};
|
|
}
|