feat: now building it for the website
This commit is contained in:
parent
419931efdc
commit
d93a8e0a8d
2 changed files with 15 additions and 4 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -22,3 +22,7 @@ test.*
|
|||
|
||||
# Dealing with Mac users
|
||||
.DS_Store
|
||||
|
||||
# nix
|
||||
result
|
||||
/result
|
||||
|
|
15
flake.nix
15
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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue