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"; + }; + }; }