sdrangel: use finalAttrs pattern

This commit is contained in:
Pol Dellaiera 2023-08-16 17:13:27 +02:00
parent 7226b2ddf2
commit ba1c676cf4
No known key found for this signature in database
GPG key ID: D476DFE9C67467CA

View file

@ -48,18 +48,23 @@
, zlib
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "sdrangel";
version = "7.15.2";
src = fetchFromGitHub {
owner = "f4exb";
repo = "sdrangel";
rev = "v${version}";
rev = "v${finalAttrs.version}";
hash = "sha256-Yvf0LJu7YbXhW3i0fd5R2KVn2dkx484AZ0XaWhjozFE=";
};
nativeBuildInputs = [ cmake ninja pkg-config wrapQtAppsHook ];
nativeBuildInputs = [
cmake
ninja
pkg-config
wrapQtAppsHook
];
buildInputs = [
airspy
@ -113,14 +118,14 @@ stdenv.mkDerivation rec {
"-Wno-dev"
];
meta = with lib; {
meta = {
description = "Software defined radio (SDR) software";
homepage = "https://github.com/f4exb/sdrangel";
license = lib.licenses.gpl3Plus;
longDescription = ''
SDRangel is an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
'';
homepage = "https://github.com/f4exb/sdrangel";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ alkeryn Tungsten842 ];
platforms = platforms.unix;
maintainers = with lib.maintainers; [ alkeryn Tungsten842 ];
platforms = lib.platforms.unix;
};
}
})