my blog, I guess
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

31 lines
562 B

let
sources = import ./nix/sources.nix;
pkgs = import sources.nixpkgs {
overlays = [
(self: super: {
hugo-gruvbox = import sources.hugo-gruvbox;
})
];
};
in pkgs.stdenv.mkDerivation rec {
name = "ziodyne-blog";
version = "unstable";
src = ./.;
nativeBuildInputs = with pkgs; [
hugo
hugo-gruvbox
];
dontInstall = true;
buildPhase = ''
buildDir=$(pwd)
cp -rf $src/* $buildDir
chmod 777 $buildDir/themes
ln -s ${pkgs.hugo-gruvbox} $buildDir/themes/hugo-gruvbox
hugo -d "$out"
'';
}