mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
77 lines
1.4 KiB
Nix
77 lines
1.4 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.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bilelmoussaoui";
|
|
repo = "ashpd";
|
|
rev = "${finalAttrs.version}-demo";
|
|
hash = "sha256-fIyJEUcyTcjTbBycjuJb99wALQelMT7Zq6PHKcL2F80=";
|
|
};
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
src = "${finalAttrs.src}/ashpd-demo";
|
|
hash = "sha256-ldflCBErM9w3eO2DwWfYTrdO7lowZtqfj7Fft6Crl1w=";
|
|
};
|
|
|
|
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";
|
|
mainProgram = "ashpd-demo";
|
|
homepage = "https://github.com/bilelmoussaoui/ashpd/tree/master/ashpd-demo";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
platforms = platforms.linux;
|
|
};
|
|
})
|