2021-11-26 09:51:18 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2019-08-05 20:02:06 +02:00
|
|
|
, fetchFromGitHub
|
2020-07-29 18:33:39 +02:00
|
|
|
, nix-update-script
|
2021-01-17 03:21:50 +01:00
|
|
|
, pkg-config
|
2019-08-05 20:02:06 +02:00
|
|
|
, meson
|
|
|
|
, python3
|
|
|
|
, ninja
|
|
|
|
, vala
|
|
|
|
, desktop-file-utils
|
|
|
|
, gtk3
|
|
|
|
, granite
|
|
|
|
, libgee
|
2021-07-18 06:42:29 +02:00
|
|
|
, libhandy
|
2019-08-05 20:02:06 +02:00
|
|
|
, gcr
|
|
|
|
, webkitgtk
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2018-08-20 22:31:18 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-06 00:41:32 +02:00
|
|
|
pname = "elementary-capnet-assist";
|
2022-01-27 03:12:19 +01:00
|
|
|
version = "2.4.1";
|
2018-08-20 22:31:18 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
2022-01-13 06:31:10 +01:00
|
|
|
repo = "capnet-assist";
|
2018-08-20 22:31:18 +02:00
|
|
|
rev = version;
|
2022-01-27 03:12:19 +01:00
|
|
|
sha256 = "sha256-8hhp37EBzZxEVvPaRw9PohjaPWKQZ/AfqqvwLxQCBKk=";
|
2018-08-20 22:31:18 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
desktop-file-utils
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 03:21:50 +01:00
|
|
|
pkg-config
|
2018-08-20 22:31:18 +02:00
|
|
|
python3
|
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gcr
|
|
|
|
granite
|
|
|
|
gtk3
|
|
|
|
libgee
|
2021-07-18 06:42:29 +02:00
|
|
|
libhandy
|
2018-08-20 22:31:18 +02:00
|
|
|
webkitgtk
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson/post_install.py
|
|
|
|
patchShebangs meson/post_install.py
|
|
|
|
'';
|
|
|
|
|
2021-10-30 04:15:35 +02:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script {
|
|
|
|
attrPath = "pantheon.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-08-20 22:31:18 +02:00
|
|
|
description = "A small WebKit app that assists a user with login when a captive portal is detected";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/elementary/capnet-assist";
|
2021-07-18 06:42:29 +02:00
|
|
|
license = licenses.gpl3Plus;
|
2018-08-20 22:31:18 +02:00
|
|
|
platforms = platforms.linux;
|
2021-09-18 17:00:51 +02:00
|
|
|
maintainers = teams.pantheon.members;
|
2021-10-28 04:47:36 +02:00
|
|
|
mainProgram = "io.elementary.capnet-assist";
|
2018-08-20 22:31:18 +02:00
|
|
|
};
|
|
|
|
}
|