vulpecula.zone/flake.nix

47 lines
1.3 KiB
Nix
Raw Permalink Normal View History

2024-09-04 15:44:42 +02:00
{
description = "vulpecula.zone's homepage";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {
inherit system;
};
deps = with pkgs; [
2025-02-17 15:33:30 +01:00
nodejs_20 # EOL: 2027-04-30
2024-09-04 15:44:42 +02:00
python312 # EOL: 2028-10-31
python312Packages.mkdocs
python312Packages.mkdocs-minify
python312Packages.csscompressor
python312Packages.htmlmin # htmlmin --keep-optional-attribute-quotes theme/favicon.svg theme/favicon.min.svg
rubyPackages_3_3.haml # Ruby EOL: 2027-03-31
rubyPackages_3_3.redcarpet
inkscape
imagemagick
];
in rec
{
# Nix formatter, run using `$ nix fmt`
formatter = pkgs.alejandra;
# Exports the tildefriends package
# Build with `$ nix build`
packages.default = pkgs.callPackage ./default.nix {inherit deps;};
# Creates a shell with the necessary dependencies
# Enter using `$ nix develop`
devShell = pkgs.mkShell {
buildInputs = deps;
};
});
}