31 lines
853 B
Nix
31 lines
853 B
Nix
{
|
|
description = "A flake for MMDVMHost for DB0KL.";
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
|
};
|
|
|
|
|
|
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.default = { config, pkgs, ... }: {
|
|
imports = [ ./MMDVMHost/module.nix ];
|
|
_module.args = {
|
|
mmdvm_host = self.packages.x86_64-linux.MMDVMHost;
|
|
mmdvm_firmware = self.packages.x86_64-linux.MMDVMFirmware;
|
|
};
|
|
};
|
|
};
|
|
}
|