blob: 8c817f5a57e9c3c992ff5a21752dbd63259f7ec9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
{ pkgs, ... }:
pkgs.stdenv.mkDerivation rec {
name = "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/blog
export PATH=${pkgs.lib.makeBinPath [ pkgs.hugo pkgs.git ]}
hugo server -D
'';
meta = with pkgs.lib; {
description = "franck cuny's blog";
homepage = "https://fcuny.net";
license = licenses.mit;
platforms = platforms.linux;
maintainers = [ ];
};
}
|