2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
2020-08-20 17:08:02 +00:00
|
|
|
, nix-update-script
|
2020-04-24 23:36:52 +00:00
|
|
|
, pantheon
|
|
|
|
, pkgconfig
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, gettext
|
|
|
|
, vala
|
|
|
|
, python3
|
|
|
|
, desktop-file-utils
|
|
|
|
, libcanberra
|
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, libgee
|
|
|
|
, granite
|
|
|
|
, libnotify
|
|
|
|
, libunity
|
|
|
|
, pango
|
2020-09-25 04:45:31 +00:00
|
|
|
, elementary-dock
|
2020-04-24 23:36:52 +00:00
|
|
|
, bamf
|
|
|
|
, sqlite
|
|
|
|
, libdbusmenu-gtk3
|
|
|
|
, zeitgeist
|
|
|
|
, glib-networking
|
|
|
|
, elementary-icon-theme
|
|
|
|
, libcloudproviders
|
|
|
|
, libgit2-glib
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "elementary-files";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "4.5.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
repoName = "files";
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = repoName;
|
|
|
|
rev = version;
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "sha256-wtQW1poX791DAlSFdVV9psnCfBDeVXI2fDZ2GcvvNn8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
2020-08-20 17:08:02 +00:00
|
|
|
updateScript = nix-update-script {
|
2020-04-24 23:36:52 +00:00
|
|
|
attrPath = "pantheon.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
desktop-file-utils
|
|
|
|
gettext
|
|
|
|
glib-networking
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
python3
|
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
bamf
|
2020-09-25 04:45:31 +00:00
|
|
|
elementary-dock
|
2020-04-24 23:36:52 +00:00
|
|
|
elementary-icon-theme
|
|
|
|
granite
|
|
|
|
gtk3
|
|
|
|
libcanberra
|
|
|
|
libcloudproviders
|
|
|
|
libdbusmenu-gtk3
|
|
|
|
libgee
|
|
|
|
libgit2-glib
|
|
|
|
libnotify
|
|
|
|
libunity
|
|
|
|
pango
|
|
|
|
sqlite
|
|
|
|
zeitgeist
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [
|
2020-09-25 04:45:31 +00:00
|
|
|
./0001-filechooser-module-hardcode-gsettings-for-nixos.patch
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson/post_install.py
|
|
|
|
patchShebangs meson/post_install.py
|
|
|
|
|
|
|
|
substituteInPlace filechooser-module/FileChooserDialog.vala \
|
|
|
|
--subst-var-by ELEMENTARY_FILES_GSETTINGS_PATH ${glib.makeSchemaPath "$out" "${pname}-${version}"}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "File browser designed for elementary OS";
|
|
|
|
homepage = "https://github.com/elementary/files";
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = pantheon.maintainers;
|
|
|
|
};
|
|
|
|
}
|