about summary refs log tree commit diff
path: root/pkgs/applications/editors/tijolo/default.nix
blob: 2b76d492924bea7f13933eee46af30f8c3c06fc2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{ stdenv
, lib
, fetchFromGitHub
, crystal
, vte
, libgit2
, editorconfig-core-c
, gtksourceview4
, wrapGAppsHook3
, desktopToDarwinBundle
}:
crystal.buildCrystalPackage rec {
  pname = "tijolo";
  version = "0.7.4";

  src = fetchFromGitHub {
    owner = "hugopl";
    repo = "tijolo";
    rev = "v${version}";
    hash = "sha256-3TfXvRVP3lu43qF3RWCHnZ3czTaSl5EzrhuTlpnMfKo=";
  };

  nativeBuildInputs = [ wrapGAppsHook3 ]
    ++ 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 ];
  };
}