tijolo: 0.7.4 → 0.8.1 (#312817)
This commit is contained in:
parent
279542437e
commit
33696fc539
|
@ -2,34 +2,49 @@
|
|||
, lib
|
||||
, fetchFromGitHub
|
||||
, crystal
|
||||
, vte
|
||||
, vte-gtk4
|
||||
, libgit2
|
||||
, gtk4
|
||||
, libadwaita
|
||||
, editorconfig-core-c
|
||||
, gtksourceview4
|
||||
, wrapGAppsHook3
|
||||
, gtksourceview5
|
||||
, wrapGAppsHook4
|
||||
, gobject-introspection
|
||||
, desktopToDarwinBundle
|
||||
}:
|
||||
|
||||
crystal.buildCrystalPackage rec {
|
||||
pname = "tijolo";
|
||||
version = "0.7.4";
|
||||
version = "0.8.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hugopl";
|
||||
repo = "tijolo";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-3TfXvRVP3lu43qF3RWCHnZ3czTaSl5EzrhuTlpnMfKo=";
|
||||
hash = "sha256-+sRcS5bVH6WLmSDLiPw608OB6OjBVwLqWxGT5Y6caBc=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ wrapGAppsHook3 ]
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace-fail "shards install" "true"
|
||||
'';
|
||||
|
||||
shardsFile = ./shards.nix;
|
||||
copyShardDeps = true;
|
||||
|
||||
preBuild = ''
|
||||
cd lib/gi-crystal && shards build -Dpreview_mt --release --no-debug
|
||||
cd ../.. && mkdir bin/ && cp lib/gi-crystal/bin/gi-crystal bin/
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ wrapGAppsHook4 gobject-introspection ]
|
||||
++ lib.optionals stdenv.isDarwin [ desktopToDarwinBundle ];
|
||||
buildInputs = [ vte libgit2 gtksourceview4 editorconfig-core-c ];
|
||||
buildInputs = [ gtk4 libadwaita vte-gtk4 libgit2 gtksourceview5 editorconfig-core-c ];
|
||||
|
||||
buildTargets = [ "all" ];
|
||||
doCheck = false;
|
||||
|
||||
shardsFile = ./shards.nix;
|
||||
|
||||
installTargets = [ "install" "install-fonts"];
|
||||
installTargets = [ "install" "post-install" "install-fonts"];
|
||||
doInstallCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
|
|
|
@ -1,27 +1,42 @@
|
|||
{
|
||||
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";
|
||||
gi-crystal = {
|
||||
url = "https://github.com/hugopl/gi-crystal.git";
|
||||
rev = "v0.22.2";
|
||||
sha256 = "0bpa1f8iaf97z2kbgjc7nc8km7nd7bppiwna319lm2hvm8m5pw15";
|
||||
};
|
||||
gtk4 = {
|
||||
url = "https://github.com/hugopl/gtk4.cr.git";
|
||||
rev = "v0.16.1";
|
||||
sha256 = "1cqkbh072y70l8g0p040vf50k920p32ry1larnwn9mqabd74jwaj";
|
||||
};
|
||||
harfbuzz = {
|
||||
url = "https://github.com/hugopl/harfbuzz.cr.git";
|
||||
rev = "v0.2.0";
|
||||
sha256 = "06wgqxwyib5416yp53j2iwcbr3bl4jjxb1flm7z103l365par694";
|
||||
};
|
||||
libadwaita = {
|
||||
url = "https://github.com/geopjr/libadwaita.cr.git";
|
||||
rev = "cffabb56e911d2a90c53c2fd14d6bd08bf5ac446";
|
||||
sha256 = "0gcq04vgxg0vff9fcalgzq9phq0y76diihkzhlfn91bdxwkx7rl3";
|
||||
};
|
||||
pango = {
|
||||
url = "https://github.com/hugopl/pango.cr.git";
|
||||
rev = "v0.3.1";
|
||||
sha256 = "0xlf127flimnll875mcq92q7xsi975rrgdpcpmnrwllhdhfx9qmv";
|
||||
};
|
||||
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";
|
||||
vte = {
|
||||
url = "https://github.com/hugopl/vte.cr.git";
|
||||
rev = "v0.1.0";
|
||||
sha256 = "18x2l9cm8czhwpdfng3rz00kn07c49y0555kf2j5l2wb0g05snh3";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user