mirror of
https://github.com/dwinkler1/dwinkler1.github.io.git
synced 2026-02-19 14:40:57 -05:00
Minor update
- Removed `flake-utils` dependency - Small wording change
This commit is contained in:
parent
0b395d1e19
commit
83b456d3ba
5 changed files with 48 additions and 69 deletions
47
flake.nix
47
flake.nix
|
|
@ -1,25 +1,26 @@
|
|||
# filepath: flake.nix
|
||||
{
|
||||
description = "Quarto website build";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
}: let
|
||||
systems = ["x86_64-linux" "aarch64-linux" "aarch64-darwin"];
|
||||
forAllSystems = nixpkgs.lib.genAttrs systems;
|
||||
reqPkgs = pkgs: with pkgs; [quarto];
|
||||
in {
|
||||
packages = forAllSystems (
|
||||
system: let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
reqs = with pkgs; [
|
||||
quarto
|
||||
];
|
||||
in
|
||||
{
|
||||
packages.default = pkgs.stdenv.mkDerivation {
|
||||
name = "personal website";
|
||||
website = pkgs.stdenv.mkDerivation {
|
||||
name = "personal-website";
|
||||
src = ./.;
|
||||
|
||||
buildInputs = reqs;
|
||||
buildInputs = reqPkgs pkgs;
|
||||
|
||||
buildPhase = ''
|
||||
mkdir home
|
||||
|
|
@ -32,9 +33,19 @@
|
|||
cp -r build/* $out/
|
||||
'';
|
||||
};
|
||||
in {
|
||||
default = website;
|
||||
}
|
||||
);
|
||||
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = reqs;
|
||||
devShells = forAllSystems (
|
||||
system: let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in {
|
||||
default = pkgs.mkShell {
|
||||
buildInputs = reqPkgs pkgs;
|
||||
};
|
||||
});
|
||||
}
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue