summaryrefslogtreecommitdiff
path: root/modules/freya/packages/patches/overskride-fix-meson.patch
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-08-10 17:25:37 -0400
committerFreya Murphy <freya@freyacat.org>2024-08-10 17:25:37 -0400
commit30c292afa01357c0e95e1d1e554f509ab28c9f77 (patch)
tree1a8510b799ecb248408909fda4a966f0d03897f4 /modules/freya/packages/patches/overskride-fix-meson.patch
parentfix caddy, add uki, update pipewire, update xdg-desktop-portal-hyprland (diff)
downloaddotfiles-guix-30c292afa01357c0e95e1d1e554f509ab28c9f77.tar.gz
dotfiles-guix-30c292afa01357c0e95e1d1e554f509ab28c9f77.tar.bz2
dotfiles-guix-30c292afa01357c0e95e1d1e554f509ab28c9f77.zip
overskride, hyprland 0.42.0 release
Diffstat (limited to 'modules/freya/packages/patches/overskride-fix-meson.patch')
-rw-r--r--modules/freya/packages/patches/overskride-fix-meson.patch67
1 files changed, 67 insertions, 0 deletions
diff --git a/modules/freya/packages/patches/overskride-fix-meson.patch b/modules/freya/packages/patches/overskride-fix-meson.patch
new file mode 100644
index 0000000..a57e097
--- /dev/null
+++ b/modules/freya/packages/patches/overskride-fix-meson.patch
@@ -0,0 +1,67 @@
+From fa401fc5082dbf4dc048e05222c752a14b808a53 Mon Sep 17 00:00:00 2001
+From: Freya Murphy <freya@freyacat.org>
+Date: Sat, 10 Aug 2024 15:14:15 -0400
+Subject: [PATCH] fix meson
+
+---
+ src/meson.build | 47 -----------------------------------------------
+ 1 file changed, 47 deletions(-)
+
+diff --git a/src/meson.build b/src/meson.build
+index f64920f..11c45a7 100644
+--- a/src/meson.build
++++ b/src/meson.build
+@@ -25,50 +25,3 @@ gnome.compile_resources('overskride',
+ install: true,
+ install_dir: pkgdatadir,
+ )
+-
+-conf = configuration_data()
+-conf.set_quoted('VERSION', meson.project_version())
+-conf.set_quoted('GETTEXT_PACKAGE', 'overskride')
+-conf.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
+-conf.set_quoted('PKGDATADIR', pkgdatadir)
+-
+-configure_file(
+- input: 'config.rs.in',
+- output: 'config.rs',
+- configuration: conf
+-)
+-
+-# Copy the config.rs output to the source directory.
+-run_command(
+- 'cp',
+- join_paths(meson.project_build_root(), 'src', 'config.rs'),
+- join_paths(meson.project_source_root(), 'src', 'config.rs'),
+- check: true
+-)
+-
+-cargo_bin = find_program('cargo')
+-cargo_opt = [ '--manifest-path', meson.project_source_root() / 'Cargo.toml' ]
+-cargo_opt += [ '--target-dir', meson.project_build_root() / 'src' ]
+-cargo_env = [ 'CARGO_HOME=' + meson.project_build_root() / 'cargo-home' ]
+-
+-if get_option('buildtype') == 'release'
+- cargo_opt += [ '--release' ]
+- rust_target = 'release'
+-else
+- rust_target = 'debug'
+-endif
+-
+-cargo_build = custom_target(
+- 'cargo-build',
+- build_by_default: true,
+- build_always_stale: true,
+- output: meson.project_name(),
+- console: true,
+- install: true,
+- install_dir: get_option('bindir'),
+- command: [
+- 'env', cargo_env,
+- cargo_bin, 'build',
+- cargo_opt, '&&', 'cp', 'src' / rust_target / meson.project_name(), '@OUTPUT@',
+- ]
+-)
+--
+2.45.2
+