Merge pull request #141424 from jtojnar/apshd-demo

asphd-demo: init at 0.0.1-alpha

authored by

Jan Tojnar and committed by
GitHub
f38ee4de 2dd674fe

+95
+93
pkgs/development/tools/ashpd-demo/default.nix
··· 1 + { stdenv 2 + , lib 3 + , fetchFromGitHub 4 + , nix-update-script 5 + , meson 6 + , ninja 7 + , python3 8 + , rustPlatform 9 + , pkg-config 10 + , glib 11 + , libshumate 12 + , gst_all_1 13 + , gtk4 14 + , libadwaita 15 + , llvmPackages 16 + , glibc 17 + , pipewire 18 + , wayland 19 + , wrapGAppsHook4 20 + , desktop-file-utils 21 + }: 22 + 23 + stdenv.mkDerivation rec { 24 + pname = "ashpd-demo"; 25 + version = "0.0.1-alpha"; 26 + 27 + src = 28 + let 29 + share = fetchFromGitHub { 30 + owner = "bilelmoussaoui"; 31 + repo = "ashpd"; 32 + rev = version; 33 + sha256 = "Lf3Wj4VTDyJ5a1bJTEI6R6aaeEHZ+4hO+BsD98sKb/s="; 34 + }; 35 + in 36 + "${share}/ashpd-demo"; 37 + 38 + cargoDeps = rustPlatform.fetchCargoTarball { 39 + inherit src; 40 + name = "${pname}-${version}"; 41 + hash = "sha256-npqC8lu7acAggJyR4iDkcQZYMNNnseV2pB3+j4G/nIk="; 42 + }; 43 + 44 + nativeBuildInputs = [ 45 + meson 46 + ninja 47 + pkg-config 48 + python3 49 + rustPlatform.rust.cargo 50 + rustPlatform.cargoSetupHook 51 + rustPlatform.rust.rustc 52 + wrapGAppsHook4 53 + desktop-file-utils 54 + glib # for glib-compile-schemas 55 + ]; 56 + 57 + buildInputs = [ 58 + glib 59 + gtk4 60 + gst_all_1.gstreamer 61 + gst_all_1.gst-plugins-base 62 + libadwaita 63 + pipewire 64 + wayland 65 + libshumate 66 + ]; 67 + 68 + # libspa-sys requires this for bindgen 69 + LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib"; 70 + # <spa-0.2/spa/utils/defs.h> included by libspa-sys requires <stdbool.h> 71 + BINDGEN_EXTRA_CLANG_ARGS = "-I${llvmPackages.libclang.lib}/lib/clang/${lib.getVersion llvmPackages.clang}/include -I${glibc.dev}/include"; 72 + 73 + postPatch = '' 74 + patchShebangs build-aux/meson_post_install.py 75 + # https://github.com/bilelmoussaoui/ashpd/pull/32 76 + substituteInPlace build-aux/meson_post_install.py \ 77 + --replace "gtk-update-icon-cache" "gtk4-update-icon-cache" 78 + ''; 79 + 80 + passthru = { 81 + updateScript = nix-update-script { 82 + attrPath = pname; 83 + }; 84 + }; 85 + 86 + meta = with lib; { 87 + description = "Tool for playing with XDG desktop portals"; 88 + homepage = "https://github.com/bilelmoussaoui/ashpd/tree/master/ashpd-demo"; 89 + license = licenses.mit; 90 + maintainers = with maintainers; [ jtojnar ]; 91 + platforms = platforms.linux; 92 + }; 93 + }
+2
pkgs/top-level/all-packages.nix
··· 1269 1269 1270 1270 ashuffle = callPackage ../applications/audio/ashuffle {}; 1271 1271 1272 + ashpd-demo = callPackage ../development/tools/ashpd-demo {}; 1273 + 1272 1274 asls = callPackage ../development/tools/misc/asls { }; 1273 1275 1274 1276 astc-encoder = callPackage ../tools/graphics/astc-encoder { };