alqages/flake.nix

35 lines
1.1 KiB
Nix
Raw Normal View History

2025-02-10 20:28:46 +00:00
{
description = "Alqages, packages from alqueva to here.";
2025-04-02 20:37:22 +01:00
inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; };
2025-02-10 20:28:46 +00:00
2025-04-02 20:37:22 +01:00
outputs = inputs@{ self, nixpkgs, }:
let
inherit (nixpkgs) lib;
eachSystem = f:
nixpkgs.lib.genAttrs [ "x86_64-linux" "aarch64-linux" ] (system:
f {
inherit system;
pkgs = nixpkgs.legacyPackages.${system};
});
in {
overlays.default = _: prev:
lib.pipe (builtins.readDir ./packages) [
(lib.filterAttrs (_: v: v == "directory"))
(lib.concatMapAttrs (name: _: {
${name} = prev.callPackage ./packages/${name} { inherit inputs; };
}))
];
2025-02-10 20:28:46 +00:00
2025-04-02 20:37:22 +01:00
packages = eachSystem ({ pkgs, ... }: self.overlays.default pkgs pkgs);
devShells = eachSystem ({ pkgs, ... }: {
default = pkgs.mkShell {
name = "alqages-dev";
packages =
builtins.attrValues { inherit (pkgs) nil nixfmt deadnix statix; };
};
});
formatter = eachSystem ({ pkgs, ... }: pkgs.nixfmt);
};
2025-02-10 20:28:46 +00:00
}