2021-01-10 23:54:33 -08:00
|
|
|
{ lib, stdenv
|
2019-08-05 11:02:06 -07:00
|
|
|
, fetchFromGitHub
|
2020-10-24 08:50:47 -07:00
|
|
|
, fetchpatch
|
2020-07-29 09:33:39 -07:00
|
|
|
, nix-update-script
|
2019-08-05 11:02:06 -07:00
|
|
|
, pantheon
|
|
|
|
, substituteAll
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-16 18:21:50 -08:00
|
|
|
, pkg-config
|
2019-08-05 11:02:06 -07:00
|
|
|
, vala
|
|
|
|
, libgee
|
|
|
|
, granite
|
|
|
|
, gtk3
|
|
|
|
, switchboard
|
|
|
|
, pciutils
|
2019-09-18 14:14:08 -07:00
|
|
|
, elementary-feedback
|
2019-08-05 11:02:06 -07:00
|
|
|
}:
|
2018-08-20 13:31:18 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "switchboard-plug-about";
|
2020-06-07 11:06:21 -07:00
|
|
|
version = "2.6.3";
|
2018-08-20 13:31:18 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-09-03 16:43:09 -07:00
|
|
|
sha256 = "sha256-wis6wNEOOjPLUCT9vRRhMxbKHR2Y2nZArKogSF/FQv8=";
|
2018-08-20 13:31:18 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
2020-07-29 09:33:39 -07:00
|
|
|
updateScript = nix-update-script {
|
2019-12-21 22:44:42 -08:00
|
|
|
attrPath = "pantheon.${pname}";
|
2018-08-20 13:31:18 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-16 18:21:50 -08:00
|
|
|
pkg-config
|
2018-08-20 13:31:18 -07:00
|
|
|
vala
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
granite
|
|
|
|
gtk3
|
|
|
|
libgee
|
|
|
|
switchboard
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [
|
2020-10-24 08:50:47 -07:00
|
|
|
# Get OS Info from GLib.Environment
|
|
|
|
# https://github.com/elementary/switchboard-plug-about/pull/128
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/elementary/switchboard-plug-about/commit/5ed29988e3a895b2df66e5529df0f12a94d5517c.patch";
|
|
|
|
sha256 = "1ipDxnpDZjpSEzZdtOeNe5U+QOXiB5M+hC3yDAsl/rQ=";
|
|
|
|
})
|
|
|
|
|
|
|
|
# Use Pretty Name
|
|
|
|
# https://github.com/elementary/switchboard-plug-about/pull/134
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/elementary/switchboard-plug-about/commit/653d131dc8fac10ae7523f2bf6b179ffffa9c0fd.patch";
|
|
|
|
sha256 = "AsM49Dc9/yn2tG6fqjfedeOlDXUu+iEoyNUmNYLH+zE=";
|
|
|
|
})
|
|
|
|
|
2018-08-20 13:31:18 -07:00
|
|
|
(substituteAll {
|
2019-09-18 14:14:08 -07:00
|
|
|
src = ./fix-paths.patch;
|
2018-08-20 13:31:18 -07:00
|
|
|
inherit pciutils;
|
2019-09-18 14:14:08 -07:00
|
|
|
elementary_feedback = elementary-feedback;
|
2018-08-20 13:31:18 -07:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2018-08-20 13:31:18 -07:00
|
|
|
description = "Switchboard About Plug";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/elementary/switchboard-plug-about";
|
2018-08-20 13:31:18 -07:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = pantheon.maintainers;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|