2023-11-03 07:25:58 +00:00
|
|
|
{
|
2023-11-03 09:40:30 +00:00
|
|
|
description = "A personal package overlay";
|
2023-11-03 07:25:58 +00:00
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
2023-11-03 09:40:30 +00:00
|
|
|
|
|
|
|
flake-compat = {
|
|
|
|
url = "github:edolstra/flake-compat";
|
|
|
|
flake = false;
|
|
|
|
};
|
2023-11-03 07:25:58 +00:00
|
|
|
};
|
|
|
|
|
2024-07-21 21:19:39 +00:00
|
|
|
outputs = {
|
|
|
|
nixpkgs,
|
|
|
|
flake-parts,
|
|
|
|
self,
|
|
|
|
...
|
|
|
|
} @ inputs: let
|
|
|
|
pins = import ./npins;
|
|
|
|
in
|
|
|
|
flake-parts.lib.mkFlake {inherit inputs self;} {
|
2023-11-03 07:25:58 +00:00
|
|
|
systems = ["x86_64-linux" "aarch64-linux"];
|
2024-07-21 21:19:39 +00:00
|
|
|
imports = [flake-parts.flakeModules.easyOverlay];
|
|
|
|
|
|
|
|
perSystem = {
|
|
|
|
system,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (lib.filesystem) packagesFromDirectoryRecursive;
|
|
|
|
in {
|
|
|
|
_module.args.pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
overlayAttrs = config.packages;
|
|
|
|
packages = packagesFromDirectoryRecursive {
|
|
|
|
callPackage = lib.callPackageWith (pkgs // {inherit pins;});
|
|
|
|
directory = ./pkgs;
|
|
|
|
};
|
2023-11-03 07:25:58 +00:00
|
|
|
|
2023-11-03 09:40:30 +00:00
|
|
|
formatter = pkgs.alejandra;
|
2023-11-07 13:02:08 +00:00
|
|
|
devShells.default = with pkgs; mkShell {buildInputs = [npins];};
|
2023-11-03 09:40:30 +00:00
|
|
|
};
|
2023-11-03 07:25:58 +00:00
|
|
|
};
|
|
|
|
}
|