diff options
Diffstat (limited to 'nixpkgs/pkgs/desktops/pantheon/services/contractor/default.nix')
-rw-r--r-- | nixpkgs/pkgs/desktops/pantheon/services/contractor/default.nix | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/desktops/pantheon/services/contractor/default.nix b/nixpkgs/pkgs/desktops/pantheon/services/contractor/default.nix new file mode 100644 index 000000000000..e15480c8cc88 --- /dev/null +++ b/nixpkgs/pkgs/desktops/pantheon/services/contractor/default.nix @@ -0,0 +1,59 @@ +{ lib, stdenv +, fetchFromGitHub +, nix-update-script +, pantheon +, meson +, python3 +, ninja +, pkg-config +, vala +, glib +, libgee +, dbus +, glib-networking +, wrapGAppsHook +}: + +stdenv.mkDerivation rec { + pname = "contractor"; + version = "0.3.4"; + + src = fetchFromGitHub { + owner = "elementary"; + repo = pname; + rev = version; + sha256 = "sha256-FHLecRxTE8v3M7cV6rkQKNhPhKFhuhvkzB5C+u7Z+Ms="; + }; + + passthru = { + updateScript = nix-update-script { + attrPath = "pantheon.${pname}"; + }; + }; + + nativeBuildInputs = [ + dbus + meson + ninja + pkg-config + python3 + vala + wrapGAppsHook + ]; + + buildInputs = [ + glib + glib-networking + libgee + ]; + + PKG_CONFIG_DBUS_1_SESSION_BUS_SERVICES_DIR = "${placeholder "out"}/share/dbus-1/services"; + + meta = with lib; { + description = "A desktop-wide extension service used by elementary OS"; + homepage = "https://github.com/elementary/contractor"; + license = licenses.gpl3Plus; + platforms = platforms.linux; + maintainers = pantheon.maintainers; + }; +} |