diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 26 |
1 files changed, 5 insertions, 21 deletions
@@ -12,10 +12,6 @@ url = "github:cachix/pre-commit-hooks.nix"; inputs.nixpkgs.follows = "nixpkgs"; }; - radion-theme = { - url = "github:micahkepe/radion"; - flake = false; - }; }; outputs = @@ -28,25 +24,17 @@ systems = [ "x86_64-linux" ]; perSystem = { config, pkgs, ... }: - let - theme = inputs.radion-theme; - themeName = ((builtins.fromTOML (builtins.readFile "${theme}/theme.toml")).name); - in { packages = { default = config.packages.website; website = pkgs.stdenv.mkDerivation { pname = "sorre-website"; - version = "2026-02-20"; + version = "2026-02-21"; src = ./.; - nativeBuildInputs = [ pkgs.zola ]; - configurePhase = '' - mkdir -p "themes/${themeName}" - cp -r ${theme}/* "themes/${themeName}" - ''; - buildPhase = "zola build"; - installPhase = "cp -r public $out"; + nativeBuildInputs = [ pkgs.soupault pkgs.pandoc ]; + buildPhase = "soupault"; + installPhase = "cp -r build $out"; }; docker-image = pkgs.dockerTools.buildImage { @@ -82,11 +70,7 @@ minimalMkShell = pkgs.mkShell.override { stdenv = stdenvMinimal; }; in minimalMkShell { - packages = with pkgs; [ zola ] ++ builtins.attrValues config.treefmt.build.programs; - shellHook = '' - mkdir -p themes - ln -sn "${theme}" "themes/${themeName}" - ''; + packages = with pkgs; [ soupault ] ++ builtins.attrValues config.treefmt.build.programs; }; treefmt = { |
