nix fmt
This commit is contained in:
parent
3893afa8b4
commit
3effecf0ce
2 changed files with 23 additions and 17 deletions
13
default.nix
13
default.nix
|
@ -1,7 +1,11 @@
|
||||||
{ stdenv, zola, lib, ... }:
|
{
|
||||||
|
stdenv,
|
||||||
|
zola,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
|
stdenv.mkDerivation {
|
||||||
stdenv.mkDerivation {
|
|
||||||
pname = "posixlycorrect.com";
|
pname = "posixlycorrect.com";
|
||||||
version = "0.0.1";
|
version = "0.0.1";
|
||||||
|
|
||||||
|
@ -10,5 +14,4 @@ stdenv.mkDerivation {
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
${getExe zola} build --output-dir $out
|
${getExe zola} build --output-dir $out
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
15
flake.nix
15
flake.nix
|
@ -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 ./. {};
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue