librepcb: 1.1.0 -> 1.2.0
[NixPkgs.git] / pkgs / by-name / so / soapysdrplay / package.nix
blob80c9c409e1ee2828eabf71fd60473d0998236932
1 { stdenv, lib, fetchFromGitHub, cmake, pkg-config, soapysdr, sdrplay }:
3 stdenv.mkDerivation rec {
4   pname = "soapysdr-sdrplay3";
5   version = "0.4.0";
7   src = fetchFromGitHub {
8     owner = "pothosware";
9     repo = "SoapySDRPlay3";
10     rev = "soapy-sdrplay3-${version}";
11     sha256 = "sha256-WMcAw0uR2o2SrQR4mBtdVEZlJ/ZXRqwo6zMJNsB/5U4=";
12   };
14   nativeBuildInputs = [ cmake pkg-config ];
16   buildInputs = [ soapysdr sdrplay ];
18   cmakeFlags = [
19     "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/"
20   ];
22   meta = with lib; {
23     description = "Soapy SDR module for SDRplay";
24     homepage = "https://github.com/pothosware/SoapySDRPlay3";
25     license = licenses.mit;
26     maintainers = [ maintainers.pmenke ];
27     platforms = platforms.linux;
28   };