36 lines
884 B
Nix
36 lines
884 B
Nix
{
|
|
inputs = {
|
|
my-flake.url = "github:Jaculabilis/my-flake";
|
|
nixpkgs.url = "github:NixOS/nixpkgs?ref=refs/tags/22.11";
|
|
flake-compat = {
|
|
url = "github:edolstra/flake-compat";
|
|
flake = false;
|
|
};
|
|
};
|
|
|
|
outputs = { self, my-flake, nixpkgs, flake-compat }:
|
|
let
|
|
systems = [ "aarch64-linux" "x86_64-linux" ];
|
|
each = system:
|
|
let
|
|
pkgs = (import nixpkgs {
|
|
inherit system;
|
|
overlays = [ self.overlays.default ];
|
|
});
|
|
in {
|
|
packages.${system}.default = pkgs.inquisitor;
|
|
|
|
devShells.${system}.default = pkgs.mkShell {
|
|
buildInputs = [ (pkgs.python3.withPackages (p: [p.poetry])) ];
|
|
};
|
|
};
|
|
in (my-flake.outputs-for each systems) //
|
|
{
|
|
overlays.default = final: prev: {
|
|
inquisitor = (final.poetry2nix.mkPoetryApplication {
|
|
projectDir = ./.;
|
|
}).dependencyEnv;
|
|
};
|
|
};
|
|
}
|