nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 nix-update-script,
6 meson,
7 ninja,
8 pkg-config,
9 vala,
10 elementary-bluetooth-daemon,
11 libgee,
12 gettext,
13 granite7,
14 gtk4,
15 switchboard,
16}:
17
18stdenv.mkDerivation rec {
19 pname = "switchboard-plug-sharing";
20 version = "8.0.2";
21
22 src = fetchFromGitHub {
23 owner = "elementary";
24 repo = pname;
25 rev = version;
26 hash = "sha256-XTgUHgvBSzZeuUup0gT6sbhyT4FGGG7o+qbPmfeRVQE=";
27 };
28
29 nativeBuildInputs = [
30 gettext # msgfmt
31 meson
32 ninja
33 pkg-config
34 vala
35 ];
36
37 buildInputs = [
38 elementary-bluetooth-daemon
39 granite7
40 gtk4
41 libgee
42 switchboard
43 ];
44
45 passthru = {
46 updateScript = nix-update-script { };
47 };
48
49 meta = with lib; {
50 description = "Switchboard Sharing Plug";
51 homepage = "https://github.com/elementary/switchboard-plug-sharing";
52 license = licenses.gpl3Plus;
53 platforms = platforms.linux;
54 teams = [ teams.pantheon ];
55 };
56}