Converted to flake-parts

This commit is contained in:
Greg Hellings
2024-04-22 01:38:32 -05:00
parent e69d970ad3
commit c75c17c3d0
2 changed files with 54 additions and 24 deletions
+24 -15
View File
@@ -1,18 +1,27 @@
{
description = "A basic flake with a shell";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
description = "Greg's homepage";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
devShells.default = pkgs.mkShell {
nativeBuildInputs = [
pkgs.bashInteractive
pkgs.hugo
];
buildInputs = [ ];
};
});
outputs = { self, nixpkgs, flake-parts }@inputs:
flake-parts.lib.mkFlake { inherit inputs; } {
flake = {
# Universal things
};
systems = [
"x86_64-linux"
"aarch64-linux"
];
perSystem = { config, pkgs, ... }: {
devShells.default = pkgs.mkShell {
nativeBuildInputs = [
pkgs.bashInteractive
pkgs.hugo
];
buildInputs = [ ];
};
};
};
}