diff --git a/default.nix b/default.nix index 82ea541..c472bcd 100644 --- a/default.nix +++ b/default.nix @@ -1,14 +1,17 @@ -{ stdenv, zola, lib, ... }: +{ + stdenv, + zola, + lib, + ... +}: with lib; + stdenv.mkDerivation { + pname = "posixlycorrect.com"; + version = "0.0.1"; -stdenv.mkDerivation { - pname = "posixlycorrect.com"; - version = "0.0.1"; - - src = ./posixlycorrect; - - buildPhase = '' - ${getExe zola} build --output-dir $out - ''; -} + src = ./posixlycorrect; + buildPhase = '' + ${getExe zola} build --output-dir $out + ''; + } diff --git a/flake.nix b/flake.nix index 50a2fa8..8b48840 100644 --- a/flake.nix +++ b/flake.nix @@ -3,16 +3,19 @@ flake-utils.url = "github:numtide/flake-utils"; }; - outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system: - let - pkgs = import nixpkgs { inherit system; }; - in - { + outputs = { + self, + nixpkgs, + flake-utils, + }: + flake-utils.lib.eachDefaultSystem (system: let + pkgs = import nixpkgs {inherit system;}; + in { formatter = pkgs.alejandra; packages = rec { default = posixlycorrect; - posixlycorrect = pkgs.callPackage ./. { }; + posixlycorrect = pkgs.callPackage ./. {}; }; }); }