format using alejandra

This commit is contained in:
Paul-Nicolas Madelaine 2023-09-20 00:27:17 +02:00
parent 6f8aad157b
commit f20726136b

View file

@ -1,29 +1,30 @@
{
inputs = {
nixpkgs.url = "nixpkgs";
flake-utils.url = "flake-utils";
};
outputs = { self, nixpkgs, flake-utils, }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
outputs = {
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {inherit system;};
python = pkgs.python3.withPackages (ps:
with ps; [
markdown
(pelican.overrideAttrs (_: _: { patches = [ ./pelican.patch ]; }))
(pelican.overrideAttrs (_: _: {patches = [./pelican.patch];}))
]);
website = pkgs.stdenv.mkDerivation {
name = "website";
src = ./.;
nativeBuildInputs = [ python ];
buildFlags = [ "publish" ];
nativeBuildInputs = [python];
buildFlags = ["publish"];
installPhase = "cp -r output $out";
};
in {
packages.default = website;
devShells.default = pkgs.mkShell { packages = [ python ]; };
devShells.default = pkgs.mkShell {packages = [python];};
});
}