nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 46 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromCodeberg, 5 autoreconfHook, 6 atf, 7 pkg-config, 8 kyua, 9}: 10stdenv.mkDerivation rec { 11 pname = "mlmmj"; 12 version = "1.5.0"; 13 14 src = fetchFromCodeberg { 15 owner = "mlmmj"; 16 repo = "mlmmj"; 17 tag = "RELEASE_" + lib.replaceStrings [ "." ] [ "_" ] version; 18 hash = "sha256-kAo04onxVve3kCaM4h1APsjs3C4iePabkBFJeqvnPxo="; 19 }; 20 21 nativeBuildInputs = [ 22 autoreconfHook 23 atf 24 pkg-config 25 kyua 26 ]; 27 28 configureFlags = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ 29 # AC_FUNC_MALLOC is broken on cross builds. 30 "ac_cv_func_malloc_0_nonnull=yes" 31 "ac_cv_func_realloc_0_nonnull=yes" 32 ]; 33 34 postInstall = '' 35 # grab all documentation files 36 docfiles=$(find -maxdepth 1 -name "[[:upper:]][[:upper:]]*") 37 install -vDm 644 -t $out/share/doc/mlmmj/ $docfiles 38 ''; 39 40 meta = { 41 homepage = "http://mlmmj.org"; 42 description = "Mailing List Management Made Joyful"; 43 platforms = lib.platforms.linux; 44 license = lib.licenses.mit; 45 }; 46}