diff options
author | Nikolay Korotkiy <sikmir@disroot.org> | 2023-05-28 17:17:40 +0400 |
---|---|---|
committer | Nikolay Korotkiy <sikmir@disroot.org> | 2023-05-28 17:48:39 +0400 |
commit | d7d44eb80840bbb8e338baf39c0708d3fe3be699 (patch) | |
tree | 9e7145f3fb1195b07806a31887d377dca4b58d79 /pkgs/applications/radio | |
parent | 1e37c1b93b9556093a99428c4b3fc4be451f3e3b (diff) |
rtl-sdr: fix version in librtlsdr.pc
Before the fix: ```sh $ grep Version result/lib/pkgconfig/librtlsdr.pc Version: v0.8.x-xxx-xunknown ``` It causes problem while building projects that use librtlsdr: ```sh -- Checking for module 'librtlsdr>=0.5.4' -- Requested 'librtlsdr >= 0.5.4' but version of RTL-SDR Library is v0.8.x-xxx-xunknown ``` After the fix: ```sh $ grep Version result/lib/pkgconfig/librtlsdr.pc Version: 0.8.0 ```
Diffstat (limited to 'pkgs/applications/radio')
-rw-r--r-- | pkgs/applications/radio/rtl-sdr/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/applications/radio/rtl-sdr/default.nix b/pkgs/applications/radio/rtl-sdr/default.nix index 722a0565e0de5..c0e658678061e 100644 --- a/pkgs/applications/radio/rtl-sdr/default.nix +++ b/pkgs/applications/radio/rtl-sdr/default.nix @@ -19,7 +19,8 @@ stdenv.mkDerivation rec { postPatch = '' substituteInPlace CMakeLists.txt \ - --replace '/etc/udev/rules.d' "$out/etc/udev/rules.d" + --replace '/etc/udev/rules.d' "$out/etc/udev/rules.d" \ + --replace "VERSION_INFO_PATCH_VERSION git" "VERSION_INFO_PATCH_VERSION ${lib.versions.patch version}" substituteInPlace rtl-sdr.rules \ --replace 'MODE:="0666"' 'ENV{ID_SOFTWARE_RADIO}="1", MODE="0660", GROUP="plugdev"' |