scons: add patch to fix builds on sandboxed Darwin
As reported in #335665, derivations using scons currently fail on sandboxed Darwin due to a permission error[^1]. Include a patch from upstream to handle PermissionError, which fixes SCons builds on sandboxed Darwin. [^1]: https://github.com/NixOS/nixpkgs/pull/335665#issuecomment-2297464441
This commit is contained in:
parent
b2de93cfe4
commit
e9a92dee53
@ -1,4 +1,4 @@
|
||||
{ lib, fetchFromGitHub, python3Packages }:
|
||||
{ lib, fetchFromGitHub, fetchpatch, python3Packages }:
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "scons";
|
||||
version = "4.7.0";
|
||||
@ -15,6 +15,11 @@ python3Packages.buildPythonApplication rec {
|
||||
patches = [
|
||||
./env.patch
|
||||
./no-man-pages.patch
|
||||
# Fix builds on sandboxed Darwin: https://github.com/SCons/scons/pull/4603
|
||||
(fetchpatch {
|
||||
url = "https://github.com/SCons/scons/commit/2d5e3a40a613225b329776ab9dbd9abcd2d24222.patch";
|
||||
hash = "sha256-N1xQOvsPTi7a2maEZJQVu6vJ9AoWMqDOsScXHp9KuXI=";
|
||||
})
|
||||
];
|
||||
|
||||
build-system = [
|
||||
|
Loading…
Reference in New Issue
Block a user