nixpkgs-overlay/pkgs/nim-packages/gintro/default.nix

55 lines
1.4 KiB
Nix
Raw Normal View History

2019-04-17 00:58:15 +02:00
{ stdenv, buildNimblePackage, fetchFromGitHub, glib, gobjectIntrospection,
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 ];
nativeBuildInputs = [ gobjectIntrospection wrapGAppsHook ];
2019-04-17 00:58:15 +02:00
buildInputs = [
glib
gnome3.gdk_pixbuf
gnome3.gtk
gnome3.gtksourceview
gnome3.vte
gnome3.adwaita-icon-theme
hicolor-icon-theme
2019-04-17 00:58:15 +02:00
cairo
pango
librsvg
libnotify
];
meta = with stdenv.lib; {
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;
};
}