about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/misc/regextester/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/misc/regextester/default.nix')
-rw-r--r--nixpkgs/pkgs/applications/misc/regextester/default.nix60
1 files changed, 60 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/misc/regextester/default.nix b/nixpkgs/pkgs/applications/misc/regextester/default.nix
new file mode 100644
index 000000000000..e5900a050efc
--- /dev/null
+++ b/nixpkgs/pkgs/applications/misc/regextester/default.nix
@@ -0,0 +1,60 @@
+{ lib, stdenv
+, fetchFromGitHub
+, vala
+, gettext
+, libxml2
+, pkg-config
+, glib
+, gtk3
+, libgee
+, meson
+, ninja
+, gobject-introspection
+, gsettings-desktop-schemas
+, desktop-file-utils
+, pantheon
+, wrapGAppsHook }:
+
+stdenv.mkDerivation rec {
+  pname = "regextester";
+  version = "1.1.1";
+
+  src = fetchFromGitHub {
+    owner = "artemanufrij";
+    repo = "regextester";
+    rev = version;
+    hash = "sha256-5+gU8DeB99w2h/4vMal2eHkR0305dmRYiY6fsLZzlnc=";
+  };
+
+  nativeBuildInputs = [
+    vala
+    gettext
+    gobject-introspection
+    libxml2
+    meson
+    ninja
+    pkg-config
+    wrapGAppsHook
+    desktop-file-utils
+  ];
+
+  buildInputs = [
+    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;
+  };
+}