greg.everydayimshuflin.com/flake.nix
2023-08-03 01:48:19 -07:00

44 lines
939 B
Nix

{
description = "Professional website";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
resume-flake.url = "/home/greg/code/active/resume";
};
outputs = { self, nixpkgs, flake-utils, resume-flake }:
{
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt;
} //
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
resume = resume-flake.packages.x86_64-linux.default;
in
{
packages.default = pkgs.stdenv.mkDerivation {
name = "greg.everydayimshuflin.com-website";
src = ./.;
installPhase = ''
mkdir -p $out/resume
cp index.html $out
cp style.css $out
cp self.jpg $out
cp favicon.png $out
cp ${resume}/*.pdf $out/resume
'';
};
}
);
}