28 lines
755 B
Nix
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;
|
|
};
|
|
};
|
|
}
|