2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
|
|
|
, vala
|
|
|
|
, atk
|
|
|
|
, cairo
|
|
|
|
, dconf
|
|
|
|
, glib
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2020-04-24 23:36:52 +00:00
|
|
|
, gtk3
|
2021-06-28 23:13:55 +00:00
|
|
|
, libwnck
|
2020-04-24 23:36:52 +00:00
|
|
|
, libX11
|
|
|
|
, libXfixes
|
|
|
|
, libXi
|
|
|
|
, pango
|
|
|
|
, gettext
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, libxml2
|
|
|
|
, bamf
|
|
|
|
, gdk-pixbuf
|
|
|
|
, libdbusmenu-gtk3
|
|
|
|
, file
|
|
|
|
, gnome-menus
|
|
|
|
, libgee
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2020-04-24 23:36:52 +00:00
|
|
|
, autoreconfHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "plank";
|
|
|
|
version = "0.11.89";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://launchpad.net/${pname}/1.0/${version}/+download/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "17cxlmy7n13jp1v8i4abxyx9hylzb39andhz3mk41ggzmrpa8qm6";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
gettext
|
2021-05-20 23:08:51 +00:00
|
|
|
gnome.gnome-common
|
2020-04-24 23:36:52 +00:00
|
|
|
libxml2 # xmllint
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
vala
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
atk
|
|
|
|
bamf
|
|
|
|
cairo
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
|
|
|
gnome-menus
|
|
|
|
dconf
|
|
|
|
gtk3
|
|
|
|
libX11
|
|
|
|
libXfixes
|
|
|
|
libXi
|
|
|
|
libdbusmenu-gtk3
|
|
|
|
libgee
|
2021-06-28 23:13:55 +00:00
|
|
|
libwnck
|
2020-04-24 23:36:52 +00:00
|
|
|
pango
|
|
|
|
];
|
|
|
|
|
|
|
|
# fix paths
|
|
|
|
makeFlags = [
|
|
|
|
"INTROSPECTION_GIRDIR=${placeholder "out"}/share/gir-1.0/"
|
|
|
|
"INTROSPECTION_TYPELIBDIR=${placeholder "out"}/lib/girepository-1.0"
|
|
|
|
];
|
|
|
|
|
|
|
|
# Make plank's application launcher hidden in Pantheon
|
|
|
|
patches = [
|
|
|
|
./hide-in-pantheon.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace ./configure \
|
|
|
|
--replace "/usr/bin/file" "${file}/bin/file"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Elegant, simple, clean dock";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "plank";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://launchpad.net/plank";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2021-09-22 15:38:15 +00:00
|
|
|
maintainers = with maintainers; [ davidak ] ++ teams.pantheon.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|