2024-11-05 21:30:44 +01:00
|
|
|
{
|
2024-11-07 21:53:00 +01:00
|
|
|
description = "A flake for MMDVMHost for DB0KL.";
|
2024-11-05 21:30:44 +01:00
|
|
|
inputs = {
|
2024-12-19 14:05:36 +01:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
2024-11-05 21:30:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
outputs = inputs@{ self, nixpkgs, ... }:
|
|
|
|
let
|
|
|
|
lib = nixpkgs.lib;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt;
|
|
|
|
|
|
|
|
packages = {
|
|
|
|
x86_64-linux = {
|
2024-11-07 21:53:00 +01:00
|
|
|
MMDVMHost = nixpkgs.legacyPackages.x86_64-linux.callPackage ./MMDVMHost/default.nix { };
|
|
|
|
MMDVMFirmware = nixpkgs.legacyPackages.x86_64-linux.callPackage ./MMDVMFirmware/default.nix { };
|
2024-11-05 21:30:44 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-11-07 21:53:00 +01:00
|
|
|
nixosModules.MMDVMHost = { config, pkgs, ... }: {
|
|
|
|
imports = [ ./MMDVMHost/module.nix ];
|
2024-12-19 13:58:57 +01:00
|
|
|
_module.args = {
|
|
|
|
mmdvm_host = self.packages.x86_64-linux.MMDVMHost;
|
|
|
|
mmdvm_firmware = self.packages.x86_64-linux.MMDVMFirmware;
|
|
|
|
};
|
2024-11-05 21:30:44 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|