Loading pkgs/by-name/ne/nemo-seahorse/fix-schemas.patch 0 → 100644 +16 −0 Original line number Diff line number Diff line --- a/data/meson.build +++ b/data/meson.build @@ -1,10 +1,13 @@ dataconf = configuration_data() dataconf.set('VERSION', meson.project_version()) +schemadir = get_option('prefix') / get_option('datadir') / 'glib-2.0' / 'schemas' + install_data( 'org.nemo.plugins.seahorse.gschema.xml', 'org.nemo.plugins.seahorse.window.gschema.xml', install_dir: get_option('datadir') / 'glib-2.0' / 'schemas', ) +meson.add_install_script('glib-compile-schemas', schemadir) install_man('nemo-seahorse-tool.1') pkgs/by-name/ne/nemo-seahorse/package.nix 0 → 100644 +90 −0 Original line number Diff line number Diff line { stdenv, lib, fetchFromGitHub, meson, pkg-config, ninja, glib, gtk3, nemo, cmake, dbus-glib, libcryptui, gcr, libnotify, gnupg, gpgme, nix-update-script, }: stdenv.mkDerivation rec { pname = "nemo-seahorse"; version = "6.4.0"; src = fetchFromGitHub { owner = "linuxmint"; repo = "nemo-extensions"; tag = version; hash = "sha256-39hWA4SNuEeaPA6D5mWMHjJDs4hYK7/ZdPkTyskvm5Y="; }; sourceRoot = "${src.name}/nemo-seahorse"; patches = [ ./fix-schemas.patch ]; nativeBuildInputs = [ meson pkg-config ninja cmake ]; buildInputs = [ glib gtk3 nemo gpgme dbus-glib libcryptui gcr libnotify gnupg ]; PKG_CONFIG_LIBNEMO_EXTENSION_EXTENSIONDIR = "${placeholder "out"}/${nemo.extensiondir}"; passthru.updateScript = nix-update-script { }; meta = { homepage = "https://github.com/linuxmint/nemo-extensions/tree/master/nemo-seahorse"; changelog = "https://github.com/linuxmint/nemo-extensions/blob/master/nemo-seahorse/ChangeLog"; description = "Nemo seahorse extension"; longDescription = '' You can add the extension to nemo using the following configuration: ```nix { environment.systemPackages = with pkgs; [ (nemo-with-extensions.override { extensions = [ nemo-seahorse ]; }) ]; services.dbus.packages = with pkgs; [ libcryptui ]; services.xserver.desktopManager.gnome.extraGSettingsOverridePackages = with pkgs; [ nemo gcr libcryptui nemo-seahorse ]; } ``` ''; license = lib.licenses.gpl2Plus; platforms = lib.platforms.linux; maintainers = lib.teams.cinnamon.members; }; } Loading
pkgs/by-name/ne/nemo-seahorse/fix-schemas.patch 0 → 100644 +16 −0 Original line number Diff line number Diff line --- a/data/meson.build +++ b/data/meson.build @@ -1,10 +1,13 @@ dataconf = configuration_data() dataconf.set('VERSION', meson.project_version()) +schemadir = get_option('prefix') / get_option('datadir') / 'glib-2.0' / 'schemas' + install_data( 'org.nemo.plugins.seahorse.gschema.xml', 'org.nemo.plugins.seahorse.window.gschema.xml', install_dir: get_option('datadir') / 'glib-2.0' / 'schemas', ) +meson.add_install_script('glib-compile-schemas', schemadir) install_man('nemo-seahorse-tool.1')
pkgs/by-name/ne/nemo-seahorse/package.nix 0 → 100644 +90 −0 Original line number Diff line number Diff line { stdenv, lib, fetchFromGitHub, meson, pkg-config, ninja, glib, gtk3, nemo, cmake, dbus-glib, libcryptui, gcr, libnotify, gnupg, gpgme, nix-update-script, }: stdenv.mkDerivation rec { pname = "nemo-seahorse"; version = "6.4.0"; src = fetchFromGitHub { owner = "linuxmint"; repo = "nemo-extensions"; tag = version; hash = "sha256-39hWA4SNuEeaPA6D5mWMHjJDs4hYK7/ZdPkTyskvm5Y="; }; sourceRoot = "${src.name}/nemo-seahorse"; patches = [ ./fix-schemas.patch ]; nativeBuildInputs = [ meson pkg-config ninja cmake ]; buildInputs = [ glib gtk3 nemo gpgme dbus-glib libcryptui gcr libnotify gnupg ]; PKG_CONFIG_LIBNEMO_EXTENSION_EXTENSIONDIR = "${placeholder "out"}/${nemo.extensiondir}"; passthru.updateScript = nix-update-script { }; meta = { homepage = "https://github.com/linuxmint/nemo-extensions/tree/master/nemo-seahorse"; changelog = "https://github.com/linuxmint/nemo-extensions/blob/master/nemo-seahorse/ChangeLog"; description = "Nemo seahorse extension"; longDescription = '' You can add the extension to nemo using the following configuration: ```nix { environment.systemPackages = with pkgs; [ (nemo-with-extensions.override { extensions = [ nemo-seahorse ]; }) ]; services.dbus.packages = with pkgs; [ libcryptui ]; services.xserver.desktopManager.gnome.extraGSettingsOverridePackages = with pkgs; [ nemo gcr libcryptui nemo-seahorse ]; } ``` ''; license = lib.licenses.gpl2Plus; platforms = lib.platforms.linux; maintainers = lib.teams.cinnamon.members; }; }