Add nix derivation

This commit is contained in:
Greg Shuflin 2023-03-27 02:17:02 -07:00
parent 023ab8508c
commit 76cabc152d
1 changed files with 23 additions and 0 deletions

23
default.nix Normal file
View File

@ -0,0 +1,23 @@
{ pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/5f9d1bb572e08ec432ae46c78581919d837a90f6.tar.gz") {}}:
let
resumePackage = pkgs.callPackage ../resume/default.nix {};
in pkgs.stdenv.mkDerivation {
name = "greg.everydayimshuflin.com-website";
src = ./.;
buildInputs = [resumePackage];
installPhase = ''
mkdir $out
cp index.html $out
cp style.css $out
cp self.jpg $out
cp favicon.png $out
mkdir $out/resume/
cp ${resumePackage}/*.pdf $out/resume
'';
}