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

45 lines
948 B
Nix
Raw Normal View History

2021-01-13 18:31:08 +00:00
{ stdenv
, lib
, fetchFromGitHub
, cmake
, pkg-config
, libunistring
, openssl
, pcre
, SDL2
, AppKit
}:
stdenv.mkDerivation rec {
pname = "lagrange";
2021-01-28 21:57:51 +00:00
version = "1.1.0";
2021-01-13 18:31:08 +00:00
src = fetchFromGitHub {
owner = "skyjake";
repo = "lagrange";
rev = "v${version}";
2021-01-28 21:57:51 +00:00
sha256 = "04bp5k1byjbzwnmcx4b7sw68pr2jrj4c21z76jq311hyrmanj6fi";
2021-01-13 18:31:08 +00:00
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ libunistring openssl pcre SDL2 ]
++ lib.optional stdenv.isDarwin AppKit;
hardeningDisable = lib.optional (!stdenv.cc.isClang) "format";
installPhase = if stdenv.isDarwin then ''
mkdir -p $out/Applications
mv Lagrange.app $out/Applications
'' else null;
meta = with lib; {
description = "A Beautiful Gemini Client";
homepage = "https://gmi.skyjake.fi/lagrange/";
license = licenses.bsd2;
maintainers = with maintainers; [ sikmir ];
platforms = platforms.unix;
};
}