3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/browsers/lagrange/default.nix

54 lines
1.1 KiB
Nix
Raw Normal View History

2021-01-13 18:31:08 +00:00
{ stdenv
, lib
, fetchFromGitHub
2021-02-04 07:23:03 +00:00
, nix-update-script
2021-01-13 18:31:08 +00:00
, cmake
, pkg-config
, libunistring
2021-02-04 07:23:03 +00:00
, mpg123
2021-01-13 18:31:08 +00:00
, openssl
, pcre
, SDL2
, AppKit
2021-05-07 15:13:44 +01:00
, zlib
2021-01-13 18:31:08 +00:00
}:
stdenv.mkDerivation rec {
pname = "lagrange";
2021-05-07 15:13:44 +01:00
version = "1.4.0";
2021-01-13 18:31:08 +00:00
src = fetchFromGitHub {
owner = "skyjake";
repo = "lagrange";
rev = "v${version}";
2021-05-07 15:13:44 +01:00
sha256 = "sha256-l8k81w+ilkOk8iQTc46+HK40JQZ0dCYVAvkGTrEpZSQ=";
2021-01-13 18:31:08 +00:00
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake pkg-config ];
2021-05-07 15:13:44 +01:00
buildInputs = [ libunistring mpg123 openssl pcre SDL2 zlib ]
2021-01-13 18:31:08 +00:00
++ 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;
2021-02-04 07:23:03 +00:00
passthru = {
updateScript = nix-update-script {
attrPath = pname;
};
};
2021-01-13 18:31:08 +00: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;
};
}