tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
dmenu-wayland: support cross-compilation
Rick van Schijndel
4 years ago
f3c271e7
bdc08fd5
+13
-2
1 changed file
expand all
collapse all
unified
split
pkgs
applications
misc
dmenu
wayland.nix
+13
-2
pkgs/applications/misc/dmenu/wayland.nix
···
1
{ lib, stdenv, fetchFromGitHub, meson, ninja, cairo, pango, pkg-config, wayland-protocols
2
-
, glib, wayland, libxkbcommon, makeWrapper
0
3
}:
4
5
stdenv.mkDerivation rec {
···
15
16
outputs = [ "out" "man" ];
17
18
-
nativeBuildInputs = [ meson ninja pkg-config makeWrapper ];
0
19
buildInputs = [ cairo pango wayland-protocols glib wayland libxkbcommon ];
0
0
0
0
0
0
0
0
0
20
21
postInstall = ''
22
wrapProgram $out/bin/dmenu-wl_run \
···
1
{ lib, stdenv, fetchFromGitHub, meson, ninja, cairo, pango, pkg-config, wayland-protocols
2
+
, glib, wayland, libxkbcommon, makeWrapper, wayland-scanner
3
+
, fetchpatch
4
}:
5
6
stdenv.mkDerivation rec {
···
16
17
outputs = [ "out" "man" ];
18
19
+
depsBuildBuild = [ pkg-config ];
20
+
nativeBuildInputs = [ meson ninja pkg-config makeWrapper wayland-scanner ];
21
buildInputs = [ cairo pango wayland-protocols glib wayland libxkbcommon ];
22
+
23
+
# Patch to support cross-compilation, see https://github.com/nyyManni/dmenu-wayland/pull/23/
24
+
patches = [
25
+
# can be removed when https://github.com/nyyManni/dmenu-wayland/pull/23 is included
26
+
(fetchpatch {
27
+
url = "https://github.com/nyyManni/dmenu-wayland/commit/3434410de5dcb007539495395f7dc5421923dd3a.patch";
28
+
sha256 = "sha256-im16kU8RWrCY0btYOYjDp8XtfGEivemIPlhwPX0C77o=";
29
+
})
30
+
];
31
32
postInstall = ''
33
wrapProgram $out/bin/dmenu-wl_run \