nixpkgs/pkgs/desktops/pantheon/services/pantheon-agent-geoclue2/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

62 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, nix-update-script
2021-01-17 02:21:50 +00:00
, pkg-config
, meson
, ninja
, vala
, glib
, gtk3
, libgee
, desktop-file-utils
, geoclue2
, granite
, wrapGAppsHook
}:
2018-08-20 20:31:18 +00:00
stdenv.mkDerivation rec {
pname = "pantheon-agent-geoclue2";
version = "1.0.6";
2018-08-20 20:31:18 +00:00
src = fetchFromGitHub {
owner = "elementary";
repo = pname;
rev = version;
sha256 = "sha256-DvE0/bR4mVfqCw/c/1h75M8DfCiNPZ2h6Jl6ySk1qxs=";
2018-08-20 20:31:18 +00:00
};
nativeBuildInputs = [
desktop-file-utils
meson
ninja
2021-01-17 02:21:50 +00:00
pkg-config
2018-08-20 20:31:18 +00:00
vala
wrapGAppsHook
];
2018-08-20 20:31:18 +00:00
buildInputs = [
geoclue2
granite
2018-08-20 20:31:18 +00:00
gtk3
libgee
];
2018-08-20 20:31:18 +00:00
# This should be provided by a post_install.py script - See -> https://github.com/elementary/pantheon-agent-geoclue2/pull/21
postInstall = ''
${glib.dev}/bin/glib-compile-schemas $out/share/glib-2.0/schemas
'';
passthru = {
updateScript = nix-update-script { };
};
meta = with lib; {
2018-08-20 20:31:18 +00:00
description = "Pantheon Geoclue2 Agent";
homepage = "https://github.com/elementary/pantheon-agent-geoclue2";
2018-08-20 20:31:18 +00:00
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = teams.pantheon.members;
2018-08-20 20:31:18 +00:00
};
}