23 stdenv.mkDerivation (finalAttrs: {
27 src = fetchFromGitHub {
30 rev = "v${finalAttrs.version}";
31 hash = "sha256-ewpSZD+pCr6gbzT+4lW2+6tssPNLq4rqgUx7p8IsjIY=";
51 ++ lib.optionals enableTUI [
55 ++ lib.optional stdenv.hostPlatform.isDarwin AppKit;
58 (lib.cmakeBool "ENABLE_TUI" enableTUI)
59 (lib.cmakeFeature "CMAKE_INSTALL_DATAROOTDIR" "${placeholder "out"}/share")
63 lib.optionalString stdenv.hostPlatform.isDarwin ''
64 mkdir -p $out/Applications
65 mv Lagrange.app $out/Applications
67 + lib.optionalString (stdenv.hostPlatform.isDarwin && enableTUI) ''
68 # https://github.com/skyjake/lagrange/issues/610
70 install -d $out/share/lagrange
71 ln -s $out/Applications/Lagrange.app/Contents/Resources/resources.lgr $out/share/lagrange/resources.lgr
75 updateScript = nix-update-script { };
79 description = "Beautiful Gemini Client";
80 homepage = "https://gmi.skyjake.fi/lagrange/";
81 license = lib.licenses.bsd2;
82 maintainers = with lib.maintainers; [ sikmir ];
83 platforms = lib.platforms.unix;