Files
nixpkgs/pkgs/by-name/gc/gcab/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

91 lines
1.5 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.6";
outputs = [
"bin"
"out"
"dev"
"devdoc"
"installedTests"
];
src = fetchurl {
url = "mirror://gnome/sources/gcab/${lib.versions.majorMinor version}/gcab-${version}.tar.xz";
hash = "sha256-LwyWFVd8QSaQniUfneBibD7noVI3bBW1VE3xD8h+Vgs=";
};
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";
mainProgram = "gcab";
homepage = "https://gitlab.gnome.org/GNOME/gcab";
license = licenses.lgpl21Plus;
teams = [ teams.gnome ];
platforms = platforms.unix;
};
}