From 44f813ce1517b454e2fa601fa6c1d4df3024b1d2 Mon Sep 17 00:00:00 2001 From: Daragh Downes Date: Mon, 19 Aug 2024 22:32:18 +0100 Subject: [PATCH] mkdocs flake --- flake.nix | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/flake.nix b/flake.nix index 5f29d6f..586c0a0 100644 --- a/flake.nix +++ b/flake.nix @@ -3,27 +3,30 @@ inputs = { utils.url = "github:numtide/flake-utils"; - bfom.url = "gitlab:silver_rust/bfom"; }; - outputs = { self, nixpkgs, utils, bfom }: utils.lib.eachDefaultSystem (system: + outputs = { self, nixpkgs, utils, }: utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages."${system}"; - in rec { - # `nix build` + in { defaultPackage = pkgs.stdenv.mkDerivation { - name = "skynet-website-renew"; + name = "skynet-wiki"; src = self; - buildPhase = "${bfom.defaultPackage."${system}"}/bin/cargo-bfom"; - installPhase = "mkdir -p $out; cp -R build/* $out"; + buildInputs = [ + pkgs.python3Packages.mkdocs + pkgs.python3Packages.mkdocs-material + ]; + buildPhase = "mkdocs build"; + installPhase = "mkdir -p $out; cp -R site/* $out;"; }; devShells.default = pkgs.mkShell { name = "Skynet Wiki env"; packages = [ - bfom.defaultPackage."${system}" + pkgs.python3Packages.mkdocs + pkgs.python3Packages.mkdocs-material ]; }; } ); -} \ No newline at end of file +}