Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / radio / sigdigger / default.nix
blob4273d148ce2806984d4a69ff8ebb1f7f8f6b67a1
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , qmake
5 , qtbase
6 , pkg-config
7 , sigutils
8 , fftwSinglePrec
9 , suwidgets
10 , wrapQtAppsHook
11 , suscan
12 , libsndfile
13 , soapysdr-with-plugins
14 , libxml2
15 , volk
18 stdenv.mkDerivation rec {
19   pname = "sigdigger";
20   version = "0.3.0";
22   src = fetchFromGitHub {
23     owner = "BatchDrake";
24     repo = "SigDigger";
25     rev = "v${version}";
26     sha256 = "sha256-dS+Fc0iQz7GIlGaR556Ur/EQh3Uzhqm9uBW42IuEqoE=";
27   };
29   nativeBuildInputs = [
30     qmake
31     pkg-config
32     wrapQtAppsHook
33   ];
35   buildInputs = [
36     qtbase
37     sigutils
38     fftwSinglePrec
39     suwidgets
40     suscan
41     libsndfile
42     libxml2
43     volk
44     soapysdr-with-plugins
45   ];
47   qmakeFlags = [
48     "SUWIDGETS_PREFIX=${suwidgets}"
49     "SigDigger.pro"
50   ];
52   meta = with lib; {
53     description = "Qt-based digital signal analyzer, using Suscan core and Sigutils DSP library";
54     homepage = "https://github.com/BatchDrake/SigDigger";
55     license = licenses.gpl3;
56     platforms = platforms.all;
57     maintainers = with maintainers; [ polygon oxapentane ];
58   };