mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{ stdenv, fetchFromGitHub, pantheon, substituteAll, meson, ninja, pkgconfig
|
|
, vala, libgee, granite, gtk3, switchboard, pciutils, gobject-introspection }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "switchboard-plug-about";
|
|
version = "2.5.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elementary";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "11diwz2aj45yqkxdija8ny0sgm0wl2905gl3799cdl12ss9ffndp";
|
|
};
|
|
|
|
passthru = {
|
|
updateScript = pantheon.updateScript {
|
|
repoName = pname;
|
|
};
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
gobject-introspection
|
|
meson
|
|
ninja
|
|
pkgconfig
|
|
vala
|
|
];
|
|
|
|
buildInputs = [
|
|
granite
|
|
gtk3
|
|
libgee
|
|
switchboard
|
|
];
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./lspci-path.patch;
|
|
inherit pciutils;
|
|
})
|
|
./remove-update-button.patch
|
|
];
|
|
|
|
PKG_CONFIG_SWITCHBOARD_2_0_PLUGSDIR = "lib/switchboard";
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Switchboard About Plug";
|
|
homepage = https://github.com/elementary/witchboard-plug-about;
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = pantheon.maintainers;
|
|
};
|
|
|
|
}
|