wiki/flake.nix
Brendan Golden d294ae428b
All checks were successful
Build / build (push) Successful in 1m2s
Build / deploy (push) Successful in 13s
feat: switched over to using markdown
2024-08-12 19:23:22 +01:00

32 lines
No EOL
837 B
Nix

{
description = "Skynet Wiki";
inputs = {
utils.url = "github:numtide/flake-utils";
bfom.url = "gitlab:silver_rust/bfom";
};
outputs = { self, nixpkgs, utils, bfom }: utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages."${system}";
in rec {
# `nix build`
defaultPackage = pkgs.stdenv.mkDerivation {
name = "skynet-website-renew";
src = self;
buildPhase = "${bfom.defaultPackage."${system}"}/bin/cargo-bfom";
installPhase = "mkdir -p $out; cp -R build/* $out";
};
devShells."${system}".default = pkgs.mkShell {
name = "Skynet Wiki env";
nativeBuildInputs = [
bfom.defaultPackage."${system}"
];
buildInputs = [
bfom.defaultPackage."${system}"
];
};
}
);
}