Skip to content

Commit 9a52b65

Browse files
committed
freedv: provide update script
1 parent c59049b commit 9a52b65

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pkgs/by-name/fr/freedv/package.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
wxGTK32,
1919
sioclient,
2020
pulseSupport ? config.pulseaudio or stdenv.hostPlatform.isLinux,
21+
nix-update-script,
2122
}:
2223

2324
stdenv.mkDerivation (finalAttrs: {
@@ -75,6 +76,14 @@ stdenv.mkDerivation (finalAttrs: {
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";

0 commit comments

Comments
 (0)