Merge pull request #100912 from austinbutler/tangram

tangram: init at 1.3.1

authored by

Sandro and committed by
GitHub
6270a852 f5a2a025

+58
+56
pkgs/applications/networking/instant-messengers/tangram/default.nix
···
··· 1 + { stdenv, lib, fetchFromGitHub, appstream-glib, desktop-file-utils, gdk-pixbuf 2 + , gettext, gjs, glib, gobject-introspection, gsettings-desktop-schemas, gtk3 3 + , hicolor-icon-theme, meson, ninja, pkgconfig, python3, webkitgtk, wrapGAppsHook 4 + }: 5 + 6 + stdenv.mkDerivation rec { 7 + pname = "tangram"; 8 + version = "1.3.1"; 9 + 10 + src = fetchFromGitHub { 11 + owner = "sonnyp"; 12 + repo = "Tangram"; 13 + rev = "v${version}"; 14 + sha256 = "0bhs9s6c2k06i3cx01h2102lgl7g6vxm3k63jkkhh2bwdpc9kvn3"; 15 + fetchSubmodules = true; 16 + }; 17 + 18 + buildInputs = [ gdk-pixbuf gjs glib gsettings-desktop-schemas gtk3 webkitgtk ]; 19 + 20 + nativeBuildInputs = [ 21 + appstream-glib 22 + desktop-file-utils 23 + gettext 24 + gobject-introspection 25 + hicolor-icon-theme 26 + meson 27 + ninja 28 + pkgconfig 29 + python3 30 + wrapGAppsHook 31 + ]; 32 + 33 + dontWrapGApps = true; 34 + 35 + # Fixes https://github.com/NixOS/nixpkgs/issues/31168 36 + postPatch = '' 37 + chmod +x build-aux/meson/postinstall.py 38 + patchShebangs build-aux/meson/postinstall.py 39 + ''; 40 + 41 + postFixup = '' 42 + for file in $out/bin/re.sonny.Tangram; do 43 + sed -e $"2iimports.package._findEffectiveEntryPointName = () => \'$(basename $file)\' " \ 44 + -i $file 45 + wrapGApp "$file" 46 + done 47 + ''; 48 + 49 + meta = with lib; { 50 + description = "Run web apps on your desktop"; 51 + homepage = "https://github.com/sonnyp/Tangram"; 52 + license = licenses.gpl3Only; 53 + platforms = platforms.linux; 54 + maintainers = with maintainers; [ austinbutler ]; 55 + }; 56 + }
+2
pkgs/top-level/all-packages.nix
··· 8061 inherit (darwin.apple_sdk.frameworks) IOKit; 8062 }; 8063 8064 t1utils = callPackage ../tools/misc/t1utils { }; 8065 8066 talkfilters = callPackage ../misc/talkfilters {};
··· 8061 inherit (darwin.apple_sdk.frameworks) IOKit; 8062 }; 8063 8064 + tangram = callPackage ../applications/networking/instant-messengers/tangram { }; 8065 + 8066 t1utils = callPackage ../tools/misc/t1utils { }; 8067 8068 talkfilters = callPackage ../misc/talkfilters {};