35 lines
654 B
Nix
35 lines
654 B
Nix
{
|
|
description = "Rixxc's Personal Website and Blog";
|
|
|
|
inputs.nixpkgs.url = "nixpkgs/nixpkgs-unstable";
|
|
|
|
outputs = { nixpkgs, ... }:
|
|
let
|
|
system = "x86_64-linux";
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in
|
|
with pkgs;
|
|
{
|
|
packages.${system}.default = stdenv.mkDerivation
|
|
{
|
|
name = "Personal Website";
|
|
src = ./.;
|
|
|
|
nativeBuildInputs = [
|
|
hugo
|
|
rsync
|
|
exiftool
|
|
];
|
|
|
|
buildPhase = ''
|
|
hugo
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir $out
|
|
cp -r public/* $out/
|
|
'';
|
|
};
|
|
};
|
|
}
|