2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
2020-08-20 17:08:02 +00:00
|
|
|
, nix-update-script
|
2020-04-24 23:36:52 +00:00
|
|
|
, pantheon
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, gettext
|
|
|
|
, vala
|
|
|
|
, python3
|
|
|
|
, desktop-file-utils
|
|
|
|
, libcanberra
|
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, libgee
|
2021-09-22 15:38:15 +00:00
|
|
|
, libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
, granite
|
|
|
|
, libnotify
|
|
|
|
, 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
|
2021-09-22 15:38:15 +00:00
|
|
|
, systemd
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "elementary-files";
|
2021-10-01 09:20:50 +00:00
|
|
|
version = "6.0.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
repoName = "files";
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = repoName;
|
|
|
|
rev = version;
|
2021-10-01 09:20:50 +00:00
|
|
|
sha256 = "10hgj5rrqxzk4q8jlhkwwrs4hgyavlhz3z1pqf36y663bq3h0izv";
|
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
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
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
|
2021-09-22 15:38:15 +00:00
|
|
|
libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
libnotify
|
|
|
|
pango
|
|
|
|
sqlite
|
2021-09-22 15:38:15 +00:00
|
|
|
systemd
|
2020-04-24 23:36:52 +00:00
|
|
|
zeitgeist
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [
|
2021-09-22 15:38:15 +00:00
|
|
|
./filechooser-portal-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
|
|
|
|
|
2021-09-22 15:38:15 +00:00
|
|
|
substituteInPlace filechooser-portal/LegacyFileChooserDialog.vala \
|
2020-04-24 23:36:52 +00:00
|
|
|
--subst-var-by ELEMENTARY_FILES_GSETTINGS_PATH ${glib.makeSchemaPath "$out" "${pname}-${version}"}
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "File browser designed for elementary OS";
|
|
|
|
homepage = "https://github.com/elementary/files";
|
2021-09-22 15:38:15 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
2021-09-22 15:38:15 +00:00
|
|
|
maintainers = teams.pantheon.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|