mirror of
https://github.com/NuschtOS/search.git
synced 2024-11-21 11:19:06 +01:00
43 lines
1.1 KiB
Nix
43 lines
1.1 KiB
Nix
{
|
|
description = "Simple and fast static-page NixOS option search";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
ixx = {
|
|
# match version with npm package
|
|
url = "github:NuschtOS/ixx/v0.0.6";
|
|
inputs = {
|
|
nixpkgs.follows = "nixpkgs";
|
|
flake-utils.follows = "flake-utils";
|
|
};
|
|
};
|
|
};
|
|
|
|
outputs = { nixpkgs, flake-utils, ixx, ... }:
|
|
flake-utils.lib.eachDefaultSystem
|
|
(system:
|
|
let
|
|
pkgs = (import nixpkgs) {
|
|
inherit system;
|
|
};
|
|
ixxPkgs = ixx.packages.${system};
|
|
in
|
|
{
|
|
devShells.default = pkgs.mkShell {
|
|
nativeBuildInputs = with pkgs; [
|
|
nodejs
|
|
pnpm
|
|
ixxPkgs.ixx
|
|
];
|
|
};
|
|
|
|
packages = rec {
|
|
nuscht-search = pkgs.callPackage ./nix/frontend.nix { };
|
|
inherit (pkgs.callPackages ./nix/wrapper.nix { inherit ixxPkgs nuscht-search; }) mkOptionsJSON mkSearchJSON mkSearch mkMultiSearch;
|
|
default = nuscht-search;
|
|
};
|
|
}
|
|
);
|
|
}
|