2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2019-08-05 18:02:06 +00:00
|
|
|
, fetchFromGitHub
|
2020-07-29 16:33:39 +00:00
|
|
|
, nix-update-script
|
2019-10-10 14:38:03 +00:00
|
|
|
, fetchpatch
|
2019-08-05 18:02:06 +00:00
|
|
|
, pantheon
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-17 02:21:50 +00:00
|
|
|
, pkg-config
|
2019-08-05 18:02:06 +00:00
|
|
|
, vala
|
|
|
|
, libgee
|
|
|
|
, granite
|
|
|
|
, gtk3
|
|
|
|
, cups
|
|
|
|
, switchboard
|
|
|
|
}:
|
2018-08-20 20:31:18 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "switchboard-plug-printers";
|
2020-06-07 18:11:34 +00:00
|
|
|
version = "2.1.9";
|
2018-08-20 20:31:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-09-03 23:43:09 +00:00
|
|
|
sha256 = "sha256-tnAJyyPN/Xy1pmlgBpgO2Eb5CeHrRltjQTHmuTPBt8s=";
|
2018-08-20 20:31:18 +00:00
|
|
|
};
|
|
|
|
|
2021-04-28 03:29:17 +00:00
|
|
|
patches = [
|
|
|
|
# Fix build with latest Vala.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/elementary/switchboard-plug-printers/commit/5eced5ddda6f229d7265ea0a713f6c1cd181a526.patch";
|
|
|
|
sha256 = "lPTNqka6jjvv1JnAqVzVIQBIdDXlCOQ5ASvgZNuEUC8=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-08-20 20:31:18 +00:00
|
|
|
passthru = {
|
2020-07-29 16:33:39 +00:00
|
|
|
updateScript = nix-update-script {
|
2019-12-22 06:44:42 +00:00
|
|
|
attrPath = "pantheon.${pname}";
|
2018-08-20 20:31:18 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 02:21:50 +00:00
|
|
|
pkg-config
|
2018-08-20 20:31:18 +00:00
|
|
|
vala
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cups
|
|
|
|
granite
|
|
|
|
gtk3
|
|
|
|
libgee
|
|
|
|
switchboard
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-08-20 20:31:18 +00:00
|
|
|
description = "Switchboard Printers Plug";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/elementary/switchboard-plug-printers";
|
2018-08-20 20:31:18 +00:00
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = pantheon.maintainers;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|