5cfde22eb7
* Add pandoc support back to rust script * Dont render invalid HTML * Bump schema version * Enable debug build workflow * Dont wrap script * Provide pandoc in check phase * Update Elasticsearch hash * Add _forked_ rust-pandoc * Execute Lua filters * Update nixpkgs containing lua filters * Expose filter path in dev Shell * Dont check pandoc think (for now) * Provide filter path at build time * Enable debug builds * Enable debug builds * rename main.yaml to frontend.yaml * Wrap flake-info with pandoc * Add makeWrapper input * Add pandoc filter path to wrapper * Wrap descriptions in XML frame * Render HTML * Disable import on PR
38 lines
1 KiB
Nix
38 lines
1 KiB
Nix
{
|
|
description = "Code behind search.nixos.org";
|
|
|
|
inputs = {
|
|
nixpkgs = { url = "nixpkgs/nixos-unstable"; };
|
|
};
|
|
|
|
outputs = { self, nixpkgs }:
|
|
let
|
|
systems = [ "x86_64-linux" "i686-linux" "x86_64-darwin" "aarch64-linux" ];
|
|
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
|
|
mkPackage = path: system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = [ ];
|
|
};
|
|
in
|
|
import path { inherit pkgs; };
|
|
packages = system:
|
|
{
|
|
flake_info = mkPackage ./flake-info system;
|
|
frontend = mkPackage ./. system;
|
|
};
|
|
|
|
devShell = system:
|
|
nixpkgs.legacyPackages.${system}.mkShell {
|
|
inputsFrom = builtins.attrValues (packages system);
|
|
NIXPKGS_PANDOC_FILTERS_PATH = "${nixpkgs + "/doc/build-aux/pandoc-filters"}";
|
|
};
|
|
in
|
|
{
|
|
defaultPackage = forAllSystems (mkPackage ./.);
|
|
packages = forAllSystems packages;
|
|
devShell = forAllSystems devShell;
|
|
};
|
|
}
|