-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a315a15
commit 2b9ea67
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
pkgs/applications/networking/instant-messengers/tangram/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ stdenv, lib, fetchFromGitHub, appstream-glib, desktop-file-utils, gdk-pixbuf | ||
, gettext, gjs, glib, gobject-introspection, gsettings-desktop-schemas, gtk3 | ||
, hicolor-icon-theme, meson, ninja, pkgconfig, python3, webkitgtk, wrapGAppsHook | ||
}: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "tangram"; | ||
version = "1.3.1"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "sonnyp"; | ||
repo = "Tangram"; | ||
rev = "v${version}"; | ||
sha256 = "0bhs9s6c2k06i3cx01h2102lgl7g6vxm3k63jkkhh2bwdpc9kvn3"; | ||
fetchSubmodules = true; | ||
}; | ||
|
||
buildInputs = [ gdk-pixbuf gjs glib gsettings-desktop-schemas gtk3 webkitgtk ]; | ||
|
||
nativeBuildInputs = [ | ||
appstream-glib | ||
desktop-file-utils | ||
gettext | ||
gobject-introspection | ||
hicolor-icon-theme | ||
meson | ||
ninja | ||
pkgconfig | ||
python3 | ||
wrapGAppsHook | ||
]; | ||
|
||
dontWrapGApps = true; | ||
|
||
# Fixes https://github.com/NixOS/nixpkgs/issues/31168 | ||
postPatch = '' | ||
chmod +x build-aux/meson/postinstall.py | ||
patchShebangs build-aux/meson/postinstall.py | ||
''; | ||
|
||
postFixup = '' | ||
for file in $out/bin/re.sonny.Tangram; do | ||
sed -e $"2iimports.package._findEffectiveEntryPointName = () => \'$(basename $file)\' " \ | ||
-i $file | ||
wrapGApp "$file" | ||
done | ||
''; | ||
|
||
meta = with lib; { | ||
description = "Run web apps on your desktop"; | ||
homepage = "https://github.com/sonnyp/Tangram"; | ||
license = licenses.gpl3Only; | ||
platforms = platforms.linux; | ||
maintainers = with maintainers; [ austinbutler ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters