mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-07 13:33:12 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
79 lines
1.3 KiB
Nix
79 lines
1.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, autoPatchelfHook
|
|
, dpkg
|
|
, atkmm
|
|
, cairo
|
|
, cairomm
|
|
, gtk3
|
|
, gtkmm3
|
|
, libnotify
|
|
, libsecret
|
|
, pangomm
|
|
, xorg
|
|
, libpulseaudio
|
|
, librsvg
|
|
, libzip
|
|
, openssl
|
|
, webkitgtk_4_0
|
|
, libappindicator-gtk3
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "trillian-im";
|
|
version = "6.3.0.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.trillian.im/get/linux/6.3/trillian_${version}_amd64.deb";
|
|
sha256 = "42e3466ee236ac2644907059f0961eba3a6ed6b6156afb2c57f54ebe6065ac6f";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoPatchelfHook
|
|
dpkg
|
|
];
|
|
|
|
buildInputs = [
|
|
atkmm
|
|
cairo
|
|
cairomm
|
|
gtk3
|
|
gtkmm3
|
|
libnotify
|
|
libsecret
|
|
pangomm
|
|
xorg.libXScrnSaver
|
|
libpulseaudio
|
|
librsvg
|
|
libzip
|
|
openssl
|
|
webkitgtk_4_0
|
|
libappindicator-gtk3
|
|
];
|
|
|
|
dontUnpack = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out
|
|
dpkg -x $src $out
|
|
cp -av $out/usr/* $out
|
|
rm -rf $out/usr
|
|
|
|
rm $out/bin/trillian
|
|
ln -s "$out/share/trillian/trillian" "$out/bin/trillian"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Modern instant messaging for home and work that prioritizes chat interoperability and security";
|
|
homepage = "https://www.trillian.im/";
|
|
license = licenses.unfree;
|
|
maintainers = with maintainers; [ majiir ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|