nur/flake.nix

33 lines
1.0 KiB
Nix

2023-04-12 14:45:08 +02:00
{
description = "My personal NUR repository";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
2023-05-07 01:35:31 +02:00
inputs.mach-nixpkgs.url = "github:nixos/nixpkgs/9fd0585f7dc9b85eb5d426396004cc649261e60d";
inputs.mach-nix = {
url = "github:davhau/mach-nix/6cd3929b1561c3eef68f5fc6a08b57cf95c41ec1";
inputs.nixpkgs.follows = "mach-nixpkgs";
inputs.pypi-deps-db = {
url = "github:davhau/pypi-deps-db/e9571cac25d2f509e44fec9dc94a3703a40126ff";
inputs.nixpkgs.follows = "mach-nixpkgs";
};
};
outputs = { self, nixpkgs, mach-nixpkgs, mach-nix }:
2023-04-12 14:45:08 +02:00
let
systems = [
"x86_64-linux"
"i686-linux"
"x86_64-darwin"
"aarch64-linux"
"armv6l-linux"
"armv7l-linux"
];
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
in
{
packages = forAllSystems (system: import ./default.nix {
pkgs = import nixpkgs { inherit system; };
2023-05-07 01:35:31 +02:00
mach-nixpkgs = import mach-nixpkgs { inherit system; };
inherit mach-nix system;
2023-04-12 14:45:08 +02:00
});
};
}