2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2019-08-05 19:02:06 +01:00
|
|
|
, fetchFromGitHub
|
2020-07-29 17:33:39 +01:00
|
|
|
, nix-update-script
|
2019-08-05 19:02:06 +01:00
|
|
|
, pantheon
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkgconfig
|
|
|
|
, substituteAll
|
|
|
|
, vala
|
|
|
|
, libgee
|
|
|
|
, granite
|
|
|
|
, gtk3
|
|
|
|
, networkmanager
|
|
|
|
, networkmanagerapplet
|
2020-03-16 00:14:00 +00:00
|
|
|
, libnma
|
2019-08-05 19:02:06 +01:00
|
|
|
, switchboard
|
|
|
|
}:
|
2018-08-20 21:31:18 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "switchboard-plug-network";
|
2020-09-04 00:46:11 +01:00
|
|
|
version = "2.3.2";
|
2018-08-20 21:31:18 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-09-04 00:46:11 +01:00
|
|
|
sha256 = "sha256-PYgewxBblhOfOJQSeRaq8xD7qZ3083EvgUjpi92FqyI=";
|
2018-08-20 21:31:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
2020-07-29 17:33:39 +01:00
|
|
|
updateScript = nix-update-script {
|
2019-12-22 06:44:42 +00:00
|
|
|
attrPath = "pantheon.${pname}";
|
2018-08-20 21:31:18 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
vala
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
granite
|
|
|
|
gtk3
|
|
|
|
libgee
|
|
|
|
networkmanager
|
2020-03-16 00:14:00 +00:00
|
|
|
libnma
|
2018-08-20 21:31:18 +01:00
|
|
|
switchboard
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
2019-11-19 19:35:53 +00:00
|
|
|
src = ./fix-paths.patch;
|
|
|
|
inherit networkmanagerapplet;
|
2018-08-20 21:31:18 +01:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-08-20 21:31:18 +01:00
|
|
|
description = "Switchboard Networking Plug";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/elementary/switchboard-plug-network";
|
2018-08-20 21:31:18 +01:00
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = pantheon.maintainers;
|
|
|
|
};
|
|
|
|
}
|