nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

at netboot-syslinux-multiplatform 54 lines 1.6 kB view raw
1{ lib, stdenv, fetchurl, pkg-config, glib, zlib, gnupg, gpgme, libidn2, libunistring, gobject-introspection 2, vala }: 3 4stdenv.mkDerivation rec { 5 version = "3.2.12"; 6 pname = "gmime"; 7 8 src = fetchurl { # https://github.com/jstedfast/gmime/releases 9 url = "https://github.com/jstedfast/gmime/releases/download/${version}/gmime-${version}.tar.xz"; 10 sha256 = "sha256-OPm3aBgjQsSExBIobbjVgRaX/4FiQ3wFea3w0G4icFs="; 11 }; 12 13 outputs = [ "out" "dev" ]; 14 15 nativeBuildInputs = [ pkg-config gobject-introspection vala ]; 16 buildInputs = [ 17 zlib 18 gpgme 19 libidn2 20 libunistring 21 vala # for share/vala/Makefile.vapigen 22 ]; 23 propagatedBuildInputs = [ glib ]; 24 configureFlags = [ 25 "--enable-introspection=yes" 26 "--enable-vala=yes" 27 ] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ "ac_cv_have_iconv_detect_h=yes" ]; 28 29 postPatch = '' 30 substituteInPlace tests/testsuite.c \ 31 --replace /bin/rm rm 32 ''; 33 34 preConfigure = '' 35 PKG_CONFIG_VAPIGEN_VAPIGEN="$(type -p vapigen)" 36 export PKG_CONFIG_VAPIGEN_VAPIGEN 37 '' + lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) '' 38 cp ${if stdenv.hostPlatform.isMusl then ./musl-iconv-detect.h else ./iconv-detect.h} ./iconv-detect.h 39 ''; 40 41 nativeCheckInputs = [ gnupg ]; 42 43 doCheck = true; 44 45 enableParallelBuilding = true; 46 47 meta = with lib; { 48 homepage = "https://github.com/jstedfast/gmime/"; 49 description = "A C/C++ library for creating, editing and parsing MIME messages and structures"; 50 license = licenses.lgpl21Plus; 51 maintainers = with maintainers; [ ]; 52 platforms = platforms.unix; 53 }; 54}