2021-10-17 02:12:59 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nix-update-script
|
2023-05-24 13:37:59 +00:00
|
|
|
, cargo
|
2021-10-17 02:12:59 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, rustPlatform
|
2023-05-24 13:37:59 +00:00
|
|
|
, rustc
|
2021-10-17 02:12:59 +00:00
|
|
|
, pkg-config
|
|
|
|
, glib
|
|
|
|
, libshumate
|
|
|
|
, gst_all_1
|
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
|
|
|
, llvmPackages
|
|
|
|
, glibc
|
|
|
|
, pipewire
|
|
|
|
, wayland
|
|
|
|
, wrapGAppsHook4
|
|
|
|
, desktop-file-utils
|
|
|
|
}:
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-10-17 02:12:59 +00:00
|
|
|
pname = "ashpd-demo";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.3.0";
|
2021-10-17 02:12:59 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bilelmoussaoui";
|
|
|
|
repo = "ashpd";
|
|
|
|
rev = "${finalAttrs.version}-demo";
|
|
|
|
hash = "sha256-isc0+Mke6XeCCLiuxnjHqrnlGqYuQnmcU1acM14UOno=";
|
|
|
|
};
|
2021-10-17 02:12:59 +00:00
|
|
|
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
2023-05-24 13:37:59 +00:00
|
|
|
src = "${finalAttrs.src}/ashpd-demo";
|
|
|
|
hash = "sha256-9L/WFL2fLCRahjGCVdgV+3HfDMrntdIWcuuOJbzdPiI=";
|
2021-10-17 02:12:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
2023-05-24 13:37:59 +00:00
|
|
|
cargo
|
2021-10-17 02:12:59 +00:00
|
|
|
rustPlatform.cargoSetupHook
|
2023-05-24 13:37:59 +00:00
|
|
|
rustc
|
2021-10-17 02:12:59 +00:00
|
|
|
wrapGAppsHook4
|
2022-03-05 16:20:37 +00:00
|
|
|
rustPlatform.bindgenHook
|
2021-10-17 02:12:59 +00:00
|
|
|
desktop-file-utils
|
|
|
|
glib # for glib-compile-schemas
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk4
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
libadwaita
|
|
|
|
pipewire
|
|
|
|
wayland
|
|
|
|
libshumate
|
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
postPatch = ''
|
|
|
|
cd ashpd-demo
|
|
|
|
'';
|
2021-10-17 02:12:59 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool for playing with XDG desktop portals";
|
|
|
|
homepage = "https://github.com/bilelmoussaoui/ashpd/tree/master/ashpd-demo";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2023-05-24 13:37:59 +00:00
|
|
|
})
|