nixpkgs/pkgs/applications/editors/tijolo/default.nix
2023-07-30 13:09:04 +03:00

43 lines
966 B
Nix

{ stdenv
, lib
, fetchFromGitHub
, crystal
, vte
, libgit2
, editorconfig-core-c
, gtksourceview4
, wrapGAppsHook
, desktopToDarwinBundle
}:
crystal.buildCrystalPackage rec {
pname = "tijolo";
version = "0.7.4";
src = fetchFromGitHub {
owner = "hugopl";
repo = "tijolo";
rev = "v${version}";
hash = "sha256-3TfXvRVP3lu43qF3RWCHnZ3czTaSl5EzrhuTlpnMfKo=";
};
nativeBuildInputs = [ wrapGAppsHook ]
++ lib.optionals stdenv.isDarwin [ desktopToDarwinBundle ];
buildInputs = [ vte libgit2 gtksourceview4 editorconfig-core-c ];
buildTargets = [ "all" ];
doCheck = false;
shardsFile = ./shards.nix;
installTargets = [ "install" "install-fonts"];
doInstallCheck = false;
meta = with lib; {
description = "Lightweight, keyboard-oriented IDE for the masses";
homepage = "https://github.com/hugopl/tijolo";
license = licenses.mit;
mainProgram = "tijolo";
maintainers = with maintainers; [ sund3RRR ];
};
}