diff options
Diffstat (limited to 'pkgs/os-specific/linux/mwprocapture/default.nix')
-rw-r--r-- | pkgs/os-specific/linux/mwprocapture/default.nix | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/pkgs/os-specific/linux/mwprocapture/default.nix b/pkgs/os-specific/linux/mwprocapture/default.nix index ca5b82b8785..9185f50674f 100644 --- a/pkgs/os-specific/linux/mwprocapture/default.nix +++ b/pkgs/os-specific/linux/mwprocapture/default.nix @@ -4,25 +4,25 @@ with lib; let bits = - if stdenv.is64bit then "64" - else "32"; + if stdenv.is64bit then "64" + else "32"; - libpath = makeLibraryPath [ stdenv.cc.cc stdenv.glibc alsa-lib ]; + libpath = makeLibraryPath [ stdenv.cc.cc stdenv.cc.libc alsa-lib ]; in stdenv.mkDerivation rec { - name = "mwprocapture-1.3.0.${version}-${kernel.version}"; - version = "4236"; + pname = "mwprocapture"; + subVersion = "4373"; + version = "1.3.0.${subVersion}-${kernel.version}"; src = fetchurl { - url = "https://www.magewell.com/files/drivers/ProCaptureForLinux_${version}.tar.gz"; - sha256 = "1mfgj84km276sq5i8dny1vqp2ycqpvgplrmpbqwnk230d0w3qs74"; + url = "https://www.magewell.com/files/drivers/ProCaptureForLinux_${subVersion}.tar.gz"; + sha256 = "sha256-/6q+6CTlgkHOgq1PF8dSPfl/xm/UFczr/AGkac2mXZ8="; }; nativeBuildInputs = kernel.moduleBuildDependencies; - preConfigure = - '' + preConfigure = '' cd ./src export INSTALL_MOD_PATH="$out" ''; @@ -33,6 +33,8 @@ stdenv.mkDerivation rec { "KERNELDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" ]; + env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-fallthrough"; + postInstall = '' cd ../ mkdir -p $out/bin @@ -55,11 +57,10 @@ stdenv.mkDerivation rec { ''; meta = { - homepage = "http://www.magewell.com/"; + homepage = "https://www.magewell.com/"; description = "Linux driver for the Magewell Pro Capture family"; license = licenses.unfreeRedistributable; - maintainers = with maintainers; [ MP2E ]; + maintainers = with maintainers; [ flexiondotorg MP2E ]; platforms = platforms.linux; - broken = kernel.kernelOlder "3.2.0"; }; } |