nixpkgs-suyu/pkgs/desktops/pantheon/apps/elementary-files/default.nix

99 lines
1.6 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, nix-update-script
, pkg-config
, meson
, ninja
, gettext
, vala
, python3
, desktop-file-utils
, libcanberra
, gtk3
, glib
, libgee
, libhandy
, granite
, libnotify
, pango
, elementary-dock
, bamf
, sqlite
, libdbusmenu-gtk3
, zeitgeist
, glib-networking
, elementary-icon-theme
, libcloudproviders
, libgit2-glib
, wrapGAppsHook
, systemd
}:
stdenv.mkDerivation rec {
pname = "elementary-files";
version = "6.1.0";
repoName = "files";
outputs = [ "out" "dev" ];
src = fetchFromGitHub {
owner = "elementary";
repo = repoName;
rev = version;
sha256 = "sha256-aGiFEeSvDV5rPD2Ll/BuDoWclEPhR1UuoCxUSS9CGmw=";
};
passthru = {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};
nativeBuildInputs = [
desktop-file-utils
gettext
glib-networking
meson
ninja
pkg-config
python3
vala
wrapGAppsHook
];
buildInputs = [
bamf
elementary-dock
elementary-icon-theme
glib
granite
gtk3
libcanberra
libcloudproviders
libdbusmenu-gtk3
libgee
libgit2-glib
libhandy
libnotify
pango
sqlite
systemd
zeitgeist
];
postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
'';
meta = with lib; {
description = "File browser designed for elementary OS";
homepage = "https://github.com/elementary/files";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = teams.pantheon.members;
mainProgram = "io.elementary.files";
};
}