summary refs log tree commit diff
path: root/pkgs/applications/misc/regextester/default.nix
blob: c1b1cfb48a281d0a96975588a840c2794ed789a0 (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
{ stdenv
, fetchFromGitHub
, gettext
, libxml2
, pkgconfig
, gtk3
, granite
, gnome3
, cmake
, ninja
, vala
, elementary-cmake-modules
, wrapGAppsHook }:

stdenv.mkDerivation rec {
  name = "regextester-${version}";
  version = "0.1.7";

  src = fetchFromGitHub {
    owner = "artemanufrij";
    repo = "regextester";
    rev = version;
    sha256 = "07shdm10dc7jz2hka5dc51yp81a0dgc47nmkrp6fs6r9wqx0j30n";
  };

  XDG_DATA_DIRS = stdenv.lib.concatStringsSep ":" [
    "${granite}/share"
    "${gnome3.libgee}/share"
  ];

  nativeBuildInputs = [
    pkgconfig
    wrapGAppsHook
    vala
    cmake
    ninja
    gettext
    libxml2
    elementary-cmake-modules
  ];
  buildInputs = [
    gtk3
    granite
    gnome3.libgee
  ];

  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;
  };
}