about summary refs log tree commit diff stats
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix28
1 files changed, 19 insertions, 9 deletions
diff --git a/flake.nix b/flake.nix
index 7403f7e..6625f73 100644
--- a/flake.nix
+++ b/flake.nix
@@ -9,15 +9,25 @@
         pkgs = nixpkgs.legacyPackages.${system};
       in
       {
-        devShells.default = pkgs.mkShell {
-          packages = with pkgs; [
-            brotli
-            gzip
-            zstd
-            gnugrep
-            git
-            zola
-          ];
+        packages = {
+          default = pkgs.stdenv.mkDerivation {
+            name = "alanpearce.eu";
+            src = self;
+
+            enableParallelBuilding = true;
+            makeFlags = [ "PREFIX=$(out)" ];
+
+            nativeBuildInputs = with pkgs; [
+              zola
+              fd
+              brotli
+              gzip
+              zstd
+              git
+            ];
+
+            dontFixup = true;
+          };
         };
       });
 }