diff --git a/pkgs/by-name/di/direwolf-unstable/package.nix b/pkgs/by-name/di/direwolf-unstable/package.nix new file mode 100644 index 000000000000..7a9352f7ffb4 --- /dev/null +++ b/pkgs/by-name/di/direwolf-unstable/package.nix @@ -0,0 +1,41 @@ +{ + lib, + fetchFromGitHub, + direwolf, + nix-update-script, + hamlibSupport ? true, + gpsdSupport ? true, + extraScripts ? false, +}: + +(direwolf.override { + inherit hamlibSupport gpsdSupport extraScripts; +}).overrideAttrs + (oldAttrs: { + version = "1.7-unstable-2025-04-29"; + + src = fetchFromGitHub { + owner = "wb2osz"; + repo = "direwolf"; + rev = "486b3cf1f685502af7dc87b0f9c9cead6800d47b"; + hash = "sha256-VFBkOWHGZP7GjekHL3GY3BGkVXQbtyD1YPmu0xaQ1ME="; + }; + + postPatch = + builtins.replaceStrings + [ + "decode_aprs.c" + "tocalls.txt" + "--replace-fail /etc/udev/rules.d/" + ] + [ + "deviceid.c" + "tocalls.yaml" + "--replace-fail /usr/lib/udev/rules.d/ $out/lib/udev/rules.d/ --replace-fail /etc/udev/rules.d/" + ] + oldAttrs.postPatch; + + dontVersionCheck = true; + + passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch=dev" ]; }; + })