Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
28 lines
445 B
Nix
28 lines
445 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
let
|
|
cfg = config.programs.pulseview;
|
|
in
|
|
{
|
|
options.programs.pulseview = {
|
|
enable = lib.mkEnableOption "pulseview, a sigrok GUI";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
environment.systemPackages = [
|
|
pkgs.pulseview
|
|
];
|
|
|
|
services.udev = {
|
|
packages = [
|
|
# Pulseview needs some udev rules provided by libsigrok to access devices
|
|
pkgs.libsigrok
|
|
];
|
|
};
|
|
};
|
|
}
|