-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
39 lines (29 loc) · 848 Bytes
/
flake.nix
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
31
32
33
34
35
36
37
38
39
{
description = "bic static site generator";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
};
outputs = { self, nixpkgs }: {
defaultPackage.x86_64-linux =
with import nixpkgs { system = "x86_64-linux";};
stdenv.mkDerivation rec {
name = "bic";
src = self;
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ pandoc ];
dontStrip = true;
buildPhase = "true";
installPhase = ''
mkdir -p $out/share
cp -r bic lib .env $out/share
makeWrapper $out/share/bic $out/bin/bic \
--prefix PATH : ${lib.makeBinPath [ pandoc ]} \
'';
meta = with lib; {
description = "Opinionated minimal static site generator in a single Bash script";
homepage = "https://bic.sh/";
license = licenses.mit;
};
};
};
}