From 7c5cf1a2d0684f9c0835339aa9d7dceb2caf49b8 Mon Sep 17 00:00:00 2001 From: sunder Date: Wed, 19 Jul 2023 19:12:49 +0300 Subject: [PATCH] tijolo: init at 0.7.3 --- pkgs/applications/editors/tijolo/default.nix | 42 +++++++++++++++++++ .../editors/tijolo/tijolo-shards.nix | 27 ++++++++++++ pkgs/top-level/all-packages.nix | 2 + 3 files changed, 71 insertions(+) create mode 100644 pkgs/applications/editors/tijolo/default.nix create mode 100644 pkgs/applications/editors/tijolo/tijolo-shards.nix diff --git a/pkgs/applications/editors/tijolo/default.nix b/pkgs/applications/editors/tijolo/default.nix new file mode 100644 index 000000000000..fbed493f2f8c --- /dev/null +++ b/pkgs/applications/editors/tijolo/default.nix @@ -0,0 +1,42 @@ +{ stdenv +, lib +, fetchFromGitHub +, crystal +, vte +, libgit2 +, editorconfig-core-c +, gtksourceview4 +, wrapGAppsHook +, desktopToDarwinBundle +}: +crystal.buildCrystalPackage rec { + pname = "tijolo"; + version = "0.7.3"; + + src = fetchFromGitHub { + owner = "hugopl"; + repo = "tijolo"; + rev = "v${version}"; + hash = "sha256-15not/B+O+wIZ/fvLFy26/dyvq0E+bZUeoSZ6HxMMKg="; + }; + + nativeBuildInputs = [ wrapGAppsHook ] + ++ lib.optionals stdenv.isDarwin [ desktopToDarwinBundle ]; + buildInputs = [ vte libgit2 gtksourceview4 editorconfig-core-c ]; + + buildTargets = [ "all" ]; + doCheck = false; + + shardsFile = ./tijolo-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 ]; + }; +} diff --git a/pkgs/applications/editors/tijolo/tijolo-shards.nix b/pkgs/applications/editors/tijolo/tijolo-shards.nix new file mode 100644 index 000000000000..480251e77755 --- /dev/null +++ b/pkgs/applications/editors/tijolo/tijolo-shards.nix @@ -0,0 +1,27 @@ +{ + compiled_license = { + url = "https://github.com/elorest/compiled_license.git"; + rev = "v1.2.2"; + sha256 = "1f412r6m31cc093lcw31m2rp5s3y7vh6q3wc3xh9b8vccvmj21p7"; + }; + fzy = { + url = "https://github.com/hugopl/fzy.git"; + rev = "v0.5.5"; + sha256 = "1zk95m43ymx9ilwr6iw9l44nkmp4sas28ib0dkr07hkhgrkw68sv"; + }; + gobject = { + url = "https://github.com/jhass/crystal-gobject.git"; + rev = "v0.10.0"; + sha256 = "02cc3486ifbffdbvgl75ylwn47gpfb2j0srz92jx5yz1d596x746"; + }; + toml = { + url = "https://github.com/crystal-community/toml.cr.git"; + rev = "v0.7.0"; + sha256 = "0vznx2irvx6m8w6chdf9ms72n2w0cf2m5cwh0cjmp1jz9y3xwv7z"; + }; + version_from_shard = { + url = "https://github.com/hugopl/version_from_shard.git"; + rev = "v1.2.5"; + sha256 = "0xizj0q4rd541rwjbx04cjifc2gfx4l5v6q2y7gmd0ndjmkgb8ik"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 523be31c5a0b..b5e737fe1d8d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -35235,6 +35235,8 @@ with pkgs; tickrs = callPackage ../applications/misc/tickrs { }; + tijolo = callPackage ../applications/editors/tijolo { }; + tilemaker = callPackage ../applications/misc/tilemaker { }; timbreid = callPackage ../applications/audio/pd-plugins/timbreid {