mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-22 14:35:57 +01:00
nix: build hyprland-share-picker
This commit is contained in:
parent
4cbddd34a1
commit
1d70c4600b
2 changed files with 45 additions and 24 deletions
|
@ -16,33 +16,37 @@
|
||||||
slurp,
|
slurp,
|
||||||
systemd,
|
systemd,
|
||||||
wayland,
|
wayland,
|
||||||
src,
|
libsForQt5,
|
||||||
version ? "git",
|
version ? "git",
|
||||||
}:
|
}: let
|
||||||
stdenv.mkDerivation {
|
hyprland-share-picker = libsForQt5.callPackage ./hyprland-share-picker.nix {inherit version;};
|
||||||
pname = "xdg-desktop-portal-hyprland";
|
in
|
||||||
inherit version;
|
stdenv.mkDerivation {
|
||||||
|
pname = "xdg-desktop-portal-hyprland";
|
||||||
|
inherit version;
|
||||||
|
|
||||||
src = ../.;
|
src = ../.;
|
||||||
|
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
depsBuildBuild = [pkg-config];
|
depsBuildBuild = [pkg-config];
|
||||||
nativeBuildInputs = [meson ninja pkg-config wayland-scanner makeWrapper];
|
nativeBuildInputs = [meson ninja pkg-config wayland-scanner makeWrapper];
|
||||||
buildInputs = [inih libdrm mesa pipewire systemd wayland wayland-protocols];
|
buildInputs = [inih libdrm mesa pipewire systemd wayland wayland-protocols];
|
||||||
|
|
||||||
mesonFlags = [
|
mesonFlags = [
|
||||||
"-Dsd-bus-provider=libsystemd"
|
"-Dsd-bus-provider=libsystemd"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/libexec/xdg-desktop-portal-hyprland --prefix PATH ":" ${lib.makeBinPath [grim slurp]}
|
ln -s ${hyprland-share-picker.outPath}/bin $out/
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
wrapProgram $out/libexec/xdg-desktop-portal-hyprland --prefix PATH ":" ${lib.makeBinPath [grim slurp]}
|
||||||
homepage = "https://github.com/emersion/xdg-desktop-portal-hyprland";
|
'';
|
||||||
description = "xdg-desktop-portal backend for Hyprland";
|
|
||||||
maintainers = with maintainers; [fufexan];
|
meta = with lib; {
|
||||||
platforms = platforms.linux;
|
homepage = "https://github.com/emersion/xdg-desktop-portal-hyprland";
|
||||||
license = licenses.mit;
|
description = "xdg-desktop-portal backend for Hyprland";
|
||||||
};
|
maintainers = with maintainers; [fufexan];
|
||||||
}
|
platforms = platforms.linux;
|
||||||
|
license = licenses.mit;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
17
nix/hyprland-share-picker.nix
Normal file
17
nix/hyprland-share-picker.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
stdenv,
|
||||||
|
lib,
|
||||||
|
cmake,
|
||||||
|
qtbase,
|
||||||
|
wrapQtAppsHook,
|
||||||
|
version ? "git",
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
pname = "hyprland-share-picker";
|
||||||
|
inherit version;
|
||||||
|
src = ../hyprland-share-picker;
|
||||||
|
|
||||||
|
nativeBuildInputs = [cmake wrapQtAppsHook];
|
||||||
|
buildInputs = [qtbase];
|
||||||
|
}
|
Loading…
Reference in a new issue