wiki/flake.nix

32 lines
837 B
Nix
Raw Normal View History

{
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;
2024-08-12 18:22:22 +00:00
buildPhase = "${bfom.defaultPackage."${system}"}/bin/cargo-bfom";
installPhase = "mkdir -p $out; cp -R build/* $out";
};
2024-08-12 18:22:22 +00:00
devShells."${system}".default = pkgs.mkShell {
name = "Skynet Wiki env";
nativeBuildInputs = [
2024-08-12 18:22:22 +00:00
bfom.defaultPackage."${system}"
];
2024-08-12 18:22:22 +00:00
buildInputs = [
bfom.defaultPackage."${system}"
];
};
}
);
}