summary refs log tree commit diff
path: root/pkgs/applications/misc/regextester/default.nix
blob: b7eb2367528de79e88a42770f321ea7ecdf9c053 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{ lib, stdenv
, fetchFromGitHub
, vala
, gettext
, libxml2
, pkg-config
, glib
, gtk3
, libgee
, meson
, ninja
, gobject-introspection
, gsettings-desktop-schemas
, pantheon
, wrapGAppsHook }:

stdenv.mkDerivation rec {
  pname = "regextester";
  version = "1.0.1";

  src = fetchFromGitHub {
    owner = "artemanufrij";
    repo = "regextester";
    rev = version;
    sha256 = "1xwwv1hccni1mrbl58f7ly4qfq6738vn24bcbl2q346633cd7kx3";
  };

  nativeBuildInputs = [
    vala
    gettext
    gobject-introspection
    libxml2
    meson
    ninja
    pkg-config
    wrapGAppsHook
  ];

  buildInputs = [
    pantheon.elementary-icon-theme
    pantheon.granite
    glib
    libgee
    gsettings-desktop-schemas
    gtk3
  ];

  postInstall = ''
    ${glib.dev}/bin/glib-compile-schemas $out/share/glib-2.0/schemas
  '';

  meta = with 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;
  };
}