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 unset CPP 37 ''; 38 39 makeFlags = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ 40 "CROSS_COMPILE=${stdenv.cc.targetPrefix}" 41 ]; 42 43 meta = with lib; { 44 homepage = "https://pagure.io/newt"; 45 description = "Library for color text mode, widget based user interfaces"; 46 47 license = licenses.lgpl2; 48 - platforms = platforms.linux; 49 maintainers = [ maintainers.viric ]; 50 }; 51 }
··· 36 unset CPP 37 ''; 38 39 + configureFlags = lib.optionals stdenv.isDarwin [ 40 + "--disable-nls" 41 + ]; 42 + 43 makeFlags = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ 44 "CROSS_COMPILE=${stdenv.cc.targetPrefix}" 45 ]; 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 + 52 meta = with lib; { 53 homepage = "https://pagure.io/newt"; 54 description = "Library for color text mode, widget based user interfaces"; 55 56 license = licenses.lgpl2; 57 + platforms = platforms.unix; 58 maintainers = [ maintainers.viric ]; 59 }; 60 }