New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nrsc5: init at 20171129 #32926
nrsc5: init at 20171129 #32926
Conversation
@@ -0,0 +1,644 @@ | |||
From 176e496b2a5461af122e20054079887b0b3d46a8 Mon Sep 17 00:00:00 2001 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this an upstream patch to the project?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, so this feature is basically derived from this fork? https://github.com/dsvensson/faad2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The patch is from the nrsc5 package itself, which pulls from https://github.com/dsvensson/faad2
during the build process and applies the patch. An alternative solution would be
to add a separate package faad2-hdc, which is build from dsvensson faad2 branch.
@@ -12,8 +13,11 @@ stdenv.mkDerivation rec { | |||
sha256 = "1db37ydb6mxhshbayvirm5vz6j361bjim4nkpwjyhmy4ddfinmhl"; | |||
}; | |||
|
|||
patches = [ optional hdcSupport ./faad2-hdc-support.patch ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is making an array of three things:
- the
optional
function - the value of
hdcSupport
- the patch
To make it do what you expect, you'll need:
patches = optional hdcSupport ./faad2-hdc-support.patch;
since optional returns an array:
optional = cond: elem: if cond then [elem] else [];
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the hint
Thanks for your feedback. I rewrote the expression. The new solution is now self contained, |
Motivation for this change
NRSC5 is a comand line tool to receive HD-Radio (digital radio in North America) with
a RTL-SDR radio device.
Things done
Tested with a RTL-SDR USB stick.
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)