2023-09-30 18:08:15 +00:00
|
|
|
{
|
2024-08-11 21:29:00 +00:00
|
|
|
description = "Skynet Wiki";
|
2023-09-30 18:08:15 +00:00
|
|
|
|
|
|
|
inputs = {
|
|
|
|
utils.url = "github:numtide/flake-utils";
|
2024-08-11 21:29:00 +00:00
|
|
|
bfom.url = "gitlab:silver_rust/bfom";
|
2023-09-30 18:08:15 +00:00
|
|
|
};
|
|
|
|
|
2024-08-11 21:29:00 +00:00
|
|
|
outputs = { self, nixpkgs, utils, bfom }: utils.lib.eachDefaultSystem (system:
|
2023-09-30 18:08:15 +00:00
|
|
|
let
|
|
|
|
pkgs = nixpkgs.legacyPackages."${system}";
|
|
|
|
in rec {
|
|
|
|
# `nix build`
|
|
|
|
defaultPackage = pkgs.stdenv.mkDerivation {
|
|
|
|
name = "skynet-website-renew";
|
|
|
|
src = self;
|
|
|
|
installPhase = "mkdir -p $out; cp -R src/* $out";
|
|
|
|
};
|
2024-08-11 21:29:00 +00:00
|
|
|
|
|
|
|
devShells.x86_64-linux.default = pkgs.mkShell {
|
|
|
|
name = "Skynet Wiki env";
|
|
|
|
nativeBuildInputs = [
|
|
|
|
bfom.defaultPackage.x86_64-linux
|
|
|
|
];
|
|
|
|
};
|
2023-09-30 18:08:15 +00:00
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|