Merge pull request #132060 from sikmir/lagrange
lagrange: 1.5.2 → 1.6.2
This commit is contained in:
commit
fddc41b276
|
@ -4,6 +4,8 @@
|
||||||
, nix-update-script
|
, nix-update-script
|
||||||
, cmake
|
, cmake
|
||||||
, pkg-config
|
, pkg-config
|
||||||
|
, fribidi
|
||||||
|
, harfbuzz
|
||||||
, libunistring
|
, libunistring
|
||||||
, mpg123
|
, mpg123
|
||||||
, openssl
|
, openssl
|
||||||
|
@ -15,27 +17,36 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "lagrange";
|
pname = "lagrange";
|
||||||
version = "1.5.2";
|
version = "1.6.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "skyjake";
|
owner = "skyjake";
|
||||||
repo = "lagrange";
|
repo = "lagrange";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-NjiTjY2YuxUs/Wny7aDqHGw/2ML1fenjHrl089rLXFI=";
|
sha256 = "sha256-YTWVBQt0X12UDFJv/rPBqlIBC4iXSvpdYi/HIl+BPxc=";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
rm -r lib/fribidi lib/harfbuzz
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkg-config ];
|
nativeBuildInputs = [ cmake pkg-config ];
|
||||||
|
|
||||||
buildInputs = [ libunistring mpg123 openssl pcre SDL2 zlib ]
|
buildInputs = [ fribidi harfbuzz libunistring 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";
|
||||||
|
|
||||||
installPhase = if stdenv.isDarwin then ''
|
cmakeFlags = [
|
||||||
|
"-DENABLE_HARFBUZZ_MINIMAL:BOOL=OFF"
|
||||||
|
"-DENABLE_FRIBIDI_BUILD:BOOL=OFF"
|
||||||
|
];
|
||||||
|
|
||||||
|
installPhase = lib.optionalString stdenv.isDarwin ''
|
||||||
mkdir -p $out/Applications
|
mkdir -p $out/Applications
|
||||||
mv Lagrange.app $out/Applications
|
mv Lagrange.app $out/Applications
|
||||||
'' else null;
|
'';
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
updateScript = nix-update-script {
|
updateScript = nix-update-script {
|
||||||
|
|
Loading…
Reference in a new issue