diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-08-28 14:43:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-28 14:43:58 +0200 |
commit | 64282ec7972a187b2f04cf5b7e3e25052dd84ea1 (patch) | |
tree | c36f5bf8a47b6d0fe35eb585db8c7006da8da9fb /pkgs/applications/virtualization | |
parent | c3f4eecf9b4cfabe9d406da41da4e05a379fbe28 (diff) | |
parent | f355889075209d11f10fd8d38786938dc0b1cbba (diff) |
Merge pull request #187760 from SuperSandro2000/lkl
Diffstat (limited to 'pkgs/applications/virtualization')
-rw-r--r-- | pkgs/applications/virtualization/lkl/default.nix | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/pkgs/applications/virtualization/lkl/default.nix b/pkgs/applications/virtualization/lkl/default.nix index f2481e25a8fdb..3bb12836a032d 100644 --- a/pkgs/applications/virtualization/lkl/default.nix +++ b/pkgs/applications/virtualization/lkl/default.nix @@ -4,25 +4,27 @@ stdenv.mkDerivation rec { pname = "lkl"; version = "2019-10-04"; - rev = "06ca3ddb74dc5b84fa54fa1746737f2df502e047"; outputs = [ "dev" "lib" "out" ]; - nativeBuildInputs = [ bc bison flex python3 ]; - - buildInputs = [ fuse libarchive ]; - src = fetchFromGitHub { - inherit rev; owner = "lkl"; repo = "linux"; + rev = "06ca3ddb74dc5b84fa54fa1746737f2df502e047"; sha256 = "0qjp0r338bwgrqdsvy5mkdh7ryas23m47yvxfwdknfyl0k3ylq62"; }; - # Fix a /usr/bin/env reference in here that breaks sandboxed builds - prePatch = "patchShebangs arch/lkl/scripts"; - # Fixup build with newer Linux headers: https://github.com/lkl/linux/pull/484 - postPatch = "sed '1i#include <linux/sockios.h>' -i tools/lkl/lib/hijack/xlate.c"; + nativeBuildInputs = [ bc bison flex python3 ]; + + buildInputs = [ fuse libarchive ]; + + postPatch = '' + # Fix a /usr/bin/env reference in here that breaks sandboxed builds + patchShebangs arch/lkl/scripts + + # Fixup build with newer Linux headers: https://github.com/lkl/linux/pull/484 + sed '1i#include <linux/sockios.h>' -i tools/lkl/lib/hijack/xlate.c + ''; installPhase = '' mkdir -p $out/bin $lib/lib $dev @@ -61,7 +63,7 @@ stdenv.mkDerivation rec { overhead ''; homepage = "https://github.com/lkl/linux/"; - platforms = [ "x86_64-linux" "aarch64-linux" "armv7l-linux" "armv6l-linux" ]; # Darwin probably works too but I haven't tested it + platforms = platforms.linux; # Darwin probably works too but I haven't tested it license = licenses.gpl2; maintainers = with maintainers; [ copumpkin ]; }; |