forked from plaintextaccounting/plaintextaccounting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
26 lines (24 loc) · 841 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
{
description = "Website for all things related plain text accounting";
nixConfig.bash-prompt = "plaintextaccounting.org$ ";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system}; in {
packages = rec {
default = pkgs.stdenvNoCC.mkDerivation {
pname = "plaintextaccounting.org";
version = "master-${self.shortRev or "dirty"}";
src = self;
nativeBuildInputs = with pkgs; [pandoc];
installPhase = ''
runHook preInstall
mkdir -p $out/quickref
cp -R index.html css images $out
cp quickref/*.html $out/quickref
runHook postInstall
'';
};
};
});
}