From 31d0ffb7579d203571c93e99d660562c802e3b91 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Fri, 6 Dec 2024 16:33:32 -0600 Subject: [PATCH] code reuse --- flake.nix | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/flake.nix b/flake.nix index b869eeb..d10ddca 100644 --- a/flake.nix +++ b/flake.nix @@ -126,27 +126,7 @@ cp -r ${site}/public $out/public ''; }; - packages.site = pkgs.stdenv.mkDerivation rec { - name = "site"; - version = "2.0.0"; - src = ./.; - configurePhase = '' - ls - mkdir -p themes - cp -r ${blowfish} themes/blowfish - ls themes/blowfish - ''; - buildPhase = '' - NODE_ENV=production ./themes/blowfish/node_modules/tailwindcss/lib/cli.js -c ./themes/blowfish/tailwind.config.js -i ./themes/blowfish/assets/css/main.css -o ./assets/css/compiled/main.css --jit && hugo --gc --minify - ${pkgs.hugo}/bin/hugo --minify - ''; - installPhase = '' - mkdir -p $out/public - cp -r public $out/public - ''; - buildInputs = bi; - nativeBuildInputs = nbi; - }; + packages.site = ${site}; } ); }