44 lines
944 B
Nix
44 lines
944 B
Nix
{
|
|
description = "Professional website";
|
|
|
|
inputs = {
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
resume-flake.url = "path:/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
|
|
|
|
'';
|
|
};
|
|
}
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|