forked from mirrors/nixpkgs
soapyrtlsdr: use overlay-style mkDerivation
This commit is contained in:
parent
b22383a415
commit
b4e5d04518
|
@ -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;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue