4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
54 lines
1.2 KiB
Nix
54 lines
1.2 KiB
Nix
{ lib, stdenv
|
|
, fetchurl
|
|
, pkg-config
|
|
, dconf
|
|
, telepathy-glib
|
|
, python3
|
|
, libxslt
|
|
, makeWrapper
|
|
}:
|
|
|
|
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
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
telepathy-glib
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
preFixup = ''
|
|
wrapProgram "$lib/libexec/mission-control-5" \
|
|
--prefix GIO_EXTRA_MODULES : "${stdenv.lib.getLib dconf}/lib/gio/modules" \
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "An account manager and channel dispatcher for the Telepathy framework";
|
|
homepage = "https://telepathy.freedesktop.org/components/telepathy-mission-control/";
|
|
license = licenses.lgpl21Only;
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|