summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2022-11-16 00:32:50 +0100
committerQuentin Aristote <quentin@aristote.fr>2022-11-16 00:32:50 +0100
commit8f829f172b670702cebcbc8dac62271ba98a94c6 (patch)
treeb01fddeaed96f23a97b24ded91cd204b822c02b7 /flake.nix
parent8d45a910b271cf6bfa26c0ed4007392635866dc8 (diff)
clean css with uncss at build time
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix28
1 files changed, 20 insertions, 8 deletions
diff --git a/flake.nix b/flake.nix
index a8ebbbd..704733e 100644
--- a/flake.nix
+++ b/flake.nix
@@ -1,15 +1,24 @@
{
description = "Source code of Quentin Aristote's personal webpage.";
- inputs.data = {
- url = "github:qaristote/info";
- inputs = {
- nixpkgs.follows = "/nixpkgs";
- flake-utils.follows = "/flake-utils";
+ inputs = {
+ data = {
+ url = "github:qaristote/info";
+ inputs = {
+ nixpkgs.follows = "/nixpkgs";
+ flake-utils.follows = "/flake-utils";
+ };
+ };
+ uncss = {
+ url = "github:qaristote/uncss";
+ inputs = {
+ nixpkgs.follows = "/nixpkgs";
+ flake-utils.follows = "/flake-utils";
+ };
};
};
- outputs = { self, nixpkgs, flake-utils, data }:
+ outputs = { self, nixpkgs, flake-utils, data, uncss }:
{
lib = import ./lib { inherit (nixpkgs) lib; };
overlays.default = final: prev: import ./pkgs { pkgs = final; };
@@ -17,10 +26,13 @@
let
pkgs = import nixpkgs {
inherit system;
- overlays = [ self.overlays.default ];
+ overlays = [
+ self.overlays.default
+ (final: prev: { uncss = uncss.packages."${system}".default; })
+ ];
};
in {
- packages = import ./pkgs { inherit pkgs; } // {
+ packages = import ./pkgs { inherit pkgs system; } // {
webpage = import ./default.nix {
inherit pkgs;
inherit (self.lib.pp) html;