This commit is contained in:
Fabian Montero 2025-08-26 00:34:31 -06:00
parent 3893afa8b4
commit 3effecf0ce
2 changed files with 23 additions and 17 deletions

View file

@ -1,14 +1,17 @@
{ stdenv, zola, lib, ... }: {
stdenv,
zola,
lib,
...
}:
with lib; with lib;
stdenv.mkDerivation {
pname = "posixlycorrect.com";
version = "0.0.1";
stdenv.mkDerivation { src = ./posixlycorrect;
pname = "posixlycorrect.com";
version = "0.0.1";
src = ./posixlycorrect;
buildPhase = ''
${getExe zola} build --output-dir $out
'';
}
buildPhase = ''
${getExe zola} build --output-dir $out
'';
}

View file

@ -3,16 +3,19 @@
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
}; };
outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system: outputs = {
let self,
pkgs = import nixpkgs { inherit system; }; nixpkgs,
in flake-utils,
{ }:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {inherit system;};
in {
formatter = pkgs.alejandra; formatter = pkgs.alejandra;
packages = rec { packages = rec {
default = posixlycorrect; default = posixlycorrect;
posixlycorrect = pkgs.callPackage ./. { }; posixlycorrect = pkgs.callPackage ./. {};
}; };
}); });
} }