greg.everydayimshuflin.com/flake.nix

44 lines
939 B
Nix
Raw Normal View History

2023-06-17 01:11:27 -07:00
{
2023-06-17 02:07:48 -07:00
description = "Professional website";
2023-06-17 01:11:27 -07:00
inputs = {
flake-utils.url = "github:numtide/flake-utils";
2023-08-03 01:48:19 -07:00
resume-flake.url = "/home/greg/code/active/resume";
2023-08-03 01:41:56 -07:00
2023-06-17 01:11:27 -07:00
};
outputs = { self, nixpkgs, flake-utils, resume-flake }:
2023-06-17 01:11:27 -07:00
{
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;
2023-06-17 01:11:27 -07:00
in
{
2023-06-17 02:07:48 -07:00
packages.default = pkgs.stdenv.mkDerivation {
2023-06-17 01:11:27 -07:00
name = "greg.everydayimshuflin.com-website";
src = ./.;
installPhase = ''
2023-06-17 02:07:48 -07:00
mkdir -p $out/resume
2023-06-17 01:11:27 -07:00
cp index.html $out
cp style.css $out
cp self.jpg $out
cp favicon.png $out
cp ${resume}/*.pdf $out/resume
2023-06-17 01:11:27 -07:00
'';
};
}
);
}