cherrykitten.dev/flake.nix

34 lines
869 B
Nix
Raw Permalink 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";
2024-05-22 08:12:34 +00:00
installPhase = ''
mkdir -p $out/var/www
mv public $out/var/www/cherrykitten.dev
'';
2024-04-20 12:54:05 +00:00
};
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