From 1497d982d2c1b3e65f17c207cbb12ca7b66745d1 Mon Sep 17 00:00:00 2001 From: Gavin John Date: Sun, 25 Aug 2024 14:07:51 -0700 Subject: [PATCH] envision: autopatchelf after build --- pkgs/by-name/en/envision/autopatchelf.patch | 108 +++++++++++++++++++ pkgs/by-name/en/envision/package.nix | 110 +++++++++++++------- 2 files changed, 181 insertions(+), 37 deletions(-) create mode 100644 pkgs/by-name/en/envision/autopatchelf.patch diff --git a/pkgs/by-name/en/envision/autopatchelf.patch b/pkgs/by-name/en/envision/autopatchelf.patch new file mode 100644 index 0000000000000..1d22d9813618e --- /dev/null +++ b/pkgs/by-name/en/envision/autopatchelf.patch @@ -0,0 +1,108 @@ +diff --git a/src/builders/build_basalt.rs b/src/builders/build_basalt.rs +index 237fc24..3c9c8ec 100644 +--- a/src/builders/build_basalt.rs ++++ b/src/builders/build_basalt.rs +@@ -86,6 +86,13 @@ pub fn get_build_basalt_jobs(profile: &Profile, clean_build: bool) -> VecDeque VecDeq + } + jobs.push_back(cmake.get_build_job()); + jobs.push_back(cmake.get_install_job()); ++ jobs.push_back(WorkerJob::new_cmd( ++ None, ++ "autopatchelf".into(), ++ Some(vec![ ++ build_dir.clone() ++ ]), ++ )); + + jobs + } +diff --git a/src/builders/build_monado.rs b/src/builders/build_monado.rs +index fb049c5..e21a764 100644 +--- a/src/builders/build_monado.rs ++++ b/src/builders/build_monado.rs +@@ -68,6 +68,13 @@ pub fn get_build_monado_jobs(profile: &Profile, clean_build: bool) -> VecDeque Vec + jobs.push_back(cmake.get_prepare_job()); + } + jobs.push_back(cmake.get_build_job()); ++ jobs.push_back(WorkerJob::new_cmd( ++ None, ++ "autopatchelf".into(), ++ Some(vec![ ++ build_dir.clone() ++ ]), ++ )); + + jobs + } +diff --git a/src/builders/build_openhmd.rs b/src/builders/build_openhmd.rs +index 5fe612c..5211229 100644 +--- a/src/builders/build_openhmd.rs ++++ b/src/builders/build_openhmd.rs +@@ -55,6 +55,13 @@ pub fn get_build_openhmd_jobs(profile: &Profile, clean_build: bool) -> VecDeque< + } + jobs.push_back(cmake.get_build_job()); + jobs.push_back(cmake.get_install_job()); ++ jobs.push_back(WorkerJob::new_cmd( ++ None, ++ "autopatchelf".into(), ++ Some(vec![ ++ build_dir.clone() ++ ]), ++ )); + + jobs + } +diff --git a/src/builders/build_wivrn.rs b/src/builders/build_wivrn.rs +index 52bfb66..b28ab5c 100644 +--- a/src/builders/build_wivrn.rs ++++ b/src/builders/build_wivrn.rs +@@ -52,6 +52,13 @@ pub fn get_build_wivrn_jobs(profile: &Profile, clean_build: bool) -> VecDeque