32 lines
No EOL
837 B
Nix
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}"
|
|
];
|
|
};
|
|
}
|
|
);
|
|
} |