File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 1818 wxGTK32 ,
1919 sioclient ,
2020 pulseSupport ? config . pulseaudio or stdenv . hostPlatform . isLinux ,
21+ nix-update-script ,
2122} :
2223
23- stdenv . mkDerivation rec {
24+ stdenv . mkDerivation ( finalAttrs : {
2425 pname = "freedv" ;
2526 version = "1.9.9.2" ;
2627
2728 src = fetchFromGitHub {
2829 owner = "drowe67" ;
2930 repo = "freedv-gui" ;
30- tag = "v${ version } " ;
31+ tag = "v${ finalAttrs . version } " ;
3132 hash = "sha256-oFuAH81mduiSQGIDgDDy1IPskqqCBmfWbpqQstUIw9g=" ;
3233 } ;
3334
@@ -75,6 +76,14 @@ stdenv.mkDerivation rec {
7576 makeWrapper $out/Applications/FreeDV.app/Contents/MacOS/FreeDV $out/bin/freedv
7677 '' ;
7778
79+ passthru . updateScript = nix-update-script {
80+ extraArgs = [
81+ # avoid pre‐releases
82+ "--version-regex"
83+ ''^v(\d\.\d\.\d(\.\d)?)$''
84+ ] ;
85+ } ;
86+
7887 meta = {
7988 homepage = "https://freedv.org/" ;
8089 description = "Digital voice for HF radio" ;
@@ -86,4 +95,4 @@ stdenv.mkDerivation rec {
8695 platforms = lib . platforms . unix ;
8796 mainProgram = "freedv" ;
8897 } ;
89- }
98+ } )
You can’t perform that action at this time.
0 commit comments