nixpkgs-suyu/pkgs/desktops/pantheon/services/elementary-capnet-assist/default.nix

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

70 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, nix-update-script
2021-01-17 03:21:50 +01:00
, pkg-config
, meson
, python3
, ninja
, vala
, desktop-file-utils
, gtk3
, granite
, libgee
, libhandy
, gcr
, webkitgtk
, wrapGAppsHook
}:
2018-08-20 22:31:18 +02:00
stdenv.mkDerivation rec {
pname = "elementary-capnet-assist";
version = "2.4.1";
2018-08-20 22:31:18 +02:00
src = fetchFromGitHub {
owner = "elementary";
repo = "capnet-assist";
2018-08-20 22:31:18 +02:00
rev = version;
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
libhandy
2018-08-20 22:31:18 +02:00
webkitgtk
];
postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
'';
passthru = {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};
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";
homepage = "https://github.com/elementary/capnet-assist";
license = licenses.gpl3Plus;
2018-08-20 22:31:18 +02:00
platforms = platforms.linux;
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
};
}