nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (907B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5   cmake,
      6   pkg-config,
      7   check,
      8   libconfig,
      9   libiio,
     10   volk,
     11   protobufc,
     12 }:
     13 
     14 stdenv.mkDerivation (finalAttrs: {
     15   pname = "sdr-modem";
     16   version = "1.0.127";
     17 
     18   src = fetchFromGitHub {
     19     owner = "dernasherbrezon";
     20     repo = "sdr-modem";
     21     rev = finalAttrs.version;
     22     hash = "sha256-h0hbX3T3Criyq5jcXJLNXSwmwzWPzY80aKlRJr60rJw=";
     23   };
     24 
     25   nativeBuildInputs = [
     26     cmake
     27     pkg-config
     28   ];
     29 
     30   buildInputs = [
     31     check
     32     libconfig
     33     libiio
     34     volk
     35     protobufc
     36   ];
     37 
     38   installPhase = ''
     39     install -Dm755 sdr_modem -t $out/bin
     40     install -Dm644 $src/src/resources/config.conf -t $out/etc
     41   '';
     42 
     43   meta = {
     44     description = "Modem based on software defined radios";
     45     homepage = "https://github.com/dernasherbrezon/sdr-modem";
     46     license = lib.licenses.gpl2;
     47     maintainers = [ lib.maintainers.sikmir ];
     48     platforms = lib.platforms.unix;
     49   };
     50 })