diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2025-02-16 23:55:26 +0100 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2025-02-22 21:14:40 +0100 |
| commit | f9e2ddae012c56c2690f6fc99627a7996dccee6f (patch) | |
| tree | 2028e0abc072f85e00748841bb1fdb8e400536d2 /flake.nix | |
| parent | af3f5ba54e4c044316d6cceb1564abc318aa80c0 (diff) | |
move building inside package
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 36 |
1 files changed, 14 insertions, 22 deletions
@@ -18,11 +18,7 @@ my-nixpkgs, ... } @ inputs: - flake-parts.lib.mkFlake {inherit inputs;} ({ - self, - lib, - ... - }: { + flake-parts.lib.mkFlake {inherit inputs;} ({lib, ...}: { imports = builtins.attrValues {inherit (my-nixpkgs.flakeModules) personal;}; flake.lib = import ./lib {inherit lib;}; @@ -32,24 +28,20 @@ pkgs, system, ... - }: { - packages = let - pkgs' = pkgs.extend ( - _: _: { - uncss = inputs.uncss.packages."${system}".default; - line-awesome-css = my-nixpkgs.packages."${system}".static_css_lineAwesome; - } - ); - html = self.lib.pp.html; - in { + }: let + pkgs' = pkgs.extend ( + _: _: { + uncss = inputs.uncss.packages."${system}".default; + line-awesome-css = my-nixpkgs.packages."${system}".static_css_lineAwesome; + } + ); + in { + packages = { default = self'.packages.webpage; - webpage = import ./default.nix { - inherit html; - pkgs = pkgs'; - data = inputs.data.lib.formatWith { - inherit pkgs; - markup = html; - }; + webpage = pkgs'.callPackage ./default.nix { + nixpkgsSrc = inputs.nixpkgs.outPath; + src = pkgs'.callPackage ./src.nix {}; + data = inputs.data.packages."${system}".src; }; }; }; |
