summaryrefslogtreecommitdiffstats
path: root/pkgs/development/compilers/dtc
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2023-05-31 11:24:33 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2023-06-01 10:34:08 -0300
commit31b198ad6fc85ee8af80771063dda06a99de043f (patch)
treefae6ed0cfb9cda2b79022111fe579e190bc7a194 /pkgs/development/compilers/dtc
parent70c4a233a292ba9914072714c416c754c863b7b9 (diff)
dtc: fix linker options so it also works in Darwin
We dropped two simple patches which were changing the version in meson.build as the "dtc: Fix linker options so it also works in Darwin" is bigger. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'pkgs/development/compilers/dtc')
-rw-r--r--pkgs/development/compilers/dtc/default.nix24
1 files changed, 12 insertions, 12 deletions
diff --git a/pkgs/development/compilers/dtc/default.nix b/pkgs/development/compilers/dtc/default.nix
index 8669a3c7894b..4dbfd6f2bb90 100644
--- a/pkgs/development/compilers/dtc/default.nix
+++ b/pkgs/development/compilers/dtc/default.nix
@@ -31,23 +31,17 @@ stdenv.mkDerivation rec {
sha256 = "sha256-C7OzwY0zq+2CV3SB5unI7Ill2M3deF7FXeQE3B/Kx2s=";
})
- # meson.build: bump version to 1.7.0
- (fetchpatch {
- url = "https://github.com/dgibson/dtc/commit/64a907f08b9bedd89833c1eee674148cff2343c6.patch";
- sha256 = "sha256-p2KGS5GW+3uIPgXfuIx6aDC54csM+5FZDkK03t58AL8=";
- })
-
- # Fix version in libfdt/meson.build
- (fetchpatch {
- url = "https://github.com/dgibson/dtc/commit/723545ebe9933b90ea58dc125e4987c6bcb04ade.patch";
- sha256 = "sha256-5Oq7q+62ZObj3e7rguN9jhSpYoQkwjSfo/N893229dQ=";
- })
-
# Use #ifdef NO_VALGRIND
(fetchpatch {
url = "https://github.com/dgibson/dtc/commit/41821821101ad8a9f83746b96b163e5bcbdbe804.patch";
sha256 = "sha256-7QEFDtap2DWbUGqtyT/RgJZJFldKB8oSubKiCtLZ0w4=";
})
+
+ # dtc: Fix linker options so it also works in Darwin
+ (fetchpatch {
+ url = "https://github.com/dgibson/dtc/commit/3acde70714df3623e112cf3ec99fc9b5524220b8.patch";
+ sha256 = "sha256-uLXL0Sjcn+bnMuF+A6PjUW1Rq6uNg1dQl58zbeYpP/U=";
+ })
];
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
@@ -69,6 +63,12 @@ stdenv.mkDerivation rec {
postPatch = ''
patchShebangs setup.py
+
+ # meson.build: bump version to 1.7.0
+ substituteInPlace libfdt/meson.build \
+ --replace "version: '1.6.0'," "version: '${version}',"
+ substituteInPlace meson.build \
+ --replace "version: '1.6.0'," "version: '${version}',"
'';
# Required for installation of Python library and is innocuous otherwise.