dump1090/flake.nix

46 lines
1.4 KiB
Nix
Raw Normal View History

2023-10-25 14:00:01 +02:00
{
description = "A flake for dump1090 with DL0XK patches.";
inputs = {
2023-12-13 12:06:33 +01:00
nixpkgs.url = "github:NixOS/nixpkgs/23.11";
2023-10-25 14:00:01 +02:00
};
2023-11-06 16:54:19 +01:00
outputs = inputs@{ self, nixpkgs, ... }:
2023-11-05 15:59:39 +01:00
let
2023-11-06 16:54:19 +01:00
lib = nixpkgs.lib;
2023-10-25 14:00:01 +02:00
2023-11-06 16:54:19 +01:00
allSystems = [ "x86_64-linux" "aarch64-linux" "armv6l-linux" ];
2023-10-25 14:00:01 +02:00
2023-11-06 16:54:19 +01:00
crossPkgs-aarch64-linux = import nixpkgs { localSystem = "x86_64-linux"; crossSystem = "aarch64-linux"; };
2023-12-13 12:06:33 +01:00
crossPkgs-armv6l-linux = import nixpkgs {
localSystem = "x86_64-linux";
crossSystem = {
system = "armv6l-linux";
gcc = {
arch = "armv6k";
fpu = "vfp";
};
};
};
2023-11-06 16:54:19 +01:00
in
{
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt;
2023-10-25 14:00:01 +02:00
2023-11-06 16:54:19 +01:00
packages = {
x86_64-linux = {
default = nixpkgs.legacyPackages.x86_64-linux.callPackage ./default.nix { };
cross-aarch64-linux = crossPkgs-aarch64-linux.callPackage ./default.nix { };
cross-armv6l-linux = crossPkgs-armv6l-linux.callPackage ./default.nix { };
};
aarch64-linux.default = nixpkgs.legacyPackages.aarch64-linux.callPackage ./default.nix { };
armv6l-linux.default = nixpkgs.legacyPackages.armv6l-linux.callPackage ./default.nix { };
};
2023-11-11 16:48:39 +01:00
nixosModules.default = { config, pkgs, ... }: {
imports = [ ./module.nix ];
_module.args.dump1090afg = self.packages;
};
2023-11-06 16:54:19 +01:00
};
2023-10-25 14:00:01 +02:00
}