lagrange: 1.7.3 → 1.9.0

This commit is contained in:
Nikolay Korotkiy 2021-11-03 14:40:00 +03:00
parent 860795fd7e
commit 0d83270c46
No known key found for this signature in database
GPG key ID: D1DE6D7F693663A5

View file

@ -13,18 +13,19 @@
, pcre , pcre
, SDL2 , SDL2
, AppKit , AppKit
, zip
, zlib , zlib
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "lagrange"; pname = "lagrange";
version = "1.7.3"; version = "1.9.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "skyjake"; owner = "skyjake";
repo = "lagrange"; repo = "lagrange";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-peBdmz/aucrKO5Vsj8WkHkpGpLm4inQHee133Zph3MM="; sha256 = "sha256-T4LZcdQHqykcv1HnTHMt5LE/1gwKPjN3f0ZmqSCID/A=";
fetchSubmodules = true; fetchSubmodules = true;
}; };
@ -32,18 +33,13 @@ stdenv.mkDerivation rec {
rm -r lib/fribidi lib/harfbuzz rm -r lib/fribidi lib/harfbuzz
''; '';
nativeBuildInputs = [ cmake pkg-config ]; nativeBuildInputs = [ cmake pkg-config zip ];
buildInputs = [ fribidi harfbuzz libunistring libwebp mpg123 openssl pcre SDL2 zlib ] buildInputs = [ fribidi harfbuzz libunistring libwebp mpg123 openssl pcre SDL2 zlib ]
++ lib.optional stdenv.isDarwin AppKit; ++ lib.optional stdenv.isDarwin AppKit;
hardeningDisable = lib.optional (!stdenv.cc.isClang) "format"; hardeningDisable = lib.optional (!stdenv.cc.isClang) "format";
cmakeFlags = [
"-DENABLE_HARFBUZZ_MINIMAL:BOOL=OFF"
"-DENABLE_FRIBIDI_BUILD:BOOL=OFF"
];
installPhase = lib.optionalString stdenv.isDarwin '' installPhase = lib.optionalString stdenv.isDarwin ''
mkdir -p $out/Applications mkdir -p $out/Applications
mv Lagrange.app $out/Applications mv Lagrange.app $out/Applications