15 featuresOverride ? { },
18 stdenv.mkDerivation (finalAttrs: {
20 # The stable release doen't include the commit the came after 3.16 which
21 # added support for cmake options instead of using cmake set() commands. See
22 # also: https://github.com/JvanKatwijk/sdr-j-fm/pull/25
23 version = "3.16-unstable-2023-12-07";
25 src = fetchFromGitHub {
26 owner = "JvanKatwijk";
28 rev = "8e3a67f8fbf72dd6968cbeb2e3d7d513fd107c71";
29 hash = "sha256-l9WqfhDp2V01lhleYZqRpmyL1Ww+tJj10bjkMMlvyA0=";
47 cmakeFlags = lib.mapAttrsToList lib.cmakeBool finalAttrs.passthru.features;
51 # All of these features don't require an external depencies, althought it
52 # may be implied - upstraem bundles everything they need in their repo.
58 # Some more cmake flags are mentioned in upstream's CMakeLists.txt file
59 # but they don't actually make a difference.
60 } // featuresOverride;
64 # Weird default of upstream
65 mv $out/linux-bin $out/bin
69 description = "SDR based FM radio receiver software";
70 homepage = "https://github.com/JvanKatwijk/sdr-j-fm";
71 license = licenses.gpl2Only;
72 maintainers = with maintainers; [ doronbehar ];
73 # Upstream doesn't find libusb1 on Darwin. Upstream probably doesn't
74 # support it officially.
75 platforms = platforms.linux;