mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
53 lines
1.0 KiB
Nix
53 lines
1.0 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, nix-update-script
|
|
, cmake
|
|
, pkg-config
|
|
, libunistring
|
|
, mpg123
|
|
, openssl
|
|
, pcre
|
|
, SDL2
|
|
, AppKit
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "lagrange";
|
|
version = "1.3.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "skyjake";
|
|
repo = "lagrange";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-90MN7JH84h10dSXt5Kwc2V3FKVutQ7AmNcR4TK2bpBY=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ libunistring mpg123 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;
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script {
|
|
attrPath = pname;
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "A Beautiful Gemini Client";
|
|
homepage = "https://gmi.skyjake.fi/lagrange/";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ sikmir ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|