blob: ee9ebb97aacb45033aa8c54d03793a47424ec0de (
plain) (
tree)
|
|
{ pkgs, ... }:
pkgs.stdenv.mkDerivation rec {
name = "notes.fcuny.net";
src = ./.;
nativeBuildInputs = [ pkgs.hugo pkgs.git ];
installPhase = ''
mkdir -p $out
${pkgs.hugo}/bin/hugo --minify -d $out/
'';
server = pkgs.writers.writeBashBin "run-server" ''
set -ueo pipefail
cd $(git rev-parse --show-toplevel)
cd users/fcuny/notes
export PATH=${pkgs.lib.makeBinPath [ pkgs.hugo pkgs.git ]}
hugo server -D
'';
meta = with pkgs.lib; {
description = "franck cuny's notes";
homepage = "https://notes.fcuny.net";
license = licenses.mit;
platforms = platforms.linux;
maintainers = [ ];
};
}
|