format using alejandra
This commit is contained in:
parent
6f8aad157b
commit
f20726136b
21
flake.nix
21
flake.nix
|
@ -1,29 +1,30 @@
|
||||||
{
|
{
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "nixpkgs";
|
nixpkgs.url = "nixpkgs";
|
||||||
flake-utils.url = "flake-utils";
|
flake-utils.url = "flake-utils";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, flake-utils, }:
|
outputs = {
|
||||||
flake-utils.lib.eachDefaultSystem (system:
|
self,
|
||||||
let
|
nixpkgs,
|
||||||
pkgs = import nixpkgs { inherit system; };
|
flake-utils,
|
||||||
|
}:
|
||||||
|
flake-utils.lib.eachDefaultSystem (system: let
|
||||||
|
pkgs = import nixpkgs {inherit system;};
|
||||||
python = pkgs.python3.withPackages (ps:
|
python = pkgs.python3.withPackages (ps:
|
||||||
with ps; [
|
with ps; [
|
||||||
markdown
|
markdown
|
||||||
(pelican.overrideAttrs (_: _: { patches = [ ./pelican.patch ]; }))
|
(pelican.overrideAttrs (_: _: {patches = [./pelican.patch];}))
|
||||||
]);
|
]);
|
||||||
website = pkgs.stdenv.mkDerivation {
|
website = pkgs.stdenv.mkDerivation {
|
||||||
name = "website";
|
name = "website";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
nativeBuildInputs = [ python ];
|
nativeBuildInputs = [python];
|
||||||
buildFlags = [ "publish" ];
|
buildFlags = ["publish"];
|
||||||
installPhase = "cp -r output $out";
|
installPhase = "cp -r output $out";
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
packages.default = website;
|
packages.default = website;
|
||||||
devShells.default = pkgs.mkShell { packages = [ python ]; };
|
devShells.default = pkgs.mkShell {packages = [python];};
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue