From 76cabc152dd23fa750c7ff0326b473a851337812 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Mon, 27 Mar 2023 02:17:02 -0700 Subject: [PATCH] Add nix derivation --- default.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 default.nix diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..6d8283e --- /dev/null +++ b/default.nix @@ -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 + + ''; +} +