mirror of
https://github.com/hyprspace/hyprspace.git
synced 2026-09-12 19:51:07 +05:00
* add clan.lol jsonschema library * move devshell definition, add go-jsonschema package * use generated schema for config file parsing * include schema generation in build process
44 lines
970 B
Nix
44 lines
970 B
Nix
{
|
|
description = "Hyprspace";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
flake-parts = {
|
|
url = "github:hercules-ci/flake-parts";
|
|
inputs.nixpkgs-lib.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs =
|
|
inputs@{ flake-parts, ... }:
|
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
|
systems = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
"aarch64-darwin"
|
|
"x86_64-darwin"
|
|
];
|
|
flake.herculesCI.ciSystems = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
];
|
|
|
|
imports = [
|
|
./dev
|
|
];
|
|
|
|
perSystem =
|
|
{ config, pkgs, ... }:
|
|
{
|
|
packages = {
|
|
default = pkgs.callPackage ./package.nix {
|
|
generateSchemasProgram = config.apps.dev-generate-schemas.program;
|
|
};
|
|
docs = pkgs.callPackage ./docs/package.nix {
|
|
hyprspace = config.packages.default;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|