nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv
2, fetchFromGitHub
3, vala
4, gettext
5, libxml2
6, pkg-config
7, glib
8, gtk3
9, libgee
10, meson
11, ninja
12, gobject-introspection
13, gsettings-desktop-schemas
14, desktop-file-utils
15, pantheon
16, wrapGAppsHook }:
17
18stdenv.mkDerivation rec {
19 pname = "regextester";
20 version = "1.1.1";
21
22 src = fetchFromGitHub {
23 owner = "artemanufrij";
24 repo = "regextester";
25 rev = version;
26 hash = "sha256-5+gU8DeB99w2h/4vMal2eHkR0305dmRYiY6fsLZzlnc=";
27 };
28
29 nativeBuildInputs = [
30 vala
31 gettext
32 gobject-introspection
33 libxml2
34 meson
35 ninja
36 pkg-config
37 wrapGAppsHook
38 desktop-file-utils
39 ];
40
41 buildInputs = [
42 pantheon.granite
43 glib
44 libgee
45 gsettings-desktop-schemas
46 gtk3
47 ];
48
49 postInstall = ''
50 ${glib.dev}/bin/glib-compile-schemas $out/share/glib-2.0/schemas
51 '';
52
53 meta = with lib; {
54 description = "A desktop application to test regular expressions interactively";
55 homepage = "https://github.com/artemanufrij/regextester";
56 maintainers = with maintainers; [ samdroid-apps ];
57 platforms = platforms.linux;
58 license = licenses.gpl2Plus;
59 };
60}