Conversation
NickCao
left a comment
There was a problem hiding this comment.
Changelog: https://mesonbuild.com/Release-notes-for-1-1-0.html, nothing particular.
|
Also tested a full system cross compile: with import ./. { crossSystem = "aarch64-linux"; };
(nixos {
fileSystems."/" = {
device = "/dev/sda";
};
# GRUB has never cross compiled
boot.loader.systemd-boot.enable = true;
}).toplevelAnd a fairly complex static build, |
|
Sounds like these hacks might no longer be necessary: nixpkgs/pkgs/os-specific/linux/power-profiles-daemon/default.nix Lines 107 to 115 in ea734f4 |
This isn't needed since Meson 1.1.0.
Yep, the two packages with that hack build fine without them. I've pushed a second commit removing it. |
|
Those hacks are not there to fix builds but to provide useful error messages when upgrading them and they try to install new files to other store paths. But can confirm it is not necessary – with Meson 1.0.0: With Meson 1.1.0: Patch used to test thisdiff --git a/pkgs/development/tools/build-managers/meson/default.nix b/pkgs/development/tools/build-managers/meson/default.nix
index fb0c5d45fb9..846c45ba139 100644
--- a/pkgs/development/tools/build-managers/meson/default.nix
+++ b/pkgs/development/tools/build-managers/meson/default.nix
@@ -13,15 +13,16 @@
, AppKit
, Cocoa
, libxcrypt
+, version ? "1.0.0"
+, hash ? "sha256-qlCkukVXwl59SERqv96FeVfc31g4X/++Zwug6O+szgU="
}:
python3.pkgs.buildPythonApplication rec {
pname = "meson";
- version = "1.1.0";
+ inherit version;
src = python3.pkgs.fetchPypi {
- inherit pname version;
- hash = "sha256-2WFsRM1sU2if+PBfxpWKaT8uF8NHKo2vg87lXav/gp8=";
+ inherit pname version hash;
};
patches = [
@@ -72,6 +73,14 @@ python3.pkgs.buildPythonApplication rec {
"docs/yaml/objects/dep.yaml"
];
})
+
+ ] ++ lib.optionals (lib.versionOlder version "1.1.0") [
+ # tests: avoid unexpected failure when cmake is not installed
+ # https://github.com/mesonbuild/meson/pull/11321
+ (fetchpatch {
+ url = "https://github.com/mesonbuild/meson/commit/a38ad3039d0680f3ac34a6dc487776c79c48acf3.patch";
+ hash = "sha256-9YaXwc+F3Pw4BjuOXqva4MD6DAxX1k5WLbn0xzwuEmw=";
+ })
];
setupHook = ./setup-hook.sh;
diff --git a/pkgs/os-specific/linux/power-profiles-daemon/default.nix b/pkgs/os-specific/linux/power-profiles-daemon/default.nix
index 648442ad757..05bbd1fc765 100644
--- a/pkgs/os-specific/linux/power-profiles-daemon/default.nix
+++ b/pkgs/os-specific/linux/power-profiles-daemon/default.nix
@@ -41,7 +41,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
pkg-config
- meson
+ (meson.override {
+ version = "1.1.0";
+ hash = "sha256-2WFsRM1sU2if+PBfxpWKaT8uF8NHKo2vg87lXav/gp8=";
+ })
ninja
gettext
gtk-doc
@@ -73,8 +76,6 @@ stdenv.mkDerivation rec {
umockdev
];
- strictDeps = true;
-
# for cli tool
pythonPath = [
python3.pkgs.pygobject3
@@ -93,8 +94,6 @@ stdenv.mkDerivation rec {
doCheck = true;
- PKG_CONFIG_POLKIT_GOBJECT_1_POLICYDIR = "${placeholder "out"}/share/polkit-1/actions";
-
# Avoid double wrapping
dontWrapGApps = true;
|
|
@ofborg eval |
|
@jtojnar, that last commit caused bubblewrap to no longer build, so I'm going to drop it, and leave that for somebody else to investigate in a different PR. |
Description of changes
Tested with the "simple" NixOS test.
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)