1
0
Files
plaintextaccounting/flake.nix
Alexis Hildebrandt b3c23ce6c1 Add Nix flake
2023-04-14 10:50:05 -10:00

27 lines
841 B
Nix

{
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
'';
};
};
});
}