mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
69ca85cc7b
Pulseview needs the libsigrok udev rules to be installed, this module removes the need for the enduser to think about this dependency.
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
|
|
];
|
|
};
|
|
};
|
|
}
|