mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-29 03:10:19 +00:00
miracle-wm: 0.10.1 -> 0.11.2 (#567790)
This commit is contained in:
@@ -37,30 +37,16 @@
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "miracle-wm";
|
||||
version = "0.10.1";
|
||||
version = "0.11.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "miracle-wm-org";
|
||||
repo = "miracle-wm";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-htFgvXYgxQXV2U3F+tXEoaTb0udc2H1aHsIg5E8nRL8=";
|
||||
hash = "sha256-XYU2I3hFjtQJgHqwS6EyW5PDjPap7TG/92e1v/IXKQA=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Mir 2.29 compat, remove when version > 0.10.1
|
||||
(fetchpatch {
|
||||
name = "0001-miracle-wm-remove-legacy-mir-optional-usage.patch";
|
||||
url = "https://github.com/miracle-wm-org/miracle-wm/commit/a4d7b21e0d25667cd270d7ff52f8dccc2a217796.patch";
|
||||
hash = "sha256-XBbYSuXUOS9Gbs/LwxbbTAVsFuH8xLj8VhoCAjmCDfQ=";
|
||||
})
|
||||
];
|
||||
|
||||
# Mir 2.29 compat, remove when version > 0.10.1 (97a40cd8879898062b2cf7b5d1f5252ffc3b8dce is more than just a compat change)
|
||||
postPatch = ''
|
||||
substituteInPlace src/policy.{cpp,h} \
|
||||
--replace-fail 'handle_raise_window' 'handle_activate_window'
|
||||
''
|
||||
+ ''
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace-fail 'DESTINATION lib' 'DESTINATION ''${CMAKE_INSTALL_LIBDIR}' \
|
||||
--replace-fail '-march=native' '# -march=native'
|
||||
|
||||
Reference in New Issue
Block a user