2020-06-18 22:41:01 +00:00
|
|
|
{
|
|
|
|
description = "Code behind search.nixos.org";
|
|
|
|
|
2022-01-25 16:30:21 +00:00
|
|
|
nixConfig = {
|
|
|
|
extra-substituters = [ "https://nixos-search.cachix.org" ];
|
|
|
|
extra-trusted-public-keys = [ "nixos-search.cachix.org-1:1HV3YF8az4fywnH+pAd+CXFEdpTXtv9WpoivPi+H70o=" ];
|
|
|
|
};
|
|
|
|
|
2020-06-18 22:41:01 +00:00
|
|
|
inputs = {
|
2022-03-17 22:00:10 +00:00
|
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
2020-06-18 22:41:01 +00:00
|
|
|
};
|
|
|
|
|
2022-03-17 22:00:10 +00:00
|
|
|
outputs = { self
|
|
|
|
, nixpkgs
|
|
|
|
, flake-utils
|
|
|
|
}:
|
|
|
|
flake-utils.lib.eachSystem
|
|
|
|
(with flake-utils.lib.system; [
|
|
|
|
x86_64-linux
|
|
|
|
i686-linux
|
|
|
|
x86_64-darwin
|
|
|
|
aarch64-linux
|
|
|
|
])
|
|
|
|
(system:
|
2020-06-18 22:41:01 +00:00
|
|
|
let
|
2022-03-17 22:00:10 +00:00
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
warnToUpgradeNix = pkgs.lib.warn "Please upgrade Nix to 2.7 or later.";
|
|
|
|
in rec {
|
|
|
|
|
|
|
|
packages.default = packages.flake-info;
|
|
|
|
packages.flake-info = import ./flake-info { inherit pkgs; };
|
2022-03-30 18:45:35 +00:00
|
|
|
packages.frontend = import ./frontend { inherit pkgs; };
|
2022-03-17 22:00:10 +00:00
|
|
|
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
|
|
inputsFrom = builtins.attrValues packages;
|
|
|
|
shellHook = ''
|
|
|
|
export RUST_SRC_PATH="${pkgs.rustPlatform.rustLibSrc}";
|
|
|
|
export NIXPKGS_PANDOC_FILTERS_PATH="${packages.flake-info.NIXPKGS_PANDOC_FILTERS_PATH}";
|
|
|
|
'';
|
2020-06-18 22:41:01 +00:00
|
|
|
};
|
2021-08-17 08:55:08 +00:00
|
|
|
|
2022-03-17 22:00:10 +00:00
|
|
|
# XXX: for backwards compatibility
|
|
|
|
devShell = warnToUpgradeNix devShells.default;
|
|
|
|
defaultPackage = warnToUpgradeNix packages.default;
|
|
|
|
}
|
|
|
|
);
|
2020-06-18 22:41:01 +00:00
|
|
|
}
|