direwolf: 1.7 -> 1.8.1 (#479117)

This commit is contained in:
Felix Bühler
2026-01-12 18:08:01 +00:00
committed by GitHub
2 changed files with 9 additions and 32 deletions
@@ -21,23 +21,6 @@
hash = "sha256-W0MTS4UgbtIybhEHXm2ie50TnkvRLc23WB0FR0FGT2s=";
};
# drop upstreamed cmake-4 patch
patches = [ ];
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" ]; };
+9 -15
View File
@@ -23,23 +23,15 @@
stdenv.mkDerivation (finalAttrs: {
pname = "direwolf";
version = "1.7";
version = "1.8.1";
src = fetchFromGitHub {
owner = "wb2osz";
repo = "direwolf";
tag = finalAttrs.version;
hash = "sha256-Vbxc6a6CK+wrBfs15dtjfRa1LJDKKyHMrg8tqsF7EX4=";
hash = "sha256-CCJr3l4RxYZLrdCRwio64EzpDyErlV9JDOXD6TH8p9o=";
};
patches = [
# Fix the build with CMake 4.
(fetchpatch {
url = "https://github.com/wb2osz/direwolf/commit/c499496bbc237d0efdcacec5786607f5e17c1c7e.patch";
hash = "sha256-/gKi5dswMQM2nGHS3P72gAcHaT0nEF9O91heF8xmy2Y=";
})
];
nativeBuildInputs = [
cmake
udevCheckHook
@@ -66,15 +58,17 @@ stdenv.mkDerivation (finalAttrs: {
echo "" > scripts/CMakeLists.txt
'';
# TODO: It would be great if we could make these configurable
postPatch = ''
substituteInPlace conf/CMakeLists.txt \
--replace-fail /etc/udev/rules.d/ $out/lib/udev/rules.d/
--replace-fail /etc/udev/rules.d/ $out/lib/udev/rules.d/ \
--replace-fail /usr/lib/udev/rules.d/ $out/lib/udev/rules.d/
substituteInPlace src/symbols.c \
--replace-fail /usr/share/direwolf/symbols-new.txt $out/share/direwolf/symbols-new.txt \
--replace-fail /opt/local/share/direwolf/symbols-new.txt $out/share/direwolf/symbols-new.txt
substituteInPlace src/decode_aprs.c \
--replace-fail /usr/share/direwolf/tocalls.txt $out/share/direwolf/tocalls.txt \
--replace-fail /opt/local/share/direwolf/tocalls.txt $out/share/direwolf/tocalls.txt
substituteInPlace src/deviceid.c \
--replace-fail /usr/share/direwolf/tocalls.yaml $out/share/direwolf/tocalls.yaml \
--replace-fail /opt/local/share/direwolf/tocalls.yaml $out/share/direwolf/tocalls.yaml
substituteInPlace cmake/cpack/direwolf.desktop.in \
--replace-fail 'Terminal=false' 'Terminal=true' \
--replace-fail 'Exec=@APPLICATION_DESKTOP_EXEC@' 'Exec=direwolf'
@@ -82,7 +76,7 @@ stdenv.mkDerivation (finalAttrs: {
+ lib.optionalString extraScripts ''
patchShebangs scripts/dwespeak.sh
substituteInPlace scripts/dwespeak.sh \
--replace-fail espeak ${espeak}/bin/espeak
--replace-fail espeak ${lib.getBin espeak}
'';
doInstallCheck = true;