From d93a8e0a8d0e596b3c8c0fdf98bfa194faea2027 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Thu, 28 Sep 2023 00:15:41 +0100 Subject: [PATCH] feat: now building it for the website --- .gitignore | 4 ++++ flake.nix | 15 +++++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 4a79ea1..8b30a2d 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,7 @@ test.* # Dealing with Mac users .DS_Store + +# nix +result +/result diff --git a/flake.nix b/flake.nix index d135416..df433f6 100644 --- a/flake.nix +++ b/flake.nix @@ -3,10 +3,10 @@ description = "Skynet Presentations"; inputs = { - utils.url = "github:numtide/flake-utils"; + utils.url = "github:numtide/flake-utils"; - # nix flake lock --update-input bfom - bfom.url = "gitlab:silver_rust/bfom"; + # nix flake lock --update-input bfom + bfom.url = "gitlab:silver_rust/bfom"; }; outputs = { self, nixpkgs, bfom, ... } @inputs: @@ -18,6 +18,13 @@ type = "app"; program = "${bfom.defaultPackage.x86_64-linux}/bin/cargo-bfom"; }; - }; + # `nix build` + packages.x86_64-linux.default = pkgs.stdenv.mkDerivation { + name = "slides.skynet.ie"; + src = self; + buildPhase = "${bfom.defaultPackage.x86_64-linux}/bin/cargo-bfom"; + installPhase = "mkdir -p $out; cp -R build/* $out"; + }; + }; }