mmdvm-flake/flake.nix
2024-11-07 21:53:00 +01:00

28 lines
755 B
Nix

{
description = "A flake for MMDVMHost for DB0KL.";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/24.05";
};
outputs = inputs@{ self, nixpkgs, ... }:
let
lib = nixpkgs.lib;
in
{
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt;
packages = {
x86_64-linux = {
MMDVMHost = nixpkgs.legacyPackages.x86_64-linux.callPackage ./MMDVMHost/default.nix { };
MMDVMFirmware = nixpkgs.legacyPackages.x86_64-linux.callPackage ./MMDVMFirmware/default.nix { };
};
};
nixosModules.MMDVMHost = { config, pkgs, ... }: {
imports = [ ./MMDVMHost/module.nix ];
_module.args.mmdvm_host = self.packages.x86_64-linux.MMDVMHost;
};
};
}