nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 56 lines 968 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 pkg-config, 7 fftwSinglePrec, 8 libsndfile, 9 sigutils, 10 soapysdr-with-plugins, 11 libxml2, 12 volk, 13 zlib, 14}: 15 16stdenv.mkDerivation (finalAttrs: { 17 pname = "suscan"; 18 version = "0.3.0"; 19 20 src = fetchFromGitHub { 21 owner = "BatchDrake"; 22 repo = "suscan"; 23 rev = "v${finalAttrs.version}"; 24 sha256 = "sha256-h1ogtYjkqiHb1/NAJfJ0HQIvGnZM2K/PSP5nqLXUf9M="; 25 }; 26 27 postPatch = '' 28 sed -i 's/fftw3 >= 3.0/fftw3f >= 3.0/' suscan.pc.in 29 ''; 30 31 nativeBuildInputs = [ 32 cmake 33 pkg-config 34 ]; 35 36 buildInputs = [ 37 fftwSinglePrec 38 libsndfile 39 sigutils 40 soapysdr-with-plugins 41 libxml2 42 volk 43 zlib 44 ]; 45 46 meta = { 47 description = "Channel scanner based on sigutils library"; 48 homepage = "https://github.com/BatchDrake/suscan"; 49 license = lib.licenses.gpl3; 50 platforms = lib.platforms.all; 51 maintainers = with lib.maintainers; [ 52 polygon 53 oxapentane 54 ]; 55 }; 56})