cherrykitten.dev/flake.nix

31 lines
790 B
Nix
Raw Normal View History

2024-03-26 11:21:42 +00:00
{
2024-04-20 12:54:05 +00:00
description = "cherrykitten.dev";
2024-03-26 11:21:42 +00:00
2024-04-20 12:54:05 +00:00
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
2024-03-26 11:21:42 +00:00
2024-04-20 12:54:05 +00:00
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
packages.website = pkgs.stdenv.mkDerivation {
pname = "cherrykitten.dev";
version = "0";
src = ./.;
nativeBuildInputs = [ pkgs.zola ];
buildPhase = "zola build";
installPhase = "cp -r public $out";
};
defaultPackage = self.packages.${system}.website;
devShell = pkgs.mkShell {
packages = with pkgs; [
zola
];
};
}
);
2024-03-26 11:21:42 +00:00
}
2024-04-20 12:54:05 +00:00