Skip to content

Commit

Permalink
add gr-clenabled package
Browse files Browse the repository at this point in the history
  • Loading branch information
marenz2569 committed Aug 29, 2024
1 parent fd3e9a4 commit 3792be8
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@
];
};

gr-clenabled = pkgs.callPackage ./pkgs/gr-clenabled.nix { };
tetra-receiver = pkgs.callPackage ./pkgs/tetra-receiver.nix { };
in
rec {
checks = packages;
packages = {
tetra-receiver = tetra-receiver;
inherit gr-clenabled tetra-receiver;
default = tetra-receiver;
};
}
Expand Down
29 changes: 29 additions & 0 deletions pkgs/gr-clenabled.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{ pkg-config
, cmake
, gnuradio
, log4cpp
, mpir
, gmp
, fftwFloat
, rocmPackages
, opencl-clhpp
, clfft
, cppunit
, fetchFromGitHub
, stdenv
}:

stdenv.mkDerivation rec {
name = "gr-clenabled";
version = "maint-3.8";
src = fetchFromGitHub {
owner = "ghostop14";
repo = name;
rev = version;
sha256 = "sha256-n8jDcjQfopo/9XZNrquGTO4dp3ErXnwH+ABgmbTawiA=";
};
buildInputs = [ gnuradio log4cpp mpir gmp gnuradio.boost gnuradio.volk fftwFloat rocmPackages.clr opencl-clhpp clfft cppunit ];
nativeBuildInputs = [ cmake pkg-config ];
cmakeFlags = [ "-DENABLE_PYTHON=OFF" ];
# outputs = [ "out" ];
}

0 comments on commit 3792be8

Please sign in to comment.