Add nix derivation
This commit is contained in:
parent
023ab8508c
commit
76cabc152d
23
default.nix
Normal file
23
default.nix
Normal 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
|
||||
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user