depot/third_party/nixpkgs/pkgs/development/tools/misc/msitools/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

72 lines
1.2 KiB
Nix

{ lib
, stdenv
, fetchurl
, meson
, ninja
, vala
, gobject-introspection
, perl
, bison
, gettext
, glib
, pkg-config
, libgsf
, gcab
, bzip2
, gnome
}:
stdenv.mkDerivation rec {
pname = "msitools";
version = "0.103";
src = fetchurl {
url = "mirror://gnome/sources/msitools/${lib.versions.majorMinor version}/msitools-${version}.tar.xz";
hash = "sha256-0XYi7rvzf6TAm1m+C8jbCLJr4wCmcxx02h684mK86Dk=";
};
nativeBuildInputs = [
meson
ninja
vala
gobject-introspection
perl
bison
gettext
pkg-config
];
buildInputs = [
glib
libgsf
gcab
bzip2
];
# WiX tests fail on darwin
doCheck = !stdenv.isDarwin;
postPatch = ''
patchShebangs subprojects/bats-core/{bin,libexec}
'';
passthru = {
updateScript = gnome.updateScript {
packageName = pname;
versionPolicy = "none";
};
};
meta = with lib; {
description = "Set of programs to inspect and build Windows Installer (.MSI) files";
homepage = "https://wiki.gnome.org/msitools";
license = with licenses; [
# Library
lgpl21Plus
# Tools
gpl2Plus
];
maintainers = with maintainers; [ PlushBeaver ];
platforms = platforms.unix;
};
}