4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
61 lines
1.1 KiB
Nix
61 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, alsaLib, boost
|
|
, qt4, libpulseaudio, codec2, libconfig
|
|
, gnuradio, gr-osmosdr, gsm
|
|
, libopus, libjpeg, protobuf, qwt, speex
|
|
} :
|
|
|
|
let
|
|
version = "0.5.0";
|
|
|
|
in stdenv.mkDerivation {
|
|
pname = "qradiolink";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kantooon";
|
|
repo = "qradiolink";
|
|
rev = version;
|
|
sha256 = "0xhg5zhjznmls5m3rhpk1qx0dipxmca12s85w15d0i7qwva2f1gi";
|
|
};
|
|
|
|
preBuild = ''
|
|
cd ext
|
|
protoc --cpp_out=. Mumble.proto
|
|
protoc --cpp_out=. QRadioLink.proto
|
|
cd ..
|
|
qmake
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp qradiolink $out/bin
|
|
'';
|
|
|
|
buildInputs = [
|
|
qt4
|
|
alsaLib
|
|
boost
|
|
libpulseaudio
|
|
codec2
|
|
libconfig
|
|
gsm
|
|
gnuradio
|
|
gr-osmosdr
|
|
libopus
|
|
libjpeg
|
|
protobuf
|
|
speex
|
|
qwt
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
description = "SDR transceiver application for analog and digital modes";
|
|
homepage = "http://qradiolink.org/";
|
|
license = licenses.agpl3;
|
|
maintainers = [ maintainers.markuskowa ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|