nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

at litex 64 lines 1.8 kB view raw
1{ lib, fetchFromGitHub, python3Packages, wrapGAppsHook, gobject-introspection, gtk3, keybinder3, xdotool, pango, gdk-pixbuf, atk }: 2 3python3Packages.buildPythonApplication rec { 4 pname = "emote"; 5 version = "3.1.0"; 6 7 src = fetchFromGitHub { 8 owner = "tom-james-watson"; 9 repo = "Emote"; 10 rev = "v${version}"; 11 sha256 = "sha256-brGU5LzE9A1F5AVNIuyd8vFKEh58ijRB5qVEID/KJfY="; 12 }; 13 14 postPatch = '' 15 substituteInPlace setup.py \ 16 --replace "pygobject==3.36.0" "pygobject" \ 17 --replace "manimpango==0.3.0" "manimpango" 18 substituteInPlace emote/config.py --replace 'os.environ.get("SNAP")' "'$out/share/emote'" 19 substituteInPlace emote/picker.py --replace 'os.environ.get("SNAP_VERSION", "dev build")' "'$version'" 20 substituteInPlace snap/gui/emote.desktop --replace "Icon=\''${SNAP}/usr/share/icons/emote.svg" "Icon=emote.svg" 21 ''; 22 23 nativeBuildInputs = [ 24 wrapGAppsHook 25 gobject-introspection 26 ]; 27 28 buildInputs = [ 29 atk 30 gdk-pixbuf 31 gtk3 32 keybinder3 33 pango 34 ]; 35 36 propagatedBuildInputs = [ 37 python3Packages.manimpango 38 python3Packages.pygobject3 39 ]; 40 41 postInstall = '' 42 install -D snap/gui/emote.desktop $out/share/applications/emote.desktop 43 install -D snap/gui/emote.svg $out/share/pixmaps/emote.svg 44 install -D -t $out/share/emote/static static/{NotoColorEmoji.ttf,emojis.csv,logo.svg,style.css} 45 ''; 46 47 dontWrapGApps = true; 48 preFixup = '' 49 makeWrapperArgs+=( 50 "''${gappsWrapperArgs[@]}" 51 --prefix PATH : ${lib.makeBinPath [ xdotool ]} 52 ) 53 ''; 54 55 doCheck = false; 56 57 meta = with lib; { 58 description = "Modern emoji picker for Linux"; 59 homepage = "https://github.com/tom-james-watson/emote"; 60 license = licenses.gpl3Plus; 61 maintainers = with maintainers; [ emilytrau SuperSandro2000 ]; 62 platforms = platforms.linux; 63 }; 64}