nixpkgs/pkgs/applications/networking/browsers/lagrange/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
1.1 KiB
Nix
Raw Normal View History

2021-01-13 19:31:08 +01:00
{ stdenv
, lib
, fetchFromGitHub
2021-02-04 08:23:03 +01:00
, nix-update-script
2021-01-13 19:31:08 +01:00
, cmake
, pkg-config
2021-07-29 23:38:27 +02:00
, fribidi
, harfbuzz
2021-01-13 19:31:08 +01:00
, libunistring
2021-09-28 15:16:32 +02:00
, libwebp
2021-02-04 08:23:03 +01:00
, mpg123
2021-01-13 19:31:08 +01:00
, openssl
, pcre
, SDL2
, AppKit
2021-11-03 12:40:00 +01:00
, zip
2021-05-07 16:13:44 +02:00
, zlib
2021-01-13 19:31:08 +01:00
}:
stdenv.mkDerivation rec {
pname = "lagrange";
2022-03-03 10:13:22 +01:00
version = "1.11.1";
2021-01-13 19:31:08 +01:00
src = fetchFromGitHub {
owner = "skyjake";
repo = "lagrange";
rev = "v${version}";
2022-03-03 10:13:22 +01:00
sha256 = "sha256-RrdD+G8DKOBm0TpmRQg1uMGNFAlAADFeK3h6oyo5RZ4=";
2021-01-13 19:31:08 +01:00
fetchSubmodules = true;
};
2021-07-29 23:38:27 +02:00
postPatch = ''
rm -r lib/fribidi lib/harfbuzz
'';
2021-11-03 12:40:00 +01:00
nativeBuildInputs = [ cmake pkg-config zip ];
2021-01-13 19:31:08 +01:00
2021-09-28 15:16:32 +02:00
buildInputs = [ fribidi harfbuzz libunistring libwebp mpg123 openssl pcre SDL2 zlib ]
2021-01-13 19:31:08 +01:00
++ lib.optional stdenv.isDarwin AppKit;
2021-07-29 23:38:27 +02:00
installPhase = lib.optionalString stdenv.isDarwin ''
2021-01-13 19:31:08 +01:00
mkdir -p $out/Applications
mv Lagrange.app $out/Applications
2021-07-29 23:38:27 +02:00
'';
2021-01-13 19:31:08 +01:00
2021-02-04 08:23:03 +01:00
passthru = {
updateScript = nix-update-script {
attrPath = pname;
};
};
2021-01-13 19:31:08 +01:00
meta = with lib; {
description = "A Beautiful Gemini Client";
homepage = "https://gmi.skyjake.fi/lagrange/";
license = licenses.bsd2;
maintainers = with maintainers; [ sikmir ];
platforms = platforms.unix;
};
}