nixpkgs/pkgs/development/tools/ashpd-demo/default.nix
Jan Tojnar a771af8900 ashpd-demo: 0.2.2 → 0.3.0
https://github.com/bilelmoussaoui/ashpd/compare/0.2.2...0.3.0-demo

Remove update script since it cannot deal with monorepo tags (we only want tags with -demo suffix).
2023-05-18 18:11:19 +02:00

76 lines
1.3 KiB
Nix

{ stdenv
, lib
, fetchFromGitHub
, nix-update-script
, cargo
, meson
, ninja
, rustPlatform
, rustc
, pkg-config
, glib
, libshumate
, gst_all_1
, gtk4
, libadwaita
, llvmPackages
, glibc
, pipewire
, wayland
, wrapGAppsHook4
, desktop-file-utils
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ashpd-demo";
version = "0.3.0";
src = fetchFromGitHub {
owner = "bilelmoussaoui";
repo = "ashpd";
rev = "${finalAttrs.version}-demo";
hash = "sha256-isc0+Mke6XeCCLiuxnjHqrnlGqYuQnmcU1acM14UOno=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
src = "${finalAttrs.src}/ashpd-demo";
hash = "sha256-9L/WFL2fLCRahjGCVdgV+3HfDMrntdIWcuuOJbzdPiI=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
cargo
rustPlatform.cargoSetupHook
rustc
wrapGAppsHook4
rustPlatform.bindgenHook
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
];
postPatch = ''
cd ashpd-demo
'';
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;
};
})