Merge pull request #218963 from wegank/newt-darwin

newt: add darwin support

authored by superherointj and committed by GitHub 7de53c96 a08d6979

+10 -1
+10 -1
pkgs/development/libraries/newt/default.nix
··· 36 36 unset CPP 37 37 ''; 38 38 39 + configureFlags = lib.optionals stdenv.isDarwin [ 40 + "--disable-nls" 41 + ]; 42 + 39 43 makeFlags = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ 40 44 "CROSS_COMPILE=${stdenv.cc.targetPrefix}" 41 45 ]; 42 46 47 + postFixup = lib.optionalString stdenv.isDarwin '' 48 + install_name_tool -id $out/lib/libnewt.so.${version} $out/lib/libnewt.so.${version} 49 + install_name_tool -change libnewt.so.${version} $out/lib/libnewt.so.${version} $out/bin/whiptail 50 + ''; 51 + 43 52 meta = with lib; { 44 53 homepage = "https://pagure.io/newt"; 45 54 description = "Library for color text mode, widget based user interfaces"; 46 55 47 56 license = licenses.lgpl2; 48 - platforms = platforms.linux; 57 + platforms = platforms.unix; 49 58 maintainers = [ maintainers.viric ]; 50 59 }; 51 60 }