summary refs log tree commit diff
path: root/pkgs/tools/package-management/packagekit/default.nix
blob: 15b6fd5fe9cb8e68c12d359fc957e2d40e9c2662 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{ stdenv, fetchurl, intltool, glib, pkgconfig, polkit, python, sqlite }:

let version = "1.0.7"; in
stdenv.mkDerivation {
  name = "packagekit-${version}";

  src = fetchurl {
    sha256 = "0klwr0y3a72xpz6bwv4afbk3vvx5r1av5idhz3mx4p9ssnscb1mi";
    url = "https://www.freedesktop.org/software/PackageKit/releases/PackageKit-${version}.tar.xz";
  };

  buildInputs = [ glib polkit python ];
  propagatedBuildInputs = [ sqlite ];
  nativeBuildInputs = [ intltool pkgconfig ];

  configureFlags = ''
    --disable-static
    --disable-python3
    --disable-networkmanager
    --disable-connman
    --disable-systemd
    --disable-bash-completion
    --disable-browser-plugin
    --disable-gstreamer-plugin
    --disable-gtk-module
    --disable-command-not-found
    --disable-cron
    --disable-daemon-tests
    --disable-alpm
    --disable-aptcc
    --enable-dummy
    --disable-entropy
    --disable-hif
    --disable-pisi
    --disable-poldek
    --disable-portage
    --disable-ports
    --disable-katja
    --disable-urmpi
    --disable-yum
    --disable-zypp
  '';

  enableParallelBuilding = true;

  preInstall = ''
    # Don't install anything to e.g. $out/var/cache:
    for dir in src data; do
      substituteInPlace $dir/Makefile \
        --replace " install-data-hook" "" \
        --replace " install-databaseDATA" ""
    done
  '';

  meta = with stdenv.lib; {
    inherit version;
    description = "System to facilitate installing and updating packages";
    longDescription = ''
      PackageKit is a system designed to make installing and updating software
      on your computer easier. The primary design goal is to unify all the
      software graphical tools used in different distributions, and use some of
      the latest technology like PolicyKit. The actual nuts-and-bolts distro
      tool (dnf, apt, etc) is used by PackageKit using compiled and scripted
      helpers. PackageKit isn't meant to replace these tools, instead providing
      a common set of abstractions that can be used by standard GUI and text
      mode package managers.
    '';
    homepage = http://www.packagekit.org/;
    license = licenses.gpl2Plus;
    platforms = platforms.linux;
    maintainers = with maintainers; [ nckx ];
  };
}