2021-07-24 15:53:20 +02:00
|
|
|
{ lib, stdenv, buildNimblePackage, fetchFromGitHub, glib, gobjectIntrospection,
|
2019-06-17 12:04:52 +02:00
|
|
|
gnome3, cairo, pango, librsvg, libnotify, hicolor-icon-theme, wrapGAppsHook }:
|
2019-04-17 00:58:15 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
oldgtk3 = buildNimblePackage rec {
|
|
|
|
name = "oldgtk3-${version}";
|
|
|
|
version = "0.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "StefanSalewski";
|
|
|
|
repo = "oldgtk3";
|
|
|
|
rev = "8ad4bc7e790c2c4b01eff9ff4f7d7ecc2cac25e3";
|
|
|
|
sha256 = "1kfv4cwgfygbxfgnsyzcwvy5l17082zx9vb9kc75zj27qhlq9ygd";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
in buildNimblePackage rec {
|
|
|
|
name = "gintro-${version}";
|
2019-06-08 17:55:09 +02:00
|
|
|
version = "0.4.22";
|
2019-04-17 00:58:15 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "StefanSalewski";
|
|
|
|
repo = "gintro";
|
|
|
|
rev = "v${version}";
|
2019-06-08 17:55:09 +02:00
|
|
|
sha256 = "0a6qz51gl3bczisrac99nq3a1bqxwaqgvk21j8fdmi3xmylzx54g";
|
2019-04-17 00:58:15 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./allow-preinstalled-oldgtk3.patch ];
|
|
|
|
|
|
|
|
nimDeps = [ oldgtk3 ];
|
|
|
|
|
2019-06-17 12:04:52 +02:00
|
|
|
nativeBuildInputs = [ gobjectIntrospection wrapGAppsHook ];
|
2019-05-22 16:17:14 +02:00
|
|
|
|
2019-04-17 00:58:15 +02:00
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gnome3.gdk_pixbuf
|
|
|
|
gnome3.gtk
|
|
|
|
gnome3.gtksourceview
|
|
|
|
gnome3.vte
|
2019-06-17 12:04:52 +02:00
|
|
|
gnome3.adwaita-icon-theme
|
|
|
|
hicolor-icon-theme
|
2019-04-17 00:58:15 +02:00
|
|
|
cairo
|
|
|
|
pango
|
|
|
|
librsvg
|
|
|
|
libnotify
|
|
|
|
];
|
|
|
|
|
2021-07-24 15:53:20 +02:00
|
|
|
meta = with lib; {
|
2019-04-17 00:58:15 +02:00
|
|
|
description = "High level GObject-Introspection based GTK3 bindings for Nim language";
|
|
|
|
homepage = https://github.com/StefanSalewski/gintro;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lurchi ];
|
|
|
|
platforms = platforms.gnu ++ platforms.linux;
|
|
|
|
};
|
|
|
|
}
|