nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 39 lines 1.2 kB view raw
1{ lib, stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 5 pname = "mlmmj"; 6 version = "1.3.0"; 7 8 src = fetchurl { 9 url = "http://mlmmj.org/releases/${pname}-${version}.tar.gz"; 10 sha256 = "1sghqvwizvm1a9w56r34qy5njaq1c26bagj85r60h32gh3fx02bn"; 11 }; 12 13 configureFlags = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ 14 # AC_FUNC_MALLOC is broken on cross builds. 15 "ac_cv_func_malloc_0_nonnull=yes" 16 "ac_cv_func_realloc_0_nonnull=yes" 17 ]; 18 19 # Workaround build failure on -fno-common toolchains like upstream 20 # gcc-10. Otherwise build fails as: 21 # ld: getlistdelim.o:/build/mlmmj-1.3.0/src/../include/mlmmj.h:84: multiple definition of 22 # `subtype_strs'; mlmmj-send.o:/build/mlmmj-1.3.0/src/../include/mlmmj.h:84: first defined here 23 env.NIX_CFLAGS_COMPILE = "-fcommon"; 24 25 postInstall = '' 26 # grab all documentation files 27 docfiles=$(find -maxdepth 1 -name "[[:upper:]][[:upper:]]*") 28 install -vDm 644 -t $out/share/doc/mlmmj/ $docfiles 29 ''; 30 31 meta = with lib; { 32 homepage = "http://mlmmj.org"; 33 description = "Mailing List Management Made Joyful"; 34 maintainers = [ maintainers.edwtjo ]; 35 platforms = platforms.linux; 36 license = licenses.mit; 37 }; 38 39}