3
0
Fork 0
forked from mirrors/nixpkgs

soapyrtlsdr: use overlay-style mkDerivation

This commit is contained in:
Winter 2022-07-24 22:04:35 -04:00
parent b22383a415
commit b4e5d04518

View file

@ -1,18 +1,20 @@
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config { lib
, rtl-sdr, soapysdr , stdenv
} : , fetchFromGitHub
, cmake
, pkg-config
, rtl-sdr
, soapysdr
}:
let stdenv.mkDerivation (finalAttrs: {
version = "0.3.3";
in stdenv.mkDerivation {
pname = "soapyrtlsdr"; pname = "soapyrtlsdr";
inherit version; version = "0.3.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "pothosware"; owner = "pothosware";
repo = "SoapyRTLSDR"; repo = "SoapyRTLSDR";
rev = "soapy-rtl-sdr-${version}"; rev = "soapy-rtl-sdr-${finalAttrs.version}";
sha256 = "sha256-IapdrBE8HhibY52Anm76/mVAoA0GghwnRCxxfGkyLTw="; sha256 = "sha256-IapdrBE8HhibY52Anm76/mVAoA0GghwnRCxxfGkyLTw=";
}; };
@ -28,4 +30,4 @@ in stdenv.mkDerivation {
maintainers = with maintainers; [ ragge ]; maintainers = with maintainers; [ ragge ];
platforms = platforms.unix; platforms = platforms.unix;
}; };
} })