nixpkgs/pkgs/by-name/te/telepathy-mission-control/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
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.
2024-11-09 20:04:51 +08:00

59 lines
1.3 KiB
Nix

{ lib, stdenv
, fetchurl
, pkg-config
, dconf
, telepathy-glib
, python3
, libxslt
, makeWrapper
, autoreconfHook
, gtk-doc
}:
stdenv.mkDerivation rec {
pname = "telepathy-mission-control";
version = "5.16.6";
outputs = [ "out" "lib" "dev" ];
src = fetchurl {
url = "https://telepathy.freedesktop.org/releases/${pname}/${pname}-${version}.tar.gz";
sha256 = "0ibs575pfr0wmhfcw6ln6iz7gw2y45l3bah11rksf6g9jlwsxy1d";
};
buildInputs = [
python3
]; # ToDo: optional stuff missing
nativeBuildInputs = [
pkg-config
libxslt
makeWrapper
] ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
autoreconfHook
gtk-doc
];
propagatedBuildInputs = [
telepathy-glib
];
doCheck = true;
enableParallelBuilding = true;
preFixup = ''
wrapProgram "$lib/libexec/mission-control-5" \
--prefix GIO_EXTRA_MODULES : "${lib.getLib dconf}/lib/gio/modules" \
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
'';
meta = with lib; {
description = "Account manager and channel dispatcher for the Telepathy framework";
homepage = "https://telepathy.freedesktop.org/components/telepathy-mission-control/";
license = licenses.lgpl21Only;
maintainers = [ ];
platforms = platforms.unix;
};
}