feat: add libsigrok as pulseview dependency

This commit is contained in:
Nydragon 2024-09-18 22:47:57 +02:00
parent 8d00c45054
commit d49e2dedf2
Signed by: nydragon
SSH key fingerprint: SHA256:iQnIC12spf4QjWSbarmkD2No1cLMlu6TWoV7K6cYF5g
7 changed files with 34 additions and 7 deletions

6
flake.lock generated
View file

@ -176,11 +176,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1726062873,
"narHash": "sha256-IiA3jfbR7K/B5+9byVi9BZGWTD4VSbWe8VLpp9B/iYk=",
"lastModified": 1726463316,
"narHash": "sha256-gI9kkaH0ZjakJOKrdjaI/VbaMEo9qBbSUl93DnU7f4c=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "4f807e8940284ad7925ebd0a0993d2a1791acb2f",
"rev": "99dc8785f6a0adac95f5e2ab05cc2e1bf666d172",
"type": "github"
},
"original": {

View file

@ -56,7 +56,6 @@
soundconverter
foliate
kid3
pulseview
prismlauncher
# proprietary

View file

@ -41,6 +41,8 @@
HibernateDelaySec=1200
'';
programs.pulseview.enable = true;
specialisation = {
gpu.configuration = {
imports = [ inputs.nixos-hardware.nixosModules.dell-xps-15-9510-nvidia ];

View file

@ -51,7 +51,6 @@
varia
signal-desktop
calibre
pulseview
foot
# Proprietary

View file

@ -1,9 +1,7 @@
{ lib, ... }:
let
inherit (lib.types) bool array string;
in
{
options = {
device = {

28
options/pulseview.nix Normal file
View file

@ -0,0 +1,28 @@
{
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
];
};
};
}

View file

@ -26,6 +26,7 @@
modules = [
"${self}/hosts/${hostname}/configuration.nix"
"${self}/options"
"${self}/options/pulseview.nix"
{ networking.hostName = hostname; }
] ++ extraModules;
specialArgs = {