summary refs log tree commit diff
path: root/pkgs/development/libraries/gcab/default.nix
blob: ee5988b30f57710e7ea779435223dbd4f430e274 (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
{ stdenv, fetchurl, gettext, gobject-introspection, pkgconfig
, meson, ninja, glibcLocales, git, vala, glib, zlib, gnome3
}:

stdenv.mkDerivation rec {
  pname = "gcab";
  version = "1.2";

  LC_ALL = "en_US.UTF-8";

  src = fetchurl {
    url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
    sha256 = "038h5kk41si2hc9d9169rrlvp8xgsxq27kri7hv2vr39gvz9cbas";
  };

  nativeBuildInputs = [ meson ninja glibcLocales git pkgconfig vala gettext gobject-introspection ];

  buildInputs = [ glib zlib ];

  mesonFlags = [
    "-Ddocs=false"
    "-Dtests=false"
  ];

  passthru = {
    updateScript = gnome3.updateScript {
      packageName = pname;
      versionPolicy = "none";
    };
  };

  meta = with stdenv.lib; {
    platforms = platforms.linux;
    license = licenses.lgpl21;
    homepage = "https://wiki.gnome.org/msitools";
    maintainers = [ maintainers.lethalman ];
  };
}