nixpkgs/pkgs/applications/misc/regextester/default.nix
Will Dietz 8f2a1dc955 regextester: 0.1.7 -> 1.0.1
* uses meson now
* crashes on start complaining schema not installed,
  so I added a postInstall that compiles the schema?
  Fixes the problem but I'm not particularly familiar
  with these bits so review appreciated.
2018-10-31 19:05:37 -04:00

59 lines
1.2 KiB
Nix

{ stdenv
, fetchFromGitHub
, gettext
, libxml2
, pkgconfig
, glib
, granite
, gtk3
, gnome3
, meson
, ninja
, gobjectIntrospection
, gsettings-desktop-schemas
, vala_0_40
, wrapGAppsHook }:
stdenv.mkDerivation rec {
name = "regextester-${version}";
version = "1.0.1";
src = fetchFromGitHub {
owner = "artemanufrij";
repo = "regextester";
rev = version;
sha256 = "1xwwv1hccni1mrbl58f7ly4qfq6738vn24bcbl2q346633cd7kx3";
};
nativeBuildInputs = [
pkgconfig
meson
ninja
gettext
gobjectIntrospection
libxml2
vala_0_40 # should be `elementary.vala` when elementary attribute set is merged
wrapGAppsHook
];
buildInputs = [
glib
granite
gtk3
gnome3.defaultIconTheme
gnome3.libgee
gsettings-desktop-schemas
];
postInstall = ''
${glib.dev}/bin/glib-compile-schemas $out/share/glib-2.0/schemas
'';
meta = with stdenv.lib; {
description = "A desktop application to test regular expressions interactively";
homepage = https://github.com/artemanufrij/regextester;
maintainers = with maintainers; [ samdroid-apps ];
platforms = platforms.linux;
license = licenses.gpl2Plus;
};
}