From 2044ad632b68ce173463287a9f437aae699bda83 Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 12 Mar 2021 20:54:40 +0100 Subject: ma pkgs.xmm7360: init --- makefu/5pkgs/xmm7360/default.nix | 47 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 makefu/5pkgs/xmm7360/default.nix (limited to 'makefu/5pkgs') diff --git a/makefu/5pkgs/xmm7360/default.nix b/makefu/5pkgs/xmm7360/default.nix new file mode 100644 index 000000000..5e423b5af --- /dev/null +++ b/makefu/5pkgs/xmm7360/default.nix @@ -0,0 +1,47 @@ +{ stdenv, fetchFromGitHub, python3, kernel, kmod }: +let + py = python3.withPackages (p: [ p.ConfigArgParse p.pyroute2 ]); +in +stdenv.mkDerivation rec { + name = "xmm7360-pci-${version}-${kernel.version}"; + version = "1.0"; + + src = fetchFromGitHub { + owner = "xmm7360"; + repo = "xmm7360-pci"; + rev = "0060149"; + sha256 = "0nr7adlwglpw6hp44x0pq8xhv7kik7nsb8yzbxllvy2v1pinyflv"; + }; + + #sourceRoot = "source/linux/v4l2loopback"; + + buildTargets = "default"; + hardeningDisable = [ "pic" ]; + + nativeBuildInputs = kernel.moduleBuildDependencies; + buildInputs = [ kmod ]; + + + makeFlags = [ + "KVERSION=${kernel.modDirVersion}" + "KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" + "INSTALL_MOD_PATH=$(out)" + ]; + postInstall = '' + install -d $out/lib/xmm7360/ + cp -r rpc/ $out/lib/xmm7360/ + cat > open_xdatachannel <