diff options
author | Robert Schütz <nix@dotlambda.de> | 2024-02-11 18:48:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-11 18:48:30 +0000 |
commit | e0e2c98980c239d5044b91b0ef066b5e6211d889 (patch) | |
tree | 78341171ab7587aa03f1b6087533f99f9439fef4 /pkgs/by-name | |
parent | fcd57d8c477a34ab26f361a0dcf42defd4eb92b1 (diff) | |
parent | 478609bbfc3b4158ed65b0234371ed05d740904b (diff) | |
download | nixlib-e0e2c98980c239d5044b91b0ef066b5e6211d889.tar nixlib-e0e2c98980c239d5044b91b0ef066b5e6211d889.tar.gz nixlib-e0e2c98980c239d5044b91b0ef066b5e6211d889.tar.bz2 nixlib-e0e2c98980c239d5044b91b0ef066b5e6211d889.tar.lz nixlib-e0e2c98980c239d5044b91b0ef066b5e6211d889.tar.xz nixlib-e0e2c98980c239d5044b91b0ef066b5e6211d889.tar.zst nixlib-e0e2c98980c239d5044b91b0ef066b5e6211d889.zip |
Merge pull request #284708 from dotlambda/smile-init
smile: init at 2.9.0
Diffstat (limited to 'pkgs/by-name')
-rw-r--r-- | pkgs/by-name/sm/smile/package.nix | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/pkgs/by-name/sm/smile/package.nix b/pkgs/by-name/sm/smile/package.nix new file mode 100644 index 000000000000..1c95965fde22 --- /dev/null +++ b/pkgs/by-name/sm/smile/package.nix @@ -0,0 +1,68 @@ +{ lib +, python3 +, fetchFromGitHub +, desktop-file-utils +, glib +, gobject-introspection +, gtk4 +, meson +, ninja +, wrapGAppsHook4 +, libadwaita +}: + +python3.pkgs.buildPythonApplication rec { + pname = "smile"; + version = "2.9.0"; + format = "other"; + + src = fetchFromGitHub { + owner = "mijorus"; + repo = "smile"; + rev = version; + hash = "sha256-tXbRel+rtaE2zPO8NOc4X+Ktk4PdRHBMtpsGLbvuHZk="; + }; + + postPatch = '' + patchShebangs build-aux/meson/postinstall.py + + substituteInPlace build-aux/meson/postinstall.py \ + --replace-fail gtk-update-icon-cache gtk4-update-icon-cache + ''; + + nativeBuildInputs = [ + desktop-file-utils # for update-desktop-database + glib # for glib-compile-resources + gobject-introspection + gtk4 # for gtk4-update-icon-cache + meson + ninja + wrapGAppsHook4 + ]; + + buildInputs = [ + libadwaita + ]; + + propagatedBuildInputs = with python3.pkgs; [ + dbus-python + manimpango + pygobject3 + ]; + + dontWrapGApps = true; + + preFixup = '' + makeWrapperArgs+=("''${gappsWrapperArgs[@]}") + ''; + + meta = { + changelog = "https://smile.mijorus.it/changelog"; + description = "An emoji picker for linux, with custom tags support and localization"; + downloadPage = "https://github.com/mijorus/smile"; + homepage = "https://mijorus.it/projects/smile/"; + license = lib.licenses.gpl3Plus; + mainProgram = "smile"; + maintainers = with lib.maintainers; [ koppor ]; + }; +} |