Skip to content

Commit c7f06bb

Browse files
authored
freedv: clean up and improve (#382018)
2 parents 6eaf950 + 9a52b65 commit c7f06bb

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

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

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,17 @@
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+
})

0 commit comments

Comments
 (0)