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
, SDL2
, AppKit
, zip
, zlib
}:
stdenv.mkDerivation rec {
pname = "lagrange";
version = "1.7.3";
version = "1.9.0";
src = fetchFromGitHub {
owner = "skyjake";
repo = "lagrange";
rev = "v${version}";
sha256 = "sha256-peBdmz/aucrKO5Vsj8WkHkpGpLm4inQHee133Zph3MM=";
sha256 = "sha256-T4LZcdQHqykcv1HnTHMt5LE/1gwKPjN3f0ZmqSCID/A=";
fetchSubmodules = true;
};
@ -32,18 +33,13 @@ stdenv.mkDerivation rec {
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 ]
++ lib.optional stdenv.isDarwin AppKit;
hardeningDisable = lib.optional (!stdenv.cc.isClang) "format";
cmakeFlags = [
"-DENABLE_HARFBUZZ_MINIMAL:BOOL=OFF"
"-DENABLE_FRIBIDI_BUILD:BOOL=OFF"
];
installPhase = lib.optionalString stdenv.isDarwin ''
mkdir -p $out/Applications
mv Lagrange.app $out/Applications