mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
73cddfbdc3
https://gitlab.gnome.org/GNOME/gcab/-/compare/1.4...1.5 gcab: 1.4 → 1.5 https://gitlab.gnome.org/GNOME/gcab/-/compare/v1.4...v1.5 Changelog-Reviewed-By: Jan Tojnar
82 lines
1.4 KiB
Nix
82 lines
1.4 KiB
Nix
{ lib, stdenv
|
|
, fetchurl
|
|
, gettext
|
|
, gobject-introspection
|
|
, gtk-doc
|
|
, docbook_xsl
|
|
, docbook_xml_dtd_43
|
|
, pkg-config
|
|
, meson
|
|
, ninja
|
|
, vala
|
|
, glib
|
|
, zlib
|
|
, gnome
|
|
, nixosTests
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gcab";
|
|
version = "1.5";
|
|
|
|
outputs = [ "bin" "out" "dev" "devdoc" "installedTests" ];
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "Rr90QkkfqkFIJCuewqB4al9unv+xsFZuUpDozIbwDww=";
|
|
};
|
|
|
|
patches = [
|
|
# allow installing installed tests to a separate output
|
|
./installed-tests-path.patch
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
vala
|
|
gettext
|
|
gobject-introspection
|
|
gtk-doc
|
|
docbook_xsl
|
|
docbook_xml_dtd_43
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
zlib
|
|
];
|
|
|
|
# required by libgcab-1.0.pc
|
|
propagatedBuildInputs = [
|
|
glib
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Dinstalled_tests=true"
|
|
"-Dinstalled_test_prefix=${placeholder "installedTests"}"
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
passthru = {
|
|
updateScript = gnome.updateScript {
|
|
packageName = pname;
|
|
versionPolicy = "none";
|
|
};
|
|
|
|
tests = {
|
|
installedTests = nixosTests.installed-tests.gcab;
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "GObject library to create cabinet files";
|
|
homepage = "https://gitlab.gnome.org/GNOME/gcab";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = teams.gnome.members;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|