openwebrx: migrate to by-name

openwebrx: refactor package definitions

+38 -48
+38 -38
pkgs/applications/radio/openwebrx/default.nix pkgs/by-name/op/openwebrx/package.nix
··· 1 { 2 stdenv, 3 lib, 4 - buildPythonPackage, 5 - buildPythonApplication, 6 fetchFromGitHub, 7 pkg-config, 8 cmake, 9 - setuptools, 10 libsamplerate, 11 fftwFloat, 12 rtl-sdr, 13 soapysdr-with-plugins, 14 csdr, 15 - pycsdr, 16 - pydigiham, 17 direwolf, 18 sox, 19 wsjtx, ··· 22 23 let 24 25 - js8py = buildPythonPackage rec { 26 pname = "js8py"; 27 version = "0.1.1"; 28 format = "setuptools"; 29 30 src = fetchFromGitHub { 31 owner = "jketterl"; 32 - repo = pname; 33 - rev = version; 34 - sha256 = "1j80zclg1cl5clqd00qqa16prz7cyc32bvxqz2mh540cirygq24w"; 35 }; 36 37 pythonImportsCheck = [ ··· 39 "test" 40 ]; 41 42 - meta = with lib; { 43 homepage = "https://github.com/jketterl/js8py"; 44 description = "Library to decode the output of the js8 binary of JS8Call"; 45 - license = licenses.gpl3Only; 46 - teams = [ teams.c3d2 ]; 47 }; 48 }; 49 ··· 53 54 src = fetchFromGitHub { 55 owner = "jketterl"; 56 - repo = pname; 57 - rev = version; 58 - sha256 = "sha256-1H0TJ8QN3b6Lof5TWvyokhCeN+dN7ITwzRvEo2X8OWc="; 59 }; 60 61 nativeBuildInputs = [ ··· 71 soapysdr-with-plugins 72 ]; 73 74 - meta = with lib; { 75 homepage = "https://github.com/jketterl/owrx_connector"; 76 description = "Set of connectors that are used by OpenWebRX to interface with SDR hardware"; 77 - license = licenses.gpl3Only; 78 - platforms = platforms.unix; 79 - teams = [ teams.c3d2 ]; 80 }; 81 }; 82 83 in 84 - buildPythonApplication rec { 85 pname = "openwebrx"; 86 version = "1.2.2"; 87 format = "setuptools"; 88 89 src = fetchFromGitHub { 90 owner = "jketterl"; 91 - repo = pname; 92 - rev = version; 93 hash = "sha256-i3Znp5Sxs/KtJazHh2v9/2P+3cEocWB5wIpF7E4pK9s="; 94 }; 95 96 - propagatedBuildInputs = [ 97 - setuptools 98 - csdr 99 - pycsdr 100 - pydigiham 101 - js8py 102 - soapysdr-with-plugins 103 - owrx_connector 104 - direwolf 105 - sox 106 - wsjtx 107 - codecserver 108 - ]; 109 110 pythonImportsCheck = [ 111 "csdr" ··· 117 inherit js8py owrx_connector; 118 }; 119 120 - meta = with lib; { 121 homepage = "https://github.com/jketterl/openwebrx"; 122 description = "Simple DSP library and command-line tool for Software Defined Radio"; 123 mainProgram = "openwebrx"; 124 - license = licenses.gpl3Only; 125 - teams = [ teams.c3d2 ]; 126 }; 127 }
··· 1 { 2 stdenv, 3 lib, 4 + python3Packages, 5 fetchFromGitHub, 6 pkg-config, 7 cmake, 8 libsamplerate, 9 fftwFloat, 10 rtl-sdr, 11 soapysdr-with-plugins, 12 csdr, 13 direwolf, 14 sox, 15 wsjtx, ··· 18 19 let 20 21 + js8py = python3Packages.buildPythonPackage rec { 22 pname = "js8py"; 23 version = "0.1.1"; 24 format = "setuptools"; 25 26 src = fetchFromGitHub { 27 owner = "jketterl"; 28 + repo = "js8py"; 29 + tag = version; 30 + hash = "sha256-nAj8fI4MkAKr+LjvJQbz7Px8TVAYA9AwZYWy8Cj7AMk="; 31 }; 32 33 pythonImportsCheck = [ ··· 35 "test" 36 ]; 37 38 + meta = { 39 homepage = "https://github.com/jketterl/js8py"; 40 description = "Library to decode the output of the js8 binary of JS8Call"; 41 + license = lib.licenses.gpl3Only; 42 + teams = with lib.teams; [ c3d2 ]; 43 }; 44 }; 45 ··· 49 50 src = fetchFromGitHub { 51 owner = "jketterl"; 52 + repo = "owrx_connector"; 53 + tag = version; 54 + hash = "sha256-1H0TJ8QN3b6Lof5TWvyokhCeN+dN7ITwzRvEo2X8OWc="; 55 }; 56 57 nativeBuildInputs = [ ··· 67 soapysdr-with-plugins 68 ]; 69 70 + meta = { 71 homepage = "https://github.com/jketterl/owrx_connector"; 72 description = "Set of connectors that are used by OpenWebRX to interface with SDR hardware"; 73 + license = lib.licenses.gpl3Only; 74 + platforms = lib.platforms.unix; 75 + teams = with lib.teams; [ c3d2 ]; 76 }; 77 }; 78 79 in 80 + python3Packages.buildPythonApplication rec { 81 pname = "openwebrx"; 82 version = "1.2.2"; 83 format = "setuptools"; 84 85 src = fetchFromGitHub { 86 owner = "jketterl"; 87 + repo = "openwebrx"; 88 + tag = version; 89 hash = "sha256-i3Znp5Sxs/KtJazHh2v9/2P+3cEocWB5wIpF7E4pK9s="; 90 }; 91 92 + dependencies = 93 + with python3Packages; 94 + [ 95 + setuptools 96 + csdr 97 + pycsdr 98 + pydigiham 99 + ] 100 + ++ [ 101 + js8py 102 + soapysdr-with-plugins 103 + owrx_connector 104 + direwolf 105 + sox 106 + wsjtx 107 + codecserver 108 + ]; 109 110 pythonImportsCheck = [ 111 "csdr" ··· 117 inherit js8py owrx_connector; 118 }; 119 120 + meta = { 121 homepage = "https://github.com/jketterl/openwebrx"; 122 description = "Simple DSP library and command-line tool for Software Defined Radio"; 123 mainProgram = "openwebrx"; 124 + license = lib.licenses.gpl3Only; 125 + teams = with lib.teams; [ c3d2 ]; 126 }; 127 }
-10
pkgs/top-level/all-packages.nix
··· 9015 openssl_3_5 9016 ; 9017 9018 - openwebrx = callPackage ../applications/radio/openwebrx { 9019 - inherit (python3Packages) 9020 - buildPythonPackage 9021 - buildPythonApplication 9022 - setuptools 9023 - pycsdr 9024 - pydigiham 9025 - ; 9026 - }; 9027 - 9028 pcre = callPackage ../development/libraries/pcre { }; 9029 # pcre32 seems unused 9030 pcre-cpp = res.pcre.override { variant = "cpp"; };
··· 9015 openssl_3_5 9016 ; 9017 9018 pcre = callPackage ../development/libraries/pcre { }; 9019 # pcre32 seems unused 9020 pcre-cpp = res.pcre.override { variant = "cpp"; };