LINUX.ORG.RU

История изменений

Исправление Puzan, (текущая версия) :

Осилил! Не знаю, насколько правильно, но вроде собралось.

stdenv.mkDerivation rec {
        pname = "vmware-modules";
        version = "16.1.0";

        src = fetchFromGitHub {
          owner = "mkubecek";
          repo = "vmware-host-modules";
          rev = "a409e02f78c5783640885b667312547cc704ff83";
          sha256 = "0ahlyf7kg38sy0bv71q31ry0wbxdlw14cl45ar12b6jzm9af39jb";
        };

        hardeningDisable = [ "pic" "format" ];
        nativeBuildInputs = kernel.moduleBuildDependencies;

        makeFlags = [
          "DESTDIR=$(out)"
          "MODDIR=/lib/modules/${kernel.modDirVersion}/kernel/misc"
        ];

        preBuild = ''
          export LINUXINCLUDE=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build/include
          sed -i '35,40d;43d' Makefile
        '';

        meta = with lib; {
          description = "A kernel module for VMWare Workstation/Player";
          homepage = "https://github.com/mkubecek/vmware-host-modules";
          license = licenses.gpl2;
          platforms = platforms.linux;
        };
      }

Поправил.

Исходная версия Puzan, :

Осилил! Не знаю, насколько правильно, но вроде собралось.

stdenv.mkDerivation rec {
        pname = "vmware-modules";
        version = "16.1.0";

        src = fetchFromGitHub {
          owner = "mkubecek";
          repo = "vmware-host-modules";
          rev = "a409e02f78c5783640885b667312547cc704ff83";
          sha256 = "0ahlyf7kg38sy0bv71q31ry0wbxdlw14cl45ar12b6jzm9af39jb";
        };

        hardeningDisable = [ "pic" "format" ];
        nativeBuildInputs = kernel.moduleBuildDependencies;

        makeFlags = [
          "DESTDIR=$(out)"
          "MODDIR="
        ];

        preBuild = ''
          export LINUXINCLUDE=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build/include
          sed -i '35,40d;43d' Makefile
        '';

        meta = with lib; {
          description = "A kernel module for VMWare Workstation/Player";
          homepage = "https://github.com/mkubecek/vmware-host-modules";
          license = licenses.gpl2;
          platforms = platforms.linux;
        };
      }