diff options
author | worldofpeace <worldofpeace@users.noreply.github.com> | 2018-08-20 16:31:18 -0400 |
---|---|---|
committer | worldofpeace <worldofpeace@users.noreply.github.com> | 2019-01-24 20:54:14 +0000 |
commit | 78da8d668b51b10d12285483a661307e1d3052eb (patch) | |
tree | f24edb95d698d3c240dd1359a0957ec776b94912 /pkgs/desktops/pantheon/apps/elementary-files/default.nix | |
parent | 2530372351fb7c65df1e209356c5eabf5a66fa9e (diff) | |
download | nixpkgs-78da8d668b51b10d12285483a661307e1d3052eb.tar nixpkgs-78da8d668b51b10d12285483a661307e1d3052eb.tar.gz nixpkgs-78da8d668b51b10d12285483a661307e1d3052eb.tar.bz2 nixpkgs-78da8d668b51b10d12285483a661307e1d3052eb.tar.lz nixpkgs-78da8d668b51b10d12285483a661307e1d3052eb.tar.xz nixpkgs-78da8d668b51b10d12285483a661307e1d3052eb.tar.zst nixpkgs-78da8d668b51b10d12285483a661307e1d3052eb.zip |
pantheon: init a 5.0
Diffstat (limited to 'pkgs/desktops/pantheon/apps/elementary-files/default.nix')
-rw-r--r-- | pkgs/desktops/pantheon/apps/elementary-files/default.nix | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/pkgs/desktops/pantheon/apps/elementary-files/default.nix b/pkgs/desktops/pantheon/apps/elementary-files/default.nix new file mode 100644 index 00000000000..947ba6c32f6 --- /dev/null +++ b/pkgs/desktops/pantheon/apps/elementary-files/default.nix @@ -0,0 +1,77 @@ +{ stdenv, fetchFromGitHub, pantheon, pkgconfig, meson, ninja, gettext, vala +, python3, desktop-file-utils, intltool, libcanberra, gtk3, libgee, granite +, libnotify, libunity, pango, plank, bamf, sqlite, libdbusmenu-gtk3, zeitgeist +, glib-networking, elementary-icon-theme, gobject-introspection, wrapGAppsHook }: + +stdenv.mkDerivation rec { + pname = "files"; + version = "4.1.3"; + + name = "elementary-${pname}-${version}"; + + src = fetchFromGitHub { + owner = "elementary"; + repo = pname; + rev = version; + sha256 = "0vz6m6kqm9r1scj1jdljbzh019skj8fhf916011wkdfzdpc1zlac"; + }; + + passthru = { + updateScript = pantheon.updateScript { + repoName = pname; + attrPath = "elementary-${pname}"; + }; + }; + + nativeBuildInputs = [ + desktop-file-utils + gettext + glib-networking + gobject-introspection + intltool + meson + ninja + pkgconfig + python3 + vala + wrapGAppsHook + ]; + + buildInputs = [ + bamf + elementary-icon-theme + granite + gtk3 + libcanberra + libdbusmenu-gtk3 + libgee + libnotify + libunity + pango + plank + sqlite + zeitgeist + ]; + + patches = [ ./hardcode-gsettings.patch ]; + + postPatch = '' + chmod +x meson/post_install.py + patchShebangs meson/post_install.py + + substituteInPlace filechooser-module/FileChooserDialog.vala --subst-var-by ELEMENTARY_FILES_GSETTINGS_PATH $out/share/gsettings-schemas/${name}/glib-2.0/schemas + ''; + + # xdg.mime will create this + postInstall = '' + rm $out/share/applications/mimeinfo.cache + ''; + + 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; + }; +} |