Skip to content

Instantly share code, notes, and snippets.

@bobby285271
Last active February 23, 2022 04:34
{ stdenv
, lib
, fetchFromGitHub
, nix-update-script
, meson
, ninja
, pkg-config
, vala
, glib
, gtk3
, pantheon
}:
stdenv.mkDerivation rec {
pname = "xdg-desktop-portal-pantheon-demo";
version = "unstable-2021-10-25";
src =
let
share = fetchFromGitHub {
owner = "elementary";
repo = "portals";
rev = "228ea4773908aff6ee6cf35d95ec2b580b7c940f";
sha256 = "sha256-x1H3P9Z98HqgGvw7FifG7yKCbsZFrja0ulSB8ryYN7Y=";
};
in
"${share}/demo";
nativeBuildInputs = [
meson
ninja
pkg-config
vala
];
buildInputs = [
glib
gtk3
pantheon.granite
];
passthru = {
updateScript = nix-update-script {
attrPath = pname;
};
};
meta = with lib; {
description = "A demo application to test pantheon xdg desktop portals";
homepage = "https://github.com/elementary/portals/tree/demo/demo";
license = licenses.gpl3Plus;
maintainers = teams.pantheon.members;
platforms = platforms.linux;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment