Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

I'm trying to install the urh package - source here:

https://github.com/NixOS/nixpkgs/blob/nixos-24.05/pkgs/applications/radio/urh/default.nix

However, I wanted to enable UHD (USRP Hardware Drivers) support for this package.

It seems there's already an override for that I can use (link).

However, I can't seem to figure out the correct way to enable this.

Naively, I did try to add this to modules/shared/packages.nix directly:

❯ tail modules/shared/packages.nix 
python3
poetry
k3d
kubectl
sdrangel
uhd
urh = {
  USRPSupport = true
}
]

However, I then got a bunch of syntax errors about the "=" - and it seems that may not be the right place to add it?

I also tried adding it to modules/shared/default.nix:

❯ cat modules/shared/default.nix 
{ config, pkgs, ... }:

let
  emacsOverlaySha256 = "06413w510jmld20i4lik9b36cfafm501864yq8k4vxl5r4hn0j0h";
in
{
  
  nixpkgs = {
    config = {
      allowUnfree = true;
      allowBroken = true;
      allowInsecure = false;
      allowUnsupportedSystem = true;
    };

    urh = {
      USRPSupport = true;
    };

However, it then says it's not a recognised option - so guessing that's not the right place either?

       error: The option `nixpkgs.urh' does not exist. Definition values:
       - In `/nix/store/9gr0nf75vhfr7hmf2zci3hsf9by8lnsp-source/modules/shared':
           {
             USRPSupport = true;
           }

Does anybody know where the correct place to add this option in these templates is please?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.