python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / tools / ashpd-demo / default.nix
blob9d873b8461f1f6b8d151361f93531dae74693cef
1 { stdenv
2 , lib
3 , fetchFromGitHub
4 , nix-update-script
5 , meson
6 , ninja
7 , rustPlatform
8 , pkg-config
9 , glib
10 , libshumate
11 , gst_all_1
12 , gtk4
13 , libadwaita
14 , llvmPackages
15 , glibc
16 , pipewire
17 , wayland
18 , wrapGAppsHook4
19 , desktop-file-utils
22 stdenv.mkDerivation rec {
23   pname = "ashpd-demo";
24   version = "0.2.2";
26   src =
27     let
28       share = fetchFromGitHub {
29         owner = "bilelmoussaoui";
30         repo = "ashpd";
31         rev = version;
32         sha256 = "9O6XqM4oys/hXgztQQ8tTobJV8U52db/VY6FlTMUvGY=";
33       };
34     in
35     "${share}/ashpd-demo";
37   cargoDeps = rustPlatform.fetchCargoTarball {
38     inherit src;
39     name = "${pname}-${version}";
40     hash = "sha256-eFq42m16zzrUBbAqv7BsAf4VxyO93WynLjvIzKbZwnQ=";
41   };
43   nativeBuildInputs = [
44     meson
45     ninja
46     pkg-config
47     rustPlatform.rust.cargo
48     rustPlatform.cargoSetupHook
49     rustPlatform.rust.rustc
50     wrapGAppsHook4
51     rustPlatform.bindgenHook
52     desktop-file-utils
53     glib # for glib-compile-schemas
54   ];
56   buildInputs = [
57     glib
58     gtk4
59     gst_all_1.gstreamer
60     gst_all_1.gst-plugins-base
61     libadwaita
62     pipewire
63     wayland
64     libshumate
65   ];
67   passthru = {
68     updateScript = nix-update-script {
69       attrPath = pname;
70     };
71   };
73   meta = with lib; {
74     description = "Tool for playing with XDG desktop portals";
75     homepage = "https://github.com/bilelmoussaoui/ashpd/tree/master/ashpd-demo";
76     license = licenses.mit;
77     maintainers = with maintainers; [ jtojnar ];
78     platforms = platforms.linux;
79   };