mirror of
https://github.com/ethersync/ethersync.git
synced 2025-08-02 04:07:29 +03:00
25 lines
884 B
Nix
25 lines
884 B
Nix
# SPDX-FileCopyrightText: 2024 MangoIV <contact@mangoiv.com>
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
{
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
parts.url = "github:hercules-ci/flake-parts";
|
|
};
|
|
outputs = inputs:
|
|
inputs.parts.lib.mkFlake {inherit inputs;} {
|
|
systems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
|
|
perSystem = {pkgs, ...}: let
|
|
ethersync-packages = import ./contrib/nix/default.nix {inherit pkgs;};
|
|
in {
|
|
packages = rec {
|
|
inherit (ethersync-packages) ethersync ethersync-static nvim-ethersync;
|
|
default = ethersync;
|
|
neovim = ethersync-packages.neovim-with-ethersync;
|
|
};
|
|
devShells.default = import ./contrib/nix/shell.nix {inherit pkgs;};
|
|
};
|
|
flake.overlays.default = import ./contrib/nix/overlay.nix {};
|
|
};
|
|
}
|