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 = {
|
|
|
|
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 = {
|
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 ];
|
|
|
|
_module.args.mmdvm_host = self.packages.x86_64-linux.MMDVMHost;
|
2024-11-05 21:30:44 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|